Announcement

Collapse
No announcement yet.

included HTML file

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

  • included HTML file

    Hi,
    Can you help me please, I use this: http://www.vbulletin.com/forum/showthread.php?t=173937

    And itís works perfect, now I have Right Column, with included HTML file.

    My question is: I can use $includedhtml in only one place? How can I do same thing with, let's say, the header?
    Here is my testing forum: http://www.artpapa.com/forumstest/index.php

    Thank in advance,
    Alexei

  • #2
    $rightcolumn_html = implode('', file('path/to/this/file/rightcolumn.html'));
    $header_html = implode('', file('path/to/this/file/header.html'));

    Should be able to use those variables just about anywhere.

    Comment


    • #3
      Originally posted by feldon23
      Should be able to use those variables just about anywhere.
      0)But just once of each?

      Thank you very much it works perfectly.

      1) Correct me please if I’m wrong: I can’t just came up with some new variables like $goo_left or $I’m_tired ? I supposed to use existing ones? In other words this $rightcolumn_htm and $header_html already been somewhere in the script? ( Excuse me for dim questions)

      2) Here is another little problem I came up with:
      Can you help me figure out why after successful includes editing according to this : http://www.vbulletin.com/forum/showthread.php?t=173937 my tables screwed up a little?
      In the index page in the attachment 1.jpg everything is fine: http://www.artpapa.com/forumstest/, but in the forums and treads (2.jpg) http://www.artpapa.com/forumstest/sh....php?p=2#post2
      Main table can not wrap?
      thank you again
      Alexei
      Attached Files
      Last edited by artpapa; Thu 2nd Mar '06, 12:29am.

      Comment


      • #4
        Originally posted by artpapa
        1) Correct me please if I’m wrong: I can’t just came up with some new variables like $goo_left or $I’m_tired ? I supposed to use existing ones? In other words this $rightcolumn_htm and $header_html already been somewhere in the script? ( Excuse me for dim questions)
        I invented $rightcolumn_html and $header_html because they seem more logical than $gooleft. You can use any variable name you want, but be careful not to use any of the variables that vBulletin uses (And no, there isn't a list). If you used something like $header, you would break your forum.

        Originally posted by artpapa
        2) Here is another little problem I came up with:
        Can you help me figure out why after successful includes editing according to this : http://www.vbulletin.com/forum/showthread.php?t=173937 my tables screwed up a little?
        In the index page in the attachment 1.jpg everything is fine: http://www.artpapa.com/forumstest/, but in the forums and treads (2.jpg) http://www.artpapa.com/forumstest/sh....php?p=2#post2
        Main table can not wrap?
        thank you again
        Alexei
        The problem is your Forum Jump menu is 400 pixels wide. Either shrink some of the names of your forums, remove Forumjump, or find a Plug-in/Add-on to only show part of the name of each forum.

        These forum names are very long:
        Online Demonstrations Free oil Painting Lessons, Onetime membership fee teaching zones. Videos pre-s
        Classical oil painting technique Knowledge Base. Alexei Antonov's art educational materials.
        Last edited by feldon23; Thu 2nd Mar '06, 5:50am.

        Comment


        • #5
          Please tell me where I can find these 400 pixels to change?
          and where I can move it around Forumjump?

          Originally posted by feldon23
          The problem is your Forum Jump menu is 400 pixels wide. Either shrink some of the names of your forums, remove Forumjump, or find a Plug-in/Add-on to only show part of the name of each forum.

          Comment


          • #6
            You can't resize the forum jump. It is as wide as the longest forum name you have.

            $forumjump is in several templates.

            Comment


            • #7
              Need help with this!!

              Hello! I have been trying and trying to read up on phpincludes and how to make this thing work and I am pretty sure I understand how to insert the html file, but I cannot for the life of me figure out where to put the variable! I would like to have the opposite... want to add html content on the left side of my forum. I just don't know where I am supposed to put the variable to read the html file. Can anyone tell me where to put that? Thanks so much!!

              Comment


              • #8
                You've followed this tutorial?

                You created a Plugin and then pasted the variable you created in the Plugin into the Template where you want this HTML to appear?

                Comment


                • #9
                  Well..

                  Originally posted by feldon23
                  You've followed this tutorial?

                  You created a Plugin and then pasted the variable you created in the Plugin into the Template where you want this HTML to appear?
                  Yes, I followed that tutorial. I have created the plugin in global_start as instructed, but the question is where do I put the variable in order to get it to show up as a vertical column to the left of the board (the opposite side of where the person starting this thread put their's. I just don't know which template will put my content on the left side. I want to generate content to the left of the board which will show up on all pages. Here is what I am working on... http://womens-health.com

                  Comment


                  • #10
                    Follow the instructions here to add a left column: http://www.vbulletin.com/forum/showthread.php?t=156775

                    Then, place your variable where it says YOUR CONTENT HERE
                    Best Regards
                    Colin Frei

                    Please don't contact me per PM.

                    Comment


                    • #11
                      Thank you!

                      Thank you... I will try that today!

                      Comment


                      • #12
                        Hi,
                        How can I make it work with the vb4?

                        Originally posted by feldon23 View Post
                        $rightcolumn_html = implode('', file('path/to/this/file/rightcolumn.html'));
                        $header_html = implode('', file('path/to/this/file/header.html'));

                        Should be able to use those variables just about anywhere.

                        Comment

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