[solved] Add Link - Site Name Length too short

Support for IntegraMOD 140

Moderator: Integra Moderator

[solved] Add Link - Site Name Length too short

PostAuthor: Kat » Fri May 05, 2006 9:59 am

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
Last edited by Kat on Thu May 11, 2006 9:30 am, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Adrian Rea » Tue May 09, 2006 3:58 pm

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
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

PostAuthor: Kat » Wed May 10, 2006 9:25 am

hum...is there another file to edit somewhere? because that didn't work either
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Dragonsys » Wed May 10, 2006 9:27 am

maybe the DB is setup to only except 20 chars?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Master Dwarf » Wed May 10, 2006 2:07 pm

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.
Last edited by Master Dwarf on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Sean Kelley
http://www.GrumblingDwarf.com
Wisconsin Region Game Site
User avatar
Master Dwarf
Integra Supporter
Integra Supporter
 
Posts: 102
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 9:26 am
Cash on hand: 0.00
Location: Madison, WI

PostAuthor: Dragonsys » Thu May 11, 2006 6:25 am

"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...
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Add Link - Site Name Length too short

PostAuthor: Kat » Thu May 11, 2006 8:19 am

No, I can't even enter more then 20 characters
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Dragonsys » Thu May 11, 2006 8:39 am

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?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Add Link - Site Name Length too short

PostAuthor: Kat » Thu May 11, 2006 8:45 am

"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
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Dragonsys » Thu May 11, 2006 8:55 am

Did you edit the files in SmartDark or in fisubice?
sorry, i had to ask...
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: Kat » Thu May 11, 2006 8:57 am

only in smartdark, I don't use fisubice at all
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Dragonsys » Thu May 11, 2006 9:00 am

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?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Add Link - Site Name Length too short

PostAuthor: Kat » Thu May 11, 2006 9:14 am

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
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

Re: Add Link - Site Name Length too short

PostAuthor: Dragonsys » Thu May 11, 2006 9:16 am

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
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Add Link - Site Name Length too short

PostAuthor: Kat » Thu May 11, 2006 9:30 am

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
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

PostAuthor: Adrian Rea » Thu May 11, 2006 9:31 am

Of course the cache! DUH! yes deleting them is fine, but you should recompile after to help with speed.

A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

PostAuthor: Kat » Thu May 11, 2006 9:37 am

What is the difference between deleting and a recompile of them?
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00

PostAuthor: Dragonsys » Thu May 11, 2006 10:05 am

"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 :D
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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [solved] Add Link - Site Name Length too short

PostAuthor: Kat » Thu May 11, 2006 10:53 am

ohhh, okay!

Thanks guys! Glad this is fixed.
Last edited by Kat on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Kat
Members
Members
 
Posts: 49
Likes: 0 post
Liked in: 0 post
Joined: Fri May 05, 2006 9:44 am
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]