vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vbadvanced module/ vbulletin global ? (https://vborg.vbsupport.ru/showthread.php?t=152875)

Vizionz 07-20-2007 06:57 PM

vbadvanced module/ vbulletin global ?
 
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>

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


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

Quote:

Originally Posted by Vizionz (Post 1297338)
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
Code:

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


All times are GMT. The time now is 12:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01277 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete