View Full Version : [Release] Welcome Panel ver. 2
imported_ogden2k
06-29-2003, 07:37 PM
Here's a revamped Welcome panel for vB3. The only thing I could not add in is the "x amount of new threads and posts since your last visit".
imported_Tungsten
06-29-2003, 07:49 PM
Screenshot?
imported_ogden2k
06-29-2003, 07:51 PM
Just posted it. :)
imported_Tungsten
06-29-2003, 08:35 PM
Looks nice! Way to go.
amykhar
06-29-2003, 11:22 PM
One problem - the avatar only shows if the user is using a custom avatar and not if they are using a stock one.
Tony G
06-29-2003, 11:41 PM
Nice work. :)
imported_ogden2k
06-29-2003, 11:46 PM
One problem - the avatar only shows if the user is using a custom avatar and not if they are using a stock one.
Really? It should show whatever the user has for an avatar.
<img src="image.php?userid=$bbuserinfo[userid]" alt="" border="0" />
Really? It should show whatever the user has for an avatar.
<img src="image.php?userid=$bbuserinfo[userid]" alt="" border="0" />
There is indeed a problem with hard coding a link to image.php, let me explain.
Hard coding a link to image.php can cuase two errors.
1: It will not work with predefined avatars (non-custom ones that live on the server).
2: It will not work if custom avatars are begin stored outside the database. This is new to vbulletin 3.
When avatars are store as files the link would need to point to: (this is for custom avatars only!)
<img src="$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" alt="" border="0" />
Both problems can be solved with some added code to the phpinclude_start template, and calling the correct image path via a variable.
I have a code chunck that dose this working on local host that I am plaing to release in my own re-vamp of the kousetsu welcome panel (see the vB 2 mod forums).
imported_ogden2k
06-30-2003, 03:33 PM
There is indeed a problem with hard coding a link to image.php, let me explain.
Hard coding a link to image.php can cuase two errors.
1: It will not work with predefined avatars (non-custom ones that live on the server).
2: It will not work if custom avatars are begin stored outside the database. This is new to vbulletin 3.
When avatars are store as files the link would need to point to: (this is for custom avatars only!)
<img src="$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" alt="" border="0" />
Both problems can be solved with some added code to the phpinclude_start template, and calling the correct image path via a variable.
I have a code chunck that dose this working on local host that I am plaing to release in my own re-vamp of the kousetsu welcome panel (see the vB 2 mod forums).
What's the added code that I would need to add?
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.
try out www.vBulletin.nl they are a friendly community
imported_Tungsten
06-30-2003, 06:06 PM
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
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/mods/showthread.php?p=33440#post33440
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
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.