The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
alright i am trying to create a module for vbadvanced and i can get it as the module but when it calls the template for the module it wont display the data even though i have it included in the forum index.
Code:
<table class="" cellpadding="3" cellspacing="1" border="0" width="170" align="center"> <thead> <tr> <td class="tcat">Site Statistics</td> </tr> </thead> <tbody> <tr> <td class="alt1"> <center> </center> <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]"> <tr> <td class="alt1" width="100%"> <div class="smallfont"> <div> Total Threads: $totalthreads<br /> Total Posts: $totalposts<br /> Total Members: $numbermembers<if condition="$show['activemembers']"><br /> <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span> </if> </div> <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> </div> </tbody> </td> </tr> </tbody> </table> |
#2
|
||||
|
||||
![]()
You should ask over at the vBAdvanced forums.
|
#3
|
|||
|
|||
![]()
yeah i guess so, but i figured alot of people that post there also check here as well.
|
#4
|
||||
|
||||
![]()
You do not need to create a table or use some of the html code you have supplied if you select to use the module shell in the template options.
your template should look as follows: Code:
<tr> <td class="alt1" width="100%"> <div class="smallfont"> <div> Total Threads: $totalthreads<br /> Total Posts: $totalposts<br /> Total Members: $numbermembers<if condition="$show['activemembers']"><br /> <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span> </if> </div> <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> </div> </td> </tr> |
#5
|
|||
|
|||
![]()
yeah i know but if i didnt include the shell template it works as well
![]() |
#6
|
||||
|
||||
![]() Quote:
I also see some errors in your code and you need to call members.php like this in modules link Code:
{$vbulletin->options[bburl]}/member.php?$session[sessionurl] |
#7
|
|||
|
|||
![]()
the code does not call the stats . the actual template shows up fine. it just dont call the data
i dont understand hooks i think it needs a hook or something to get that info or a include of some file |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|