Free landing page script.

Status
Not open for further replies.

kblessinggr

PedoBeard
Sep 15, 2008
5,723
80
0
G.R., Michigan
www.kbeezie.com
Rating - 96.7%
29   1   0
Got bored, decided to make a very simple landing page generator that could be easily modified and added onto. Thought maybe some folks who just wanted a quick and easy to use setup might appreciate this. And could also be handy for anyone setting up multiple pages with the same design but different text/link.

The benefits?
- Doesn't require a database connection.
- Runs off a single config.php file by default
- Ability to create custom configurations for a theme by simply droping a new config.php file into the theme folder (otherwise it uses your default values)
- Uses the smarty template engine, so its easy to create themes without messing with the code. (basically mockup html, and put the {$variables} where they need to go)
- Very lightweight and fast.
- Default template is 100% W3C Xhtml Valid. A good starting point for customizing your own theme.
- It's free to use.

What's not so hot about it?
- You still gota open a php file up in a text editor.
- The default theme while clean... kinda sucks.
- No automatic form support at this time (though a template could be made with a form, and a custom config.php file within that folder could define those values)

Built in variables:
Caption, Tagline, Blurb heading, Blurb 1 and 2 (paragraphs), testimonials, and an exit url (ie: your affiliate link).

Demo Url of the default theme provided : Your Default Caption

Download link : http://www.kblinker.com/dist/kblp.zip

Installation instruction:
- Unpack zip file.
- Open up config.php in a text editor (notepad, textwrangler, etc, not Word or wordpad) and configure the settings/text as you need
- Upload content of folder to a folder or domain's root (ie: public_html)
- Make sure /tengine/cache/ and /tengine/template_c/ are writable (ie: chmod 777)

Usage :
The way it is setup can be used in two ways.

You can either use it without passing anything to it at all, in which case it'll always load the theme in the default folder (or whatever folder you hard coded in the config.php file)

Or

You can pass it a page variable such as http://www.yourdomain.com/?page=theme_name to load a different theme/setup. you can also use mod_rewrite to instead have /_theme_name/ or a subdomain pass the variable.

Any theme folder without a config.php file within it will simply use the master configuration at the root of the script. Otherwise copy the section mentioned inside of config.php into a new config.php and drop that into a specific theme folder under /themes/ to create it's own settings. (handy if you want to have several different landing pages with different texts and links, along with different designs).

Paypal donations to sales@karlblessing.com gets you additional support and installation assistance (mod_rewrite assistance also availble if server supports it).

Smarty Documentation for avid coders/designers that might download this : Smarty : Documentation

Inquire about having some of your existing layouts with similar setups converted for use with this script.

I may create some other themes to drop-in later if I get some time.
 


I didn't check out the script, but php + smarty is my perfered method. Easy to setup rotating landing pages, dynamic variables, etc..
 
=================IMPORTANT UPDATE=====================

Ok, I discovered one bug when you're using multiple themes at once. the compile directory would have the html from the previous theme working fine, but it would apply to the new theme giving you a messed up look. I modified the code to correct this so that you could use multiple themes at once without a problem.

Also as an added bonus I added another theme.



So redownload the script, which will include the updated fix as well as the new theme.
(keep a backup of your previous config files so you can cut and paste the old LP settings back in.)

Link: http://www.kblinker.com/dist/kblp.zip

If you don't want to replace your existing files, simply add this line in config.php:
Code:
$smarty->compile_id = $theme_select;

Below this one
Code:
$smarty->config_dir = realpath("./tengine/configs"); //sets the config directory (if you have any)

And pull the /orchid directly from themes in the download above and place into your /themes directory on your production site.
 
Anybody think this will drive down the price of landing pages?

HaH, I doubt it. there's still a shitload a good designer can do (and could be adapted to this script rather easily if the designer makes it into an xHTML page). This script mainly just makes it easier to generate/change a bunch of LPs based on themes for people who aren't exactly coders.
 
@Karl doesn't your avatar make your head hurt? And I just upload any picture I want as long as I size it and call it orchid or whatever first right?
It makes my head hurt...

Sometimes it hurts yes... but it gets numb after a while.

Well the idea behind the themes his this.

/themes/name/

Under the name (which can be anything actually, since you reference it from either changing theme to that name in config.php or ?page=name)

Inside of those folders is basically page.tpl which you treat like a typical HTML files. Themes may vary on their images and so forth. So you have to look at the html code, or the styles.css they come with, as most of the time they'll reference the images in /images/ folder.

So if you wanted to modify or replace an image in that theme, you would want to look under the /themes/orchid/images/ and find perhaps header.jpg or footer.jpg and so forth.

Course I can understand this to be a pain if you're not frequent in html, but at the very least makes it easier to serve up premade themes.

If you see a free html template on the web that you'd like to see converted let me know and I might be able to do it.

in a nutshell you could edit and replace any image, keeping the same size, and it would work, might not match up with the background depending on how you edit it.
 
Status
Not open for further replies.