Link to my site: http://topcats.clanservers.com/TopCats/index.php
SMF version: 1.1.11
TP version: 1.0 beta
How can I remove the avatars from the tp shoutbox? I did a search and found this http://www.tinyportal.net/index.php?topic=32252.msg259097#msg259097 (http://www.tinyportal.net/index.php?topic=32252.msg259097#msg259097) but the code was different. I guess that code was for an older version of tp. Any help would be greatly appreciated. Thank you and sorry if I posted in the wrong place.
I posted a zipped copy of my TPSHout.php to this post.
I found the line I referenced in that post you linked to just fine in your file. Here's the edited file attached.
Thank you :D
Hi, I also can't find the line indicated?? there is a similar line for user ID but not for avatar
I have attached my TPshout.php
please can you help?
thanks!
sI-IoBi3,
The shoutbox code has changed in the newest version of TinyPortal since the op posted this topic. Please start a new topic and attach the information requested in the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581).
ZarPrime
I figured we might as well keep the answer in this topic for when people search. In TP1rc1 the code has moved to the TPShout.template.php file (at the bottom).
<div class="avy2"><a href="' . $scripturl. '?action=profile;u=' . $row['value5'] . '">' . $row['avatar'] . '</a></div>
Please start your own topic when you post for support next time SI-IoBi3. Thank you.
Hi , thanks for the answer! :)
I was going to start a new topic but i thought it would be easier for people searching these problems to find the answers in one place as I was trying to,
Thank you.
I can't find TPShout.template.php file , there is only TPShout.php ??
Any file with "template" in the name is going to be in the Themes folder not the Sources folder.
thanks!
I've still got alot to learn :)
Not sure what version I have, but it's likely a later one.
I removed:
$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=" " />');