Log in

View Full Version : vbadvanced module/ vbulletin global ?


Vizionz
07-20-2007, 06:57 PM
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.

<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>

what would i need to add so it is able to get that info ?

Dismounted
07-21-2007, 05:25 AM
You should ask over at the vBAdvanced forums.

Vizionz
07-21-2007, 12:44 PM
yeah i guess so, but i figured alot of people that post there also check here as well.

sinisterpain
07-21-2007, 12:50 PM
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:
<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>

Vizionz
07-21-2007, 12:55 PM
yeah i know but if i didnt include the shell template it works as well :) besides the fact that neither will get the info though :P

sinisterpain
07-21-2007, 12:59 PM
yeah i know but if i didnt include the shell template it works as well :) besides the fact that neither will get the info though :P

Are you saying that its not being displayed on the home page or the code is not working within the template?

I also see some errors in your code and you need to call members.php like this in modules link{$vbulletin->options[bburl]}/member.php?$session[sessionurl]
I would also suggest you go to vbadvanced site and request help with creating modules

Vizionz
07-21-2007, 01:18 PM
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