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,004
  • Total Topics: 21,330
  • Online today: 125
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 89
  • Total: 89

Shoutbox not displaying / Permissions / 8: Undefined index: characer_set Errors

Started by stang7043, July 16, 2011, 01:23:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stang7043

Link to my site: http://www.m-g-club.com
SMF version: 1.1.14
TP version: TinyPortal 1.0 RC2
Default Forum Language: English
Theme name and version:Custom
Browser Name and Version:  IE 8 / 7 /6 & Fire Fox
Mods installed:
1. SMF 1.0.14 / 1.1.6 Update 1.0   [ List Files ] [ Delete ] 
2. SMF 1.0.15 / 1.1.7 Update 1.0   [ List Files ] [ Delete ] 
3. SMF 1.0.16 / 1.1.8 Update 1.0   [ List Files ] [ Delete ] 
4. Custom Profile Field Mod 3.20   [ Uninstall ] [ List Files ] [ Delete ] 
5. Stop Spammer 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. TinyPortal 1.075  [ List Files ] [ Delete ] 
7. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0   [ List Files ] [ Delete ] 
8. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0   [ List Files ] [ Delete ] 
9. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1   [ List Files ] [ Delete ] 
10. SMF 1.0.19 / 1.1.11 Update 1.0   [ List Files ] [ Delete ] 
11. Quick Reply Permission 1.0  [ List Files ] [ Delete ] 
12. SMF Staff Page 1.6   [ Uninstall ] [ List Files ] [ Delete ] 
13. Quick Reply Permission 1.0  [ List Files ] [ Delete ] 
14. Xbox LIVE GamerTag BBC 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
15. Signature Dropdown Choices 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
16. Anti-Bot Registration Puzzles 1.2.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
17. SMF Arcade 2.0.18   [ List Files ] [ Delete ] 
18. DisableTemplateEval 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
19. SMF 1.0.20 / 1.1.12 Update 1.0   [ List Files ] [ Delete ] 
20. SMF 1.0.20 / 1.1.12 Update 1.0   [ List Files ] [ Delete ] 
21. SMF 1.0.21 / 1.1.13 Update 1.0   [ List Files ] [ Delete ] 
22. Profile Fields & Icons Mod 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
23. SMF 1.1.14 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
24. TinyPortal 1.104   [ Uninstall ] [ List Files ] [ Delete ]
Related Error messages: No Errors in the log / see screen shot. Im totally lost. Tried uninstalling reinstalling. Cant think of what it might be.

This is the php code I used to created the block.
global $settings, $db_prefix, $scripturl, $txt;

// set the limit
$limit = 1;

$tp_prefix = $db_prefix . 'tp_';

