vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can i make my own varibales? (https://vborg.vbsupport.ru/showthread.php?t=185763)

behbv 07-19-2008 05:34 PM

Can i make my own varibales?
 
Hi,

I would like to know how can i make varibales and paste them into the template without any problems

Thanks!

Opserty 07-19-2008 05:47 PM

You can define your variables in plugins and then use them in the templates. See the appropriate sections in the vBulletin Manual for information on both topics.

behbv 07-19-2008 06:01 PM

If i want to show a varibale in the theard what i need to do, cuz i didn't found nothing about it on the manual

RLShare 07-19-2008 06:05 PM

What kind of information are you trying to show? There are different templates that are called when showing a thread and different plugin hook locations for the different templates.

The gist of it all is that you write a plugin that hooks some location(Usually the hook location is associated with the template you want to add your variable to). In your plug-in you fill your variable with data(html) and then edit the right template and just place your variable( ex. $yourvariablename) where you want it displayed.


All times are GMT. The time now is 07:53 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.01038 seconds
  • Memory Usage 1,712KB
  • 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)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