vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Show User's Avatar in Navbar v1.1 (https://vborg.vbsupport.ru/showthread.php?t=83053)

Kirk Y 06-14-2005 09:19 PM

No problem. Thanks for updating! :)

fraghappy 06-14-2005 11:34 PM

Version 1.1 has been released in order to address the following bug:

Quote:

Originally Posted by acidburn0520
When the user logged in doesn't have an avatar set, it shows that lovely red x box, would there be anyway to set it to go to a certain say, No Avatar Selected Image, if the user doesn't have an avatar set?

The .zip file has been updated and includes everything that you'll need to upgrade to the latest version. Thank you for showing so much interest in my hack. If you find any other bugs or have any other suggestions, please let me know!

ThorstenA 06-15-2005 08:40 AM

Very nice.

Suggestions:
* smaller image size that fits to navbar & nice blue border: <img ..... height="37" border="1">
* put image and text more together: <table cellpadding="1" ...>

mholtum 06-16-2005 02:33 AM

Quote:

Originally Posted by acidburn0520
Thank you for the update. I used a different "No Avatar" image than the provided one. If anyone would like to use mine, see the attached image. Also, I didn't like the way the avatar was positioned, it stretched my forum's header too much, instead of the html provided for the "navbar" template, I placed the avatar in a seperate table. For whatever reason the avatar was displayed above the userinfo, instead of beside it. So I used this html:

HTML Code:

        <if condition="$bbuserinfo['userid']">
                <td class="alt2" valign="left" nowrap="nowrap">

<a href="profile.php?$session[sessionurl]do=editavatar"><img src="$navbar_ava[0]" alt="Your avatar" border="0" /></a></td>
<td class="alt2" valign="right" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>

I've also attached a screenshot of what my html looks like on the navbar.

Thanks again for the hack, Frag.

I would like to use your code but I get this error:
Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mholtum/public_html/test/includes/adminfunctions_template.php(3515) : eval()'d code on line 181

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


fraghappy 06-16-2005 04:55 PM

Quote:

Originally Posted by mholtum
I would like to use your code but I get this error:
Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mholtum/public_html/test/includes/adminfunctions_template.php(3515) : eval()'d code on line 181

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


He missed an </if> at the end of his code. Add it in, and it should work. ;)

Jaxx 06-16-2005 04:59 PM

Not sure why, but all I'm getting for this is the following. My other admin says its working fine for him though.

dsboyce8624 06-16-2005 05:05 PM

Is there something like this for 3.0.x? Don't seem to find anything on searching.

mholtum 06-16-2005 05:07 PM

Quote:

Originally Posted by fraghappy
He missed an </if> at the end of his code. Add it in, and it should work. ;)

I figured that, does it matter where I put it?

fraghappy 06-16-2005 08:41 PM

Quote:

Originally Posted by Jaxx
Not sure why, but all I'm getting for this is the following. My other admin says its working fine for him though.

Hmm... could it perhaps be a browser issue? Do you use Firefox or Internet Explorer? Once I track down the problem, I release v1.2. After that, though, I probably won't work on this plugin much more, as I'm going to make it one of the features in a more advanced plugin that I'm developing.

Quote:

Originally Posted by dsboyce8624
Is there something like this for 3.0.x? Don't seem to find anything on searching.

Nope. As far as I know, it is an original idea.

Quote:

Originally Posted by mholtum
I figured that, does it matter where I put it?

Just put it at the end of the template code that he posted. ;)

Kirk Y 06-17-2005 04:59 AM

Quote:

Originally Posted by fraghappy
He missed an </if> at the end of his code. Add it in, and it should work. ;)

Strange, I have just that one </if>, my template gave no code errors. Hmm...

Quote:

Originally Posted by dsboyce8624
Is there something like this for 3.0.x? Don't seem to find anything on searching.

Yes, actually there is a hack that was just recently released based off of this plugin.

Use the directions, here: https://vborg.vbsupport.ru/showthread.php?p=668118
But be sure to take a look at this post, to see how to make it work for 3.0.x.:
https://vborg.vbsupport.ru/showpost....24&postcount=9

Hope everything works out for you. :classic:


All times are GMT. The time now is 01:03 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.01151 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_html_printable
  • (9)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
  • (10)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