Page 1 of 1
Shoutbox v0.1.3 / phpbb v2.0.20
Posted: Sat Sep 30, 2006 2:11 pm
by VikingWarrior
Where to look for enlarging the input field for the shoutbox.
Have tried to modify index_body.tpl the following way:
<form action="{F_FORM}" method="post">
<td class="row3" colspan="2" align="center" width="100%">
<span class="gensmall">
<input class="post" type="text" name="shout" length="50" maxlength="255" /> <input type="submit" name="submit" class="mainoption" value="{L_SUBMIT}" />
</span>
</td>
into
<form action="{F_FORM}" method="post">
<td class="row3" colspan="2" align="center" width="100%">
<span class="gensmall">
<input class="post" type="text" name="shout" length="150" maxlength="255" /> <input type="submit" name="submit" class="mainoption" value="{L_SUBMIT}" />
</span>
</td>
But this doesn't work.
Any hints?
Posted: Sat Sep 30, 2006 3:47 pm
by battye
Enlarging as in left to right, or the height?
Posted: Sat Sep 30, 2006 5:07 pm
by VikingWarrior
Want to enlarge it as in left to right.
Posted: Sun Oct 01, 2006 3:02 am
by battye
Changing length to 150 should do that. Did you clear the browsers memory of the page (Ctrl+F5)? Sometimes I find this is the problem when MODding
Posted: Sun Oct 01, 2006 8:14 am
by VikingWarrior
Yes, have tested it with cleared memory.
INDEX_BODY.TPL
<form action="{F_FORM}" method="post">
<td class="row3" colspan="2" align="center" width="100%">
<span class="gensmall">
<input class="post" type="text" name="shout" length="150" maxlength="255" /> <input type="submit" name="submit" class="mainoption" value="{L_SUBMIT}" />
</span>
</td>
</form>
-> Remark: I have removed the "Refresh-Button" by deleting
<input type="submit" name="submit" value="{F_REFRESH}". Because if pressing the refresh-button only a blank line was inserted in the shoutbox.
SHOUTBOX_BODY.TPL
<form action="{F_FORM}" method="post">
<td class="row3" colspan="2" align="center" width="100%">
<span class="gensmall">
{L_MAKE_A_SHOUT} <input class="post" type="text" name="shout" length=="150" maxlength="255" /> <input type="submit" name="submit" value="{L_SUBMIT}" /> <input type="submit" name="submit" value="{F_REFRESH}" />
</span>
</td>
</form>
</tr>
Have changed it in index_body.tpl and in shoutbox_body.tpl.
Does take no effect.
Another question. Why is the look of the shoutbox defined in index_body .tpl AND shoutbox_body.tpl? It seems, that only index_body.tpl is responsible for displaying the shoutbox. (For removing the REFRESH-BUTTON it was enough to remove the definition in the index_body.tpl.)
Thank you for your help.
Posted: Mon Oct 02, 2006 5:03 am
by battye
Can I please have a link to your forum?
Also, the shoutbox_body.tpl file is for shoutbox.php.
If you go click the word Shoutbox above the shoutbox on the index, it should take you to shoutbox.php (or you can just type it in after your domain/forum directory path in the address bar.)
Posted: Mon Oct 02, 2006 7:08 am
by VikingWarrior
Here's the link to my forum:
http://www.rebel66.de/airaxes/forum/index.php
If you go click the word Shoutbox above the shoutbox on the index, it should take you to shoutbox.php
Ooops! This feature is new for me - Great! I tought, that only 7 lines were displayed - without a history.
Posted: Mon Oct 02, 2006 9:44 am
by battye
Stupid me. I included length= in the HTML.
Replace that with size="x" (with x being your desired length).

Posted: Mon Oct 02, 2006 3:47 pm
by VikingWarrior
Ok, all works fine now. Thank you for your help.
A very nice add-on for the forum....