hi,
i have successfully installed tinyportal for smf 1.1.2 and very happy with the result...i installed in my pc (localhost) for testing and learning purpose before really host it....i use apache server, php 5.02 and mySql 7.0...
i have 1 problem...when i try to add a new block, the database error happens...
Out of range value adjusted for column 'var1' at row 1
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\smf\Sources\TPortalAdmin.php
Line: 223
what is the problem?
second, can i know what is the different between front page block and center block? when i move the existing block to front page block, i can't notice any chances....
thanks for help.....
Try running the manual_tp_install.php to repair your database and see if that helps. Frontpage blocks only show on frontpage stuff. Centerblocks show on frontpage and throughout the forum.
i have downloaded this from the link below
http://www.tinyportal.net/index.php?topic=13225.0
and installed...
before i installed, i have reinstall the smf, recreate a new database and done the following steps...
Set all forum contet to DEFAULT settings.
1. Forum uses the SMF DEFAULT CORE theme ONLY!
2. English default language ONLY!
3. dont have any mods
do you means that i still need to do the manual_tp_install.php?
Always as thats the file that will make all the DB tables and settings for your portal
ok...i am trying the steps shown here:
http://www.tinyportal.net/index.php?topic=12118.0
but that's one is for smf1.1.1, does it same for smf1.1.2??
after i haved followed the steps in the link below:
HOW TO MANUALLY INSTALL TP V.097 To SMF 1.1.1
http://www.tinyportal.net/index.php?topic=12118.0
the database error as shown as below:
Out of range value adjusted for column 'var1' at row 1
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\smf\Sources\TPortalAdmin.php
Line: 223
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.1, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
i noticed that after run those steps, my forums version downgraded...
Version Information:
Forum version: SMF 1.1.1
Current SMF version: SMF 1.1.2
anyone can help me?
ok...
i restart everything again...i reinstall smf, recreate a new database and use the package manager to install the file from the following link:
TP 0.9.7.1 for SMF 1.1.2
http://www.tinyportal.net/index.php?topic=13225.0
everythings work fine...but when i try to add new block in the block manager, the database error occured again..
Out of range value adjusted for column 'var1' at row 1
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\smf\Sources\TPortalAdmin.php
Line: 223
then i copy the manual_tp_install_0971.php and install it.. the problem still same...
IchBin and G6 please help me....thanks a lot...i will appreciate your kindness..
hmm....really nobody know why?
Let's try something.
In Sources/TPAdmin.php, find the line
db_query("INSERT INTO {$tp_prefix}blocks (type,frame,title,body,access,bar,pos,off,visible,var1,var2,lang,access2,editgroups) VALUES(5,'theme','-no title-','-no content-','$grps',$newbar,0,1,0,'','','','','')", __FILE__, __LINE__);
Change it to
db_query("INSERT INTO {$tp_prefix}blocks (type,frame,title,body,access,bar,pos,off,visible,var1,var2,lang,access2,editgroups) VALUES(5,'theme','-no title-','-no content-','$grps',$newbar,0,1,0,0,0,'','','')", __FILE__, __LINE__);
It's just changing two of the '' values to being 0.
The default code works fine for me, but there could be something with a different version of MySQL or something.
If it doesn't fix things, put it back the way it was.
I'd like to know where he got MySQL 7.0. That would be a neat trick, considering MySQL latest version is 5.x. I'm apt to believe he meant MS SQL.
Can you clarify Edward?
sorry Thurnok...is MySQL 5.0....sorry....
few minutes later i will try JPDeni's method....thanks JPDeni....
thanks JPDeni!!! it's work!!! while waiting for tp0.98 released, i will play around with this version first....thanks for everybody who help me solve the problems....
Ah.. hehe.. good deal! JP Deni to the rescue again. :)