Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2009, 06:19 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 ?
Reply With Quote
  #2  
Old 06-21-2009, 05:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-27-2009, 01:11 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-28-2009, 10:28 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The forumcache can simply be accessed using $vbulletin->forumcache. Do a print_r() on the array to see what it contains.
Reply With Quote
  #5  
Old 07-28-2009, 03:41 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">&nbsp;מכניקה</a></td></tr>
<tr name="3"><td align="right"><a href="/forums/forumdisplay.php?f=16">&nbsp;חשמל</a></td></tr>
<tr name="4"><td align="right"><a href="/forums/forumdisplay.php?f=17">&nbsp;קרינה וחומר</a></td></tr>
<tr name="5"><td align="right"> <a href="/forums/forumdisplay.php?f=26"> &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?
Reply With Quote
  #6  
Old 07-29-2009, 10:04 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still asking for help..?
Reply With Quote
  #7  
Old 08-03-2009, 05:21 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

guys this is really important to me, plz help..
Reply With Quote
  #8  
Old 08-03-2009, 02:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 08-04-2009, 09:31 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #10  
Old 08-04-2009, 10:03 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04159 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete