Page 1 of 1
[solved] Add Link - Site Name Length too short

Posted:
Fri May 05, 2006 9:59 am
Author: Kat
I asked this on the old board.
When I go to add links through my website Link page, or the ACP I can't enter more then 20 characters for the site name.
I was told to change this:
in links_body.tpl
[code]<tr> <td><br><span>{L_LINK_TITLE}</span><br><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width]
inline find 20 and replace with 100, I did try this and nothing happened, its still 20 characters long.
Any help would be great, as most website names are longer then 20 characters.
Thanks,
Kat
Re: Add Link - Site Name Length too short

Posted:
Tue May 09, 2006 3:58 pm
Author: Adrian Rea
I think you will find that all references to sthe site name length are as follows
templatesfisubicelinks_body.tpl
- Code: Select all
<td><br><span>{L_LINK_TITLE}</span><br><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width]
templatesfisubicelinks_index.tpl
[code]<td><br><span>{L_LINK_TITLE}</span><br><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width]
templatesfisubicelinks_popnew.tpl[code]<td><br><span>{L_LINK_TITLE}</span><br><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width]
templatesfisubicelinks_search.tpl[code]<td><br><span>{L_LINK_TITLE}</span><br><input type="text" name="link_title" value="" size="15" maxlength="20" class="post" style="width]
and templatesfisubiceadminadmin_links_edit_body.tpl[code]<td><input></td>
A

Posted:
Wed May 10, 2006 9:25 am
Author: Kat
hum...is there another file to edit somewhere? because that didn't work either
Re: Add Link - Site Name Length too short

Posted:
Wed May 10, 2006 9:27 am
Author: Dragonsys
maybe the DB is setup to only except 20 chars?

Posted:
Wed May 10, 2006 2:07 pm
Author: Master Dwarf
This is a good topic. I too tried to edit a file to lengthen the field, but I'd hate to go the extra step if it has to do with the dbase.

Posted:
Thu May 11, 2006 6:25 am
Author: Dragonsys
"Kat";p="5366" wrote:hum...is there another file to edit somewhere? because that didn't work either
after editing all those files, will it just not allow you to enter more then 20 characters, or do you enter them, but after the link is Submitted/Saved, the extra characters drop off, or you get an error about the length?
I looked at my DB is it is set to varchar(100) which means I could have to 100 characters in the Link name...
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 8:19 am
Author: Kat
No, I can't even enter more then 20 characters
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 8:39 am
Author: Dragonsys
ok, so it's still a limit in the form....
Let me do some looking real quick
are you trying to add the links in the ACP or on the main site?
also, are you using fisubice, or another template?
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 8:45 am
Author: Kat
"Dragonsys";p="5521" wrote:ok, so it's still a limit in the form....
Let me do some looking real quick
are you trying to add the links in the ACP or on the main site?
Both, actually, lemme check real quick in the ACP, because I only checked it on the main site after I did the edits...
Okay, I can't do more then 20 characters for site name when entering the name on either the ACP or the main site
EDIT: I'm using SmartDark which a friend made into an Integra style last summer for me
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 8:55 am
Author: Dragonsys
Did you edit the files in SmartDark or in fisubice?
sorry, i had to ask...

Posted:
Thu May 11, 2006 8:57 am
Author: Kat
only in smartdark, I don't use fisubice at all
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 9:00 am
Author: Dragonsys
hmmm.. when I make the above edits in my template it works for me.
You can you post the code from your files here, and let me look at them?
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 9:14 am
Author: Kat
admin_links_edit_body.tpl
- Code: Select all
<h1>{PAGE_TITLE}</h1><p>{PAGE_EXPLAIN}</p> <form> <table> <tr> <th>{L_LINK_BASIC_SETTING}</th> </tr> <tr> <td>{L_LINK_TITLE}</td> <td><input></td> </tr> <tr> <td>{L_LINK_URL}</td> <td><input></td> </tr> <tr> <td>{L_LINK_LOGO_SRC}</td> <td><input> [<a>{L_PREVIEW}</a>]</td> </tr> <tr> <td>{L_LINK_CATEGORY}</td> <td><select><option>----------------</option>{LINK_CAT_OPTION}</select></td> </tr> <tr> <td>{L_LINK_DESC}</td> <td><textarea>{LINK_DESC}</textarea>{LINK_LOGO_IMG}</td> </tr> <tr> <th>{L_LINK_ADV_SETTING}</th> </tr> <tr> <td>{L_LINK_ACTIVE}</td> <td><input> {L_YES} <input> {L_NO}</td> </tr> <tr> <td><input></td> </tr> </table></form><div><span>Links MOD v1.2.1 by <a href="http]
links_search.php
[code]<script><!--function checkForm() { formErrors = false; if (document.linkdata.link_title.value == '') { formErrors = '{L_LINK_TITLE}'; } else if (document.linkdata.link_url.value == 'http]</span><br><br></td> </tr> <tr> <td> <span>{L_LINK_CATEGORY}</span><br> <select> <option>----------------</option>{LINK_CAT_OPTION} </select> </td> </tr> <tr> <td><span>{L_LINK_DESC}</span><br><textarea></textarea></td> </tr> </table> </td></tr> <tr> <td><input></td> </tr> </form> </table> <END> </td> <td> </td> <END> <td> <table> <tr> <th> {L_LINK_TITLE1}</th> </tr> <tr> <form> <td><span> {L_SEARCH_SITE_TITLE}<input> <input> </span></td> </form> </tr> <BEGIN> <tr><td> {linkrow.LINK_LOGO} </td> <td> <table> <tr> <td><a>{linkrow.LINK_TITLE}</a><br>{linkrow.LINK_DESC}</td> <td> </td> <td> {L_LINK_CATEGORY}: {linkrow.LINK_CATEGORY}<br>{L_LINK_JOINED}: {linkrow.LINK_JOINED} <br>{L_LINK_HITS}: {linkrow.LINK_HITS} </td> </tr> </table> </td></tr> <END> </table><br> <table> <tr> <td><span>{PAGE_NUMBER}</span></td> <td><span>{PAGINATION}</span></td> </tr> </table> </td> </tr> </table>[/code]
links_body.php
[code]<script><!--function checkForm() { formErrors = false; if (document.linkdata.link_title.value == '') { formErrors = '{L_LINK_TITLE}'; } else if (document.linkdata.link_url.value == 'http]</span><br><br></td> </tr> <tr> <td> <span>{L_LINK_CATEGORY}</span><br> <select> <option></option> </select> </td> </tr> <tr> <td><span>{L_LINK_DESC}</span><br><textarea></textarea></td> </tr> </table> </td></tr> <tr> <td><input></td> </tr> </form> </table> <END> </td> <td> </td> <END> <td> <table> <tr> <th> {L_LINK_CATEGORY}{NAV_SEPARATOR}{LINK_CATEGORY}</th> </tr> <tr> <form> <td><span>{L_SELECT_SORT_METHOD}:{S_MODE_SELECT} {L_ORDER}:{S_ORDER_SELECT} <input> </span></td> </form> </tr> <BEGIN> <tr><td> {linkrow.LINK_LOGO} </td> <td> <table> <tr> <td><a>{linkrow.LINK_TITLE}</a><br>{linkrow.LINK_DESC}</td> <td> </td> <td><!-- {L_LINK_CATEGORY}: {linkrow.LINK_CATEGORY}<br>{L_LINK_JOINED}: {linkrow.LINK_JOINED} <br>{L_LINK_HITS}: {linkrow.LINK_HITS} </td> </tr> </table> </td></tr> <END> </table><br> <table> <tr> <td><span>{PAGE_NUMBER}</span></td> <td><span>{PAGINATION}</span></td> </tr> </table> </td> </tr> </table>[/code]
links_popnew,php
[code]<script><!--function checkForm() { formErrors = false; if (document.linkdata.link_title.value == '') { formErrors = '{L_LINK_TITLE}'; } else if (document.linkdata.link_url.value == 'http]</span><br><br></td> </tr> <tr> <td> <span>{L_LINK_CATEGORY}</span><br> <select> <option>----------------</option>{LINK_CAT_OPTION} </select> </td> </tr> <tr> <td><span>{L_LINK_DESC}</span><br><textarea></textarea></td> </tr> </table> </td></tr> <tr> <td><input></td> </tr> </form> </table> <END> </td> <td> </td> <END> <td> <table> <tr> <th> {L_LINK_TITLE1}</th> </tr> <BEGIN> <tr><td> {linkrow.LINK_LOGO} </td> <td> <table> <tr> <td><a>{linkrow.LINK_TITLE}</a><br>{linkrow.LINK_DESC}</td> <td> </td> <td> {L_LINK_CATEGORY}: {linkrow.LINK_CATEGORY}<br>{L_LINK_JOINED}: {linkrow.LINK_JOINED} <br>{L_LINK_HITS}: {linkrow.LINK_HITS} </td> </tr> </table> </td></tr> <END> </table><br> <table> <tr> <td><span>{PAGE_NUMBER}</span></td> <td><span>{PAGINATION}</span></td> </tr> </table> </td> </tr> </table>[/code]
links_index.php
[code]<script><!--function checkForm() { formErrors = false; if (document.linkdata.link_title.value == '') { formErrors = '{L_LINK_TITLE}'; } else if (document.linkdata.link_url.value == 'http]</span><br><br></td> </tr> <tr> <td> <span>{L_LINK_CATEGORY}</span><br> <select> <option>----------------</option>{LINK_CAT_OPTION} </select> </td> </tr> <tr> <td><span>{L_LINK_DESC}</span><br><textarea></textarea></td> </tr> </table> </td></tr> <tr> <td><input></td> </tr> </form> </table> <END> <END> </td> <td> </td> <td> <table> <tr> <th> {L_LINK_CATEGORY}</th> </tr> <tr><td> <table> <tr> <td> <BEGIN> <br> <a><img></a> <a>{linkrow1.LINK_TITLE}</a> ({linkrow1.LINK_NUMBER}) <br> <END> <br> </td> <td> <BEGIN> <br> <a><img></a> <a>{linkrow0.LINK_TITLE}</a> ({linkrow0.LINK_NUMBER}) <br> <END> <br> </td> </tr> </table> </td></tr></table><br> <div>Links MOD v1.2.2 by <a>phpBB2.de</a> and OOHOO and <a>CRLin</a>.</div> </td> </tr> </table>
Thanks for checking this out for me, if its something that simple, I must be blind lol
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 9:16 am
Author: Dragonsys
ok, it all looks good.
Try deleting your template cache
ACP -> eXtreme Styles -> Styles Management -> [manage cache]
And your IM Cache
ACP -> IM Portal -> Delete Cache Files
See if that helps any
Re: Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 9:30 am
Author: Kat
woah, deleted 288 files when I did the cache thing in styles....should I be deleting this more often?
Worked like a charm. Thanks so much, I feel really lame that was all I needed to do lol

Posted:
Thu May 11, 2006 9:31 am
Author: Adrian Rea
Of course the cache! DUH! yes deleting them is fine, but you should recompile after to help with speed.
A

Posted:
Thu May 11, 2006 9:37 am
Author: Kat
What is the difference between deleting and a recompile of them?

Posted:
Thu May 11, 2006 10:05 am
Author: Dragonsys
"Kat";p="5537" wrote:woah, deleted 288 files when I did the cache thing in styles....should I be deleting this more often?
Worked like a charm. Thanks so much, I feel really lame that was all I needed to do lol
DOH! I shoulda thought of that a while ago

You should only have to delete the cache if you have made changes to your templates...
"Kat";p="5540" wrote:What is the difference between deleting and a recompile of them?
Delete them removes the caceh files
Recompile, recreates the cache files, right then, instead of when someone views the file for the first time. It helps with page load times.
Re: [solved] Add Link - Site Name Length too short

Posted:
Thu May 11, 2006 10:53 am
Author: Kat
ohhh, okay!
Thanks guys! Glad this is fixed.