Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 246
Total: 246

Author Topic: Avatar in comments not displayed  (Read 6720 times)

0 Members and 1 Guest are viewing this topic.

Offline izzzy12k

  • Member
  • *
  • Posts: 5
    • View Profile
Avatar in comments not displayed
« on: October 26, 2006, 12:22:54 pm »
The pointer seems to be appending the url of the user's avatar to the one used by smf for it's own avatars..

for example:

what should be http://www.avatarsurl.com/avatar.jpg

is being processed and displayed as: http://www.mysmfwebsite.com/forums/avatars/http://www.avatarsurl.com/avatar.jpg

any idea why this is happening, thanks any help greatly appreciated?

Offline izzzy12k

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Avatar in comments not displayed
« Reply #1 on: October 30, 2006, 05:52:31 pm »
Bump.. in hope of maybe someone might now how to fix this..

thanks in advance  :)

Offline naaskaii

  • Member
  • *
  • Posts: 1
    • View Profile
Re: Avatar in comments not displayed
« Reply #2 on: November 06, 2006, 08:17:32 pm »
izzzy,

Look in the Gallery.template.php file and within the function template_view_picture() for this... (line 6)

Code: [Select]
              if($bbc_check)
              {
                   if($user_profile[$memCommID]['avatar'] == '')
                       echo'<br /><img src="' . $uploaded . '" />';
                   else
                       echo '<br /><img src="' . $modSettings['avatar_url']. '/' . $user_profile[$memCommID]['avatar'] .'" />';
}
else
{
            if($uploaded == '')
                        echo '<br /><img src="' . $modSettings['avatar_url']. '/' . $user_profile[$memCommID]['avatar'] .'" />';
                    else
                    echo'<br /><img src="' . $uploaded . '" />';
}

I went and commented out the original line and added what is on line 7 and it started working...

Code: [Select]
              if($bbc_check)
              {
                   if($user_profile[$memCommID]['avatar'] == '')
                       echo'<br /><img src="' . $uploaded . '" />';
                   else
                       //echo '<br /><img src="' . $modSettings['avatar_url']. '/' . $user_profile[$memCommID]['avatar'] .'" />';
                       echo '<br /><img src="' . $user_profile[$memCommID]['avatar'] .'" width="65" height="65" alt="" class="avatar" border="0" />';
}
else
{
           if($uploaded == '')
                        echo '<br /><img src="' . $modSettings['avatar_url']. '/' . $user_profile[$memCommID]['avatar'] .'" />';
                   else
                    echo'<br /><img src="' . $uploaded . '" />';
}

Offline izzzy12k

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Avatar in comments not displayed
« Reply #3 on: November 17, 2006, 06:58:58 pm »
I'm unable to locate this file  :(

Offline mohoganybrwn

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Avatar in comments not displayed
« Reply #4 on: January 27, 2007, 07:31:35 pm »
its in your themes file.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4029 Views
Last post November 04, 2008, 07:39:57 pm
by SMFHacks
4 Replies
6088 Views
Last post November 10, 2008, 08:02:56 pm
by jsdoyle
0 Replies
3449 Views
Last post November 28, 2008, 06:15:18 am
by Nintendofanthr33
2 Replies
5241 Views
Last post December 17, 2008, 07:21:05 pm
by Bar Nuthin
6 Replies
4052 Views
Last post October 22, 2014, 09:13:40 am
by shuban

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal