Page 1 of 1

After Changing All The Descriptions To 500, still no change

Posted: Wed Oct 12, 2011 4:23 pm
by weezee
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I change the description to 350 char, no change, then 500 char, still not change. I change it in admin.php, links.php, form.html, and addlink.php. index.php is now a redirect, I couldn't change it there. Is there somewhere else I missed to make it work.

Re: After Changing All The Descriptions To 500, still no cha

Posted: Wed Oct 12, 2011 5:08 pm
by Klemen
Not sure what you changes and what not, but you obviously missed something. In addlink.php check if you have

Code: Select all

if (strlen($description)>500)

Re: After Changing All The Descriptions To 500, still no cha

Posted: Fri Oct 14, 2011 5:51 am
by weezee
if (strlen($description)>500)

I change this in addlink.php



This in form.html
<p><b>Website description:</b><br>
<input type="text" name="description" maxlength="500" size="60"></p>

This in admin.php
<td class="sec"><b>Website description:<b></td>
<td class="sec"><input type="text" name="site_desc" maxlength="500" size="50" value="<?php echo $settings['site_desc']; ?>"></td>
</tr>


This in link.php
<p><b>Website description:</b><br>
<input type="text" name="description" maxlength="500" size="60"></p>


i'still getting this error when I try to add links in admin: An error occured:

Description is too long! Description of your website is limited to 200 chars!

Thats why I wanted to know if there was some where else I missed changing.

Re: After Changing All The Descriptions To 500, still no cha

Posted: Fri Oct 14, 2011 2:50 pm
by Klemen
You need to modify the same code in admin.php as well:

Code: Select all

if (strlen($description)>200)