Jump to content
xisto Community
Sign in to follow this  
DjLuki

Forum Script Error

Recommended Posts

hey, im getting this error when im trying to view a message on my forum,

Parse error: syntax error, unexpected T_VARIABLE in /home/luki/public_html/forum/viewtopic.php on line 26

and this is what is on line 26 in that file.. i don't know waht's wrong with it.

LIMIT$start, ".$board_config['posts_per_page'];

and this is what it loks like all together...

define('IN_PHPBB', true);define('IN_CASHMOD', true);
define('CM_VIEWTOPIC', true);
LIMIT$start, ".$board_config['posts_per_page'];
$cm_viewtopic->generate_columns($template,$forum_id,$sql);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

does anybody know waht's wrong? also maybe if you can open up this file in your forum dir. and tell me if it loks the same. im using phpbb.
Thanks

Share this post


Link to post
Share on other sites

lol... great coding..

um, if you try this, make a back-up of this file before you try this ok?!?

LIMIT$start, ".$board_config['posts_per_page'];

maybe try putting a " on the other side of the ; like this

LIMIT$start, ".$board_config['posts_per_page'];"


i am taking a wild shot in the dark there!

Share this post


Link to post
Share on other sites

that does not work.UPDATEalright alright, i figured it out, i had posted that whole line in the wrong place thats why it didn't fix it.. i got it working now.

Notice from BuffaloHELP:
Our board is now enabled with EDIT feature. Please use it instead of double posting.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.