Sitting within a web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djrm
    New Member
    • Oct 2005
    • 2
    • 3.5.x

    Sitting within a web page

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



    idiot guide would be great.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #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("[color=red]yourheader.html[/color]");
    $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

    • djrm
      New Member
      • Oct 2005
      • 2
      • 3.5.x

      #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

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #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

        • Possemaster
          New Member
          • Apr 2008
          • 5
          • 3.6.x

          #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("[COLOR=red]banner_display.php[/COLOR]");
          $[COLOR=red]footer_contents[/COLOR] = 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

          • babak869
            New Member
            • May 2008
            • 2

            #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

            • peterska2
              Senior Member
              • Oct 2003
              • 8869
              • 3.7.x

              #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.

              Comment

              • Whiteyez
                New Member
                • Jun 2007
                • 23

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

                Comment

                • MikesSite
                  Senior Member
                  • Jan 2009
                  • 173
                  • 3.8.x

                  #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...