Announcement

Collapse
No announcement yet.

Custom pages - Please help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • stuuu
    replied
    Originally posted by smachol
    Yes, it is hacking.
    PFFFT OK then *sulks*

    Leave a comment:


  • Steve Machol
    replied
    Yes, it is hacking.

    Leave a comment:


  • stuuu
    replied
    Originally posted by smachol
    As Jakeman said you need to ask these question at vbulletin.org.
    Couldnt you tell me how to include the vB header, footer, and stylesheet onto separate PHP page? That's not hacking up the vB code is it

    Leave a comment:


  • Steve Machol
    replied
    As Jakeman said you need to ask these question at vbulletin.org.

    Leave a comment:


  • stuuu
    replied
    The output file is @ http://dnbforum.com/audio.php

    I have used the FAQ code in my custom PHP file as an example of what is wrong

    Leave a comment:


  • stuuu
    replied
    Ok.

    Check this, I have these files.

    audio.inc - has my custom code in
    audio.php - has the following code in

    PHP Code:
    <?php
    error_reporting
    (7);
    require(
    "./global.php");
    eval(
    "dooutput(\"".gettemplate("audio")."\");");
    ?>
    I made a template called audio with the $header bits in, and I used the phpinclude template to include my custom audio.inc

    Everything works, except all $variables taken from the audio.inc are not processed. So I get links like $session[sessionhash] instead of the session id, and $bbtitle instead of the name of the site.

    Any idea how to make it process the $variables?

    Leave a comment:


  • Jake Bunce
    replied
    i recommend asking this on www.vbulletin.org , the official vB hacking site.

    Leave a comment:


  • stuuu
    started a topic Custom pages - Please help

    Custom pages - Please help

    How do I include the vB header, footer and style sheets on my custom PHP pages?

    Thanks.

Related Topics

Collapse

  • omegatron
    Header Footers Styles
    by omegatron
    I have been looking into the code base some. vBulletin has one of the biggest mod hack communities out there which also makes it one of the most popular community products out there. Now with the introduction...
    Tue 23 Oct '12, 7:26am
Working...
X