Announcement

Collapse
No announcement yet.

Sitting within a web page

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

  • Sitting within a web page

    Embarrasing i know but how do it sit my forum within a webpage like this:

    http://www.quiztelly.com/forum/

    idiot guide would be great.

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)

    The header and footer templates contain the top and bottom of the layout HTML. You can edit these templates to wrap your forum in some custom layout.

    If you have layout code in some central file, then you can capture the output of that file by adding a plugin:

    Admin CP -> Plugin System -> Add New Plugin

    Create a new plugin for the global_start hook location. Use code like this:

    Code:
    ob_start();
    require("yourheader.html");
    $header_contents = ob_get_contents();
    ob_end_clean();
    Change the red code to point to your file. Now you can use this variable in the header for example:

    Code:
    $header_contents
    ...and it will parse to the output of your file.

    Comment


    • #3
      Mr

      Originally posted by Jake Bunce
      The header and footer templates contain the top and bottom of the layout HTML. You can edit these templates to wrap your forum in some custom layout.
      mmmm

      Thanks for the reply but is it possible to answer this question:

      Say i create a webpage in dreamweaver/frontpage with a few tables how do i insert my forum into one of the tables?

      as mentioned http://www.quiztelly.com/forum/ have done this sort of thing havent they?

      Comment


      • #4
        Edit the header and footer templates. The openning table code goes in the header, the closing stuff goes in the footer. Doing this requires a familiarity with HTML source code.

        Comment


        • #5
          work persfectly

          i posted my banner.php in my root (where my function is in).

          my banner_display.php also in my root, where the function call is in.
          put this in my plugin info.

          Code:
          ob_start();
          require("banner_display.php");
          $footer_contents = ob_get_contents();
          ob_end_clean();
          put this in my footer template on top.
          Code:
          $footer_contents
          and voila, my banner rotator works as planned.

          Thanks for the explanation.

          Roy
          www.console-forums.net

          Comment


          • #6
            hi
            can you help me?
            how can i create a personal tag in vb?
            for example i downloded a php code that can show the some code in some syntax like php or java or pascal.

            you can show this as:
            $geshi = new GeSHi($source, $language);

            $source is the text that user intered as my tag.
            $language is the language you can show the text in that format.but in our forum $language is 'delphi' and it isn't variable.
            for show the final code i should write this line:
            echo $geshi

            at first i should include this file:
            include_once('geshi.php');

            can you help me where i should inter the (include line) and how can i create the personal code for above?

            how should i change the code that when user intered the [delphi] tag, vbulletin show the intered code as delphi syntax?

            no i want to create a personal tag in vbulletin.
            for example this tag: [delphi] [/delphi]
            when user intered the text between this tag, vbulletin shows this text as syntax like delphi or java(exactly like tag that shows the intered text in php systax hilight!!!)

            how should i modify the header to inter this line :
            include_once('geshi.php');

            and how should i create this tage in Vbulletin?

            King Regards
            Babak Ahadi

            Comment


            • #7
              We can't offer official support for code modifications or for forums running modified code. But we do have a hacking site and forums, however, with people that may be willing to help you with this.

              Please visit http://www.vbulletin.org/forum/ and ask for help there in the appropriate forum.
              Kerry-Anne :)

              Twitter Blog

              www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

              Comment


              • #8
                I can't get this to work... it gives me nothing...

                Comment


                • #9
                  This was very helpful to me, thanks

                  Comment

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