vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   BBCODE Creation. Need Help. (https://vborg.vbsupport.ru/showthread.php?t=200681)

PLi 01-04-2009 05:34 PM

BBCODE Creation. Need Help.
 
I'd like to have a BBCODE in our forums called 'TMX'
As Option there's a String used, here TMU for example

So I created an own vBcode with the following Things:
Tag: TMX
Code:
PHP Code:

<? include ("http://forum.online-spielen.de/tmxinfo.php?id={param}|{option}"); ?>

Example: [TMX=TMU]856563[/TMX]
Use Option "YES"

If I call the URL in my browser everything is shown well. A table filled with the informations to display in a forums thread.

http://forum.online-spielen.de/tmxin...?id=856563|TMU
This php script to include is variable, so if i change the param or option there will be shown another result in the same table:
http://forum.online-spielen.de/tmxin...id=1047807|TMU
http://forum.online-spielen.de/tmxin...id=317244|TMNF

My problem is to include these table in the thread.

If I take a look at the sourcecode of the Thread there's the line
PHP Code:

<? include ("http://forum.online-spielen.de/tmxinfo.php?id=856563|TMU"); ?>

inside, so the {param} and the {option} works well.

But no table is shown instead of the include php code :(

Please help me, because i've no idea...

Marco van Herwaarden 01-05-2009 07:01 AM

Is that line in the HTML output? You can not execute PHP in a template.

PLi 01-05-2009 09:49 AM

Yes, this:
PHP Code:

<? include ("http://forum.online-spielen.de/tmxinfo.php?id=856563|TMU"); ?>

is the Line in the output (Out of Sourcecode of the displayed Forumthread).

I think I'll have to realize it by a vBulletin-Plugin but how will i find the right anchor for the Plugin?


All times are GMT. The time now is 05:43 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.01055 seconds
  • Memory Usage 1,717KB
  • 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
  • (3)bbcode_php_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