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,021
  • Total Topics: 21,332
  • Online today: 582
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 564
  • Total: 564

Yet Another Shoutbox Layout Question

Started by Xtreme4U2NV, May 04, 2011, 11:00:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xtreme4U2NV

Excellent.

Noticed an error/bug of sorts though.  As admin, I see this;


As a normal member, they see this;


There is a large gap, and the 20 posts it was set too.  But on admin, it showed 8ish.

Any thoughts?

Xtreme4U2NV

And even when I post, it leaves the gap there in the middle.  I just set it to show 6 posts, it shows three up top, large gap, then three at the bottom.

Xtreme4U2NV

As admin, if I set it to view 20 shouts, I can see four or five right away, then have to scroll down within the shoutbox window to see the remaining 14-15 shouts.

But as a normal member, it tries to show me all 20 posts at once, no window to scroll in.  AND it ads that gap.

Xtreme4U2NV

Okay, so I have tested it in IE9, Firefox4, and Google Chrome.

I have come to the conclusion that ONLY the admin get a specific sized box where they are able to scroll through the amount of shouts defined in the settings.

Everyone else who is non-admin, sees all the shouts defined in the settings, not in the  smaller where they have the scroll option.

EDIT: Here is where I stand.  Sizes and everything are great.  now to just get the test beside not under

function template_singleshout($row)
{
global $scripturl,$context, $settings, $txt;

$return = '
<div style="padding-bottom: 5px;">
<span class="tp_shoutcontainer">
<div class="avy2"><a href="' . $scripturl. '?action=profile;u=' . $row['value5'] . '">' . $row['avatar'] . '</a>
' . (allowedTo('tp_shoutbox') ? '<div style="float: right; margin-bottom: 3px;"><a href="' . $scripturl. '?action=tpmod;shout=admin;s=' . $row['id'] . ';' . $context['session_var'] . '=' . $context['session_id'].'"><img src="' . $settings['tp_images_url'] . '/TPmodify.gif" alt="'.$txt['tp-edit'].'" /></a></div>' : '') . '
<h4><a href="' . $scripturl. '?action=profile;u=' . $row['value5'] . '">' . strip_tags($row['realName']) . '</a> - '. timeformat($row['value2']).'</h4>
' . (parse_bbc(censorText(strip_tags(html_entity_decode($row['value1']))),true)) . '
</div>
</span>
</div>';

return $return;
}

IchBin

Need to see a link to your site so I can see the code live.

NM, didn't see the first post... Yeah we can't see it unless we're logged in as you or admin. Not sure what to do for you unless you want to share your login with one of us.


This website is proudly hosted on Crocweb Cloud Website Hosting.