Announcement

Collapse
No announcement yet.

HTML or PHP Pages ??

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

  • HTML or PHP Pages ??

    Can someone confirm whether the web pages are HTML or PHP pages and if not then what are they? If the pages are HTML should it be possible to amend the main template to include SSI Includes files. (I know that when there was an update to the page or version then this would need to be amended again) Thanks.

  • #2
    They're PHP. The default index page is index.php.

    Comment


    • #3
      It shouldn't matter if they are php or html, the vb system is outputting html so inserting the ssi shouldn't make a difference. There are template hooks all the way through the page where the extras could be inserted. Adding the code via the product and hook system will keep you from having to edit templates every time you update the system.


      Comment


      • #4
        Hi,
        Thanks for that. Can you think of any reason why the following won't work
        <?php include("random.php"); ?> <?php include("random/random.php"); ?> Path to file is /home/wwwleisu/public_html/help/random/random.php

        This doesn't work either <!--#include virtual="/help/random/random.html"-->

        I will add these using the Hook and template.

        Thanks
        Last edited by robinantill; Sat 12 Sep '15, 5:18am.

        Comment


        • #5
          Does http://web-server-root/help/random/random.html work? You could try changing the filename to random.shtml, without a direct link or knowing whether or not your server is setup to do SSI is the question. I've not tried the SSI you are attempting to do on my server so I can't say it's totally possible to do with VB5. I just don't see any reason why it wouldn't work. On VB5, I would name the element on random.html that I want to include and write it into the page via ajax or jquery but that's just the way I typically do it. Is the info you are trying to include a dynamic info source or static? If it's static, you can just add the content into the new template and it will work.


          Comment


          • #6
            Hi,
            Thanks for the suggestion but still won't work. I know that SSI is working for the domain and I tried that to see if there was a different way to using PHP

            What I'm trying to do is for a random phase to be inserted on forum page using random.php as follows:-

            ############################################################################
            # Configuration
            ############################################################################
            $FileName = "web-pages.html";
            ############################################################################

            if ( file_exists($FileName) ) {

            // Get content as an array
            $contents = explode(":::",file_get_contents($FileName));

            // Remove last blank entry
            unset($contents[count($contents) - 1]);

            // Randomize the content
            shuffle($contents);

            // Output First Entry
            echo $contents[0];
            }


            The phases are put in the file web-pages.html as follows:-

            <span style="font-weight:bold;">Garden Sheds Droopy Doors Syndrome !!</span><br />It may seem that the door is a relatively unimportant part of the shed, provided it opens and closes when required then that's all there is to it. Well you would be wrong!! The door is actually the only part of the shed which is a movable object (besides the walls of the cheap sheds which can move in the wind, but are not meant to) and the actual stress put on the door is quite a lot. This is why the door should be designed to cope with this constant movement but sadly many of the mass market cheap garden shed makers either don't understand this, don't know this or don't care. Whatever the reason this is no good for YOUR shed if you don't want problems. <a href="http://www.leisurebuildings.com/help/blogs/buying-advice-for-garden-sheds-workshops-etc/1951-garden-sheds-droopy-doors-syndrome">cont ----</a> .:::

            <span style="font-weight:bold;">Garden sheds for the Vertically Challenged</span><br />It's an established fact that the human population is getting taller over the year by natural evolution. This has been happening for the last 140 years, prior to that there were cycles in height which were determined by the economic situation and the success of agricultural crops etc. Apparently in the Middle Ages the human race was relatively tall due to the lower population and the adequate food supplies.
            From a low point in the 17th century growth has increased, slowly, and with the industrial age coming, helping the production of food, there has been a steady growth in height. This has been helped over the last 100 years of so by the advance in medical science and the generally better diets available to us. We has as a race are about 2" taller than we would have been 100 years ago. This is proven by written records and examination of skeletons. <a href="http://www.leisurebuildings.com/help/blogs/buying-advice-for-garden-sheds-workshops-etc/1948-garden-sheds-for-the-vertically-challenged">cont ----</a> .:::


            Regards,
            Robin

            Comment


            • #7
              Found a way to do it, I posted on the other thread. http://www.vbulletin.com/forum/forum...97#post4328897


              Comment

              Related Topics

              Collapse

              Working...
              X