vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   running a function on a vbcode bit... (https://vborg.vbsupport.ru/showthread.php?t=56141)

soopa 08-12-2003 08:23 PM

running a function on a vbcode bit...
 
i never really write custom hacks for vbb... but i know php.

i have a function i wrote that i want to run on some text when its encased in a vbCode [tag] on my forum.

where in the vbulletin code should i be looking to make this happen... or is there some triggers i can put in the bbcode table to that vb will know to pass the param to a function?

soopa 08-12-2003 08:27 PM

so for example

i have a function... say its called myFunc($var)

where is a universally accepted spot in vBB to put custom code bits, or do we just free for all?

so someone goes and posts:

Quote:

blah blah blah blah [tag]text to pass to myFunc[/tag] blah blah blah
i want to pass the text in [tag] now to $var in myFunc() and return it back to let vBB do whatever it does from there.

so say myFunc just changed the text in $var to "JUNK" i want the post to appear as

Quote:

blah blah blah blah JUNK blah blah blah

SmEdD 08-12-2003 09:54 PM

<a href="https://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=1201" target="_blank">http://www.vbulletin.org/hacks/index...ck&hackid=1201</a>

Download that hack and take a look at it and try useing that as a refrence.

soopa 08-13-2003 02:04 AM

hmm. thx...

seems tho this will just help with adding the bbcode bits... still not sure where to tell vBulletin to process the contents with a PHP function...?

SmEdD 08-13-2003 02:53 AM

Check in you admin panel ;)

soopa 08-13-2003 01:21 PM

all i know of in there that applies is the add custom vb code bit... but still... where am I telling this thing to send {param} to a custom PHP function and wait for return?


All times are GMT. The time now is 07:14 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.00947 seconds
  • Memory Usage 1,718KB
  • 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
  • (6)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