Jump to content

Recommended Posts

Hi,

 

Is it possible and reasonably easy to make a script that will produce loads of pages based on a template page, and for each page add in 2 images? Those pages would also have title and keyword tags randomly generated from a pool of words to (similar to what i was making before).

 

I've learnt quite a lot so far so I want to take on this.

 

Thanks in advance.

Hi there,

 

ITs a pretty simply idea.

 

In your template have regoins specified, eg

 

<DOCTYPE blablabla... >
<head>
<meta description="keywords" content="[keywords here]" >
<title>[Title here]</title>
...
</head>

<body>
<div class="header">[Title Here]</div>
<div class="textleft">[user text here]</div>
<div class="image1right"><img src="[image1source]"></div>
<div class="image2right"><img src="[image2source]"></div>
<div class="footer">© [title here] 2009 </div>
</div>

</html>

 

you would then read the file

use regex to replace the values

then save the file Too a different name!

Yea I know how to make the template, but like I want it to inject things into the template from ss includes that randomly generate the titles etc from pools of words, then to create the page in a seperate directory, then back to the template, mix it up again, pump out another page if you get what i mean.

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.