vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to include a php script in vbulletin (https://vborg.vbsupport.ru/showthread.php?t=253443)

manuelsechi 11-10-2010 11:42 AM

how to include a php script in vbulletin
 
hello all

is there any way to embedded a php script inside vbulletin? I have some white-label shop i'd like to display to my users inside my vbulletin theme...

thanks all for any suggestion

regards
Manuel

Outbackmark 11-10-2010 12:12 PM

Put it in an iframe like this as a custom template called custom_templatename, the link would then be
Code:

http://www.yoursite.com/forum/misc.php?do=page&template=templatename
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar

<!-- Custom Code Start Here -->
<center>
<iframe src="http://www.linktopage.com" width="90%" height="600"></iframe></center>
<!-- / Custom Code Ends here -->
$footer

To make a template go to Styles & Templates/Template manager and under the style you wish to add to click on Add New Template.

Give it a name as per above, paste the code in and replace url to suit your page and site, save.

Add link to Navbar....done, it will be framed in your VB style with header navbar and footer.

kh99 11-10-2010 12:12 PM

ETA: or...

There's a manual page that shows how to include the output from an external php script: http://www.vbulletin.com/docs/html?m...rsion=30806601 search for "Including External Files".

Or if you want to take the opposite approach and make your script a custom vBulletin page there's an article that shows how to do that: https://vborg.vbsupport.ru/showthread.php?t=62164


All times are GMT. The time now is 09:35 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.01152 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
  • (2)bbcode_code_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