vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Latest Paid Subscribers v1.1 (https://vborg.vbsupport.ru/showthread.php?t=128735)

paul41598 10-09-2006 10:00 PM

Latest Paid Subscribers v1.1
 
Latest Paid Subscribers v1.1 (LITE VER) :)

- This Hack Does Use The Usergroups Markup Color For A More Accurate Display Of Subscription Members!! This Hack Has It All!

Description:
This hack is fully functional and flexible allowing you to display the latest [x] subscribers on your forumhome! It also allows you to display a reminder/alert to your users who's subscriptions are expiring.

Features: (Lite Version)
  • Activate The System (Latest Paid Subscribers)
  • Select The Number Of Subscribers To Show On ForumHome

Features: (Premium Version Only)
  • Activate The System (Latest Paid Subscribers)
  • Select The Number Of Subscribers To Show On ForumHome
  • Display A Reminder/Alert Window To Warn Subscribers When Their Subscription Is Up
  • Select The Number Of Days Before That Reminder Shows
  • Never Show This Again For Reminder Alert!
  • Allow The Subscriber Info In The Title HoverOver Or Turn It Off
  • Select A Date Format For That HoverOver

Installation:
1.) 1 Template Edit
2.) 1 Product Upload
3.) Enjoy Release

Bug Fixes:
Allow Subscriber Info In HoverOver Never Worked - FIXED
Activate Latest Paid Subscribers Only Deactivated The Users, Not The Phrases Or Expiry Alert. - FIXED
SQL Bugs. - FIXED

Notes:
- Adds 1 extra query
- Premium Version Of Hacks Found Here

If you find any bugs, have comments, questions feel free to post them. I'll do my best to accomidate anything.
Disclaimer: Any modification to this hack, must get prior consent/authorization by me first.

steelerwatch 10-10-2006 12:28 PM

Nice - but could you work something up that recognizes recrurring contributors as well? This only displays brand new contributors.

Distance 10-10-2006 02:22 PM

yeah true, its the whole

'special offer to new customers'

thing again

paul41598 10-10-2006 02:34 PM

we'll see, maybe in th next version

Quarterbore 10-10-2006 03:48 PM

I HAD a strange error from vB 3.6.0...

Problem resolved as posted below

Snake 10-10-2006 04:52 PM

Wow that is great!

rmxs 10-10-2006 07:04 PM

Installed and works :)

thanks

oberheimhaven 10-10-2006 08:15 PM

had huge sql error uninstalled!! Ouch

Quarterbore 10-10-2006 08:23 PM

OK, I got help from paul41598 on this but by changing the Latest Paid Subscribers pluggin to as follows this works 100% on my site (tested in 3.6.0. and 3.6.1.)


PHP Code:

// plugin by Paul41598

if ($vbulletin->options['latest_paid_subscribers_reminder_on'])
{    
if (
$vbulletin->userinfo['userid'] AND !$_COOKIE['lpscookie']) {
$alertdays $vbulletin->options['latest_paid_subscribers_warndays'];
$day1 = (TIMENOW + ($alertdays 86400));
$getexpirers $vbulletin->db->query_read("
SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM " 
TABLE_PREFIX "subscriptionlog AS subscriptionlog, " TABLE_PREFIX "subscription AS subscription
LEFT JOIN " 
TABLE_PREFIX "user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = "
.$vbulletin->userinfo['userid']." AND subscriptionlog.expirydate < $day1
ORDER BY subscriptionlog.expirydate ASC LIMIT 5"
);


    while(
$getexpirer $vbulletin->db->fetch_array($getexpirers))
    {
      
$expiryremaining round((($getexpirer['expirydate'] - TIMENOW)/86400),2);
    
$expirytitle $getexpirer['title'];
    
$expirydate vbdate('F jS, Y'$getexpirer['expirydate']);
    eval(
'$expiryalert .= "' fetch_template('expirydatebits') . '";');
    }
}
}

if (
$vbulletin->options['latest_paid_subscribers_on'])
{        
$show['subscribers'] = true;
$max $vbulletin->options['latest_paid_subscribers'];

$getsubscribers $vbulletin->db->query_read("
SELECT subscriptionlog.userid, subscriptionlog.status, subscriptionlog.regdate, subscriptionlog.expirydate,
user.userid, user.username, user.usergroupid, displaygroupid,
usergroup.usergroupid, usergroup.title,
groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "subscriptionlog AS subscriptionlog
LEFT JOIN " 
TABLE_PREFIX "user as user ON (subscriptionlog.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as usergroup ON(user.usergroupid = usergroup.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE subscriptionlog.status != '0' ORDER BY subscriptionlog.regdate DESC LIMIT 0, 
$max");


if (
$vbulletin->db->num_rows($getsubscribers) > 0)
{
    
$count 0;
    while(
$getsubscriber $vbulletin->db->fetch_array($getsubscribers))
    {
       
        
$getsubscriber['opentag'] = $getsubscriber['opentagb'] ? $getsubscriber['opentagb'] : $getsubscriber['opentaga'];
        
$getsubscriber['closetag'] = $getsubscriber['closetagb'] ? $getsubscriber['closetagb'] : $getsubscriber['closetaga'];

if (
$vbulletin->options['latest_paid_subscribers_dateselect'])
        {
        
$expireson vbdate($vbulletin->options['latest_paid_subscribers_dateselect'], $getsubscriber['expirydate']);
        }
else {
        
$expireson vbdate($vbulletin->options['dateformat'], $getsubscriber['expirydate']);
     }

if (
$vbulletin->options['latest_paid_subscribers_hoverover']) {
        
$subscribers[$count] .= "<a href=\"member.php?" $vbulletin->options[sessionurl] . "u=$getsubscriber[userid]\" title='$getsubscriber[username] Subscription Expires On: $expireson'>";
        
$subscribers[$count] .= $getsubscriber['opentag'].$getsubscriber['username'].$getsubscriber['closetag']."</a>";
        
$count++;
        }
    else {
        
$subscribers[$count] .= "<a href=\"member.php?" $vbulletin->options[sessionurl] . "u=$getsubscriber[userid]\" title='$getsubscriber[title]'>";
        
$subscribers[$count] .= $getsubscriber['opentag'].$getsubscriber['username'].$getsubscriber['closetag']."</a>";
        
$count++;
    }    

    }
    
    
$showsubscribers implode(", "$subscribers);
    unset(
$count$getsubscriber$max);
    @
mysql_free_result($getsubscribers);
}


The difference is in these TWO lines of code!

PHP Code:

LEFT JOIN " . TABLE_PREFIX . "user as user ON (subscriptionlog.userid user.userid
LEFT JOIN " . TABLE_PREFIX . "usergroup as usergroup ON(user.usergroupid usergroup.usergroupid

My site uses PHP 4.4.1. and MySQL 4.1.21 in case that helps debug this... but it works 100% with those two "As" terms included!

Oh yea, did you mean to have you help link in your hack go to Google (as opposed to here?)?

jgommel 10-10-2006 08:47 PM

Not sure if this a 3.6.2 issue, but I just intalled and now I'm getting database errors. If I deactivate the hack, I'm back to normal. I checked my Template edits... all there and correct according to the documentation.

Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.status, subscriptionlog.regdate, subscriptionlog.expirydate,
user.userid, user.username, user.usergroupid, displaygroupid,
usergroup.usergroupid, usergroup.title,
groupa.opentag as opentaga, groupa.closetag as closetaga,
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM vb_subscriptionlog AS subscriptionlog
LEFT JOIN vb_user ON (subscriptionlog.userid = user.userid)
LEFT JOIN vb_usergroup ON(user.usergroupid = usergroup.usergroupid)
LEFT JOIN vb_usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN vb_usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE subscriptionlog.status != '0' ORDER BY subscriptionlog.regdate DESC LIMIT 0, 5;

MySQL Error  : Unknown table 'user' in field list
Error Number : 1109
Date        : Tuesday, October 10th 2006 @ 03:35:33 PM
Script      : http://www.website.com/vb/
Referrer    : http://www.website.com/index.php
IP Address  : xx.xx.xx.xx
Username    : xxxxxxxx
Classname    : vb_database

and

Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.status, subscriptionlog.regdate, subscriptionlog.expirydate,
user.userid, user.username, user.usergroupid, displaygroupid,
usergroup.usergroupid, usergroup.title,
groupa.opentag as opentaga, groupa.closetag as closetaga,
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM vb_subscriptionlog AS subscriptionlog
LEFT JOIN vb_user ON (subscriptionlog.userid = user.userid)
LEFT JOIN vb_usergroup ON(user.usergroupid = usergroup.usergroupid)
LEFT JOIN vb_usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN vb_usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE subscriptionlog.status != '0' ORDER BY subscriptionlog.regdate DESC LIMIT 0, 5;

MySQL Error  : Unknown table 'user' in field list
Error Number : 1109
Date        : Tuesday, October 10th 2006 @ 03:36:30 PM
Script      : http://www.website.com/index.php
Referrer    : http://www.website.com/index.php
IP Address  : xx.xx.x.xx
Username    : xxxxxx
Classname    : vb_database

Site Stats:
Apache Server 1.3.37 (Unix)
PHP 4.4.4
MySQL 4.1.21
vBulletin 3.6.2
vBadvanced CMPS 2.2.0

Quarterbore 10-10-2006 08:53 PM

Quote:

Originally Posted by jgommel
Not sure if this a 3.6.2 issue, but I just intalled and now I'm getting database errors. If I deactivate the hack, I'm back to normal. I checked my Template edits... all there and correct according to the documentation.

Try the changes I needed... (they are posted)

I am curious if this code is on the correct hook?

This looks like a lot of work to be attached to Global start!

I moved mine to ForumHome_start and it works fine and this code is not getting executed with every page view on the site anymore!

jgommel 10-10-2006 09:26 PM

Thanks for the suggestion Quarterbore, but that didn't work. I'll just uninstall it for now and watch the thread for future releases, ot other solutions.

Thanks again!

Anarchy 10-10-2006 11:58 PM

Yes it's not working in 3.6.2

I get the same error.

paul41598 10-11-2006 12:33 AM

Ok, I've done some major troubleshooting tonight folks.

It seems as though by making the changes that jgommel & I have come up with, it does solve ALL issues. I actually did a series of tests.
  • Installed 3.6.2 vbulletin WITH NO TABLE PREFIXES (Fresh Install), then installed the hack. Worked flawlessly.
  • Installed 3.6.2 vbulletin WITH TABLE PREFIXES (Fresh Install), then installed the hack, and got database errors.

So the issue lies with all you guys who have table prefixes configured in your database, via the config.php file.

I then made the above changes to my XML product, reimported and it worked fine. This hack WILL work on 3.6.1 & 3.6.2. If it's not, you have some sort of special case, which I can examine further via PM.

Thanks again! ;)

Quarterbore 10-11-2006 01:54 AM

I'll ask again... Why do you have this hooked off Global Start? This is only used on ForumHome, right? It seems crazy to run this on every page users visit when it is only needed on that one page!

It works fine on my site relocated to ForumHome_start!

paul41598 10-11-2006 09:40 AM

Quote:

Originally Posted by Quarterbore
I'll ask again... Why do you have this hooked off Global Start? This is only used on ForumHome, right? It seems crazy to run this on every page users visit when it is only needed on that one page!

It works fine on my site relocated to ForumHome_start!

seems as though that might be a small bug. If it works on forumhome_start then that should be the preferred method. I'll have to update the zip file

Lionel 10-11-2006 10:16 AM

I had the same problem with everybody, but changing it as per the post fixes it

Since it's at global, I can use it on a vbadvanced page right, providing I put the variable in the vba globals?

paul41598 10-11-2006 12:42 PM

Ok everyone,

I've updated the XML file with the SQL bug fixes, and put it a more suitable hook location.

Please download the above zip file ( latest paid subscribers 1.1 update.zip )

Lionel 10-11-2006 02:22 PM

how would I go to make message appears on vbadvanced?

paul41598 10-11-2006 03:19 PM

Quote:

Originally Posted by Lionel
how would I go to make message appears on vbadvanced?

Now I've never created a vbadvanced module before, so bare with me. However, below is the module I created. I've tested and it seems to work on my forums. Just follow the directions and hopefully it will work for you too. ;)

rmxs 10-11-2006 05:42 PM

Maybe for the Reminder to dispayed in all pages

jgommel 10-11-2006 10:15 PM

Okay, this time around it installed just fine. Thanks for the update paul41598. I hope you don't mind, but because I'm meticulous about appearance and placement. I decided to code this into it's own FORUMHOME "What's Going On" box and remove it from within the "Currently Active Users" box.

For those who want to do the same, here's what I did...

Disregard Step 1 (Edit Templates) in paul41598's instructions and instead, do this...

Template Name: forumhome

Find:
PHP Code:

<!-- end logged-in users -->
</if> 

Add below:
PHP Code:

<!-- Latest Paid Subscribers -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
        <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('paid_subscribers')"><img id="collapseimg_paid_subscribers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_paid_subscribers].gif" alt="" border="0" /></a>
        <
phrase 1="$show[subscribers]">$vbphrase[last_paid_subscribers_display]</phrase>
    </
tr>
</
tbody>
<
tbody id="collapseobj_paid_subscribers" style="$vbcollapse[collapseobj_paid_subscribers]">
    <
tr>
        <
td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Paid Subscribers" border="0" /></td>
        <
td class="alt1" width="100%"><div class="smallfont">$showsubscribers</div></td>
    </
tr>
</
tbody

Find:
PHP Code:

$navbar 

Add Below:
PHP Code:

<if condition="$show['subscribers']">$expiryalert</if> 

Continue with Step 2 (Load The Product)

I'm going to look at your vBAdvanced module too and see if there's anything else I can do to it as well.

Thanks!

whitetigergrowl 10-11-2006 11:03 PM

Quote:

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM vb_subscriptionlog AS subscriptionlog, vb_subscription AS subscription
LEFT JOIN vb_user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = 1 AND subscriptionlog.expirydate < 1163203283
ORDER BY subscriptionlog.expirydate ASC LIMIT 5;

MySQL Error : Unknown column 'subscriptionlog.userid' in 'on clause'
Error Number : 1054
Date : Wednesday, October 11th 2006 @ 07:01:23 PM
Script : http://www.mywebsite.com/community/index.php
Referrer : http://www.mywebsite.com/community/a...ex.php?do=head
IP Address : *********
Username : ********
Classname : vB_Database
Sensite info blocked out. I have followed this to a T and this is the sql error I recieve. I use php and sql 5+.

jgommel 10-11-2006 11:10 PM

Did you download 'latest paid subscribers 1.1.zip' or 'latest paid subscribers 1.1 update.zip'

Uninstall the one on your vBulletin board and then Download the 'latest paid subscribers 1.1 update.zip' from here and install this one.

Lionel 10-12-2006 12:43 AM

Quote:

Originally Posted by paul41598
Now I've never created a vbadvanced module before, so bare with me. However, below is the module I created. I've tested and it seems to work on my forums. Just follow the directions and hopefully it will work for you too. ;)

Thanks. I kept it at global hook and simply put the variable in vbadavanced global

whitetigergrowl 10-12-2006 02:19 AM

Quote:

Database error in vBulletin 3.6.2:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM vb_subscriptionlog AS subscriptionlog, vb_subscription AS subscription
LEFT JOIN vb_user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = 1 AND subscriptionlog.expirydate < 1163215075
ORDER BY subscriptionlog.expirydate ASC LIMIT 5;

MySQL Error : Unknown column 'subscriptionlog.userid' in 'on clause'
Error Number : 1054
Date : Wednesday, October 11th 2006 @ 10:17:55 PM
Script : http://www..com/community/index.php
Referrer : http://www..com/community/admincp/index.php?do=head
IP Address :
Username :
Classname : vB_Database
Tried both. This is the error with the update one. (Minus sensitive info)

TVNettet 10-12-2006 04:09 AM

Tried both your files, got db error on vb3.6.2 Read about your fresh install, unfortunately have too much stuff already installed to go through all of those again, but nice try all the same.
Had a similar product working in earleir vB version and it was gr8!!
I'll keep an eye out for any updates you release...

Quarterbore 10-13-2006 12:25 PM

If you don't mind... I would like some help changing the hover from the "Subscription Expires On DATE" to a message that says "Subscription to "SUBSCRIPTION NAME" on DATE"

