PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Sat Jul 18, 2009 8:25 am Reply with quote Back to top

Before posting i checked , checked again..and again etc etc.
but i dont find it.

when try to edit a banners name:
(modules/Advertising/admin/index.php)
Code:
   echo '<tr><td>' . _BANNERNAME . ':</td><td><input type="text" name="adname" size="20" maxlength="50" value="' . $row['name'] . '" /></td></tr>';


It wont update , i checked on my localhost ravennuke distro (latest as we speak), and ther it also doesnt update.
Same for the release BEFORE latest (as we speak)
So i checked a version phpnuke81035b , and there it is working.
i did a file comparsion but couldnt locate any real serious differency?
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Jul 18, 2009 6:11 pm Reply with quote Back to top

Have you checked your server error log? Also try turning on the following settings in rnconfig.php and then checking your logs?

$error_reporting = E_ALL;
$loglevel = 1;
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Sun Jul 19, 2009 2:26 am Reply with quote Back to top

Find in your ROOT/modules/Advertising/admin/index.php around line: 698

Code:
$db->sql_query('UPDATE ' . $prefix . '_banner set cid=\'' . $cid . '", name="' . $adname . '\', imptotal=\'' . $imp . '\', imageurl=\'' . $imageurl . '\', clickurl=\'' . $clickurl . '\', alttext=\'' . $alttext . '\', position=\'' . $position . '\', active=\'' . $active . '\', ad_code=\'' . $ad_code . '\', ad_width=\'' . $ad_width . '\', ad_height=\'' . $ad_height . '\' where bid=\'' . $bid . '\'');


Replace with:

Code:
   $db->sql_query('UPDATE ' . $prefix . '_banner set cid=\'' . $cid . '\',  name=\'' . $adname . '\', imptotal=\'' . $imp . '\', imageurl=\'' . $imageurl . '\', clickurl=\'' . $clickurl . '\', alttext=\'' . $alttext . '\', position=\'' . $position . '\', active=\'' . $active . '\', ad_code=\'' . $ad_code . '\', ad_width=\'' . $ad_width . '\', ad_height=\'' . $ad_height . '\' where bid=\'' . $bid . '\'');
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Sun Jul 19, 2009 8:20 am Reply with quote Back to top

Thanks Whitehat. This bug has been fixed as part of RN2.4. There is another bug with renaming a client name that is fixed. In fact, there's a number of bugs that will be fixed.

If folks aren't comfortable editing their SQL they can wait a bit for 2.4.
View user's profile Send private message Visit poster's website
wHiTeHaT
Involved
Involved


Joined: Jul 18, 2004
Posts: 442
Location: Netherlands

PostPosted: Sun Jul 19, 2009 3:10 pm Reply with quote Back to top

Thank you aswell , i found the cliënt name renaming bug aswell and fixed it.

Is there a bug repository?
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Sun Jul 19, 2009 3:38 pm Reply with quote Back to top

There is, but currently it is for internal use only.
View user's profile Send private message
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Sun Jul 19, 2009 6:31 pm Reply with quote Back to top

Here is the new SQL for the BannerClientChange function in Advertising/Admin/index.php:

Code:
   $db->sql_query('UPDATE ' . $prefix . '_banner_clients SET name=\'' . $name . '\', contact=\'' . $contact . '\', email=\'' . $email . '\', login=\'' . $login . '\', passwd=\'' . $passwd . '\', extrainfo=\'' . $extrainfo . '\' WHERE cid=\'' . $cid . '\'');


For what it is worth, the problem was most likely caused by extensive efficiency based changes to the code to substitute string concatenation and single quotes in earlier Ravennuke releases. I recommend that most users just wait for 2.4 but if you have a backup and are affected by the client name rename bug and are comfortable editing PHP code then the correct code is above.

There will be many other changes to the advertising module of a bug fix nature in 2.4. It's just not practical to be posting them individually as we go but if a particular issue comes up we will try to respond.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum