View Full Version : how to get the info about subforums
emath
06-20-2009, 06:19 PM
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 :
<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 מכניקה</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 חשמל</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 קרינה וחומר</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 מעבדה</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 1248864850 at 1248864850 ---------------
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.