TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,019
  • Total Topics: 21,332
  • Online today: 1,011
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 991
  • Total: 991

ShoutBox!

Started by Sakuragi, October 11, 2005, 12:56:38 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Sakuragi

I want to show this page of ShoutBox! on my Board as for the MOD ultimate shoutbox, that will work if I put this code in BoardIndex.template.php ??

echo '<div class="tborder"><table style="margin-bottom: 2px; table-layout: fixed;" class="windowbg" cellpadding="20" cellspacing="0" border="0" width="100%">
                                    <tr><td><div style="width: 100%;"><td class="catbg" colspan="2">', $context['TPortal']['shoutbox'], '
                         </div></td></tr></table><div class="windowbg2" style="padding-top: 10px;"><form style="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 name="tp-shout" style="width: 50%; height: 50px;" type="text"></textarea><br /><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"  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="'.$tp_where.'">
                      </form></div></div>';

IchBin

Where do you want to put it on your forum? If you want it to be on the main page you'll want to put it in the index.template.php

Code looks ok to me. If you want it on the forum then I think Boardindex.template.php is right.

No way to find out other than to actually try it. :)

kajitsu

Sorry for digging up this thread again... I have a question: How would it be possible to show the shoutbox on the main site? I mean, I'm using tinyportal just for my forum... but I have a main page (simply div-style) so, is it possible to add the tinyportal shoutbox to the main site? I tried it with an iframe linking to the shoutbox, but it showed me the whole tinyportal  :'( I only want the shoutbox to display...


kajitsu

Oh sorry, didn't see that. Thank you so much :D

This website is proudly hosted on Crocweb Cloud Website Hosting.