For new subscribers, it isn't urgent that they resubscribe... but I would like to recognize them for their contribution as I have several levels of contributor!

Also, I tried to move the pluggin code for the subscription expiring to a new pluggin and I hooked it to global_start. Then I used the template change and added the notification to SHOWTHREAD template.

It works for a base install but it will not work on my site because of the way I use vbAdvanced (my site is linked below). I'll figure it out one of these days...

scottct1 10-18-2006 03:10 PM

How do I set the message shown to users when there subscription is about to expire.

I searched for the phrase expiryalert and did not find anything.

paul41598 10-18-2006 05:41 PM

Quote:

Originally Posted by scottct1
How do I set the message shown to users when there subscription is about to expire.

I searched for the phrase expiryalert and did not find anything.

Its in the template "expirydatebits"

Robbed 10-18-2006 11:47 PM

The link to edit the phrase doesn't work.

us44ever 10-19-2006 08:37 PM

paul41598
what about 3.5.4 ?
there is no support or any assistance and still have the same problem in the databese.
please i need this hack , could you help me with that .
with regards

sunnycher 10-27-2006 05:37 AM

Installed! THANK YOU!!

Now if I could just figure out how to get my what's going on box at top instead of the bottom! lol

dennisuello 11-27-2006 05:25 PM

Quote:

Originally Posted by whitetigergrowl (Post 1095090)
Tried both. This is the error with the update one. (Minus sensitive info)

I get the same error
Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:

SELECT subscriptionlog.userid, subscriptionlog.subscriptionid, subscription.subscriptionid, subscriptionlog.expirydate,
user.userid, user.username
FROM vb3_subscriptionlog AS subscriptionlog, vb3_subscription AS subscription
LEFT JOIN vb3_user AS user ON (subscriptionlog.userid = user.userid)
WHERE subscriptionlog.status != '0' AND subscriptionlog.subscriptionid = subscription.subscriptionid AND user.userid = 1 AND subscriptionlog.expirydate < 1167247465
ORDER BY subscriptionlog.expirydate ASC LIMIT 5;

MySQL Error : Unknown column 'subscriptionlog.userid' in 'on clause'
Error Number : 1054
Date : Monday, November 27th 2006 @ 11:24:25 AM
Script : http://www.reno4x4.com/forum/
Referrer : http://www.reno4x4.com/
IP Address : ******
Username : ******
Classname : vB_Database

dennisuello 11-27-2006 05:40 PM

I selected No for the "Display Reminder Window for Subscribers (ForumHome)?" option, and now forumhome works. But I would like the reminder to work too.

Bounce 12-10-2006 07:21 PM

Quote:

Originally Posted by Robbed (Post 1099836)
The link to edit the phrase doesn't work.

Yip same here..Running 3.6.4 ... also if you have more than 5 selected it takes the width of the forums way beyond what it should be and you need to scroll instead of starting a new line?

Great Hack thou ..

*Installed*

Quote:

Originally Posted by sunnycher (Post 1105328)
Installed! THANK YOU!!

Now if I could just figure out how to get my what's going on box at top instead of the bottom! lol

http://www.vbulletin.com/forum/showp...02&postcount=4

Quote:

Originally Posted by simsim (Post 1240702)
AdminCP => Styles & Templates => Style Manager => <>

Then choose the FORUMHOME template, which you'll find under Forum Home Templates.

There, search for the code that indicates the begininng & end of the What's Going on box. It should begin like this:
Code:

<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>
        </td>
    </tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            $vbphrase[todays_birthdays]
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <tr>
        <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

Cut that code at of your FORUMHOME template & put right under $navbar.
Code:

</head>
<body>
$header
$navbar

PUT IT HERE

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>

My What's Going On box is modified so yours might not look the same, but be sure to copy all code between <!-- what's going on box --> &<!-- end what's going on box --> comments.


Caerydd 12-30-2006 07:32 AM

This looks like a great hack, but is there any update on those sql errors and such like, and also the issue about a forumhome only query? I don't need this to be a global call.

And yes, I am aware of the previous discussion, but subsequent posts also report errors, and I prefer to work from the main installation post knowing that it is a relatively stable hack.

paul41598 12-30-2006 11:09 PM

the updated zip file has the hook location at forumhome. The hack works.

b.t.w, for those who cant edit the phrase directly through the hyperlink, you can fix it by editing the phrase: (setting_latest_paid_subscribers_desc)

and change:

&e[1]

to:

&e[global]

bada_bing 01-18-2007 01:49 AM

Does this hack work with vb 3.6.4 ?

Raptor 01-19-2007 05:56 AM

works great on 3.6.4


All times are GMT. The time now is 04:54 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.03270 seconds
  • Memory Usage 1,954KB
  • 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
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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