Howdy, looking for a bit of help!
I'm on SMF2RC3, and installed TP1.beta5.2. I've installed a couple of blocks on my left sidebar, which work fine, but the Shoutbox (simple version) doesn't work.
It installs okay, and you can see the title bar at the bottom of the forum, but there's no shouty bit underneath it.
Any ideas? I can see it in admin and everything. :-\
A link to your site would help, and could you Please read the Posting guidelines (http://www.tinyportal.net/index.php?topic=581.0) Thanks :)
Oops, sorry:
www.tomecity.com/smf
Chinaren,
In TP Admin --> Modules, make sure that TP Simple Shout is selected "On". Also, in the block edit screen for "Shouty!", what is the block type? It should be "TP Module" and there should be a radio button below the type that is selected "TPShout".
If this doesn't help, try taking the "!" out of the title for the block and see if that works.
ZarPrime
Well, blow me down. The shout was 'on', but there was another small radio button below that needed checking too. :o
Thanks for your help Zar!
Now, another question if I may be impertinent. The little avatars are nice, but on mine (not sure if my board is playing up, or this is how it is) it has the little av and then the speech bubble below, which takes quite a bit of room, vertically. Is there a way to doctor this so the avatar is to the left of the bubble? I can amend code if needed.
Many thanks again, in advance. :)
Chinaren,
I'm glad you figured it out. O0 Now , on to your other question.
The reason that Bloc wrote the code this way was so that the arrow pointing up from the bubble will point to (or close to) the Avatar.
I may be able to take a look at the code for the Shoutbox and figure out how he wrote it but not at least for a couple of days, possibly not until this weekend. If one of our other Team Members wants to take a look at it before that, it would be great. Otherwise, bump this topic maybe Friday or so to remind me and I'll see if I can take a look.
In the meantime, sometimes setting the Shoutbox to scroll will make a difference in the appearance and make it look better. Have a look at my test site here --> http://talesofthehavenexpanse.com/smf2test/index.php?action=forum
The panel the Shoutbox is in has a forced height to account for the BBC buttons and smileys that will be seen when a person is logged in. That's why the Shout part of it looks a little short.
ZarPrime
Thanks Zar!
The reason my members want it is because the last shoutbox could display about 8 or 10 lines in one, and thus see more at a glance. a small av by the side of the little bubble would be fine as well.
Anyway, thanks for responding. Great work with the box!
Quote from: ZarPrime on July 05, 2010, 06:10:35 PM
Chinaren,
I may be able to take a look at the code for the Shoutbox and figure out how he wrote it but not at least for a couple of days, possibly not until this weekend. If one of our other Team Members wants to take a look at it before that, it would be great. Otherwise, bump this topic maybe Friday or so to remind me and I'll see if I can take a look.
Ah, I think I missed that Friday, but we just had another!
If you tell me which file it's in, I may be able to
completely f**k it up give it a tweak myself. ;)
There are 3 files that control how the Shoutbox displays in the latest version of Tinyportal. They are listed below, along with their locations.
2 files in /Themes/default/ ...
TPShout.template.php
TPShout.css
1 file in /tp-files/tp-modules/TPShout/Sources/ ...
TPShout.php
Make backups of these 3 files before editing them in case you mess something up.
ZarPrime
Thanks Zarp, I'll take a look.
I finally got around to this!
Removed (actually commented out):
$row['avatar'] = $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt=" " />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt=" " />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt=" " />');
Which seems to be doing the job. :)