Create a new page within my board?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kayla
    New Member
    • Nov 2001
    • 12

    Create a new page within my board?

    Otherwise, I would like to keep the navigation buttons, the header and the footer. I just want to create a new page within the forum.

    I have searched here and at vbulletin.org for days and I can't find the answer anywhere. The only thing I found is how to recognize a member on another page outside of vb

    Someone please help me?
  • ckisner
    New Member
    • Feb 2002
    • 6

    #2
    i am a complete newbie when it comes to PHP so i won't be of much help if you have any questions. Here's is what i found on this subject in another thread. Don't know which one exactly since it was awhile ago.

    PHP Code:
    <?
    require( "global.php" );

    if( 
    $bbuserid ) {

    $user $DB_site->query_first"SELECT username
    FROM user
    WHERE userid = 
    $bbuserid);
    $bbusername $userusername ];
    eval(
    "dooutput(\"".gettemplate('yourtemplatehere')."\");");
    } else {
    eval(
    "dooutput(\"".show_nopermission()."\");");
    // end if
    ?>
    hopefully this will get you started in the right direction.

    chris

    Comment

    • Kayla
      New Member
      • Nov 2001
      • 12

      #3
      Thanks so much!

      .. I am going to give it a try!

      Comment

      • Kayla
        New Member
        • Nov 2001
        • 12

        #4
        Didn't work...

        Originally posted by ckisner
        i am a complete newbie when it comes to PHP so i won't be of much help if you have any questions. Here's is what i found on this subject in another thread. Don't know which one exactly since it was awhile ago.

        PHP Code:
        <?
        require( "global.php" );

        if( 
        $bbuserid ) {

        $user $DB_site->query_first"SELECT username
        FROM user
        WHERE userid = 
        $bbuserid);
        $bbusername $userusername ];
        eval(
        "dooutput(\"".gettemplate('yourtemplatehere')."\");");
        } else {
        eval(
        "dooutput(\"".show_nopermission()."\");");
        // end if
        ?>
        hopefully this will get you started in the right direction.

        chris
        .. I got a blank page

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #5
          Did you create a template to go along with this? Note the 'yourtemplatehere' in the code.
          Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
          Change CKEditor Colors to Match Style (for 4.1.4 and above)

          Steve Machol Photography


          Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


          Comment

          • Kayla
            New Member
            • Nov 2001
            • 12

            #6
            Yes...

            .. and I called it tester.

            I tried this code that I found:

            require("./global.php");
            if ($bbuserinfo[userid]==0) {
            show_nopermission();
            }
            eval("\$header = \"".gettemplate("header",1,0)."\";");
            eval("\$footer = \"".gettemplate("footer",1,0)."\";");
            eval("dooutput(\"".gettemplate("tester")."\");");


            but these lines don't work:

            eval("\$header = \"".gettemplate("header",1,0)."\";");
            eval("\$footer = \"".gettemplate("footer",1,0)."\";");

            So.. I took the code out of the header and placed it within the tester template. I can make it work that way, but will it make the board work harder?

            .. I sound so stupid! lol

            Comment

            • Steve Machol
              Former Customer Support Manager
              • Jul 2000
              • 154488

              #7
              Use the code posted by ckisner, and place $header and $footer inside the 'tester' template, along with the rest of your HTML code in between.
              Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
              Change CKEditor Colors to Match Style (for 4.1.4 and above)

              Steve Machol Photography


              Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...