vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need A Mod (https://vborg.vbsupport.ru/showthread.php?t=180503)

alawee.blawee 05-25-2008 11:00 PM

Need A Mod
 
dear friends

i need a mod that shows an HTML box i can edit and the mod automatically put that code under the navbar in the forumhome template without modifying that template

indeed i have some banners and I'm facing a lot of tiredness while modifying forumhome in more than 10 styles each time i change a banner

can anyone help me?

GameWizard 05-25-2008 11:19 PM

You can do 1 of the 2 things, either make a plugin which should be relatively easy, but you'll need to have the appropriate hook to display the information in the correct place.

Otherwise, you can probably create a master style for all the styles you have, and then make the forumhome template adjustment in the master theme and it will then be applied to the rest assuming ofcourse you want the same ad to appear in all your themes, and assuming you have no unique forumhome modifications done in your styles.

alawee.blawee 05-25-2008 11:23 PM

Quote:

Originally Posted by GameWizard (Post 1531376)
You can do 1 of the 2 things, either make a plugin which should be relatively easy, but you'll need to have the appropriate hook to display the information in the correct place.

Otherwise, you can probably create a master style for all the styles you have, and then make the forumhome template adjustment in the master theme and it will then be applied to the rest assuming ofcourse you want the same ad to appear in all your themes, and assuming you have no unique forumhome modifications done in your styles.

can you plz explain the plugin's matter to me?

what should i put in the fields in the new plugin to have the thing i need?

MoT3rror 05-26-2008 05:21 AM

Or you can create a new vB option (must be in debug mode).
With the following options:
Varname: extra_text_on_forumhome
Setting Group: Forum Home Page Options
Title: Extra Text on Forumhome
Description: puts html in forumhome
Option Code: textarea
Data Validation Type: Free
Validation PHP Code: put nothing here
Display Order: 90
Blacklist: No
vBulletin Default: No

I suggest adding a product to put this option under so you can easily debug if needed.

Then in your forumhome template you put $vboptions[extra_text_on_forumhome] where you want the html to show. I suggest trying this on a test board before putting this on a live board.


All times are GMT. The time now is 02:19 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.00995 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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