$request =  tp_query("SELECT s.*, IFNULL(mem.realName, s.value3) as realName,
mem.avatar, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, a.attachmentType
FROM " . $tp_prefix . "shoutbox as s
LEFT JOIN " . $db_prefix . "members AS mem ON (mem.ID_MEMBER = s.value5)
LEFT JOIN " . $db_prefix . "attachments AS a ON (a.ID_MEMBER = s.value5 and a.attachmentType!=3)
WHERE s.value7=0
ORDER BY s.value2 DESC LIMIT ". $limit, __FILE__, __LINE__);
if (tpdb_num_rows($request) > 0)
{
$nshouts= '';
$ns=array();
while($row = tpdb_fetch_assoc($request))
{
$row['avatar'] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img align="middle" style="width: 30px; height: 30px; margin-right: 4px;" src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img align="middle" style="width: 30px; height: 30px; margin-right: 4px;"  src="' . $row['avatar'] . '" alt="" border="0" />' : '<img align="middle" style="width: 30px; height: 30px; margin-right: 4px;"  src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" border="0" />');
$ns[] = '
<div style="padding-bottom: 5px;">
<div style="margin: 4px;">
<div style="padding: 3px; overflow: hidden; vertical-align: bottom;">
<div style="margin: 0 2px 2px 0; float: left;">' . $row['avatar'] . '</div>
<span class="smalltext">'. timeformat($row['value2']).'</span>
<b style="display: block; margin-top: 1px;"><a href="' . $scripturl. '?action=profile;u=' . $row['value5'] . '">' . strip_tags($row['realName']) . '</a> <span style="font-weight: normal;">' . $txt['tp-said'] .'</span></b>
</div>
<div class="windowbg2" style="border-bottom: solid 1px #bbb; border-top: solid 1px #fff; padding: 5px;">
' . parse_bbc(censorText($row['value1'])) . '
</div>
</div>
</div>';
}
$nshouts .= implode("", $ns);
$nshouts .='</div>';

echo $nshouts;
tpdb_free_result($request);
}




AlsoI have this weird pink image displaying in the right panel.



If I disable member stats under the form stats block / display the items in the statbox it goes away.

ZarPrime

stang7043,

First of all, I don't know where that pink image comes from but it shouldn't look like that.  The location of that image on your site should be here --> /Themes/default/images/icons/members.gif

It looks like this in SMF 2.0 but I don't know what it looks like in SMF 1.1.14 without downloading and extracting that version of SMF -->

Secondly, why are you using that code in your Shout block rather than the standard Shoutbox block?  Also, where did that code come from and what version of TinyPortal did you upgrade from, if you can remember?

If you want one of us to be able to see those 2 blocks, you should setup a temp account for us that will allow us to see them on your site.  That would make it so much easier.  If you make it an Admin account, don't post it here.  Send me a PM with the info instead.

ZarPrime

stang7043

Ill have to check that gif. Not sure why Im using that code. lol I saw it posted here cant remember the thread but someone was having a similar problem. I turned off that block. Now the Shoutbox doesnt show up at all. I have the TPShout option and when I click on that I have a settings option and shoutbox option. Im an admin so I dont think its a permissions issue. Its not displaying any where that I can find.  :-\

Not sure the last release of TP. 1.0 RC Beta 3 maybe...

If it would be easier to take a look let me know and Ill set you up with a temp admin account and pm you the info.

ZarPrime

OK, well, I just downloaded SMF 1.1.14 upgrade zip and the members.gif from that file looks a little different but it's certainly not pink.  It looks like this -->

I don't currently have an SMF 1.1.14 test site setup so, if you want me to see where that pink gif is coming from, you'll need to set me up a temp Admin account so that I can see that block.  Or, you could just edit the stats block so that guests can see it and I wouldn't have to login to see it.

As far as the Shoutbox goes, why don't you set up a new block to use the latest Shoutbox and see if that will work for you.  This information below might get you going on that ...

Quote from: bloc on April 05, 2008, 07:17:25 PM
Where is my old Shoutbox?

Due to the transformation of Shoutbox to an external module, there are also a few steps to take if you want to re-use the shoutbox again.

  • Go to "modules" section and to the tab "uploaded modules". Install the simple shoutbox module
  • Go back to the blocks, either modify the older "shoutbox" block(now as a "blank" block) or create a new. In both cases choose the type as "TP module"..the last of the list there. Save and then edit again, this time a list of installed modules should appear for you too choose
  • Choose the TP shout module and save
  • Check that the block render the shoutbox

ZarPrime

stang7043

You are a genious. That fixed it. The image is not that big of a deal. I can track the gifs down and upload the correct ones .... Thank you so much.

ZarPrime

Ok, well cool. O0 We'll go ahead and mark this one solved then.

ZarPrime

stang7043

#6
Have another problem. Seems admins can shout but regular members can not.


Update: seems only admins can post. Everyone else including mods and regulars members can view the shouts but cant make any shouts.

lurkalot


stang7043

Quote from: IchBinâ,,¢ on June 18, 2011, 09:50:19 PM
This is getting really irritating. lol I swear I fixed this bug in both versions already.

In TPShout.template.php file find this line:
else if(allowedTo('tp_can_shout'))

Replace with:
else


This did the trick. Could have sworn I tried this early ... Apparently not.


Sorry one more question ... I know Im being a pain ... Is there a guideline / tourtorial for editing the shout box ? For example getting rid of the whitebox that comes up by default or even changing it to something similar to yours etc etc etc ?

WillyP

The white speech bubble is added through the TPShout.css. The little triangle that points to your avatar is on line 6, remove the line that starts with 'background'. The rest of the speech bubble is just border and background, on line 19, remove the lines that start with 'border-top', 'border-left', and 'border-right'. You can also remove 'border-bottom', but you might want to leave it in as a separator.

The html is generated in the single shout function near the bottom of TPshout.template.php, if you want to remove the avatar or time-stamp, or rearrange the shouts, etc.

This website is proudly hosted on Crocweb Cloud Website Hosting.