vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Release] Welcome Panel ver. 2 (https://vborg.vbsupport.ru/showthread.php?t=88257)

imported_Tungsten 06-30-2003 05:55 PM

For what it is worth, it does not seem that there is a universal vBcode or replacement variable for a user's avatar as of this writing. I did however write a complete hack that allows this to work with either custom or pre-defined avatars and it works flawlessly.

Unfortunately vBulletin.org is not allowing vb3 hacks at this time, so we're pretty much screwed as far as me sharing it with anyone. :(

I did post a question on vBulletin.com to see if the devs have hidden a globally accessible vBcode or replacement variable that we can call instead, but no replies yet.

Dan 06-30-2003 06:00 PM

try out www.vBulletin.nl they are a friendly community

imported_Tungsten 06-30-2003 06:06 PM

Quote:

Originally Posted by Brad.loo
Both problems can be solved with some added code to the phpinclude_start template, and calling the correct image path via a variable.

The only problem I can see with doing this is that anything added to the 'phpinclude_start' template becomes overhead for all vBulletin pages from that point forward.

A welcome panel really only needs to have it's relevant code called when the 'index.php' page is generated -- which is why I opted to do what you're talking about but made it an actual hack of the index.php code.

My hack consists of a modification of ogden2k's template, three new templates to represent the avatar, custom avatar and no avatar possible states and some code added right before the end of index.php.

Works great! But, again... no way to share it since VB.org has taken the stance that they have on prohibiting VB3 hacks until a final version is released.

imported_Tungsten 06-30-2003 06:09 PM

Quote:

Originally Posted by Oricon
try out www.vBulletin.nl they are a friendly community

Eh... would rather not deviate from the "accepted" channels. VB.org has safeguards in place to keep non-licensed users from getting hold of hacks and such.

imported_Tungsten 06-30-2003 06:41 PM

I have this fixed as a working TEMPLATE ONLY modification. It's significantly different than the one Odgen2k posted so I made a new thread, but I do give credit to him and Brad.loo in the post and in the text file.

http://www.vbulletintemplates.com/mo...3440#post33440

Brad 06-30-2003 07:35 PM

Yes there is a problem with overhead, but we are not talking about running queries here.

There are tricks to working with the phpinclude without adding much overhead on the server. Define what page the code should run on with a if statement, and dont use custom templates.

Check out filburt1's artical on the phpinclude template, its in the vB 2 mod forums :)

imported_Tungsten 06-30-2003 07:49 PM

Quote:

Originally Posted by Brad.loo
There are tricks to working with the phpinclude without adding much overhead on the server. Define what page the code should run on with a if statement, and dont use custom templates.

Will check into that. Not sure how I could work around the custom templates, however, since that is what provides part of the flexibility in my modification release. Same general idea that Jelsoft used when they constructed the vB3 user control panel screens dealing with avatars.

I'm too much of a PHP newbie at this point. It's all starting to give me a headache. :D


All times are GMT. The time now is 08:43 AM.

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.01090 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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