vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Welcome Panel [Final] (https://vborg.vbsupport.ru/showthread.php?t=33477)

eoc_Jason 05-01-2003 05:15 PM

Sanjiyan - if you want those to be different widths, easiest way would be to make each section its own table...

eoc_Jason 05-01-2003 05:18 PM

Oh yeah, btw.... I was experienceing forum slowdown's, especially during peak time, and it was the worst on the forumhome... well I ran the sql explain stuff and found out that the line:

PHP Code:

$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"); 

was causing a major slowdown because there was no index on post.dateline, if you add an index on it (and thread.lastpost for good measure since it has a similar query) you should see a nice speed improvement, especially if you have a good number of posts (my forum is approaching 400,000).

Cicada 05-13-2003 10:35 PM

my avatars dont display, any help?

KimG 05-18-2003 08:55 AM

[QUOTE]05-01-03 at 07:18 PM eoc_Jason said this in Post #402
Oh yeah, btw.... I was experienceing forum slowdown's, especially during peak time, and it was the worst on the forumhome... well I ran the sql explain stuff and found out that the line:

PHP Code:

$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"); 

was causing a major slowdown because there was no index on post.dateline, if you add an index on it (and thread.lastpost for good measure since it has a similar query) you should see a nice speed improvement, especially if you have a good number of posts (my forum is approaching 400,000).

eoc_Jason 05-28-2003 01:14 AM

easiest way would be to use phpmyadmin, you can just click the index button on the dateline column in the post table. Or, if you know how to use MySQL from the command line, let me know and I can tell you how to do the Alter Table command.

Bulleh 05-31-2003 01:35 PM

i see

Mike11212 05-31-2003 03:18 PM

I need help I must of done something wrong.

The hack works great when your loged in but when your a guest its all out of wack.

http://www.hardwaregeeks.com/board see what I mean

anyone know how to help I tried editing templates but it just made me angry I couldn't figure it out

eoc_Jason 05-31-2003 03:50 PM

It looks like you are missing (or have an extra) table column somewhere....

I would go through the templates and count them up to make sure they all match...

atomic fireball 06-05-2003 09:05 AM

Ah.....this hack is simply the gift that keeps on giving. I love it, thanks!

We just installed it over on our brand new forum, it looks great:
http://www.thedigitalreview.com/forum/

Jason, thanks for the heads up about adding an index to post.dateline and thread.lastpost as well. We did that too.

Awesome hack, I really like it.

saj 06-16-2003 12:01 PM

will this work on vb2.3.0????

eoc_Jason 06-16-2003 01:30 PM

I'm running 2.3.0 and it works great for me.... (Note my post above about additional indexes, otherwise if you have a large forum it will slow it to a crawl)

jclay 06-16-2003 03:05 PM

Fantastic hack, truly brilliant.

Thanks!!! :)

spick 06-17-2003 05:48 PM

nice. but no avatar shows up for new users.

atomic fireball 06-17-2003 06:19 PM

[QUOTE]Today at 11:48 AM spick said this in Post #413
nice. but no avatar shows up for new users.

spick 06-17-2003 06:26 PM

yea. i did that. still nothing.

Buczilla 06-18-2003 01:48 AM

AWESOME HACK!!!

ogden2k 06-25-2003 09:24 PM

Will this be re-done for vB 3?

trilOByte 07-05-2003 04:51 PM

[QUOTE]06-25-03 at 11:24 PM ogden2k said this in Post #417
Will this be re-done for vB 3?

atomic fireball 07-05-2003 06:21 PM

[QUOTE]Today at 10:51 AM trilOByte said this in Post #418
I'm thinking about it. ;) :D

SirSteve 07-05-2003 07:35 PM

Newest posts/threads part works but the avatar part doesn't (for vb3).

trilOByte 07-05-2003 07:40 PM

Yeah, I'll update it. There are a lot of excellent suggestions for updates from loads of people that can be used. Just waiting for vB3 final to be realeased so we know what templates we are dealing with. I'll see if I can figure out why the avatar code isn't working in the meantime. Though it doesnt surprise me that it doesnt work for vB3 as so much has changed.

SirSteve 07-06-2003 01:15 PM

Oh, I just realized that the "since your last visit" part works on the forum home page but none of the other pages since vb3 has that part on all the other pages now.

