![]() |
[Re-Release] Tungsten's Welcome Panel
1 Attachment(s)
Author:
Tungsten Credits: Credits go to Ogden2K for inspiring the layout of the welcome panel and to Brad.loo for his help on coding issues. Description: I have changed a few minor problems in the original coding that were prohibiting avatars from being shown on some boards. I also redid the instructions file so that Microsoft Notepad opens it with proper line formatting. Basically this is just a simple welcome panel that conditionally displays the user's avatar if they are (a.) logged in and (b.) have an avatar selected. If they are not logged in or do not have an avatar selected, they see variations of the welcome panel text that intuitively guide them toward registering or logging in and selecting an avatar. No PHP files are hacked with this modification. It is completely template driven. I have successfully tested the modifications on my own vBulletin 3.0.0 Beta 4 installation with both avatars stored within the MySQL database and with avatars stored in a file-system folder outside of the database. It works both ways now. Anyone who downloaded the previous releases of this modification needs to upgrade to this one. I apologize for the confusion that arose from having so many different ideas being publicly thrown about in the other thread. :) Reporting Bugs: Feel free to report bugs in this thread but please do not post any code modifications here. Send them to me via a private PM so that I can evaluate their effectiveness. All support will be handled via this thread. Please do not PM me for support. New Screenshots: Finally... new screenshots are attached to this post as well as included inside the ZIP file. Enjoy! |
Well done! It Worked! :)
|
Thanks. I'm glad to get this monkey off my back finally! :D
|
Thanks I may use it again
|
Quote:
http://forum.xelation.org/index.php? |
It works for the guest avatat but not logged in users avatars.
|
Tell me a little more about your forum setup. What server OS are you running? Are your avatars stored inside the database or in a /customavatars type directory beneath your forum installation?
Finally, are you getting a red 'X' type thing where the avatars should be or just nothing at all? |
if user do not select avatar..i want it show the noavatar.gif not text..
how should i change the code? thankz.... |
Quote:
It's a Linux server. The avatars are stored in the default ./customavatars directory. I have no idea how to store them another way. I do get a red x where my avatar should be. |
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. ;) |
1 Attachment(s)
Quote:
Code:
$welcomeavatar = "<span class=\"smallfont\">No Avatar<br/ >Specified</span>"; Code:
$welcomeavatar = "<img src=\"$stylevar[imagesfolder]/noavatar.gif\" title=\"\" border=\"0\" />"; |
Quote:
http://forum.xelation.org/"image.php?u=$bbuserinfo[userid]&dateline=$avatar[dateline]/" |
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.
|
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. :) |
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. :)
|
Quote:
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... :) |
Quote:
I can't seem to duplicate that problem. I am seeing the proper guestavatar.gif and noavatar.gif files whenever those conditions are true. |
working great here!! all avatars showing up! thanks Tungsten!
|
Quote:
thankz... :D |
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: |
make the table the same width as your forum tables
|
Quote:
I searched a lot but didn't find a clou. And I know .... I'm the CheeseHead :) |
These three appear at the start of the forumhome template's welcome panel code. The third line defines the width of the welcome panel:
Code:
<!-- welcome panel --> |
Quote:
While I want to have the welcome panel always shows up, I have put in the header template. There those stylevars give other values. |
Anyone know how to get a noavatar.gif to show up on the welcome panel if one isn't selected?
I had this working for a few days and them I messed something up. Thanks! |
when changing the forumhome after i add your welcome panel, it wont seem to upload
|
Quote:
|
Tungsten, this is excellent well done. Works perfectly.
I stripped out your avatar code and dropped it into a side menu for my site - a sort of side-welcome-panel ;) http://www.britishblades.com/forums/ From what I can see this is the first functional vB3 welcome panel that totally replicates the different states as in the original vB2 welcomepanel. Nice one. ;) Martyn (aka tril0Byte) |
ive been doing template mods for a while now, i changed exctly what you told me and hit save, and i wanted for about 10 min and nothing happened :\
|
Quote:
I had this problem with my flags mod also, just forgot a " in the script. |
The new welcome panel added BUT THE OLD ONE STILL UP THERE !!!
like i have 2 now.. the original (Above the members,threads,post blabla) and the new one under it.. what did i go wrong ? just followed the instructions... |
Quote:
|
Quote:
|
i tried again and it worked, nice work :D
ill be installing at all the sites i admin that are going to be running vb3 |
thanks very much this is great
/me presses the virtual install button |
ok i have a problem, i have a black empy box at the top...can somone help?
forums.dcevoclub.com |
Quote:
|
Quote:
|
Quote:
and to say you use a free style from podesign i dont think you can critisise for him trying to do his own unique one do you!!!!!!!!! and 29 querys on forum home thats a server killer....... wow man 60 on the phpportal front page lol :D i got mine down to 29 when i had one and even that was too many for me:) still if your too cheap to stump up 10 bucks for the membership you get what you pay for....... |
10 bucks for what?
|
All times are GMT. The time now is 01:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|