vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is there a php enabling mod? (https://vborg.vbsupport.ru/showthread.php?t=108751)

Citizen 02-24-2006 03:03 AM

Is there a php enabling mod?
 
Are there any hacks out there that enable the use of a php include in a vBulletin template?

Thanks
-Citizen

Reeve of shinra 02-24-2006 03:53 AM

No, its considered a security risk.

Plugins accomplish the same thing more or less, what are you looking to do?

Gizmo999 02-24-2006 04:22 AM

Quote:

Originally Posted by Reeve of shinra
No, its considered a security risk.

Plugins accomplish the same thing more or less, what are you looking to do?

I want to add a line of php code into my sig that displays what I'm listening to in itunes. Got the itunes bit sorted i just need to get it into my sig

Reeve of shinra 02-24-2006 04:41 AM

Quote:

Originally Posted by Gizmo999
I want to add a line of php code into my sig that displays what I'm listening to in itunes. Got the itunes bit sorted i just need to get it into my sig

Im not sure how well this would work or what kind of performance hit you may take but...

create a new product:
product id: gizmotunes
title: whatever you want
version: 1
description: whatever you want

create a new plugin
product: gizmotunes
Hook Location: Global Start
Title: whatever you want

Plugin PHP Code:

Add the php your trying to include here. Be sure its using the proper vbulletin variables.

eval('$itunesbox = "' . fetch_template('itunes') . '";');


Now create a template called itunes and add in the variables.

You'll need to cache that template somehow and work with this but hopefully this should get you going.

sde 02-24-2006 06:21 AM

or, you could just make a totally seperate php script to generate a dynamic image with the text of the song you are listening too. then just use bbcode img tags to embed it in your sig.

http://ekstreme.com/phplabs/graphics.php


All times are GMT. The time now is 03:20 PM.

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.01088 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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