The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hello,
I already asked this question on the german forum, but nobody seemed to be able to help me. Maybe you can. Here's my problem: I want to list all favorite forums (those that you can see in the usercp) in a custom template. Somehow the vb: code doesn't work in my template like it does in the usercp. Do you have any idea what I'm missing? Here is my template: Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} {vb:raw clientscripts} <title>{vb:raw vboptions.bbtitle} - {vb:rawphrase forum_favorites}</title> </head> <body> {vb:raw header} {vb:raw navbar} {vb:raw template_hook.custom_favorites} <!-- ############## SUBSCRIBED FORUMS ############## --> <div class="block" id="new_subscribed_forums"> <h2 class="blockhead">{vb:rawphrase forum_favorites}</h2> <ol class="blockbody" id="forumlist"> {vb:raw forumbits} </ol> {vb:raw forumhome_markread_script} </div> <!-- ############## END SUBSCRIBED FORUMS ############## --> <div class="block" id="new_subscribed_forums"> <h2 class="blockhead">{vb:rawphrase forum_favorites}</h2> <ol class="blockbody" id="forumlist" style="text-align: center; font-weight: bold; font-size: 13px;"> <p>Sie haben keine Foren abonniert!</p> </ol> </div> {vb:raw footer} </body> </html> Regards, chris |
#2
|
||||
|
||||
![]()
All you've done is post a template which doesn't tell us anything. Where does the template get called? Did you write any custom code to go along with it?
|
#3
|
|||
|
|||
![]()
Hello,
the function i mean does already exist in the usercp(screenshot). I want to display the subscribed forums on a different page. PHP Code:
maybe there is an easier way to get the function into a custom template or even do it without a custom template. regards chris |
#4
|
||||
|
||||
![]()
If you are writing your own php page, you have no need to include a custom hook - just put your code directly in there.
|
#5
|
|||
|
|||
![]()
Ok thank you i will try this and post what my results are.
Regards, chris |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|