The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
usercp data on a custom page?
hi
i created a custom template like this, and im trying to put subscribed forums on it. once thats done i'd want to create such templates to display other usercp data as well. i found the subscribed forums piece in usercp template: Code:
<vb:if condition="$show['forums']"> <!-- ############## SUBSCRIBED FORUMS ############## --> <div class="block" id="new_subscribed_forums"> <h2 class="blockhead">{vb:rawphrase subscribed_forums}</h2> <ol class="blockbody settings_form_border" id="forumlist"> {vb:raw forumbits} </ol> </div> <!-- ############## END SUBSCRIBED FORUMS ############## --> </vb:if> i assume i need to find that show forums conditional and adjust it, but i don't know how to do it. any input very genuinely appreciated |
#2
|
|||
|
|||
You need to set $forumbits and register it to your template. You can see what's done for the usercp by looking at usercp.php, specifically the part that starts with the comment "start subscribed forums".
|
#3
|
|||
|
|||
thank you very much!
trying to figure it out |
#4
|
|||
|
|||
thank you very much for your help, i created the custom page this way instead, all works wonderfully except for one silly thing:
the subscribed forums block is missing some css: no spacing, no padding, no borders between rows, and theres a link saying "Unsubscribe from this forum" instead of the unsubscribe image that shows on forumhome. forum icons, background, and font family/size/color are fine. im so close yet not quite there - very much hope for your kindness in spotting the piece im missing this is my template, custom_subscribed_forums: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
found it, here:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|