vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Re-Release] Tungsten's Welcome Panel (https://vborg.vbsupport.ru/showthread.php?t=88268)

imported_Tungsten 07-10-2003 05:20 PM

1 Attachment(s)
Quote:

Originally Posted by Squawell
if user do not select avatar..i want it show the noavatar.gif not text..

how should i change the code?

Change this line in the phpinclude_start file:
Code:

$welcomeavatar = "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
To read as this:
Code:

$welcomeavatar = "<img src=\"$stylevar[imagesfolder]/noavatar.gif\" title=\"\" border=\"0\" />";
And place the attached noavatar.gif file into your forum images folder.

imported_HexOnxOnx 07-10-2003 06:19 PM

Quote:

Originally Posted by Tungsten
Can you right-click on the red-X and view the properties of what the graphic should have been? It should give you a complete FQDN path to the image file.

Copy and paste that into a reply for me. I want to see if it is parsing the graphic at all. ;)

Here are the properties where the avatar should be:

http://forum.xelation.org/"image.php?u=$bbuserinfo[userid]&dateline=$avatar[dateline]/"

imported_Tungsten 07-10-2003 06:40 PM

For some reason, quotes are being inserted into the code when it is rendered which breaks the functionality of the code. Let me re-evaluate my modification again and see if I goofed on something when I typed up the instructions.

imported_Tungsten 07-10-2003 07:39 PM

Those of you who were still having problems with avatars not showing up, please download the ZIP file again. It includes new code for the phpinclude_start template that parses properly on servers running versions of PHP older than 4.3.2


Apparently 4.3.1 and older versions of PHP didn't like the syntax I used when calling the image.php file to grab a user's custom avatar. I have replaced that code with some that works a little better across all versions.


Confirmed to work on my own test server. :)

imported_Tungsten 07-10-2003 07:43 PM

HexOnxOnx has confirmed that the code change fixed the avatar problem on his server. It looks like this modification is finally good for the whole family. :)

squawell 07-10-2003 10:46 PM

Quote:

Originally Posted by Tungsten
Change this line in the phpinclude_start file:
Code:

$welcomeavatar = "<span class=\"smallfont\">No Avatar<br/ >Specified</span>";
To read as this:
Code:

$welcomeavatar = "<img src=\"$stylevar[imagesfolder]/noavatar.gif\" title=\"\" border=\"0\" />";
And place the attached noavatar.gif file into your forum images folder.

Tungsten thankz that!!

another problem...when i logout...i still see the noavatar.gif not the

guestavatar.gif~~but i already place the pic to images&avatarts

folders...any idea?thankz... :)

imported_Tungsten 07-10-2003 11:08 PM

Quote:

Originally Posted by Squawell
Tungsten thankz that!!

another problem...when i logout...i still see the noavatar.gif not the

guestavatar.gif


I can't seem to duplicate that problem. I am seeing the proper guestavatar.gif and noavatar.gif files whenever those conditions are true.

Schorsch 07-11-2003 10:47 AM

working great here!! all avatars showing up! thanks Tungsten!

squawell 07-11-2003 12:59 PM

Quote:

Originally Posted by Tungsten
I can't seem to duplicate that problem. I am seeing the proper guestavatar.gif and noavatar.gif files whenever those conditions are true.

ok...i find the problem!!!i add wrong variable to template.....now it work..

thankz... :D

SmartGnome 07-11-2003 01:13 PM

working also great here!! thanks Tungsten! all avatars showing up.

The only thing with me is, that the width of the welcom panel is larger then my forums. Any idea how I can fix this :rolleyes:


All times are GMT. The time now is 04:22 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.01246 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (5)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