The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Welcome Panel Template Rewrite Details »» | |||||||||||||||||||||||||
Introduction:
When I first installed Zero Tolerence's Welcome Panel, I found that it had a lot of mistakes on my computer. I set out to make a new template for the hack - and I succeeded. This template is my rewrite of Zero Tolerence's hack. This Hack Made Possible By Zero Tolerance Please Remove Zero Tolerance's Plugins When Upgrading from a Previous Version! Hack Requirements: This hack has one requirement:
Installation is a breeze! Follow these simple steps:
Feature Lists: Support for v1.x has been dropped. v2.2.0
Users have reported that there is a conflict with this modification: https://vborg.vbsupport.ru/showthread.php?t=122995 Change Log: v3.0.5: May 16, 2007 - New Features & Improved Code v3.0.4: March 23, 2007 - Bug Fix - new auto version update. v3.0.3: Immediately released to replace 3.0.2 to add the correct template. v3.0.2: Bug Fix, immediately removed from download v3.0.1: Bug Fix v3.0.0: Initial Release of 3.0.0 Supporters / CoAuthors Show Your Support
|
Comments |
#402
|
||||
|
||||
Quote:
|
#403
|
||||
|
||||
There is a patch on one of these pages. I really should link to it.
|
#404
|
||||
|
||||
It's here: https://vborg.vbsupport.ru/showpost....&postcount=151
I just tried it and got the same error?? Quote:
|
#405
|
||||
|
||||
Can you post your Main Plugin?
|
#406
|
||||
|
||||
Welcome Panel - Main
Code:
if ($vbulletin->userinfo['userid'] > 0 && $vbulletin->userinfo['userid'] != '' || !$vbulletin->userinfo['userid']) { 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($vbulletin->options['wp_forumimagelink'] . '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" alt="Edit Your Avatar" />'; $postsin = array(); $gp = $db->query_read("SELECT p.threadid, t.forumid FROM " . TABLE_PREFIX . "post p LEFT JOIN " . TABLE_PREFIX . "thread t ON(t.threadid = p.threadid) WHERE p.userid = {$vbulletin->userinfo['userid']}"); while ($gpb = $db->fetch_array($gp)) { if (!$postsin[$gpb['forumid']]) { $postsin[$gpb['forumid']] = 1; } else { $postsin[$gpb['forumid']]++; } } $active = array(0); if (is_array($postsin) && is_array($vbulletin->forumcache)) { foreach ($postsin as $forumid => $pi) { if ($pi > $active[0]) { $active = array($pi, $forumid); } } } 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; } $vbulletin->userinfo['posts'] = vb_number_format($vbulletin->userinfo['posts']); $jointime = (TIMENOW - $vbulletin->userinfo['joindate']) / 86400; if ($jointime < 1) { $vbulletin->userinfo['postsperday'] = $vbulletin->userinfo['posts']; } else { $vbulletin->userinfo['postsperday'] = vb_number_format(str_replace(',', '', $vbulletin->userinfo['posts']) / $jointime, 2); } $vbulletin->userinfo['postpercent'] = vb_number_format(((str_replace(',', '', $vbulletin->userinfo['posts']) / $exec_totalposts ) * 100),2); $vbulletin->userinfo['newposts'] = $db->query_first("SELECT COUNT(*) AS newposts FROM " . TABLE_PREFIX . "post WHERE dateline >= '{$vbulletin->userinfo['lastvisit']}' AND visible = '1'"); $vbulletin->userinfo['newposts'] = vb_number_format($vbulletin->userinfo['newposts']['newposts']); $vbulletin->userinfo['newthreads'] = $db->query_first("SELECT COUNT(*) AS newthreads FROM " . TABLE_PREFIX . "thread WHERE dateline >= '{$vbulletin->userinfo['lastvisit']}' AND visible = '1' AND sticky in(0,1)"); $vbulletin->userinfo['newthreads'] = vb_number_format($vbulletin->userinfo['newthreads']['newthreads']); $vbulletin->userinfo['lastvisit'] = vbdate($vbulletin->options['timeformat'], $vbulletin->userinfo['lastvisit']) . ', ' . vbdate($vbulletin->options['dateformat'], $vbulletin->userinfo['lastvisit']); $exec_lastposts = $db->query_first("SELECT COUNT(*) AS lastposts FROM " . TABLE_PREFIX . "post WHERE visible = 1 AND dateline >= ".(TIMENOW - 86400)); $exec_lastposts = vb_number_format($exec_lastposts['lastposts']); $vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache['forumhome_welcomepanel_' . $vbulletin->options['wp_style']],$vbulletin->templatecache['FORUMHOME']); } |
#407
|
||||
|
||||
Try...
PHP Code:
|
#408
|
||||
|
||||
Quote:
No luck. :/ It's good of you to care enough to help out. |
#409
|
||||
|
||||
This may sound stupid, but are you SURE that you have update the code? As the error is because of not adding a ' ' around the date.
|
#410
|
||||
|
||||
Sorry, I'm a clutz. I updated the wrong welcome panel. I did vBulletins rather than the WPTR plugin. So now it's displaying twice. Woo, go me!!
|
#411
|
||||
|
||||
Ah. That's cool. My tip off was the same exact error message. :P
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|