GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Generating multiple HTML pages from a template?? (https://gfy.com/showthread.php?t=1170341)

digi 07-16-2015 05:47 AM

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 07-16-2015 05:59 AM

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.

digi 07-16-2015 06:27 AM

know any software / wp plugin that can do this?

Oracle Porn 07-16-2015 07:06 AM

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

xFoundry 07-16-2015 07:06 AM

You need php.

digi 07-16-2015 07:18 AM

sounds complicated

xFoundry 07-16-2015 07:22 AM

Quote:

Originally Posted by digi (Post 20525319)
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.

Paul&John 07-16-2015 07:29 AM

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

digi 07-16-2015 07:30 AM

thanks! I'll check it out!

xFoundry 07-16-2015 07:32 AM

Quote:

Originally Posted by digi (Post 20525329)
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.

yuu.design 07-16-2015 07:35 AM

just a few php lines, contact me if you need some help ;)

digi 07-16-2015 07:36 AM

Quote:

Originally Posted by Paul&John (Post 20525327)
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 :upsidedow

xFoundry 07-16-2015 07:37 AM

Quote:

Originally Posted by digi (Post 20525337)
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 :upsidedow

How many files do you need to create. Do you have like 100 or 1,000,000?

digi 07-16-2015 07:48 AM

not even that many, just 12 for each template

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

xFoundry 07-16-2015 07:52 AM

Quote:

Originally Posted by digi (Post 20525351)
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.

Paul&John 07-16-2015 08:03 AM

Quote:

Originally Posted by digi (Post 20525337)
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 :upsidedow

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?

Oracle Porn 07-16-2015 08:38 AM

icq me ill help.

Barry-xlovecam 07-16-2015 08:55 AM

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

Would already be done :2 cents:
===
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.

digi 07-16-2015 10:31 AM

Quote:

Originally Posted by Paul&John (Post 20525367)
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

Paul&John 07-16-2015 12:32 PM

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

Sly 07-16-2015 12:38 PM

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

Freedom6995 07-16-2015 12:41 PM

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.

xFoundry 07-16-2015 12:43 PM

What is the website url, out of curiosity?


All times are GMT -7. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc