Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-31-2012, 06:32 AM Where is the error?
magicvw's Avatar
Ultra Talker

Posts: 254
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
Hi

I tried to install a mod for my phpbb forum - antispam acp. I don't know if I copy/pasted the code wrong but I'm getting a syntax error somewhere here


PHP Code:
'rank_title'        => '',
                
'rank_image'        => '',
                
'rank_image_src'    => '',

                
'username'            => $row['username'],
                
'user_colour'        => $row['user_colour'],

                
'online'        => false,
                
'profile'        => append_sid("{$phpbb_root_path}memberlist.$phpEx""mode=viewprofile&u=$poster_id"),
                
'www'            => $row['user_website'],
                
'aim'            => ($row['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx""mode=contact&action=aim&u=$poster_id") : '',
                
'msn'            => ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx""mode=contact&action=msnm&u=$poster_id") : '',
                
'yim'            => ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' urlencode($row['user_yim']) . '&.src=pg' '',
                
'jabber'        => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx""mode=contact&action=jabber&u=$poster_id") : '',
                
'search'       =>  ($auth-> acl_get 'u_search' ))  ?  append_sid " $ {search} phpbb_root_path. $ phpEx" 
                
                
//START Anti-Spam ACP 
                
'user_flagged'    =>  $ row 'user_flagged' ]  ?  true  :  false 
                
// END Anti-Spam ACP
                 
"author_id=$poster_id&sr=posts") : '',

                
'author_full'        => get_username_string('full'$poster_id$row['username'], $row['user_colour']),
                
'author_colour'        => get_username_string('colour'$poster_id$row['username'], $row['user_colour']),
                
'author_username'    => get_username_string('username'$poster_id$row['username'], $row['user_colour']),
                
'author_profile'    => get_username_string('profile'$poster_id$row['username'], $row['user_colour']),
            );

            
get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']); 
The only bit I added was the start antispam bit.

And no I didn't save the original file (Yes I know I'm stupid )
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
 
Register now for full access!
Old 07-31-2012, 06:36 AM Re: Where is the error?
magicvw's Avatar
Ultra Talker

Posts: 254
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
These were the instructions

Code:
Find

Tip: This may be a partial find and not the whole line.
Code:Select All
'search'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx",
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select all
				// START Anti-Spam ACP
				'user_flagged'	=> $row['user_flagged'] ? true : false,
				// END Anti-Spam ACP
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
Old 07-31-2012, 06:53 AM Re: Where is the error?
magicvw's Avatar
Ultra Talker

Posts: 254
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
ah ok I've fixed it.

In case anyone else does this - the first bit is only part of the line given, (i.e. I mistakenly added it half way through the line I think) so it should look like this

PHP Code:
'search'        => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx"
                
                
                
                
"author_id=$poster_id&sr=posts") : '',
                
                
// START Anti-Spam ACP
                
'user_flagged'    => $row['user_flagged'] ? true false,
                
// END Anti-Spam ACP 
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
Old 08-02-2012, 04:36 PM Re: Where is the error?
Physicsguy's Avatar
404 - Title not found

Posts: 1,060
Name: Scott Kaye
Location: Ontario
Trades: 0
Quote:
Originally Posted by magicvw View Post
ah ok I've fixed it.

In case anyone else does this - the first bit is only part of the line given, (i.e. I mistakenly added it half way through the line I think) so it should look like this

PHP Code:
'search'        => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx"
                
                
                
                
"author_id=$poster_id&sr=posts") : '',
                
                
// START Anti-Spam ACP
                
'user_flagged'    => $row['user_flagged'] ? true false,
                
// END Anti-Spam ACP 
That was fast xD, glad you fixed it!
__________________

Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Reply     « Reply to Where is the error?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 5.96559 seconds with 11 queries