I searched for a few things.. shoutbox entry box shoutbox reverse (came up with something else )
what i am wondering how to move that text entry box to the top of the shoutbox.. instead of at the bottom? I looked in the tpportal.php file.. but nothing obvious..
Also.. i am wondering if it is possible to put the timestamp IN the bar on the same line as the user name..
so it will says HvyHitter Today 11:08 am
instead of
hvyhitter
today 11:08am
it saves a line.. and makes it look cleaner.
Thoughts?
Reversed order of posts in the shoutbox
http://www.tinyportal.net/index.php?topic=5481.0
no no no. i read THAT post. i don't want to REVERSE the order of the posts.. i like that.. I want to put the shout box message entry box on the TOP.
you can check it out at www.hvyhitter.com my home page..
also i want to put the timestamp and username on the same line if possible.
is that possible.. from looking at the code.. (I think thats where it is..) i dont see where it does either of those..
also this topic is VERY search engine friendly for this issue.
If you put the time stamp on the same line as the user and the user has a username that is long it will probably look bad.
To change this open TPortal.php and find:
$shouts .='<div style="margin: 4px;"><div style="border: dotted 1px; padding: 2px 4px 2px 4px;" class="windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">'
Change to:
$shouts .='<div style="margin: 4px;"><div style="border: dotted 1px; padding: 2px 4px 2px 4px;" class="windowbg2"><b>'.$row['value3'].'</b> - '.timeformat($row['value2']).'</div><div style="padding: 4px;">'
To put the input box on top find this code in TPortalBlocks.template.php:
echo '
<form accept-charset="', $context['character_set'], '" class="smalltext" style="padding: 0; margin: 0; margin-top: 8px; text-align: center;" name="tp-shoutbox" action="'.$scripturl.'?action=tpmod;id=shout" method="post">';
if(($context['TPortal']['guest_shout']) || (!$context['TPortal']['guest_shout'] && !$context['user']['is_guest'])){
echo '<textarea class="smalltext" name="tp-shout" style="width: 80%;margin-top: 1ex; height: 50px;" wrap="auto"></textarea><br />';
echo '<input style="margin-top: 4px;" class="smalltext" type="submit" name="shout_send" value="'.$txt['shout!'].'">';
}
if($context['user']['is_guest'] && $context['TPortal']['guest_shout'])
echo '<br /><input style="margin-top: 4px;" size="20" class="smalltext" type="text" name="tp-shout-name" value="'.$txt['tp-guest'].'">';
else
echo '<input type="hidden" name="tp-shout-name" value="'.$context['user']['name'].'">
';
echo '<input name="tp-shout-url" type="hidden" value="'.htmlspecialchars($tp_where).'"><input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
Move it right before this code: (which is right above the code above.
if($context['TPortal']['shoutbox_usescroll']=='1')
Wow.. seriously.. AWEsome.. You guys rock.. I havent made the change yet.. but I will right now! THANKS!
update: Worked FLAWLESSLY.. Thank you very much..
:up: Glad I could help.
Where can I find this tportal.php file and edit it? Thanks in advance.
Off the top.. either in Sources, or the Default theme folder. Probably the Default theme folder.
/Sources/Tportal.php
Quote from: G6 on September 15, 2007, 03:48:07 PM
/Sources/Tportal.php
Hi i can t find this line in Tportal.php
$shouts .='<div style="margin: 4px;"><div style="border: dotted 1px; padding: 2px 4px 2px 4px;" class="windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">'Im using TP 1.0.5b
pls help ????
Probably because its moved files. Check TPBlocksLayout perhaps. Doesn't hurt to search the other files if you can't find it there either.
Quote from: IchBinâ,,¢ on May 28, 2008, 12:21:34 AM
Probably because its moved files. Check TPBlocksLayout perhaps. Doesn't hurt to search the other files if you can't find it there either.
Thank you a lot i found it in the /tp-files/tp-modules/TPShout/Sources/TPshout.php
But now how can i that frame for text make smaller just 1 line please ?
Quote from: michalss on May 29, 2008, 04:10:45 AM
Quote from: IchBinâ,,¢ on May 28, 2008, 12:21:34 AM
Probably because its moved files. Check TPBlocksLayout perhaps. Doesn't hurt to search the other files if you can't find it there either.
Thank you a lot i found it in the /tp-files/tp-modules/TPShout/Sources/TPshout.php
But now how can i that frame for text make smaller just 1 line please ?
I got it :)
If you could find that code, I had no doubt you would figure it out. :)