vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A little quetion with bug problems (https://vborg.vbsupport.ru/showthread.php?t=85666)

Tyreäl 12-14-2002 02:33 PM

A little quetion with bug problems
 
How do i create codes like $forumbit etc.
And how do i set them into templates who i create myself?
(my english is bad!)

filburt1 12-14-2002 02:50 PM

Bits are hard to work with but assign variables in phpinclude like so:
Code:

$somevar = "something";
If you want to eval templates then check out PAPI (search).

Tony G 12-14-2002 10:59 PM

Just to help, here's the papi mod. It will make coding phpinclude mods way easier:

http://www.vbulletintemplates.com/mo...highlight=PAPI

filburt1 12-14-2002 11:18 PM

I've been working on PAPI recently and made it more swissarmyknifelike, about to release it in final form :)

Tony G 12-15-2002 12:25 AM

And I'll do some mods with it. I've never done much with phpinclude so I'll get used to the normal code before papi. :)

Tyreäl 12-15-2002 08:16 AM

Quote:

Originally posted by filburt1
Bits are hard to work with but assign variables in phpinclude like so:
Code:

$somevar = "something";
If you want to eval templates then check out PAPI (search).

that var must set into a template who i created, something like this:

PHP Code:

            eval("\$stickbox = \"" gettemplate("newreply_stickbox") . "\";"); 


filburt1 12-15-2002 02:03 PM

Ah, but with PAPI that mess becomes:
Code:

eval(makeevaltemplatecode("stickbox", "newreply_stickbox"));
:D

assassingod 12-15-2002 02:07 PM

PAPI certainly is a great feature:)

Tirzono 12-15-2002 04:09 PM

Quote:

Originally posted by filburt1
Ah, but with PAPI that mess becomes:
Code:

eval(makeevaltemplatecode("stickbox", "newreply_stickbox"));
:D

and not PAPI?

filburt1 12-15-2002 04:22 PM

Without PAPI it's what Tyreäl posted.


All times are GMT. The time now is 10:29 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.01049 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete