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)

Seven Skins 12-16-2009 10:00 PM

Avatar in Header
 
1 Attachment(s)
Avatar in Header

This will add user avatar in header.
User without avatar will be show blank avatar.
Unregistered user will not be shown any avatar.


Installation:

-Import the XML file via ... AdminCP > Plugin & Products > Manage Products > Add/Import Product.




Find in header template:
HTML Code:

<div id="toplinks" class="toplinks">
Add Below:
HTML Code:

<div style="float:right; margin: 5px -12px 5px 10px;">{vb:raw ss_avatar}</div>

You can edit the margins to suit your needs

Live demo

Login to see the avatar.

PHP Code:

UserMike
Pass
vborg 


PS. Minimum height for the logo you are using must be 65 pixels, or else the avatar will be hidden behind the navbar.


Click Install if using this mod.


Thanks


Updated:
18 Dec 09: Changed template edits to correct problems with adverts in the header.
21 Dec 09: Add url to profile.php so avatar can be edited.
22 Dec 09: Working with vBulletin 4.0.0 (Gold)
14 Jan 10: Updated for vBulletin 4.0.1


.

milsirhc 12-17-2009 08:18 PM

Thanks! Will be using this once VB 4 goes Gold!

Toxic2 12-17-2009 08:20 PM

LOL That's Kinda Nice ! I can Imagine the members response :eek: tagged

elwachiman 12-17-2009 08:21 PM

Excelente Tnks Man

Trek 12-17-2009 11:24 PM

I can see my members enjoying this. =) Tagged.

fourat 12-18-2009 02:00 AM

Nice work
Can you make it as widget ?

Cableguy69 12-18-2009 02:23 AM

Looks good thanks, installed.

Kolbi 12-18-2009 01:43 PM

