/    Sign up×
Community /Pin to ProfileBookmark

Can anyone help me fix this script for longer category text lengths.

I used to have an ezboard,and the categorys could have unlimted category characters.

Then ezboards were hacked,and I investigated new,sites,and found that proboards could also have un-limited category heading text length.

Now I am on a excoboard,and I like it,except..
its category heading ,text,is,like,s-o-0,limited.

Juts like,one line,-99 charcters I have read somewhere.

That isn’t enough.

I have posted about this on the excoboard support forusmn and no one can think of a eway to do it,yet.

Here is the javscript,that goes in the index header.

I my own sel added,those,-
maxLength=”1000″ ‘s,in,there,in sveral places.

I typed it-in
around the catlink area
and
then again lower-down,after where it says,
‘category begins”..

Other than that,that script is the orginal.

What I,did,that ‘maxLength=”1000″..it hasn’t worked yet.

Nothing I have tried has worked yet.

I don’t know javascript.

Can people try and think-up ways that might change this script,to,whewre the category headings can retain a much longer amount of categories,or,be un-limited in that way.

thank you-.

here is the script-.

<script language=”Javascript”>
function posts(threadid) { window.open(“who.php?action=posts&boardid={boardid}&threadid=”+threadid, “whopost”, “toolbar=no,scrollbars=yes,resizable=yes,width=270,height=350”); }
</script>
<script language=”Javascript”>
function leaders(boardid) { window.open(“who.php?action=leaders&boardid={boardid}”, “lead”, “toolbar=no,scrollbars=yes,resizable=yes,width=270,height=350”); }
</script>
<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”95%”>
<tr>
<td width=”50%” valign=”bottom”>
<!– BEGIN iftrue_logincode –>
<table border=”0″ cellpadding=”0″ cellspacing=”2″><form action=”index.php” method=”post”>
<tr>
<td><span class=”SmallText”><b>Username</b></span></td>
<td><span class=”SmallText”><b>Password</b></span></td>
<td rowspan=”2″ valign=”bottom”><input type=”submit” class=”SubmitButtons” value=”Login” name=”B1″></td>
</tr>
<tr>
<td><input type=”text” class=”TextInputField” name=”fieldusername” size=”10″></td>
<td><input type=”password” class=”TextInputField” name=”fieldpassword” size=”10″></td>
</tr>
<input type=”hidden” name=”action” value=”login”><input type=”hidden” name=”boardid” value=”{boardid}”></form></table>
<!– END iftrue_logincode –>
<!– BEGIN newpm –>
<span class=”NormalText”>
<a href=”pm.php?boardid={boardid}”><b>Private Messages</b></a>: You have <b>{newpm.newpms}</b> unread messages</span>
<!– END newpm –>
</td>
<td width=”50%” align=”right” valign=”bottom”><span class=”SmallText”>Current time is {curtime}<br>You last visited {lastvisit}<br>
<br>
<a href=”javascript:leaders({boardid})”>Community leaders</a></span></td>

</tr>
</table>

<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”95%”>
<tr>
<td width=”100%” class=”Tableborder”>
<table border=”0″ cellpadding=”5″ cellspacing=”1″ width=”100%”>
<tr>
<td width=”42%” class=”Heading” align=”center”><b><span class=”HeadingText”>{forumorcat}</span></b></td>
<td width=”10%” class=”Heading” align=”center”><b><span class=”HeadingText”>Posts</span></b></td>
<td width=”21%” class=”Heading” align=”center”><b><span class=”HeadingText”>Last post</span></b></td>
<td width=”17%” class=”Heading” align=”center”><b><span class=”HeadingText”>{nrormod}</span></b></td>
</tr>

<!– BEGIN nocatforum –>

<tr>
<td width=”42%” class=”FirstAlt”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”4″>
<tr>
<td valign=”middle”><img border=”0″ src=”{nocatforum.pimg}”></td>
<td valign=”middle” width=”100%”><span class=”NormalText”><a href=”forum.php?forumid={nocatforum.forumid}”><b>{nocatforum.forumtitle}</b></a></span><br><span class=”SmallText”>{nocatforum.forumdesc}{nocatforum.newposts}</span></td>
</tr>
</table>
</td>
<td width=”10%” class=”SecondAlt” align=”center”><span class=”SmallText”>{nocatforum.nrposts}</span></td>
<td width=”10%” class=”FirstAlt” align=”center”><span class=”SmallText”>{nocatforum.lastpost}<br><b>{nocatforum.lastposter}</b></span></td>
<td width=”17%” class=”SecondAlt” align=”center”><span class=”SmallText”> {nocatforum.moderators}</span></td>
</tr>

<!– END nocatforum –>

<!– BEGIN catlink –>

<tr>
<td colspan=”4″ width=”100%” class=”Heading”><span class=”HeadingText” maxLength=”1000″><b>{catlink.catname}</b></span></td>
</tr>

<!– BEGIN forum –>

<tr>
<td width=”42%” class=”FirstAlt”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”4″>
<tr>
<td valign=”middle”><img border=”0″ src=”{catlink.forum.pimg}”></td>
<td valign=”middle” width=”100%”><span class=”NormalText”><a href=”forum.php?forumid={catlink.forum.forumid}”><b>{catlink.forum.forumtitle}</b></a></span><span class=”SmallText”><br>{catlink.forum.forumdesc}{catlink.forum.newposts}</span></td>
</tr>
</table>
</td>
<td width=”10%” class=”SecondAlt” align=”center”><span class=”SmallText”>{catlink.forum.nrposts}</span></td>
<td width=”10%” class=”FirstAlt” align=”center”><span class=”SmallText”>{catlink.forum.lastpost}<br><b>{catlink.forum.lastposter}</b></span></td>
<td width=”17%” class=”SecondAlt” align=”center”><span class=”SmallText”> {catlink.forum.moderators}</span></td>
</tr>

<!– END forum –>

<!– END catlink –>

<!– BEGIN category –>

<tr>
<td width=”42%” class=”FirstAlt”>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”4″>
<tr>
<td valign=”middle”><img border=”0″ src=”{category.pimg}”></td>
<td valign=”middle” width=”100%”><span class=”Text” maxLength=”400″><a href=”forum.php?forumid={category.forumid}”><b><a href=”index.php?boardid={boardid}&category={category.catid}”>{category.category.catname}</a></b></span></td>
</tr>
</table>
</td>
<td width=”10%” class=”SecondAlt” align=”center”><span class=”SmallText” maxLength=”1000″>{category.catpost}</span></td>
<td width=”10%” class=”SecondAlt” align=”center”><span class=”SmallText” maxLength=”1000″>{category.lastcatpost}</span></td>
<td width=”17%” class=”FirstAlt” align=”center”><span class=”SmallText” maxlength=”1000″> {category.nrforums} forums</span></td>
</tr>

<!– END category –>

</table>
</td>
</tr>
</table>
<table width=”95%” border=”0″ cellpadding=”5″>
<tr>
<td><span class=”SmallText”><b><a href=”index.php?boardid={boardid}&action=mark”>Mark all forums read</a><br><a href=”index.php?boardid={boardid}&action=logout”>Logout</a></b></span></td>
<td align=”right”><b><span class=”SmallText”>All times are {zone}</span></b></td>
</tr>
</table>
<span class=”NormalText”><img border=”0″ src=”{newimage}”>
Contains new posts
<img border=”0″ src=”{notnewimage}”> No new posts since your last visit</span>

<br><br><table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”95%”>
<tr>
<td width=”100%” class=”Tableborder”>
<table border=”0″ cellpadding=”5″ cellspacing=”1″ width=”100%”>
<tr>
<td width=”100%” class=”Heading”><span class=”HeadingText”><b>Statistics</b></td>
</tr>
<tr>
<td width=”100%” class=”FirstAlt”><span class=”NormalText”>
<!– BEGIN whoonline –>
<b>Who’s online</b>: <b>{whoonline.users}</b> members, <b>{whoonline.guests}</b> guests are online<br>{whoonline.usersonline}<br>
<!– END whoonline –>
<!– BEGIN iftrue_statistics –>
Registered users: <b>{iftrue_statistics.nrreg}</b><br>
Our newest member: <b>{iftrue_statistics.lastreg}</b><br>
Visitors since {iftrue_statistics.started} <b>{iftrue_statistics.total}</b><br>
Most users ever online: <b>{iftrue_statistics.ever}</b> ({iftrue_statistics.evertime})
A total of <b>{iftrue_statistics.totalposts}</b> posts have been made.
<!– END iftrue_statistics –>
</span></td>
</tr>
</table>
</td>
</tr>
</table>

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@cGhoulieauthorOct 02.2005 — I tried sticking-on maxLength="400" various places;

also max Char;

later i tried

maxLength="maxChar"

though it may should be

MAXLENGTH="maxCHAR".

I didn't know where to stick this,so tried everywhere;

I just got thru trying,stciking,in,

this form,thing here,beneath,in 3,4 places,only I changed the

NAME,(to) ="heading TEXT".

and i changed the number from,'25',to '1000'.


it is obviuos i don't know what I am doing,and i am goin to go-get the pure virgin unadulterated orginal javascript sans any of my later attempt and put it here,and maybe people can make suggestions as to what to Try.


(This was to help me from a javascript site)-


SIZE="lengthChar" specifies the length of the input field, in characters . When TYPE="text" or TYPE="password",[color=crimson] value is the width, specified in characters, of the input field.



VALUE="textValue" specifies the initial value of the text element. [/color]



Used within

FORM


Example

[color=indianred]The following example creates a text element that is 25 characters long.[/color] The text field appears immediately to the right of the words "Last name:". The text field is blank when the form loads.


[color=#660022]<FORM>



<B>Last name:</B>



<INPUT TYPE="text" NAME="last_name" VALUE="" SIZE="25">



</FORM>[/color]




[color=yellowgreen]that,is,i will try thgis,any elemsnt,when i hav see any other,type,i wouldn know eher to insert the latter group,at,between the



<span<span,,</span ?[/color]


this is just to give people an idea,that,I don't even know where to stcik thse,things,in,at;anyway i tried and stuck stuff in everywhere,and it hasn

t worked yet.
Copy linkTweet thisAlerts:
@cGhoulieauthorOct 02.2005 — [color=slateblue],,where, when I type a category heading,title,

it is just like,so-little words,just not enough.



I belive it is ,99 characters,or so I hav read on the internet in passing,but when I tried doin a category title in difrent colored,words,which,that, is including the color html and size html,

-only,-3-,

colored words

would ever display,and that is prcaticvally,nothing.



I'd like 3000 characters or 10000 or maximum limit or no-limit

like

what is on proboards' and ezboards' category headings.



If its a number tried,out,i can change the number later,my own self,to the one i most prefer,later On.



or that MAXLENTGH="maxChar" if anybody can get That to work.[/color]


[color=mediumslateblue]This is how it first looked when i got the site and hadn't added anything to it.



If anyone has any wild ideas,i will,try everything.

But please insert any ideas your own self,as I don't know where to put things.



also please be awrae I couldn't keep track of which syllables to captilize,in other wordds,anybody..please do it for me,& I will go and try it out;it doesn matter if its only a wild idea on anyboyd's else,parts;no one yet at excoboard has done it yet,either.



thansk if anyone would like to try,it.-[/color]


<script language="Javascript">

function posts(threadid) { window.open("who.php?action=posts&boardid={boardid}&threadid="+threadid, "whopost", "toolbar=no,scrollbars=yes,resizable=yes,width=270,height=350"); }

</script>

<script language="Javascript">

function leaders(boardid) { window.open("who.php?action=leaders&boardid={boardid}", "lead", "toolbar=no,scrollbars=yes,resizable=yes,width=270,height=350"); }

</script>

<table border="0" cellpadding="0" cellspacing="0" width="95%">

<tr>

<td width="50%" valign="bottom">

<!-- BEGIN iftrue_logincode -->

<table border="0" cellpadding="0" cellspacing="2"><form action="index.php" method="post">

<tr>

<td><span class="SmallText"><b>Username</b></span></td>

<td><span class="SmallText"><b>Password</b></span></td>

<td rowspan="2" valign="bottom"><input type="submit" class="SubmitButtons" value="Login" name="B1"></td>

</tr>

<tr>

<td><input type="text" class="TextInputField" name="fieldusername" size="10"></td>

<td><input type="password" class="TextInputField" name="fieldpassword" size="10"></td>

</tr>

<input type="hidden" name="action" value="login"><input type="hidden" name="boardid" value="{boardid}"></form></table>

<!-- END iftrue_logincode -->

<!-- BEGIN newpm -->

<span class="NormalText">

<a href="pm.php?boardid={boardid}"><b>Private Messages</b></a>: You have <b>{newpm.newpms}</b> unread messages</span>

<!-- END newpm -->

</td>

<td width="50%" align="right" valign="bottom"><span class="SmallText">Current time is {curtime}<br>You last visited {lastvisit}<br>

<br>

<a href="javascript:leaders({boardid})">Community leaders</a></span></td>

</tr>

</table>


<table border="0" cellpadding="0" cellspacing="0" width="95%">

<tr>

<td width="100%" class="Tableborder">

<table border="0" cellpadding="5" cellspacing="1" width="100%">

<tr>

<td width="42%" class="Heading" align="center"><b><span class="HeadingText">{forumorcat}</span></b></td>

<td width="10%" class="Heading" align="center"><b><span class="HeadingText">Posts</span></b></td>

<td width="21%" class="Heading" align="center"><b><span class="HeadingText">Last post</span></b></td>

<td width="17%" class="Heading" align="center"><b><span class="HeadingText">{nrormod}</span></b></td>

</tr>

<!-- BEGIN nocatforum -->

<tr>

<td width="42%" class="FirstAlt">

<table width="100%" border="0" cellspacing="0" cellpadding="4">

<tr>

<td valign="middle"><img border="0" src="{nocatforum.pimg}"></td>

<td valign="middle" width="100%"><span class="NormalText"><a href="forum.php?forumid={nocatforum.forumid}"><b>{nocatforum.forumtitle}</b></a></span><br><span class="SmallText">{nocatforum.forumdesc}{nocatforum.newposts}</span></td>

</tr>

</table>

</td>

<td width="10%" class="SecondAlt" align="center"><span class="SmallText">{nocatforum.nrposts}</span></td>

<td width="10%" class="FirstAlt" align="center"><span class="SmallText">{nocatforum.lastpost}<br><b>{nocatforum.lastposter}</b></span></td>

<td width="17%" class="SecondAlt" align="center"><span class="SmallText"> {nocatforum.moderators}</span></td>

</tr>

<!-- END nocatforum -->

<!-- BEGIN catlink -->

<tr>

<td colspan="4" width="100%" class="Heading"><span class="HeadingText"><b>{catlink.catname}</b></span></td>

</tr>

<!-- BEGIN forum -->

<tr>

<td width="42%" class="FirstAlt">

<table width="100%" border="0" cellspacing="0" cellpadding="4">

<tr>

<td valign="middle"><img border="0" src="{catlink.forum.pimg}"></td>

<td valign="middle" width="100%"><span class="NormalText"><a href="forum.php?forumid={catlink.forum.forumid}"><b>{catlink.forum.forumtitle}</b></a></span><span class="SmallText"><br>{catlink.forum.forumdesc}{catlink.forum.newposts}</span></td>

</tr>

</table>

</td>

<td width="10%" class="SecondAlt" align="center"><span class="SmallText">{catlink.forum.nrposts}</span></td>

<td width="10%" class="FirstAlt" align="center"><span class="SmallText">{catlink.forum.lastpost}<br><b>{catlink.forum.lastposter}</b></span></td>

<td width="17%" class="SecondAlt" align="center"><span class="SmallText"> {catlink.forum.moderators}</span></td>

</tr>

<!-- END forum -->

<!-- END catlink -->

<!-- BEGIN category -->

<tr>

<td width="42%" class="FirstAlt">

<table width="100%" border="0" cellspacing="0" cellpadding="4">

<tr>

<td valign="middle"><img border="0" src="{category.pimg}"></td>

<td valign="middle" width="100%"><span class="NormalText"><a href="forum.php?forumid={category.forumid}"><b><a href="index.php?boardid={boardid}&category={category.catid}">{category.category.catname}</a></b></span></td>

</tr>

</table>

</td>

<td width="10%" class="SecondAlt" align="center"><span class="SmallText">{category.catpost}</span></td>

<td width="10%" class="SecondAlt" align="center"><span class="SmallText">{category.lastcatpost}</span></td>

<td width="17%" class="FirstAlt" align="center"><span class="SmallText"> {category.nrforums} forums</span></td>

</tr>

<!-- END category -->

</table>

</td>

</tr>

</table>

<table width="95%" border="0" cellpadding="5">

<tr>

<td><span class="SmallText"><b><a href="index.php?boardid={boardid}&action=mark">Mark all forums read</a><br><a href="index.php?boardid={boardid}&action=logout">Logout</a></b></span></td>

<td align="right"><b><span class="SmallText">All times are {zone}</span></b></td>

</tr>

</table>

<span class="NormalText"><img border="0" src="{newimage}">

Contains new posts

<img border="0" src="{notnewimage}"> No new posts since your last visit</span>



<br><br><table border="0" cellpadding="0" cellspacing="0" width="95%">

<tr>

<td width="100%" class="Tableborder">

<table border="0" cellpadding="5" cellspacing="1" width="100%">

<tr>

<td width="100%" class="Heading"><span class="HeadingText"><b>Statistics</b></td>

</tr>

<tr>

<td width="100%" class="FirstAlt"><span class="NormalText">

<!-- BEGIN whoonline -->

<b>Who's online</b>: <b>{whoonline.users}</b> members, <b>{whoonline.guests}</b> guests are online<br>{whoonline.usersonline}<br>

<!-- END whoonline -->

<!-- BEGIN iftrue_statistics -->

Registered users: <b>{iftrue_statistics.nrreg}</b><br>

Our newest member: <b>{iftrue_statistics.lastreg}</b><br>

Visitors since {iftrue_statistics.started} <b>{iftrue_statistics.total}</b><br>

Most users ever online: <b>{iftrue_statistics.ever}</b> ({iftrue_statistics.evertime})

A total of <b>{iftrue_statistics.totalposts}</b> posts have been made.

<!-- END iftrue_statistics -->

</span></td>

</tr>

</table>

</td>

</tr>

</table>
Copy linkTweet thisAlerts:
@ScriptageOct 02.2005 — This looks like a template for a CGI program... it is the server side code that needs to be edited not the client side. Can you post the entire file... ie the php file and I'll have a look at it for you.

What do you mean by:

its category heading ,text,is,like,s-o-0,limited.
[/QUOTE]


The bottleneck might be the data type used to store the title, eg using varchar would result in a drastically smaller sized data length than blob or text (presuming that the database engine used is mySQL).

This would pose a problem as you would have to strip the database of the Title field and rebuild it with the changed datatype.


Regards

Carl
Copy linkTweet thisAlerts:
@cGhoulieauthorOct 03.2005 — thank you very muhc.

I had begun to suspect that it might be something ingrained

beyond any client's control.

I am goin to post this on their support forum,and also email the creator of excoboard,with,it;as when I emailed them back

in July.,he was real nice,and actually wrote with one answer,and then a few days later with a even better answer.

I will do that,and maybe he will provide ,what you asked for,and i will come and post it here for you.

As far as i know,it isn't based on mySQL,since,well I tried Invsion,and if I had seen mySQL mentioned anywhere when i first invetigiated excoboard/novogate,

I probably would hav run like crazy from excoboards.

I will check back in with you.

Thank you very much
Copy linkTweet thisAlerts:
@cGhoulieauthorOct 03.2005 — What I meant,by,how excoboard category headings were too limited,was:-,..on ezboards and on proboards,I could hav very multi-colored ,category titles,I used difrent colors,I used quotes,and then gave the names of the ones who quoted them;I did all sotrs of things.

well,excoboard,like,ezboards,can have a image upon-an-image,in a catgory.

But its allottment for characters,is,just real short,and when I tried typing in a line of words,in diffrent colors,the html for each,color,font,size,used up almost all of the allotment,(i think it is 99 characters),..and only 3,words,appeared,-no more than that;

like ,3 difrent-ly colored words.

Using only one color,only 1 line can it-be.

Most people like it al right like,that;and excoboards is super-neato is almost all other ways,too many to mention.


But the category titles,I just wish so much,they could be longer.

I will try and get that thing you asked,for,from the excoboard creator.
Copy linkTweet thisAlerts:
@cGhoulieauthorOct 04.2005 — I have pm'd the creator of excoboard & asked,him,.about this. I copied and pasted,your post,to him.

One member of the staff posted,and said,( he himself didn't know for sure),but he said,many times he,and others,hav worked for days on something,only to find out,out.,that it was impossible,

if

it was something on the server side.

He said mySQl and php too,modifications, often don't work on excoboards because it is in a difrent lanaguge.


He also said,it may be possible to make modfications,anyway,'he didn't know.

Mostly he wanted me to pm,the excoboard creator and ask,him.

Which I did,yesterday.

I hav seen on google,where excoboard is php-based.

I guess that means,it,-isn't,-, mySQL-based.

re,the actual server side,phpfile,I will just hav to wait on the excoboard creators,to

answer.


thanks though,as actually you helped alot already.

I will post back here as soon as I know any more.
Copy linkTweet thisAlerts:
@cGhoulieauthorOct 04.2005 — the excoboard creator,

He said,-

[color=#871F78]From: Peter

To: cGhoulie

CC:

Date: October 4th, 2005 06:56 AM



--------------------------------------------------------------------------------

The category name is limited to 100 characters in the database, so no script will able to change this.



[/color]



[size=1][color=slateblue]it is true,that last night.,before he said,that even,

I was suspecting from whjat carl said and all my other failed attempts to modify it, that it was the variable name which maybe was irrevresibly attachd to a database limitation, ..last night,I was fooling-around with -it,replacing the index script's 'catname' wherever it occurred, with other,terms.



this morning he wrote ,me,that.



Well, for the last hour i hav returned to fooling around

with

still,doin,that..



since the 'catname' is what is set in the database as can't be any more,than,100 characters,..

..so..

I'm replacing in the index header srcipt,the word,'catname' then.



With other names.



Don't know yet if this will work at all.



I achieved wierd results,the most intestresing one,of,which,is,..



when i replace the orginal-



(in the 'begin catlink section')



replacing the original

variable of {catlink.catname}



with {catlink.forum.nrposts}..

,,then..

on the front scroll,



this wierd '1' shows up on one of my catagory headings.



I don't know what it,is,..-,where that '1' comes from,-..



but

thats what Im trying to get,any other replacemnts for a 'catname',

to

appear in a front scroll catgory headings.



anybody got any ideas,on what else i could try,I would be grateful.



I already tried

{catlink.forum.forumdesc}

and {catlink.forumdesc},..nothing.[/color]
[/size]
×

Success!

Help @cGhoulie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...