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 03:20 PM

[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!

imported_VirtualMind 07-10-2003 04:01 PM

Well done! It Worked! :)

imported_Tungsten 07-10-2003 04:04 PM

Thanks. I'm glad to get this monkey off my back finally! :D

Dan 07-10-2003 04:10 PM

Thanks I may use it again

imported_HexOnxOnx 07-10-2003 04:10 PM

Quote:

Originally Posted by Tungsten
Thanks. I'm glad to get this monkey off my back finally! :D

Sorry to report back to you, it don't work on my board. Avatars don't show up.

http://forum.xelation.org/index.php?

imported_HexOnxOnx 07-10-2003 04:16 PM

It works for the guest avatat but not logged in users avatars.

imported_Tungsten 07-10-2003 04:54 PM

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?

squawell 07-10-2003 04:58 PM

if user do not select avatar..i want it show the noavatar.gif not text..

how should i change the code?

thankz....

imported_HexOnxOnx 07-10-2003 05:00 PM

Quote:

Originally Posted by Tungsten
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?

HI

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.

imported_Tungsten 07-10-2003 05:12 PM

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. ;)

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:

Dan 07-11-2003 01:36 PM

make the table the same width as your forum tables

SmartGnome 07-11-2003 04:52 PM

Quote:

Originally Posted by Oricon
make the table the same width as your forum tables

Yes thanks but which $stylevar must I take for that ? (width="$stylevar[tablewidth]")

I searched a lot but didn't find a clou. And I know .... I'm the CheeseHead :)

imported_Tungsten 07-11-2003 05:28 PM

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 -->
<br />
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>


SmartGnome 07-12-2003 07:10 PM

Quote:

Originally Posted by Tungsten
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 -->
<br />
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td>


Thanks I found the problem :)
While I want to have the welcome panel always shows up, I have put in the header template. There those stylevars give other values.

imported_HexOnxOnx 07-15-2003 04:29 AM

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!

Zachery 07-23-2003 07:07 PM

when changing the forumhome after i add your welcome panel, it wont seem to upload

imported_Tungsten 07-24-2003 12:47 PM

Quote:

Originally Posted by Faranth
when changing the forumhome after i add your welcome panel, it wont seem to upload

You must have done something wrong.

trilOByte 07-24-2003 02:33 PM

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)

Zachery 07-24-2003 09:07 PM

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 :\

SmartGnome 07-24-2003 09:23 PM

Quote:

Originally Posted by Faranth
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 :\

Have a look at your code if there is not a missing < , > or ". If so then the template will not be loaded into the database.

I had this problem with my flags mod also, just forgot a " in the script.

zenmasteril 07-30-2003 09:55 AM

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...

imported_Tungsten 07-30-2003 12:50 PM

Quote:

Originally Posted by zenmaster
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...

You didn't edit the navbar template, evidently. It would have helped if you had posted the URL for your forums so that the rest of us could see it for ourselves.

zenmasteril 07-30-2003 04:34 PM

Quote:

Originally Posted by Tungsten
You didn't edit the navbar template, evidently. It would have helped if you had posted the URL for your forums so that the rest of us could see it for ourselves.

ok.. now it's ok.. but the text file is not so clear about what to do with the navbar.. i had to delete everything there and add the new parts..

Zachery 08-02-2003 07:18 AM

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

phill2003 08-08-2003 08:05 PM

thanks very much this is great

/me presses the virtual install button

dcevoclub 08-10-2003 12:11 AM

ok i have a problem, i have a black empy box at the top...can somone help?

forums.dcevoclub.com

dstruct2k 08-15-2003 01:10 PM

Quote:

Originally Posted by dcevoclub
ok i have a problem, i have a black empy box at the top...can somone help?

forums.dcevoclub.com

Looks like you fixed it yourself... And may I comment, that is quite the ugly style! Way too much empty space all around...

dcevoclub 08-15-2003 01:15 PM

Quote:

Originally Posted by dstruct2k
Looks like you fixed it yourself... And may I comment, that is quite the ugly style! Way too much empty space all around...

thanks, i try, you know it would be nice if i could get help in all the places i post but i don't get any...so but thanks

phill2003 08-15-2003 02:05 PM

Quote:

Originally Posted by dstruct2k
Looks like you fixed it yourself... And may I comment, that is quite the ugly style! Way too much empty space all around...

you could be a bit more constructive, that was just plain nasty.

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.......

dcevoclub 08-17-2003 04:07 PM

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
  • Page Generation 0.01435 seconds
  • Memory Usage 1,829KB
  • 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
  • (6)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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