trilOByte 07-06-2003 04:14 PM

Yeah, ther's a lot that's changed. Not just the way vB3 handles the call for avatars.

It'll need some thought. Might be an idea to make the navbar with the breadcrumbs and a wel;come panel into one. Not sure if it would be good to see your avatar and all that info on ever page though.

Also... all those "temprary" buttons will likely turn into something or be removed. Another reason for waiting for the final release.

SirSteve 07-06-2003 09:40 PM

Yeah, avatar and the new posts/threads on every page wouldn't be right... I moved the "View New Posts" over next to new posts/threads and made it a text link.

G.I.JOE?MFA? 07-11-2003 07:21 AM

i use vBPortal 3.0b and vB 2.3.0 and wanted the welcome (it worked fine in 2.28 b4 vBPortal was isntalled) it works fine but the avatar isnt being displayed

any fix for that?

VBPortal 3.0b and vB 2.3.0 with welcome panel

heres the site http://dfmafia.net/forums

G.I.JOE?MFA? 07-14-2003 05:13 AM

nm i found it and fixed it

Oblivion Knight 07-14-2003 08:04 AM

[QUOTE]05-01-03 at 07:18 PM eoc_Jason said this in Post #402
Oh yeah, btw.... I was experienceing forum slowdown's, especially during peak time, and it was the worst on the forumhome... well I ran the sql explain stuff and found out that the line:

PHP Code:

$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'"); 

was causing a major slowdown because there was no index on post.dateline, if you add an index on it (and thread.lastpost for good measure since it has a similar query) you should see a nice speed improvement, especially if you have a good number of posts (my forum is approaching 400,000).

Courage 07-16-2003 08:45 PM

Greate hack.

I modified a lot my Forum Home.

Something useful for you all:

Simple search

On Forumhome template add this whre you want:

Code:


        <form action="http://www.softnews.ro/forum/search.php" method="post" target="_blank">
       
                <input type="hidden" name="s" value="$session[sessionhash]">
                <input type="hidden" name="searchdate" value="-1">
                <input type="hidden" name="beforeafter" value="after">
                <input type="hidden" value="0" name="showposts">
                <input type="hidden" name="action" value="simplesearch">
                <input type="text" class="bginput" name="query" onfocus="this.value='';" onblur="if(this.value=='') this.value='username'"> $gobutton<br>
<a href='search.php' target='_blank'>Advanced search</a>
        </form>

Here is the demo:
http://www.softnews.ro/forum/

Also see the attached file

Cal Poly Forum 07-18-2003 04:50 PM

edited. :banana:

Hostc 07-26-2003 09:57 PM

Hello,


I have a little problem with this welcome panel..




The online users stuff is messed up


This is my forumhome code

Code:

{htmldoctype}
<html>
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="no-cache">
        <meta http-equiv="Expires" content="-1">
        <meta http-equiv="Cache-Control" content="no-cache">
        <!-- end no cache headers -->
        <meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
        <meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ .">
        <title>$bbtitle - powered by vBulletin</title>
        $headinclude
</head>
<body>
$header

<!-- text -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
        <td><a href="javascript:window.location=window.location"><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion"></a>
        <normalfont><b>$bbtitle</b></normalfont></td>
</tr>
</table>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="bottom">
        <td><smallfont>
        Members: $numbermembers, Threads: $totalthreads, Posts: $totalposts<br>
        Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
        </smallfont></td>
</tr>
</table>
<!-- /text -->
<!-- welcomepanel -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center">
<tr>
        <td>
        <table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
        <td bgcolor="{categorybackcolor}" colspan="6"><normalfont color="{categoryfontcolor}"><b>Welcome</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{secondaltcolor}" align="center" valign="top" width="100">$avatarimage</td>
        <td bgcolor="{firstaltcolor}">
        <smallfont>
          $unregwelcomemessage
          $welcometext<br>
          The time now is $timenow.<br>
          You last visited: $bbuserinfo[lastvisitdate].<br>
          <b>$newposts</b>
        </smallfont>
        </td>
        <td bgcolor="{secondaltcolor}" align="center" valign="middle" width="300">
        $logincode
        </td>
</tr>
        $pminfo
