Calendar text field

Started by Zorella, January 17, 2005, 11:38:43 PM

Previous topic - Next topic

Zorella

Where is the code that says how long the title of the event is in the calendar?  I want to make it longer.
Thanks!

ディン1031

#1
Two things must be chaged for this.

1. The title in the tabel {$db_prefix}calendar must be made longer then 30 chars. (I don't know how high the orginal length is in the new installation, but if you update from yabbse the len is about 30. So check it before you replace the code)
2.
Replace in post.template.php of your theme :)

<td class="smalltext">
<input type="text" name="evtitle" maxlength="30" size="30" value="', $context['event']['title'], '" />

with this.

<td class="smalltext">
<input type="text" name="evtitle" maxlength="XX" size="30" value="', $context['event']['title'], '" /> //XX = Length you want let enter.


But you must first check (and change) the table so that this take an effect...
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

wibo

I can't find out where to change the titel in the tabel {$db_prefix}calendar to make it longer then 30 characters.


LeGaS

You don't have to change it in the DB, cause it's 48 characters long as default.
You have to change the maxlength in Post.template.php (as din1031 wrote) and I think you have to edit the Sources/Subs-Post.php file too.
if ($func['strlen']($_POST['evtitle']) > 30)
$_POST['evtitle'] = $func['substr']($_POST['evtitle'], 0, 30);

Change 30 to the value you gave at maxlength.

wibo

NO... no change.
It still doesn't work

Advertisement: