PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
gyrotwister
New Member
New Member


Joined: Nov 21, 2006
Posts: 6

PostPosted: Tue Mar 10, 2009 8:25 am Reply with quote Back to top

Hello all,

As we speak I'm setting up the advertisement module in RN2.30.01. While doing this I stumbled up a 'problem' or 'bug'.

I found out that while trying to add a flash file that the link while be truncated to 100 chars. I already checked my database and changed the value for "imageurl" from 100 to 255 in "nuke_banner".

However even after this alteration I am unable to put in a link which has more than 100 chars.

Anyone a possible solution?

Site:
Only registered users can see links on this board!
Get registered or login to the forums!

PHP: version 5.2.4
PhpNuke: RavenNuke 2.30.01
Theme: fiblack3D by DAZ, said to be compliant with RN

Thanks in advance!!

With kind regards,

GyroTwister
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Mar 10, 2009 6:49 pm Reply with quote Back to top

There is a maxlength in the form you need to change in the code

Code:

<input type="text" name="imageurl" size="50" maxlength="100" value="http://" />
View user's profile Send private message Visit poster's website
gyrotwister
New Member
New Member


Joined: Nov 21, 2006
Posts: 6

PostPosted: Wed Mar 11, 2009 4:18 am Reply with quote Back to top

@evader99,

Thank you very much for your input. Found several lines in de admin/index.php underneath the module advertising.

Changed them and everything is working great as we speak!!

Thanks again!

With kind regards,

GyroTwister
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Thu Mar 12, 2009 8:51 am Reply with quote Back to top

gyrotwister,

I have made this a Sticky. Thanks!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
gyrotwister
New Member
New Member


Joined: Nov 21, 2006
Posts: 6

PostPosted: Sun Mar 15, 2009 4:00 am Reply with quote Back to top

Ok, to be complete:

1) Open your database with phpMyAdmin or trough cPanel (whatever your WHP is providing).
2) Look for $prefix_banner
3) Open structure of this database
4) Locate imageurl; type= VARCHAR; length=100 change the length to 255
5) Save your new structure

Ok your database has been updated. Now for the changes in the code:
1) Open ../modules/Advertising/admin/index.php
2) Look for the following code (around line 362)
Code:
         . '<tr><td>' . _IMAGESWFURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="100" value="http://" /></td></tr>'

Change this to:
Code:
         . '<tr><td>' . _IMAGESWFURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="255" value="http://" /></td></tr>'


3) The next occurence is around line 641:
Code:
echo '<tr><td>' . _FLASHFILEURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="100" value="' . $imageurl . '" /> &nbsp; <a href="' . $imageurl . '" target="_blank"><img src="images/view.gif" border="0" alt="' . _SHOW . '" title="' . _SHOW . '" /></a></td></tr>'


Change this to:
Code:
      echo '<tr><td>' . _FLASHFILEURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="255" value="' . $imageurl . '" /> &nbsp; <a href="' . $imageurl . '" target="_blank"><img src="images/view.gif" border="0" alt="' . _SHOW . '" title="' . _SHOW . '" /></a></td></tr>'


4) Next look around line 647:
Code:
echo '<tr><td>' . _IMAGEURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="100" value="' . $imageurl . '" /></td></tr>'


Change this to:
Code:
      echo '<tr><td>' . _IMAGEURL . ':</td><td><input type="text" name="imageurl" size="50" maxlength="255" value="' . $imageurl . '" /></td></tr>'


5) Save your work!

No you're done and you're able to setup flashlinks with a length of 255 chars!

Good luck!!
View user's profile Send private message
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