PDA

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


Spikeman
10-08-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/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
10-09-2006, 01:10 AM
Additional Content

eNforce
10-09-2006, 01:21 AM
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
10-09-2006, 01:31 AM
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
10-09-2006, 07:28 AM
links/browselinks.php?do=member&linkuserid=$userinfo[userid]

I linked them