PDA

View Full Version : Filburt's n00b hacking questions thread


filburt1
09-08-2002, 02:37 AM
Okay, I plan on making a psuedo portal for one of my forums in my collection of forums. Rather than posting tons of small questions I'll just use this thread ;)

1. To convert bb code to HTML, what do I do? Something along the lines of this?


require('forums/admin/functions.php');
$stuff = bbparsecode($bbcode);
echo $stuff;


But it's more complicated than that...right?

NTLDR
09-08-2002, 06:40 PM
If you have required global.php you won't need to require functions.php, otherwise you will:

bbcodeparse(text to parse,0,1)

Where text to parse is the text or the variable containing the text, 0 is the forumid (if not a forum use 0) and 1 is to allow smilies (0 to disallow).

filburt1
09-08-2002, 06:41 PM
And it returns HTML?

NTLDR
09-08-2002, 06:51 PM
I will return whatever the vB code is set to return, eg ; ) (with no space) would return the code for ;)

filburt1
09-09-2002, 02:19 AM
Cool :)

filburt1
09-22-2002, 04:32 PM
2. How can I make page powered by vBulletin's template system (custom templates)?

NTLDR
09-22-2002, 04:38 PM
For just a page which displays a template look at c-prompts extra page driven by template hack.

filburt1
09-22-2002, 04:43 PM
Nope, this will be a bit more complicated (i.e., loading specific templates and templatebits, etc.)

NTLDR
09-22-2002, 05:22 PM
You can either edit that hack to suit your needs or take alook at vBindex or vBhome and see how they work and modify to your needs.

filburt1
09-22-2002, 05:55 PM
Coolness

zachb
09-22-2002, 07:50 PM
Yea, thanks. I have learned some stuff from taking your advice. :D

NTLDR
09-22-2002, 08:06 PM
No problem, glad to help fellow vB'ers out :D