vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Avatar in Header (https://vborg.vbsupport.ru/showthread.php?t=230415)

Gero50 07-04-2010 09:02 AM

Installed perfectly. Thanks a bunch.

JesusSuarz 07-20-2010 05:00 AM

I change my template to make it this way:

http://img832.imageshack.us/img832/1...atarheader.jpg

I want is to display the user avatar after registering your account

kontagio.us 07-22-2010 01:11 AM

In IE 8 with vBulletin 4.0.5 I get this error. It works perfectly fine with Firefox logged in as the same user and also with the admin account. See the code below the images.

IE 8 Regular view:
http://img80.imageshack.us/img80/539/regulart.jpg

IE 8 Compatibility view:
http://img80.imageshack.us/img80/9452/compatibility.jpg

What it looks like in Firefox:
http://img80.imageshack.us/img80/3151/firefoxgu.jpg

Code:

<table border="0">
  <tr>
    <td width="66" valign="top" style="padding-top: 1px;">{vb:raw header_avatar}</td>
    <td valign="top" align="left"><vb:if condition="$notifications_total">
<dl class="th-dropdown">
  <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)"><img src="http://www.viralarchive.com/images/buttons/sortasc.png" border="0" /> {vb:raw bbuserinfo.username} - ({vb:raw notifications_total})</dt>
  <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)">
    <ul>
{vb:raw notifications_menubits}
<vb:else />
      <dl class="th-dropdown">
  <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu('one',-1)"><img src="images/buttons/sortasc.png" border="0" /> {vb:raw bbuserinfo.username}</dt>
  <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddMenu('one',-1)">
    <ul>
</vb:if>
      <li><a href="{vb:link member, {vb:raw bbuserinfo}}" class="th-underline">My Profile</a></li>
      <li><a href="profile.php?do=editprofile{vb:raw session.sessionurl_q}" class="th-underline">Edit Profile</a></li>
      <li><a href="usercp.php{vb:raw session.sessionurl_q}" class="th-underline">My Settings</a></li>
      <li><a href="profile.php?do=buddylist{vb:raw session.sessionurl_q}" class="th-underline">Friends & Contacts</a></li>
      <li><a href="private.php{vb:raw session.sessionurl_q}">Private Messages</a></li>
    </ul>
  </dd>
</dl><div style="margin: 0px 0px 7px 0px; font-size: 11px;"><b>Last Login:</b> {vb:raw pmbox.lastvisitdate}</div>
<div style="width: 194px; color: #FFF; padding: 4px 4px 4px 4px; background:#28437c; font-size: 11px;">

<vb:if condition="$show['admincplink']"><b><a href="http://www.viralarchive.com/admincp/index.php" class="th-underline">Admin</a></b> - </vb:if>

<b><a rel="help" href="http://www.viralarchive.com/xperience.php">Statistics</a><b>&nbsp;-&nbsp;<b><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">Logout</a></b></div></td></tr>
</table>


Alex@Mk3OC 07-22-2010 09:27 AM

Does anyone know how to get the avatar to point to the users member.php page instead of their edit avatar page?

deathtrancer 07-25-2010 09:27 AM

Thank you, awesome work

movslow 07-27-2010 04:03 PM

It doesn't work w/this skin here --> https://vborg.vbsupport.ru/showthread.php?t=242855 (CF1), b/c they don't have a "toplinks" pointer in the HEADER template.

Any ideas?

Thanks
:up:

farhanisfarhan 07-27-2010 08:10 PM

Nice One...

surfer2124 08-06-2010 04:49 PM

How do I use in a widget?

surfer2124 08-13-2010 08:02 PM

Is this mod supported?

Seven Skins 08-13-2010 08:34 PM

It is ... if you use it in default skin and in the header not in a widget.

PreciseDemise 08-13-2010 09:27 PM

Nice! :D Maybe this will get hte lazy buggers to up load one :D

Thanks guys =)

8thos 09-26-2010 04:42 AM

Works great!

8thos 10-04-2010 02:12 AM

I take that back. This is the mod that screwed up my main login page.

https://vborg.vbsupport.ru/showthread.php?t=251567

Mr_Running 10-27-2010 11:49 AM

Great Job Seven Skins works with 4.0.8 default. I thought it needed sharing that it works :)

I added the border and when I remove the width and height settings I lose the border. I know this combo will work but I could use a little help and It would be great to have it below the logout.

Maybe Carrlos would be willing to help :) not to single you out friend :)
Quote:

Originally Posted by carrlos (Post 1949299)
I had a problem with this because my avatar is not a perfect square. To fix, I removed the width and height settings completely from the plug-in and changed the margin-right in the header to 80px (my default forum max size is 80x80). ;)

what do I need to remove width and height...or do I need to find "profile.php?do=editavatar" ...if so where do I find it...LOL :)
I feel like I am trapped in a square box :) --> I like the square if it was an image but if it user uploads a random "photo" and does not square it up! It will be distorted. I guess user can learn to square their photos to look good but if they do not have to all the better.

I thought I would just remove this " width=\"60\" height=\"60\"
but no it did not work. Learning code is fun :)

Code:

$ava_urlX = $ava_url[0];
  $ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"60\" height=\"60\" style=\"border: 1px solid #FF0000;\" alt=\"Avatar\" /></a>";

Avatar in header mod is awesome!
Cheers,
:)
Mr_Running

sweetguy2004 10-28-2010 07:50 AM

Thanks friend installed!

Mobo 11-09-2010 02:35 PM

Quote:

Originally Posted by Mr_Running (Post 2114850)
Great Job Seven Skins works with 4.0.8 default. I thought it needed sharing that it works :)

I added the border and when I remove the width and height settings I lose the border. I know this combo will work but I could use a little help and It would be great to have it below the logout.

Maybe Carrlos would be willing to help :) not to single you out friend :)


what do I need to remove width and height...or do I need to find "profile.php?do=editavatar" ...if so where do I find it...LOL :)
I feel like I am trapped in a square box :) --> I like the square if it was an image but if it user uploads a random "photo" and does not square it up! It will be distorted. I guess user can learn to square their photos to look good but if they do not have to all the better.

I thought I would just remove this " width=\"60\" height=\"60\"
but no it did not work. Learning code is fun :)

$ava_urlX = $ava_url[0];
$ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"60\" height=\"60\" style=\"border: 1px solid #FF0000;\" alt=\"Avatar\" /></a>";

Avatar in header mod is awesome!
Cheers,
:)
Mr_Running

I was able to get it to work. Here is what my section of that code looks like:

Code:

$ava_urlX = $ava_url[0];
  $ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" border=\"0\" alt=\"Your Avatar\" /></a>";

Hope this helps.

Outbackmark 11-10-2010 02:27 AM

I like this mod, just one problem, your code does not use the full server path to functions_user.php which causes problems with other mods, any chance of rectifying this?

hardboiled 11-10-2010 08:17 PM

Installed, works great. Thank you.

blake247 11-12-2010 01:21 AM

Installed this mod, now I get "Own3d By Cyb3R"

Seven Skins 11-13-2010 12:56 PM

^^ You can open this hack in the notepad and see the code ... there is no way this hack can do this.

ROTPAR 11-26-2010 01:24 PM

Quote:

Originally Posted by blake247 (Post 2120772)
Installed this mod, now I get "Own3d By Cyb3R"

you got hacked because of this mod? or what do you want to say?

OldSchoolDSL 12-29-2010 11:00 PM

Installed & working

4.1 PL2

OldSchoolDSL 01-17-2011 05:48 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2141032)
Installed & working

4.1 PL2

Un-installed

It was nice eye candy, but really only added to the load.

GamersChallenge 10-02-2011 06:48 AM

I want to display unkown.gif even if the user is not loged in. how do I that?

ps. works great on 1.1.5 pl1

Scalemotorcars 10-22-2011 12:35 AM

Great mod I tweaked it a little to work in my footer.

@ GamersChallenge

I had the same questions and actually came up with a very easy answer. I just used the unknow.gif wrapped by the Guest conditional. Heres my code, feel free to weak as needed.

Code:

<div style="float:left; margin-right: 10px; margin-bottom: 5px;">{vb:raw ss_avatar}</div>
          <vb:if condition="$show['guest']"><div style="float:left; margin-right: 10px; margin-bottom: 5px;"><img src="images/misc/unknown.gif" alt="" title="" /></div></vb:if>

Here's a link, check the footer to see it in action. http://www.scalemotorcars.com

Opp's I should be a little more clear on where to look. Bottom right with the kit motor boxart. Once a member log's in that changes to the users avatar. :up:

FReeSTER 11-12-2011 01:36 AM

very nice mate thanks

Emeralda 02-11-2012 02:42 PM

Really nice, though because we use kinda big avatars (150x200 even) and not square, I had to modify the code a bit for a 100px high header:

Code:

$ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" height=\"90\" border=\"0\" alt=\"Avatar\" /></a>";
It doesn't set the width, letting proper proportions to stay.

OcR Envy 03-22-2012 01:28 AM

blah can delete.

wabbits 04-12-2012 02:23 AM

Nice touch cheers for that.:up:

ywwz 04-12-2012 11:39 AM

working on 4.1.11

marccap 04-25-2012 05:42 PM

added nice

chrisngrod 05-17-2012 12:47 AM

https://vborg.vbsupport.ru/external/2012/05/34.jpg

https://vborg.vbsupport.ru/external/2012/05/35.jpg




Actually used your plugin to help with a couple of different things.

4.1.12

Thanks a lot!

ywwz 07-05-2012 07:05 AM

works fine on 4.2.0

imported_polygrinder 07-05-2012 10:45 PM

Awesome. Using it on 4.2

sebk1 07-27-2012 11:00 AM

Hi dudes, I have a little problem on my 4.2 ...
Any idea ?

https://vborg.vbsupport.ru/external/2012/07/6.jpg

Thanks ! :)

Seven Skins 07-27-2012 05:50 PM

There is something seriously wrong with your style or vBulletin code as {vb:raw ss_avatar} should not be visible after the templates has been rendered. See if the code works in your default style.

zascok 08-01-2012 12:29 PM

taget, tia

zascok 08-03-2012 07:07 PM

Installed. Any chance that avatar can be show on the right -top corner instead of nav-bar please? I'm using fixed width

Seven Skins 08-05-2012 08:32 PM

It is on right top corner see this: https://vborg.vbsupport.ru/attachmen...8&d=1261086383

Or you want that on top of "toplinks"?

ViciousCode 08-30-2012 03:50 AM

does not work for me in 4.2.0 PL2

avatar wont show up


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01491 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete