vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Welcome Panel v1.0 (https://vborg.vbsupport.ru/showthread.php?t=83124)

Zero Tolerance 06-14-2005 10:00 PM

Welcome Panel v1.0
 
Yup, a welcome panel, very generic :p

Just look at the preview if you want to see a working example, do note that nothing is displayed for guests.

For those concerned about queries, it does add 5, however the run time on these queries are on the average server below 0.01 seconds, for me they all execute at 0.001xx seconds - so it shouldn't effect performance too a degree you'd notice.

Alternate Version Download: here
Information for alternate version: here
Thanks to: hellsatan

Enjoy,

- Zero Tolerance

Chris M 06-15-2005 07:08 AM

Why do we really need a Welcome Panel though ;)

Now that we have a navbar in > vB3 it kind of defeats the idea :p

Still - In the spirit of installation madness, I've installed it :p

Satan

Chris M 06-15-2005 07:10 AM

Oh...

Btw:

Quote:

Ensure to upload "noavatar.gif" to your forums doot directory, you're free to use any picture of your own liking.
Whats my forums doot directory?:p

Satan

fraghappy 06-15-2005 07:14 AM

Looks good, ZT. You always do a good job.

I'm nit-picky about this kind of stuff, but shouldn't "Your most active in" read "You're most active in"?

EDIT - Also:
"Welcome Back {username}" -> "Welcome Back, {username}"
"there has been {x} posts...} -> "there have been {x} posts "

Sorry. I'm a grammar nerd.

Zero Tolerance 06-15-2005 07:23 AM

Bare with me, havn't slept for .. a long time - i'll get those grammer issue's sorted.

Edit: Updated, sorry for that.

And hellsatan - I don't know to be honest, but they do look funky =P

- Zero Tolerance

Chris M 06-15-2005 07:26 AM

Would you mind if I posted another .zip file for those of us already using the "Get new threads and posts" plugin?

It would contain a slightly altered .xml file and template ;)

And it would save people two queries...

I've also attached the traditional "No Avatar" image from the vB2 Welcome Panel hack :D:D

Satan

Zero Tolerance 06-15-2005 07:28 AM

Quote:

Originally Posted by hellsatan
Would you mind if I posted another .zip file for those of us already using the "Get new threads and posts" plugin?

It would contain a slightly altered .xml file and template ;)

And it would save people two queries...

I've also attached the traditional "No Avatar" image from the vB2 Welcome Panel hack :D:D

Satan

Feel free hellsatan, i'll include it in the main post once you do :)

- Zero Tolerance

Chris M 06-15-2005 07:28 AM

Ok - Let me clean up my template and code a bit :p

Satan

Chris M 06-15-2005 07:47 AM

Ok - In this .zip there are three enhancements I have made, but you need not do them if you want...

[high]NOTE:[/high] The following enhancements have [high]already[/high] been made to the plugin and template attached in the .zip file in this post...

The first, is for those of us already using the "Get new threads and posts" plugin - I couldn't be bothered to edit the templates and remove it, so I saved myself two queries with this mod :p

The second is to alter the "Last visit" text:

Find in your template:
Code:

since your last visit at {$bbuserinfo['lastvisit']}<br />
Replace with:
Code:

since your last visit $pmbox[lastvisitdate] at $pmbox[lastvisittime]<br />
This, if you use detailed or yesterday/today time formats, will put "since your last visit Yesterday at 09:11 PM", for example, as opposed to "since your last visit 14-06-2005 at 09:11 PM"

Then you need to remove the following line from your plugin code:
PHP Code:

    $vbulletin->userinfo['lastvisit'] = vbdate($vbulletin->options['timeformat'], $vbulletin->userinfo['lastvisit']) . ', ' vbdate($vbulletin->options['dateformat'], $vbulletin->userinfo['lastvisit']); 

The third enhancement is merely a template one - Just adding a bit of text and a variable for "Active members" :p

I think you can probably figure that one out for yourselves though ;)

So here you go :)

Satan

Zero Tolerance 06-15-2005 07:49 AM

First post updated - thanks :)

- Zero Tolerance


All times are GMT. The time now is 10:32 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.01805 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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