Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] problem with admin panel after installing Password-protected forums
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] problem with admin panel after installing Password-protected forums
PostPosted: 06/02/2007 6:48 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:49 PM
Location: Birmingham, UK.
greatbrE.gif
the left menu goes funny once installed. You can check this from ACP if you like Nightrider  crybaby
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: problem with admin panel after installing Password-protected forums
PostPosted: 06/02/2007 11:05 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:49 PM
Location: St Pete, FL
peace.gif
The MOD had several mistakes in the VALUES line in the code.  This is complicated to understand even if you understand this, so the problem was hard to find and correct.  I will post the before and after versions of the problematic line so that you might be able to see what had to be done to fix this:

OPEN
admin/admin_forums.php

BEFORE
Code:
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', intval($HTTP_POST_VARS['count_posts']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ", " . intval($HTTP_POST_VARS['forumthank']) . ")";

AFTER
Code:
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . ", ". $next_order . ", " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', " . intval($HTTP_POST_VARS['count_posts']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ", " . intval($HTTP_POST_VARS['forumthank']) . ")";

The corrections may not be obvious unless you can compare the two lines character for character.  I hate having to debug code like this since it can be easy to miss the problem...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] problem with admin panel after installing Password-protected forums
PostPosted: 06/03/2007 3:44 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:49 PM
Location: Birmingham, UK.
greatbrE.gif
Ok, I edited the install file for this for mod again. And the above coding sure got to me. I think the reason I got the coding mixed up a little is because of the second admin panel I have, the one you see first when in ACP. I edited the rest of the install file ok though  Applause

Thanks for finding the above error Nightrider  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: problem with admin panel after installing Password-protected forums
PostPosted: 06/03/2007 5:41 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:49 PM
Location: St Pete, FL
peace.gif
I can see how it got to you.  It could get to the most seasoned programmer too.  You really have to be able to understand why there are all the double and single quotes and understand which field types require quotes and which don't.  Even then, it's easy to make a mistake...

I'm glad it's fixed now...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] problem with admin panel after installing Password-protected forums
PostPosted: 06/04/2007 4:34 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 10:49 PM
Location: Birmingham, UK.
greatbrE.gif
OK, thanks dude. 8)
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: problem with admin panel after installing Password-protected forums
PostPosted: 06/04/2007 3:21 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 5:49 PM
Location: St Pete, FL
peace.gif
You're welcome Chris...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0681s (PHP: 63% - SQL: 37%) - SQL queries: 45 - GZIP disabled - Debug on