My 3.8.x version: https://vborg.vbsupport.ru/showthread.php?t=227666
:(

halkum 12-18-2009 02:59 PM

I love this idea, but with the use of advertisements it made my header look sloppy, so had to remove it.

:(

Brandon Sheley 12-18-2009 04:42 PM

nice mod, it looks good :)

Seven Skins 12-18-2009 05:38 PM

Quote:

Originally Posted by halkum (Post 1932971)
I love this idea, but with the use of advertisements it made my header look sloppy, so had to remove it.

:(

lol ... I forgot about the ads. I have edited the installation process, please use that and avatar will stay up top.

See Screenshot:

https://vborg.vbsupport.ru/attachmen...1&d=1261164876

.

trilogy33 12-18-2009 10:51 PM

Nice one, thank you and tagged.
Probably will get more users uploading an avatar. :)

Dr.osamA 12-19-2009 07:57 AM

installed
thanxx man
________
Box Vaporizers

jackph 12-19-2009 08:14 AM

great, thanks :D

saqibnpt 12-19-2009 03:14 PM

Great, Nice one thanks

Selcor 12-19-2009 07:35 PM

It not works in VB4 beta 5 with another skin ...

In applying this supplement will not let me enter the forum ...

Seven Skins 12-19-2009 07:40 PM

Have they released RC5 ... I dont think they have yet.

You just do the template edits according to your skin.

.

Selcor 12-19-2009 07:47 PM

I have: Powered by vBulletin™ Version 4.0.0 Beta 5 Copyright ? 2009 vBulletin Solutions, Inc. All rights

Just apply and try to enter the forum:

Quote:

Warning: require_once(./includes/functions_user.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/class_bootstrap.php5(277) : eval()'d code on line 3

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_user.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gmaster/public_html/foro/includes/class_bootstrap.php5(277) : eval()'d code on line 3
Modify the template Header like you said. And the error still ...

Seven Skins 12-19-2009 08:51 PM

Edit the plugin Header Avatar ... find this "./includes/functions_user.php" and edit it to "./includes/functions_user.php5"

.

Selcor 12-21-2009 01:45 AM

Thanks!

WNYorker 12-21-2009 02:45 AM

any way to link the avatar to the change avatar page? tried coding it myself, thought it might be easy, but couldn't figure it out.

Seven Skins 12-21-2009 01:23 PM

Quote:

Originally Posted by WNYorker (Post 1934366)
any way to link the avatar to the change avatar page? tried coding it myself, thought it might be easy, but couldn't figure it out.

Updated, download and overwrite the exisitng installation.

.

zonaenlinea 12-21-2009 07:51 PM

Thank you all very well prefect

nitra1000 12-21-2009 09:08 PM

Tried with VB4 Gold and it's failing to show the avatar anything missing off the steps? or does this not work with VB4?

Glenshadow 12-21-2009 10:19 PM

I liked the idea and installed it, however what about a piece of code to add maybe a table border or something similar around the Avatar when it is displayed ? Reason I ask is because most avatars are pictures and it kinda looks like a pic is just slapped up there, nothing fancy. (I haven't dug around in the code at all to try an accomplish this myself, but just suggesting.)

Thanks again for the mod !

*edit*
Forgot to mention, I have it working in vB4.0 Gold, I just followed the steps outlined and it works.

Another thing I was thinking.. what about calling it directly as it would in say postbit, so the Avatar populates the in exact size that it is through the rest of the board ?

I am no coder by far, but just an idea.

garretbyrne 12-22-2009 02:22 AM

Excellent.. Nice one mate.. Installed

VonDoom 12-22-2009 04:45 AM

Installed and 2nd the Gold Conformation. :) Thanks for another cool product. looks nice in combination with Alternative Header User Info

bacemail 12-22-2009 04:49 AM

Any chance you created a mod that places an avatar in the thread list next to the thread creator's user name?

nitra1000 12-22-2009 04:29 PM

Quote:

Originally Posted by nitra1000 (Post 1934855)
Tried with VB4 Gold and it's failing to show the avatar anything missing off the steps? or does this not work with VB4?

NVM was me being a nonce and not installing the plugin correctly.

For anyone else... you import the xml without filling in the other product details...

p.s Excellant plugin although would like to see a border around the pictures.

Seven Skins 12-22-2009 08:00 PM

^^ In the Header Avatar plugin find:
Code:

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

Replace it with:
Code:

$ss_avatar = "<a href=\"profile.php?do=editavatar\"><img src=\"$ava_urlX\" width=\"60\" height=\"60\" style=\"border: 1px solid #FF0000;\" alt=\"Your Avatar\" /></a>";
And edit "border: 1px solid #FF0000" to suit your needs.


.

Glenshadow 12-22-2009 08:41 PM

I tried that just now.. no worky for me... tried solid, groove, etc.. even tried 10px to make sure it wasn't being weird on me...

Seven Skins 12-22-2009 09:00 PM

Try again please, I have edited my post above.

.

HN? 12-23-2009 01:01 AM

Great, Nice one thanks !

Glenshadow 12-23-2009 03:43 PM

Bingo.. thanks !

radmoose 12-24-2009 05:37 AM

Thanks for this mod.

The issue that I am having is not with this mod, but I can't figure out how to make a minimum width of the header.. so I can change the header graphic and when someone resizes the avatar won't throw off the header graphic.

I only found the 10 ways tutorial at vBulletin.com on how to change hte header graphic, but I can't find any place that has info on how to make a minimum width... =/

Thanks again!

napy8gen 12-27-2009 01:47 PM

hi. it is not showing in my ie8

Bluetiereign 12-27-2009 05:53 PM

I like it. Thanks.

gyaronn 12-27-2009 05:53 PM

nice one m8 good work :-)

SoFresh 12-27-2009 10:33 PM

Super. Thank you!

TheSupportForum 12-27-2009 10:44 PM

i would like to know if its possible to get it to float instead, i have already modified my own header

www.tutorials4you.co.uk


All times are GMT. The time now is 06:30 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.01401 seconds
  • Memory Usage 1,793KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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