PDA

View Full Version : Profile Enhancements - vbadvanced Links 2.0beta Number of contributed links in profile


Spikeman
09 Oct 2006, 02:09
This modification will add to a member's profile the number of links that they have contributed. It needs vbadvanced links 2.0 beta installed.

original idea from here (http://www.vbulletin.org/forum/showthread.php?p=1082368) which will work with vB3.6.1 and vBa Links 1.0.1

Installation
1. Import the attached plugin.
2. Add in the MEMBERINFO template

Find this:
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)

Replace with this:
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)<br>Links Contributed: $userlinks[count]

This has been tested with vB 3.6.2 using vBa CMPS 2.2.0 with vBa Links Directory 2.0beta

Spikeman
09 Oct 2006, 02:10
Additional Content

eNforce
09 Oct 2006, 02:21
First off, I had to edit the product file and change the name of the product because when trying to import the product via ACP it said the product 'vbulletin' already existed.

After I edited the name and installed it, I view a member's profile and recieve this:

Database error in vBulletin 3.6.2:

Invalid SQL:
SELECT COUNT(*) AS count FROM adv_links WHERE userid = '1' AND valid = 1;

MySQL Error : Table 'enforcer_bb.adv_links' doesn't exist
Error Number : 1146
Date : Sunday, October 8th 2006 @ 10:20:15 PM
Script : http://www.areyouserios.com/member.php?u=1
Referrer : http://www.areyouserios.com/
IP Address :
Username :
Classname : vB_Database

Spikeman
09 Oct 2006, 02:31
First off, I had to edit the product file and change the name of the product because when trying to import the product via ACP it said the product 'vbulletin' already existed.

changed and updated

Do you have Vba Links Directory 2.0 beta installed? Could not see it on your site?

Lionel
09 Oct 2006, 08:28
links/browselinks.php?do=member&linkuserid=$userinfo[userid]

I linked them