vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - vbadvanced Links 2.0beta Number of contributed links in profile (https://vborg.vbsupport.ru/showthread.php?t=128616)

Spikeman 10-08-2006 10:00 PM

vbadvanced Links 2.0beta Number of contributed links in profile
 
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 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:
Code:

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

$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:

Quote:

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

Quote:

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


All times are GMT. The time now is 03:56 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.01720 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete