vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how to insert php code in vbulletin template (https://vborg.vbsupport.ru/showthread.php?t=230455)

webtest 12-18-2009 06:25 AM

how to insert php code in vbulletin template
 
hello everyone,

I m trying to create rotating banners in my header,for that i want to fetch images from databse.
I have created one plugin and activate it as per the instructions given in vbulletin manual.
But it displays blank no data from php file was fetched..
Please help if anyone know how to do this?
thanks in advance

NikkEh 12-18-2009 07:01 AM

did you enable the plugin?

consolegaming 12-18-2009 07:30 AM

And secondly did you register the variables? This is something that now has to be done to get variables from plugins to templates. You have to register which template you wish to use it in too. If need-be I'll grab some example code afterwards.

webtest 12-18-2009 07:43 AM

thanks for quick reply.
I have activated plugin.
Can u please tell me how to register variables or templates.
Please explain with example coz i m totaly new to vbulletin.
thanks in advance.

Tancey 12-18-2009 08:03 AM

this page might be os use to you mate
https://vborg.vbsupport.ru/showthread.php?t=228078

NikkEh 12-21-2009 12:09 AM

Check the blog.

http://www.vbulletin.com/forum/blog....do=list&page=2

And this on how to include your php on the v3.8 manual using the following sections
http://www.vbulletin.com/docs/html/
Styles & Templates / vBulletin 3 Style Reference / Templates / Including External Files

LorinPotter 12-21-2009 10:51 AM

Webtest, this is something that I've been trying to do for awhile, with no luck. I've got the photoshop rotating pictures script working in the header template, but I've been trying to get pictures (about the same as banners, to show for a day, then rotate to next picture stored in the VB forum.

Various hacks and what some have posted here doesn't seem to work for me. I would appreciate very much if you'd post any headway you make on this, on this same thread.

TIA


All times are GMT. The time now is 05:04 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.01148 seconds
  • Memory Usage 1,719KB
  • 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
  • (7)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