TinyPortal

Development => Support => Topic started by: james30263 on July 10, 2010, 06:01:01 PM

Title: How Can I Remove The Avatar From The Shout Box
Post by: james30263 on July 10, 2010, 06:01:01 PM
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.
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: IchBin on July 11, 2010, 02:54:12 AM
I found the line I referenced in that post you linked to just fine in your file. Here's the edited file attached.
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: james30263 on July 23, 2010, 03:53:11 AM
Thank you :D
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: sI-IoBi3 on December 22, 2010, 01:48:46 PM
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!
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: ZarPrime on December 22, 2010, 02:25:39 PM
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
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: IchBin on December 22, 2010, 02:31:19 PM
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.
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: sI-IoBi3 on December 22, 2010, 03:42:40 PM
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.
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: sI-IoBi3 on December 22, 2010, 04:47:22 PM
I can't find TPShout.template.php file , there is only TPShout.php  ??
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: IchBin on December 22, 2010, 04:50:32 PM
Any file with "template" in the name is going to be in the Themes folder not the Sources folder.
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: sI-IoBi3 on December 22, 2010, 05:35:09 PM
thanks!
I've still got alot to learn :)
Title: Re: How Can I Remove The Avatar From The Shout Box
Post by: Chinaren on December 25, 2010, 02:32:53 AM
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="&nbsp;"  />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="&nbsp;" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="&nbsp;" />');