</table>
</td></tr></table>
<!-- /welcomepanel -->
<br>
<!-- begin custom front page tables -->
<table background="{imagesfolder}/cat_back.gif" border="0" cellpadding="0" cellspacing="0"  width="{contenttablewidth}" height="27" align="center">
  <tr id="cat">
    <td width="170" height="27" align="left" valign="top">
    <img border="0" src="{imagesfolder}/firmament_front_table_top_ls.gif" width="170" height="27"></td>
    <td width="100%" height="27" valign="middle">
    <p align="center"><a class="title" href="online.php?s=$session[sessionhash]">
        <smallfont><b>Users Online</b></smallfont></a></td>
    <td width="170" height="27" align="right" valign="top">
    <img border="0" src="{imagesfolder}/firmament_front_table_top_rs.gif" width="170" height="27"></td>
  </tr>
</table>


<!-- main -->
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">

$forumbits
$loggedinusers
</table>
</td></tr></table>




  <!-- bottom table setup -->
    <table height="14" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="60" height="14" align="left" valign="top">
        <img src="{imagesfolder}/ls_main_table_bottom.gif" width="60" height="14"></td>
        <td height="14" width="100%" background="{imagesfolder}/extended_main_table_bottom.gif"><img src="{imagesfolder}/clear.gif" width="100%" height="14"></td>
        <td width="44" height="14" align="right" valign="top">
            <img border="0" src="{imagesfolder}/rs_main_table_bottom.gif" width="60" height="14"></td>
      </tr>
    </table>
  <!-- End bottom table setup -->

<!-- /main -->

$pminfo
<br>

<!-- timezone/login-->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
  <td><smallfont>$timezone</smallfont></td>
  <td align="right">$logincode</td>
</tr>
</table>
<!-- /timezone/login -->

<br>

<!-- icons -->
<table cellpadding="10" cellspacing="0" {tableinvisibleextra} align="center" style="border: 1px solid #0A0E1D; background-color: #161E38;">
<tr>
        <td align="center">
        <img src="{imagesfolder}/on.gif" border="0" alt="On" align="absmiddle">
        <b><smallfont>New posts</smallfont></b>
        &nbsp;&nbsp;
        <img src="{imagesfolder}/off.gif" border="0" alt="Off" align="absmiddle">
        <b><smallfont>No new posts</smallfont></b>
        &nbsp;&nbsp;
        <img src="{imagesfolder}/lock.gif" border="0" alt="Closed Forum" align="absmiddle">
        <b><smallfont>A closed forum</smallfont></b>
        </td>
</tr>
</table>
<!-- /icons -->

$footer
</body>
</html>


SirSteve 08-06-2003 04:06 PM

Anyone get anywhere with this for 3.0?

trilOByte 08-06-2003 04:27 PM

One has already been released for 3 that is as good (better actually) than anything I could make. It's also a template mod, with no hacking of php files, sports all the features of the original etc.

Find it here:
http://www.vbulletintemplates.com/mo...ead.php?t=4066

[BA]Techie 08-12-2003 01:56 AM

Does this work with 2.3.0?

GoTTi 08-21-2003 06:30 PM

n/m problem fixed

StrykerContact 08-24-2003 07:18 AM

Works great, very simple to install. Thanks a lot man :)

Cal Poly Forum 08-25-2003 12:15 AM

How can we put a gap between Welcome to the newest member and the Welcome Panel?

shishkabob 08-25-2003 08:25 PM

oy, nvm.

Buczilla 08-26-2003 07:47 PM

[QUOTE]08-24-03 at 09:15 PM Cal Poly Forum said this in Post #436
How can we put a gap between Welcome to the newest member and the Welcome Panel?

m_k 08-27-2003 07:45 AM

Great Hack!

Lots of user requests for login at top of page, and this is the perfect solution... thanks for the good work :-)

http://www.expat.ru/forum/

cerebro 09-23-2003 06:39 PM

There is some update for the version 2.3.0 ?

Becauso my index.php is too slow, and the MySQL process is overload when someone access to the Home Forum...maybe is something wrong whith Welcome Panel and vb 2.3.0

http://foro.alkon.com.ar/


All times are GMT. The time now is 01:11 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.01747 seconds
  • Memory Usage 1,843KB
  • 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
  • (3)bbcode_php_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