View Full Version : A little quetion with bug problems
Tyreäl
12-14-2002, 02:33 PM
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:
$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/mods/showthread.php?s=&threadid=2224&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
Originally posted by filburt1
Bits are hard to work with but assign variables in phpinclude like so:
$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:
eval("\$stickbox = \"" . gettemplate("newreply_stickbox") . "\";");
filburt1
12-15-2002, 02:03 PM
Ah, but with PAPI that mess becomes:
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
Originally posted by filburt1
Ah, but with PAPI that mess becomes:
eval(makeevaltemplatecode("stickbox", "newreply_stickbox"));
:D
and not PAPI?
filburt1
12-15-2002, 04:22 PM
Without PAPI it's what Tyreäl posted.
Tony G
12-15-2002, 11:03 PM
It's not the biggest change but it makes it look alot easier. :)
filburt1
12-15-2002, 11:18 PM
Actually I've been adding a crapload of stuff to PAPI, it's about 300 lines now. In some ways it's not necessarily easier to code in than without it but it is definitely faster (human-wise) and much, much more powerful.
Tirzono
12-16-2002, 02:12 PM
Originally posted by filburt1
Without PAPI it's what Tyre?l posted.
Oke, i'm sorry...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.