The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I was not talking about the template names, but about the id for your tab:
HTML Code:
<div id="view-photos" HTML Code:
<div id="view-mpphotos" PHP Code:
PHP Code:
|
#12
|
|||
|
|||
seconds just testing
pair with me kindly --------------- Added [DATE]1371405329[/DATE] at [TIME]1371405329[/TIME] --------------- I did to the code exactly as you said but it doesnt work???? --------------- Added [DATE]1371405422[/DATE] at [TIME]1371405422[/TIME] --------------- btw my vbulletin version is 4.2.0 --------------- Added [DATE]1371405498[/DATE] at [TIME]1371405498[/TIME] --------------- heeeeeeeeeeeeeeey it does work i really thank you from the deap of my small heart ur so helpful thank you too much --------------- Added [DATE]1371406675[/DATE] at [TIME]1371406675[/TIME] --------------- just any suggestions to make the if statements work as they are allocated with $block_data for example <vb:if condition="$block_data['albumbits2']"> |
#13
|
||||
|
||||
You would need to set that variable first:
$this->block_data['albumbits2'] = $albumbits2; |
#14
|
|||
|
|||
did it erlier when it wasnt working
seems to me I'm not that bad though or maybe Lynne is a good teacher dont know Thank You Again --------------- Added [DATE]1371408729[/DATE] at [TIME]1371408729[/TIME] --------------- sorrrry it is not working I did it now??? --------------- Added [DATE]1371411515[/DATE] at [TIME]1371411515[/TIME] --------------- I did this is not working PHP Code:
I did this still not working PHP Code:
|
#15
|
||||
|
||||
What exactly isn't working - the whole page?
|
#16
|
|||
|
|||
no the if statement everything working yet the if statements as well as the count variable I have registered it yet is not working
waiting for your solution many thanks in advance --------------- Added [DATE]1371496940[/DATE] at [TIME]1371496940[/TIME] --------------- Hey Lynne, It retrieves the albums yet if I add the if statements and set the variable of data_block as you said Quote:
the if statement is not working once I add it around the albums and buttons it displays that there is no album the template as follow PHP Code:
PHP Code:
I have tried all what you have suggested me yet is not working?? |
#17
|
||||
|
||||
Why are you not using this:
<vb:if condition="$albumbits2"> instead of this: <vb:if condition="$block_data['albumbits2']"> You know that $albumbits2 is defined and registered for use in that template, so why aren't you using it? |
#18
|
|||
|
|||
then why I'm setting this
$this->block_data['albumbits2'] = $albumbits2; ? I thought this is block data a permission array that holds permission for many things one of them albumbits2???? am I thinking in the right direction?? --------------- Added [DATE]1371564134[/DATE] at [TIME]1371564134[/TIME] --------------- also registered albumcount yet is not display as well as this variable is not display?? {vb:raw userinfo.userid} --------------- Added [DATE]1371564907[/DATE] at [TIME]1371564907[/TIME] --------------- trying randomly tried this vB_Template:reRegister('memberinfo_block_photos' , array('albumbits2' => $albumbits2)); vB_Template:reRegister('memberinfo_block_photos' , array('albumcount' => $albumcount)); vB_Template:reRegister('memberinfo_block_photos' , array('userinfo' => $userinfo)); vB_Template:reRegister('memberinfo_block_photos' , array('albums' => $albums)); |
#19
|
||||
|
||||
And what code did you add to your plugin to get the album count or userinfo - I don't see any code there to define those. And, $albums is not something you can use - it is the query, so it's just a pointer really.
As for why you are trying to use $block_data['albumbits2'], I don't know. If you are just trying to only add code if $albumbits2 exists, then I would use that variable. |
#20
|
|||
|
|||
Ok can you tell me how to display the album counts???
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|