vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   File include on bbcode (https://vborg.vbsupport.ru/showthread.php?t=151738)

JamesHarrison 07-09-2007 02:08 AM

File include on bbcode
 
Hi,

I'm trying to get a BBcode to include a PHP file, which access a variable set in the BBcode PHP side.

Eg, my bbcode needs to run this PHP:
PHP Code:

$var 32;
include(
"file.php"); 

And the script parsing it will do some clever DB stuff based on the $var and output HTML (file.php).

Any ideas how I would go about doing this? $var would be set by the user input ([bbcode]var's value[/bbcode])

Reeve of shinra 07-09-2007 02:29 AM

Can you be a little clearer about what you are aiming to achieve / what the end result should be?

JamesHarrison 07-09-2007 03:03 AM

Quote:

Originally Posted by Reeve of shinra (Post 1286328)
Can you be a little clearer about what you are aiming to achieve / what the end result should be?

Basically, I want to allow the user to do [character]32[/character]. This will go off and call some DB-stored data (Indexed by the number 32) from a different database and output a line of text containing the DB-stored data, as well as a link to a full view page.

Anyone able to help with this? I'm fairly proficient in PHP/HTML/CSS/MySQL, just not sure how vBulletin is laid out.


All times are GMT. The time now is 01:06 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.01070 seconds
  • Memory Usage 1,714KB
  • 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_php_printable
  • (1)bbcode_quote_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