Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-16-2015, 05:47 AM   #1
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
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">

???
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 05:59 AM   #2
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 06:27 AM   #3
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
know any software / wp plugin that can do this?
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:06 AM   #4
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,432
google "php echo string" and add mod rewrite to make it 02.html rather then page.php?q=2
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:06 AM   #5
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
You need php.
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:18 AM   #6
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
sounds complicated
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:22 AM   #7
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
Quote:
Originally Posted by digi View Post
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.
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:29 AM   #8
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,597
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
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:30 AM   #9
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
thanks! I'll check it out!
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:32 AM   #10
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
Quote:
Originally Posted by digi View Post
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.
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:35 AM   #11
yuu.design
Too lazy to set a custom title
 
yuu.design's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Argentina
Posts: 25,924
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
yuu.design is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:36 AM   #12
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
Quote:
Originally Posted by Paul&John View Post
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
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:37 AM   #13
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
Quote:
Originally Posted by digi View Post
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?
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:48 AM   #14
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
not even that many, just 12 for each template

I set up like 20 posts in a day though with various templates
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 07:52 AM   #15
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
Quote:
Originally Posted by digi View Post
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.
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 08:03 AM   #16
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,597
Quote:
Originally Posted by digi View Post
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
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 08:38 AM   #17
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,432
icq me ill help.
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 08:55 AM   #18
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 10:31 AM   #19
digi
Confirmed User
 
Join Date: Feb 2002
Location: ON, Canada
Posts: 1,314
Quote:
Originally Posted by Paul&John View Post
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
__________________
digi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 12:32 PM   #20
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,597
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
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 12:38 PM   #21
Sly
Let's do some business!
 
Sly's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,291
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.

Wanted: CCBill pay sites for sale
Sly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 12:41 PM   #22
Freedom6995
Friends of Venus founder
 
Freedom6995's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 1,966
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.
Freedom6995 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2015, 12:43 PM   #23
xFoundry
Confirmed User
 
xFoundry's Avatar
 
Industry Role:
Join Date: Jun 2015
Posts: 180
What is the website url, out of curiosity?
__________________
xFoundry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
code, template, multiple, html, pages, easy, named, 02.html, 01.html, generate, generating, 00.html, called



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.