vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to get the info about subforums (https://vborg.vbsupport.ru/showthread.php?t=216640)

emath 06-20-2009 06:19 PM

how to get the info about subforums
 
hey,
im using VBADVANCED and ive created tables on the main page which showing all the forums and subforums..
but i want that when the user moving the mouse over the forum link he will get the forum info (means: forum description, num threads, num msgs etc..)

any idea ?

Dismounted 06-21-2009 05:23 AM

Assuming you know how to code PHP and work your head around vBA's modules, you can add a "title" attribute to the link, and inside that attribute, place information about the forum. The information can be fetched from the forumcache in the datastore.

emath 07-27-2009 01:11 PM

this is what i ask, how do i fetch the information from the forumcache ?
when i write the variables like "$vbphrase[threads]: $totalthreads,", its ofcourse, not working.

Dismounted 07-28-2009 10:28 AM

The forumcache can simply be accessed using $vbulletin->forumcache. Do a print_r() on the array to see what it contains.

emath 07-28-2009 03:41 PM

im sry but im rly noob with this ..

ive created a "bb code" with the VB ADVANCED , now i wrote the simple html code :

Code:

<table cellspacing="0" border="0" width="100%"  align="center" cellpadding="5">
<tr name="2">
<td align="right"><a href="/forums/forumdisplay.php?f=15">https://vborg.vbsupport.ru/external/2009/07/5.png&nbsp;מכניקה</a></td></tr>
<tr name="3"><td align="right"><a href="/forums/forumdisplay.php?f=16">https://vborg.vbsupport.ru/external/2009/07/5.png&nbsp;חשמל</a></td></tr>
<tr name="4"><td align="right"><a href="/forums/forumdisplay.php?f=17">https://vborg.vbsupport.ru/external/2009/07/5.png&nbsp;קרינה וחומר</a></td></tr>
<tr name="5"><td align="right"> <a href="/forums/forumdisplay.php?f=26">https://vborg.vbsupport.ru/external/2009/07/5.png &nbsp;מעבדה</a></td></tr></table>

now, i want to add a description to the links, (using the 'title' property of the tag <a> )
sure, not to write directly the description.. but "$vbphrase[threads]: $totalthreads" for e.g..

so how im doing it ?

thanks alot.

--------------- Added [DATE]1248864850[/DATE] at [TIME]1248864850[/TIME] ---------------

any help please?

emath 07-29-2009 10:04 PM

still asking for help..?

emath 08-03-2009 05:21 AM

guys this is really important to me, plz help..

Lynne 08-03-2009 02:44 PM

I am not that familiar with vbadvanced (I don't use it), but somewhere in your module, you need to access the forumcache as Hanson said in order to get the info you want. Have you added that code to your module?

emath 08-04-2009 09:31 AM

yes i know,
"somehow" : this is exactly what i need u guys to tell me how to do.

how do i add the code so i could access the forumcache as u guys said .

Marco van Herwaarden 08-04-2009 10:03 AM

For help with writing a vBAdvanced module you should ask at their site.


All times are GMT. The time now is 07:07 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.01181 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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