Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Welcome Panel v1.0 Details »»
Welcome Panel v1.0
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 06-14-2005 Last Update: 08-16-2005 Installs: 254
Uses Plugins Template Edits
 
No support by the author.

Yup, a welcome panel, very generic

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 09-27-2005, 08:15 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cnutter
Not a bad plugin but I had to uninstall it cause it was hanging up my site load. Not sure what was happing but it was causing it to not load for 3 to 10 seconds. And as soon as I removed the plugin my site now loads fine. Anyway, keep up the good work and if this gets worked out I will install it again.

I attach a pic of my panel.

Excuse my broken English

Btw I am using RC3....
If you want i have a very lite version of this hack, i removed all the queries and only add 1 query for template. No aditional load in your forum. No is very pretty but work. Is the same code of Zero but with global forum variables.
Im Spanish, you need translate the template, the second row table in template show a flash banner.

forumhome_welcome_panel
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="3" align="center">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_welcomepanel')"><img id="collapseimg_forumhome_welcomepanel" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_welcome_panel].gif" alt="" border="0" /></a>
		Bienvenido de nuevo <a href='member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'>{$bbuserinfo['username']}</a>
	</td>
</tr>
<tbody id="collapseobj_forumhome_welcomepanel" style="$vbcollapse[collapseobj_forumhome_welcomepanel]">
	<tr>
		<td class="alt1" align="center" width="1%">
		<a href="profile.php?{$session[sessionurl]}do=editavatar">{$bbuserinfo['avatar_build']}</a>
		</td>
		<td width="50%" class="alt2" align="$stylevar[left]" valign="top">
		<div class="smallfont">Bienvenido de nuevo {$bbuserinfo['username']}, hay un total de <b>{$totalonline }</b> Usuarios On-line desde tu ?ltima visita $pmbox[lastvisitdate] a las $pmbox[lastvisittime]<br /></div>
			<table width='80%' cellspacing='0' cellpadding='2' border='0' align='center'>
			<tr>
			<td width="50%" align="$stylevar[left]"><div class="smallfont"><a href="http://www.bmwfaq.com/search.php"><b>Buscar</b> Mensajes</a></div></td>
			<td width="50%" align="$stylevar[right]"><div class="smallfont"><b>{$bbuserinfo['pmunread']}</b> Mensajes privados sin leer</div></td>
			</tr>
			</table>
                <br><br>
		<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
		<div align="center" class="smallfont"><a href="search.php?{$session[sessionurl]}do=getnew">Ver nuevos Posts</a> ? <a href="search.php?{$session[sessionurl]}do=getdaily">Ver Posts Ult. 24 Horas</a> ? <a href="profile.php?{$session[sessionurl]}do=editprofile">Editar Perfil</div>
		</td>
		<td width="50%" class="alt2" align="$stylevar[left]" valign="top">
                <A HREF="http://www.bmwfaq.com/club1.php">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"         codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
     WIDTH="390" HEIGHT="68" id="ng_nav" >
    <param name="movie" value="./Join.swf">
    <param name="quality" value="high">
</object></A>
                <div class="smallfont">
		<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
		<div align="center" class="smallfont">Miembros: <b>{$numbermembers}</b> ? Discusiones: <b>{$totalthreads}</b> ? Mensajes: <b>{$totalposts}</b></div>
		</td>
	</tr>
</tbody>
</table>
<br />
Plugin code
PHP Code:
if ($vbulletin->userinfo['userid'] > 0)

{

            require_once(
DIR '/includes/functions_user.php');

            
$vbulletin->userinfo['avatar_build'] = fetch_avatar_url($vbulletin->userinfo['userid']);

 

            if (empty(
$vbulletin->userinfo['avatar_build']) || !is_array($vbulletin->userinfo['avatar_build']))

            {

                        
$vbulletin->userinfo['avatar_build'] = array('noavatar.gif');

            }

 

            
$vbulletin->userinfo['avatar_build'] = '<img src="' $vbulletin->userinfo['avatar_build'][0] . '"'.iif($vbulletin->userinfo['avatar_build'][1],$vbulletin->userinfo['avatar_build'][1],'').'border="0" width="80" height="80" alt="Edit Your Avatar" />';

 

            

            
$active = array(0);

 

            if (!empty(
$active[1]))

            {

                        
$vbulletin->userinfo['active'] = array($vbulletin->forumcache[$active[1]], $active[0]);

            }

            else

            {

                        
$vbulletin->userinfo['active'] = false;

            }

 

            
$exec_totalposts str_replace(','''$totalposts);

 

            if (
$exec_totalposts 1)

            {

                        
$exec_totalposts 1;

            }

            

 

            if (
$jointime 1)

            {

                        
$vbulletin->userinfo['postsperday'] = $vbulletin->userinfo['posts'];

            }

            else

            {

                        
$vbulletin->userinfo['postsperday'] = vb_number_format($vbulletin->userinfo['posts'] / $jointime2);

            }

 

            
$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']);


Reply With Quote
  #53  
Old 09-27-2005, 07:26 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Slight optimization suggest:

Hook fetch_userinfo_query
PHP Code:
if (!$vbulletin->userinfo AND !($option 2))
{
    
$option += 2;

This way, you can get rid of fetch_avatar_url() which causes an additional query.
Reply With Quote
  #54  
Old 09-27-2005, 08:04 PM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Slight optimization suggest:

Hook fetch_userinfo_query
PHP Code:
if (!$vbulletin->userinfo AND !($option 2))
{
    
$option += 2;

This way, you can get rid of fetch_avatar_url() which causes an additional query.
you refer to this, right ?

PHP Code:
if (!$vbulletin->userinfo AND !($option 2)) 
{
    
$option += 2
}else
{
    
$vbulletin->userinfo['avatar_build'] = fetch_avatar_url($vbulletin->userinfo['userid']); 

Reply With Quote
  #55  
Old 10-04-2005, 02:59 PM
loonytune15's Avatar
loonytune15 loonytune15 is offline
 
Join Date: Mar 2003
Location: Loony Bin
Posts: 357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work in vb3.5 gold and which is the better version?
Reply With Quote
  #56  
Old 10-04-2005, 07:11 PM
dreck's Avatar
dreck dreck is offline
 
Join Date: Nov 2004
Location: Pickens SC
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by loonytune15
does this work in vb3.5 gold and which is the better version?
Yes, I upgraded to GOLD with no problems.
Reply With Quote
  #57  
Old 10-16-2005, 08:51 PM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dreck
Yes, I upgraded to GOLD with no problems.
does not work for me..did every thing by the book and nothing..will it work for gold?
Reply With Quote
  #58  
Old 10-21-2005, 03:33 PM
Simms Simms is offline
 
Join Date: Feb 2002
Location: Woodbridge, VA
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this running on 3.5 Gold with no problems.

That said, I have a (hopefully) minor request. I'm using this to replace the "Number of Threads and Posts Since Your Last Visit" hack for 3.0.x. In that one, there was a small mod one could make to the code where it counted the number of posts *in* x threads. So instead of seeing "There have been 10 new posts and 0 new threads..." you would see "There have been 10 new posts in 4 threads..."

Is there any way this extension could be tweaked to accomplish that? Not that this doesn't work fine, but my users were used to the old way, and to be honest, I prefer it myself.

If not, no big deal, but it can't hurt to ask, right?
Reply With Quote
  #59  
Old 10-21-2005, 04:29 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on vbAdvanced?
Reply With Quote
  #60  
Old 10-22-2005, 02:54 PM
Swindont Swindont is offline
 
Join Date: Sep 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot!
Reply With Quote
  #61  
Old 10-22-2005, 03:40 PM
lairnoc's Avatar
lairnoc lairnoc is offline
 
Join Date: Oct 2003
Location: The Netherlands
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love is it possible to ad rep power or rep level there also?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:50 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.04909 seconds
  • Memory Usage 2,361KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete