Generating multiple HTML pages from a template??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • digi
    Confirmed User
    • Feb 2002
    • 1314

    #1

    Generating multiple HTML pages from a template??

    If I have an HTML template called 00.html and the code on the template is <img src="00.jpg">

    Is there an easy way to generate multiple pages named

    01.html with the code <img src="01.jpg">
    02.html with the code <img src="02.jpg">

    ???
  • Barry-xlovecam
    It's 42
    • Jun 2010
    • 18083

    #2
    Yes, any scripting language can create these pages dynamically from the URL ?query string

    The pages could be written with a script if you need static pages for some reason.

    Comment

    • digi
      Confirmed User
      • Feb 2002
      • 1314

      #3
      know any software / wp plugin that can do this?

      Comment

      • Oracle Porn
        Affiliate
        • Oct 2002
        • 24433

        #4
        google "php echo string" and add mod rewrite to make it 02.html rather then page.php?q=2


        Comment

        • xFoundry
          Confirmed User
          • Jun 2015
          • 180

          #5
          You need php.

          Comment

          • digi
            Confirmed User
            • Feb 2002
            • 1314

            #6
            sounds complicated

            Comment

            • xFoundry
              Confirmed User
              • Jun 2015
              • 180

              #7
              Originally posted by digi
              sounds complicated
              -> PHP and MySQL for dummies, 4th

              -> 10 day free trial at SafariBooksOnline.com

              You can ask in the PHP section of CodingForums.com, and people will tell you exactly, what you need to do. A lot of other places on the Internet too, the more related to PHP, the better.

              Comment

              • Paul&John
                Confirmed User
                • Aug 2005
                • 8643

                #8
                Also depends if you want those pages dynamically created on the fly, so there actually wont be any 01.html, 02.html on the server, just a lets say /page.php?q=2
                Or do you need those actual files
                Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                Comment

                • digi
                  Confirmed User
                  • Feb 2002
                  • 1314

                  #9
                  thanks! I'll check it out!

                  Comment

                  • xFoundry
                    Confirmed User
                    • Jun 2015
                    • 180

                    #10
                    Originally posted by digi
                    thanks! I'll check it out!
                    You can do search and replace in Notepad++ too. You don't need to go as far as learning php programming, I guess.

                    Edit: Open the original template in Notepad++, and then open another one, next to it, and do search and replace there. Do this, save, do the next one, save, and so on.

                    Comment

                    • yuu.design
                      Too lazy to set a custom title
                      • Mar 2006
                      • 25924

                      #11
                      just a few php lines, contact me if you need some help ;)
                      Beautiful And Usable Web Design Creations For The Adult Industry Since 2003
                      I'm Yuu, Designer and Content Producer

                      Paysites - Affiliate Programs - Dating & Cam Sites - Mainstream Projects - Tube Sites - Banners - Wordpress Themes - NATs integration - Landing Pages

                      Check my Portfolio and Content Production Offers

                      Comment

                      • digi
                        Confirmed User
                        • Feb 2002
                        • 1314

                        #12
                        Originally posted by Paul&John
                        Also depends if you want those pages dynamically created on the fly, so there actually wont be any 01.html, 02.html on the server, just a lets say /page.php?q=2
                        Or do you need those actual files
                        Well, I'd like the files.

                        Basically how it works now is this:

                        -HTML files are created locally on a computer with this name: 01(wp post ID)01.html and with this code <img src="01.jpg"> on them.
                        - The files get uploaded via FTP
                        - HTML code gets inserted to wp post
                        <a href="0101.html><img src="01_small.jpg"></a>
                        <a href="0102.html><img src="02_small.jpg"></a>

                        Seems like there should be a faster way

                        Comment

                        • xFoundry
                          Confirmed User
                          • Jun 2015
                          • 180

                          #13
                          Originally posted by digi
                          Well, I'd like the files.

                          Basically how it works now is this:

                          -HTML files are created locally on a computer with this name: 01(wp post ID)01.html and with this code <img src="01.jpg"> on them.
                          - The files get uploaded via FTP
                          - HTML code gets inserted to wp post
                          <a href="0101.html><img src="01_small.jpg"></a>
                          <a href="0102.html><img src="02_small.jpg"></a>

                          Seems like there should be a faster way
                          How many files do you need to create. Do you have like 100 or 1,000,000?

                          Comment

                          • digi
                            Confirmed User
                            • Feb 2002
                            • 1314

                            #14
                            not even that many, just 12 for each template

                            I set up like 20 posts in a day though with various templates

                            Comment

                            • xFoundry
                              Confirmed User
                              • Jun 2015
                              • 180

                              #15
                              Originally posted by digi
                              not even that many, just 12 for each template

                              I set up like 20 posts in a day though with various templates
                              I am not sure what it is that you are doing, but if you don't want to do it by hand, you need to use php. If you don't want to learn php, you can ask how to do it, on CodingForums.com.

                              Comment

                              • Paul&John
                                Confirmed User
                                • Aug 2005
                                • 8643

                                #16
                                Originally posted by digi
                                Well, I'd like the files.

                                Basically how it works now is this:

                                -HTML files are created locally on a computer with this name: 01(wp post ID)01.html and with this code <img src="01.jpg"> on them.
                                - The files get uploaded via FTP
                                - HTML code gets inserted to wp post
                                <a href="0101.html><img src="01_small.jpg"></a>
                                <a href="0102.html><img src="02_small.jpg"></a>

                                Seems like there should be a faster way
                                I assume you are creating html pages for each full sized image, instead of just direct opening them in browser when the user clicks on the thumbs in the WP post?
                                Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                Comment

                                • Oracle Porn
                                  Affiliate
                                  • Oct 2002
                                  • 24433

                                  #17
                                  icq me ill help.


                                  Comment

                                  • Barry-xlovecam
                                    It's 42
                                    • Jun 2010
                                    • 18083

                                    #18
                                    If it is only 12 files (HTML static pages) do it with a text editor.

                                    Would already be done
                                    ===
                                    edit: time times 20? change 12 templates pages adding 20 posts daily?
                                    ===

                                    you need 12 static html pages [10](prefix)+(wp post ID)01.html 01 to infinity?

                                    ===

                                    Get a programmer.

                                    Comment

                                    • digi
                                      Confirmed User
                                      • Feb 2002
                                      • 1314

                                      #19
                                      Originally posted by Paul&John
                                      I assume you are creating html pages for each full sized image, instead of just direct opening them in browser when the user clicks on the thumbs in the WP post?
                                      yep, correct.. so I can put ads on the big pics

                                      Comment

                                      • Paul&John
                                        Confirmed User
                                        • Aug 2005
                                        • 8643

                                        #20
                                        Aren't there any plugins for that?
                                        Btw the default template can show full photos on html, so there you can add an ad, but I assume you want to add content specific ads (meaning to the same sponsor)..
                                        Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
                                        Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here

                                        Comment

                                        • Sly
                                          Let's do some business!
                                          • Sep 2004
                                          • 31376

                                          #21
                                          UUgallery would have been good for this.

                                          Aside from that, you are using WordPress, look through the available plug-ins. There will be several to choose from.

                                          Something like this: https://wordpress.org/plugins/easy-image-gallery/

                                          You can also use: Arles Image Web Page Creator
                                          Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

                                          Windows VPS now available
                                          Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
                                          Click here for more details.

                                          Comment

                                          • Freedom6995
                                            Friends of Venus founder
                                            • Jul 2010
                                            • 1975

                                            #22
                                            Notepad ++ for the non-coder (I used to be that guy and life sucked, so I learned to code) a plan of attack is to have your pages in one folder. Do a find and replace on the folder. a becomes b, tomorrow b becomes c, etc.

                                            Comment

                                            • xFoundry
                                              Confirmed User
                                              • Jun 2015
                                              • 180

                                              #23
                                              What is the website url, out of curiosity?

                                              Comment

                                              Working...