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);
}
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg718.imageshack.us%2Fimg718%2F470%2F715201181922pm.jpg&hash=d977aa606737a7232c5ea77c4e4692aab0420e1c) (http://imageshack.us/photo/my-images/718/715201181922pm.jpg/)
AlsoI have this weird pink image displaying in the right panel.
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg12.imageshack.us%2Fimg12%2F3830%2F715201182421pm.jpg&hash=46648a8151969c96160a81293eba5658bf411532) (http://imageshack.us/photo/my-images/12/715201182421pm.jpg/)
If I disable member stats under the form stats block / display the items in the statbox it goes away.
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 --> (https://www.tinyportal.net/Themes/default/images/icons/members.gif)
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
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.
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 --> (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi714.photobucket.com%2Falbums%2Fww142%2FZarPrime%2Fmembers.gif&hash=3b5f79c62324aa28d078e080871c98b93a947910)
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
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.
Ok, well cool. O0 We'll go ahead and mark this one solved then.
ZarPrime
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.
stang7043, maybe this will help. http://www.tinyportal.net/index.php?topic=34111.0
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 ?
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.
Thank you sir. Ill toy around with it ... Appreciate all the help.
Not sure if I should post this here or in a new thread but Im starting to get a lot of error msgs in the logs since I changed this
In TPShout.template.php file find this line:
else if(allowedTo('tp_can_shout'))
Replace with:
else
I keep getting the below errors over and over and over again.
8: Undefined index: characer_set
File: /home/content/x/x/x/xxxxxx/html/Themes/default/languages/Post.english.php (tp_above sub template - eval?)
Line: 244
8: Undefined index: characer_set
File: /home/content/x/x/x/xxxxxx/html/Themes/<custom theme location>/TPShout.template.php (tp_above sub template - eval?)
Line: 320
8: Undefined index:
File: /home/content/x/x/x/xxxxxx/html/Themes/<custom theme location>/TPShout.template.php (tp_above sub template - eval?)
Line: 313
Always start your own topic for your own questions. I've posted some fixed files for the characer_set errors. It was a type-o on my part. I've attached them here:
http://www.tinyportal.net/index.php?topic=34077.msg272607#msg272607
Thanks Ill go ahead and try this. This was my original thread but for an issue I was having with shoutbox permissions.
Sorry, what I meant was to start for separate questions. IT helps when people search, to search for something specific and find the topic title. Instead of finding an answer burried in a 3-5 page topic. :)
ahh ok I cant post another thread or change the subject on this. I think it was an issue with
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
I think I had an extra space I missed. Everything looks good now no errors so far in the log. I also changed the thread subject to reflect everything you guys fixed for me. Im glad someone else can look at this and make sense of it. lol Cause to me its all latin. Thanks guys and gals. You have a great product and site/support.