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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 561
  • Total: 561

[Block] Multi Tab Block! (new)

Started by dimdom, January 12, 2009, 07:13:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

UkGangsta


UkGangsta

okay i took out this part of the code to take of the shoutbox tab "
<li><a href="#" rel="tcontent7">Shoutbox</a></li>

and i have now this tiny little bit of script on forum boards can any one suggest what i have done wrong or have a suggestion to fix this what i want in essence is the shout box tab completely removed.

look at attached img.

ZarPrime

UKG,

Not sure because I haven't tried it but my guess is that you have to remove the div for tcontent7 as well.  Make a backup first.  Probably remove this code ...
<div id="tcontent7" class="tabcontentstyle tabcontent">';


        global $context, $settings, $options, $scripturl, $txt, $modSettings;

        // Show the shoutbox, takes settings from tpadmin
       if(isset($context['TPortal']['querystring']))
             $tp_where=$context['TPortal']['querystring'];
       else
              $tp_where='';

       if(!isset($context['TPortal']['shoutbox']))
             $context['TPortal']['shoutbox']='';

if($context['TPortal']['shoutbox_usescroll']=='1')
echo '
<div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">
<div id="vmarquee" class="smalltext" style="text-align: left;position: absolute; width: 98%;">
'.$context['TPortal']['shoutbox'].'
</div>
</div>';
else
echo '
<table cellpadding="0" align="center" width="100%" cellspacing="0" style="table-layout: fixed;">
<tr><td><div class="smalltext" style="width: 99%; height: '.$context['TPortal']['shoutbox_height'].'px; overflow: auto;">', $context['TPortal']['shoutbox'], '</div></td>
</tr>
</table>';

       // show archives
       if($context['TPortal']['show_shoutbox_archive']>0){
echo '
<div style="text-align: center; margin-top: 5px; " class="smalltext"><a href="',$scripturl,'?action=tpmod;sa=shoutbox;shouts='.$context['TPortal']['show_shoutbox_archive'].'">',$txt['tp-showshouts'],' ',$context['TPortal']['show_shoutbox_archive'],'</a></div>';
       }
       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: 18px;" 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>';
       
       

echo '</div>


ZarPrime

UkGangsta

tried what u said still hasnt fixed the problem.

dimdom

Without Shoutbox.

Use the attached infopanel2.php

UkGangsta

thxs dimdom that works perfect i really like this thats why i wanted it look right great job and thankyou very much.

dimdom


T-Cat

This is really nice :)

However, my articles are not showing. Everything else looks great.
QuoteYou have the option to set the article categories that you want to show on New Articles.
How are these options set? Maybe this is why mine are not showing?

I also noticed on your site, that you have gallery pics included in the block. I would like this too. I think this will help my users so much!

If there is support for this else where, I couldn't find it.
Not sure if this is an error, or just a user error  ???

dimdom

QuoteHowever, my articles are not showing. Everything else looks great.

Find this part of code in infopanel2.php:

articles(
$mode = 1,
$limit = 5,
$cats = array(60,1,50,167),
$show_comments = true,
$show_views = true,
$show_rating = true,
$show_time = false,
$show_category = true,
$show_author = false,
$show_articleComment = true,
$output_method = 'echo'


and change in this line:

$cats = array(60,1,50,167),

the article categories that you want to show.

T-Cat


This website is proudly hosted on Crocweb Cloud Website Hosting.