The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to make plugin to display picture count...
How to make plugin to display picture count on members profile, instead of the statistics block?
|
#2
|
||||
|
||||
What picture count? And what statistics block? I really don't know what you are asking - an image may help here.
|
#3
|
||||
|
||||
Hi
Well, actually on a default memberinfo page, there are tabs and blocks, the tabs have that statistics block, there you can see post count, threads, albums pictures... but if I take the line wich is actually "$block_data[albumcount]" for albums or "$block_data[picturecount]" for pics and paste it on any other part of the memberinfo template because I dont use the statistics tab, then it doesnt display any picture count... I had requested a feature like this for a mod called "gifts" to display gifts count on postbit and they made me a plugin and a variable to paste and worked, the plugin looks very simple but having the knowledge of course... any help I will appreciate Lynne :up: |
#4
|
||||
|
||||
You probably need to use the variable $userinfo[albumcount]. If that doesn't work, try $prepared[albumcount].
|
#5
|
||||
|
||||
None worked.. Usually what a small plugin like that should consist in?
|
#6
|
||||
|
||||
If that variable isn't available, then I would guess that the plugin would do the code or query to create the variable. In album.php, there is a query to get the albumcount on line 1887. Or actually, the count for the member page is defined around line 2044 in class_profileblock.php, so you might be able to use that code for it. I'm really don't know though.
|
#7
|
||||
|
||||
looks close, ill try few things with those codes, thanx for your help Lynne :up:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|