View Full Version : Minor Problem
joeychgo
11-16-2004, 09:12 PM
I have installed this hack List latest X paid subscribers on Forum Home (http://www.vbulletin.org/forum/showthread.php?t=65254&page=1&pp=15&highlight=paid+subscription)
I was tring to get a module on my homepage - but its not shoing the names. I know the hack is working cause its working on my forumhome page. Here is my module code thats giving me trouble:
<div><font color="#990000"><strong>A big thanks to the latest <a href="subscriptions.php">Gold
Members</a>: $thanks</strong></font></div>
You can see what its doing here (top right) Lincoln vs Cadillac Forums (http://www.lincolnvscadillac.com) THe problem is that its not shoing the lastes paid members like it should.
Can anyone help point out what im doing wrong??
nolnet
11-17-2004, 12:27 AM
I am having the same issue. I emailed the hack creator maybe I'll hear back. Please let me know if you figure it out.
Cheers!
Todd
Brian
11-17-2004, 12:56 AM
Can you post the code you have in the module and the template for that module?
joeychgo
11-17-2004, 01:42 AM
I have other stuff in the module - but you can decipher it easily-
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Support This Site!</b></span></td>
</tr>
<tr>
<td class="$getbgrow" > <p align="center"><font color="#990000" size="4" face="Arial, Helvetica, sans-serif"><strong>Support
LVC!</strong></font></p>
<p align="center"><strong><font face="Arial, Helvetica, sans-serif">Become
an </font></strong></p>
<p align="center"><strong><font face="Arial, Helvetica, sans-serif">LVC
Gold Member Today!</font></strong></p>
<p align="center"><strong><font face="Arial, Helvetica, sans-serif"><a href="http://www.lincolnvscadillac.com/index.php?page=Members_Area" target="_blank">Click
Here</a> </font></strong></p>
<div><font color="#990000"><strong>A big thanks to the latest <a href="subscriptions.php">Gold
Members</a>: $thanks</strong></font></div>
</td>
</tr>
</table>
<br/>
nolnet
11-17-2004, 09:48 AM
Here is my code from the adv_portal_stats template. The code in red is what I have added. I'm guessing I just need the right code to pass the $thanks variable to CMPS.
You can visit my site and see the hack is working fine in the forum stats listed in the footer.
www.okctalk.com
Thanks for looking into it!
<!-- Stats Block -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <phrase 1="$vboptions[hometitle]">
<font color="#FFFFFF">$vbphrase[x_statistics]</font></a></phrase></strong></span></td>
</tr>
<tr>
<td class="$getbgrow"><span class="smallfont">
$vbphrase[members]: $numbermembers<br />
$vbphrase[threads]: $totalthreads<br />
$vbphrase[posts]: $totalposts<br />
$vbphrase[top_poster]: <a href="$vboptions/member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a> ($topposter[posts])<br />
<br />
<phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]<br>
<br>
[B]Thanks to our latest subscriber!: </phrase>
</span><b>$thanks
</b><phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$newuserid" 2="$newusername"></phrase></td>
</tr>
<if condition="$birthdays">
<tr>
<td class="alt1"><span class="smallfont">
<b>$vbphrase[todays_birthdays]:</b><br /> $birthdays</span></td>
</tr>
</if>
</table>
<br />
<!-- End Stats Block -->
Brian
11-17-2004, 11:43 AM
What about the code for the php file that the module is using?
nolnet
11-17-2004, 11:50 AM
Here is the link to the hack.
LINK TO HACK ON VBULLETIN.ORG (http://www.vbulletin.org/forum/showthread.php?t=65254&highlight=latest+paid)
You edit three files and add two templates.
PHP edits:
1. 2 edits in index.php
2. 1 edit in includes/functions.php
3. 2 edits in includes/functions_subscriptions.php
Brian
11-17-2004, 11:54 AM
forum/includes/vba_cmps_include_bottom.php - Look for:
// Process Active Modules
Right Above that Add:
$thanks = $templatecache['thanks'];
nolnet
11-17-2004, 12:02 PM
I added the code still no luck :confused:
}
$thanks = $templatecache['thanks'];
eval('print_output("' . fetch_template('adv_portal') . '");');
}
Brian
11-17-2004, 12:07 PM
Sorry, sometimes my brain doesn't work so well. I just edited the post and changed the code to look for. That *should* work now.
nolnet
11-17-2004, 12:09 PM
You the man!
joeychgo
11-17-2004, 10:05 PM
:( I added the code and it still isnt working for me
nolnet
11-17-2004, 10:08 PM
I know what to look for now if you want I can take a look.
Cheers!
Todd
joeychgo
11-17-2004, 10:27 PM
ok -- look ???
joeychgo
11-19-2004, 06:33 PM
bumpo
joeychgo
11-21-2004, 04:51 PM
Help???
nolnet
11-21-2004, 04:55 PM
I will need your FTP info and vb admin info to look. Feel free to email directly and I can supply my phone if you want to converse before supplying the info. I am in Oklahoma City.
todd@okctalk.com
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.