vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I add another table to Index page? (https://vborg.vbsupport.ru/showthread.php?t=219907)

mattmcc 07-31-2009 04:20 PM

How do I add another table to Index page?
 
I'm new to vBulletin so this may be easy.

I'm trying to make a Product and as part of this product want to add another table on the forum's index page below all the forums. This wouldn't be a forum but would have the same style as the other tables with a link to another page with the Product functionality.

I figured I would need to create a plugin for this but I'm having trouble figuring out how I can insert code into the FORUMHOME template below the forums list. Is there a way to do this?

Edit: Ok, I found $ad_location[ad_forumhome_afterforums] which seems to be what I'm looking for. If I ad a plugin at the hook "forumhome_complete" with the code of
PHP Code:

$ad_location[ad_forumhome_afterforums] = "<table...my table code ...</table>' . $ad_location[ad_forumhome_afterforums]

is that considered a bad way to do it? Or is there a better way?

Lynne 08-01-2009 12:53 AM

The template hooks are there for adding code through plugins, so that is fine to do it that way. If you are releasing the mod, you may want to include instructions on how to add the template hook manually in case their version of vbulletin doesn't have them.

mattmcc 08-06-2009 03:40 PM

Thanks Lynee. That is a good idea.


All times are GMT. The time now is 03:40 AM.

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.01061 seconds
  • Memory Usage 1,710KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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