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)

Dark Riku 09-12-2005 03:37 PM

nevermind =)

DeviousDEA 09-12-2005 10:12 PM

Is there a way to resize the signature shown in this welcome panel, would appreciate it alot :)

Dark Riku 09-12-2005 10:16 PM

do you mean the avatar?

Makaveli105 09-13-2005 04:10 AM

can i ask what i need to change so its by default collapsed:S? if this is possible

Zelda-King 09-13-2005 05:24 AM

2nd best welcome panel I've seen (first being back on vB2). Well done! I have the font in size 1 myself...

DeviousDEA 09-13-2005 09:07 AM

Quote:

Originally Posted by Dark Riku
do you mean the avatar?

Ah yes lol.
Any idea?

DeviousDEA 09-13-2005 10:31 PM

*bump*

Anyone has a code to resize the avatar shown in this hack?

jesus likes pie 09-16-2005 12:19 AM

It's not working for some reason...

cnutter 09-26-2005 11:41 PM

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.

Btw I am using RC3....

dbembibre 09-27-2005 06:25 AM

Yes this hacks add 5 extra queries for my site with 300 users online only increase 500 miliseconds

dbembibre 09-27-2005 08:15 AM

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']);




Andreas 09-27-2005 07:26 PM

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.

dbembibre 09-27-2005 08:04 PM

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']); 



loonytune15 10-04-2005 02:59 PM

does this work in vb3.5 gold and which is the better version?

dreck 10-04-2005 07:11 PM

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.

monstergamer 10-16-2005 08:51 PM

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?

Simms 10-21-2005 03:33 PM

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?

Code Monkey 10-21-2005 04:29 PM

Will this work on vbAdvanced?

Swindont 10-22-2005 02:54 PM

thanks alot! :D

lairnoc 10-22-2005 03:40 PM

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

PTO 10-22-2005 07:18 PM

Anyway to show the number of uShop points in there?

Flow Fusion 10-27-2005 04:01 PM

Great hack. Any update on possible removing the avatar all together?

GrendelKhan{TSU 10-29-2005 09:56 AM

anyone know how to make this hook into the forumhome instead of being attached to the $navbar?

mikehawk 11-09-2005 07:19 PM

How do I make the text smaller in the welcome panel? :ermm:

mikehawk 11-09-2005 07:54 PM

Quote:

Originally Posted by mikehawk
How do I make the text smaller in the welcome panel? :ermm:

???? Pleaseeeeeee. :rolleyes:

mikehawk 11-11-2005 09:25 PM

Nevermind all, I got it. :rolleyes:

divided_by_fear 11-12-2005 12:40 PM

any one test this on vbAdvanced?

King Kovifor 11-12-2005 11:25 PM

Ah redo! Installed though, I like it.

divided_by_fear 11-14-2005 04:35 PM

anyone?

optrex 11-14-2005 05:59 PM

excuse me for being a noob, but what hook do I use ?

optrex 11-15-2005 04:10 PM

its ok I got it

sassyparties 11-16-2005 11:14 AM

I am having the same issue with forum permissions. I have a user who has posted on a board that she no longer has access to. How can I fix it?

Smartin 11-22-2005 11:12 PM

I have completed the instructions....and I see no change in the forum main page. Do I have to modify the forumhome template?

optrex 11-23-2005 04:59 AM

It tells you to in the html instructions you download

gameslover 11-24-2005 08:55 AM

Hello,

I have a little problem with that hack and vb 3.5.1. All is working expect the % and the posts per day. The first is always showing 20% and the second 0.00. Other values are ok !!

Is there a way to fix that ?

Thanks.

kpr 11-26-2005 03:56 PM

Is there a way for this just to show as im getting welcome panel plus 2 welcome headings on my forum

Screenshot http://img402.imageshack.us/img402/4332/screeny8cz.jpg

How do i get it just to show the welcome panel hack instead of the 2 headings


Site: http://gamezmania.com/index.php

Any help much appreciated.

Ig@r 11-30-2005 02:08 PM

Same question. I don't want 2 panels displaing at ones. How to disable original one???

Chadi 11-30-2005 02:16 PM

Currently using
https://vborg.vbsupport.ru/show...24&page=3&pp=15

Would rather have
https://vborg.vbsupport.ru/showthread.php?t=60451

but thats 3.0x version. Anyone modify / update it for 3.51?

Add also:

New Users Registered Today: 7
Total Online Members

Devil Woman 12-03-2005 10:57 PM

Will this be re-wrote for vb 3.5.1 please

Thanks

puertoblack2003 12-03-2005 11:06 PM

Quote:

Originally Posted by Devil Woman
Will this be re-wrote for vb 3.5.1 please

Thanks

i'm currently using it for 3.5.1 have no problems



All times are GMT. The time now is 04:20 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.01467 seconds
  • Memory Usage 1,864KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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