|
#1
|
||||
|
||||
|
template switcher for template developers
i made a few templates now and i was sick of creating new domains and pixelpost installations for every template to give people a live showcase ...
so i made this little addon for template developers. get this file (, extract it) and place it in the "/includes" folder of your pixelpost base directory. template_switcher.zip look for these lines in the index.php of your pixelpost base directory: around line: 85 Code:
$upload_dir = $cfgrow['imagepath']; Code:
$tpl = file_get_contents("templates/".$cfgrow['template']."/".$_GET['x']."_template.html");
Code:
$tpl = file_get_contents("templates/".$cfgrow['template']."/image_template.html");
Code:
require("includes/template_switcher.php");
if you want to insert special instructions for individual templates you can do this in the template_switcher.php . i'Ve inserted a little example: Code:
if($cfgrow['template'] == "macstyle"){
$cfgrow['thumbnumber'] = 22;
}
regards, tom. |
|
#2
|
||||
|
||||
|
Nice work Tom but hopefully the new Pixelpost website (when it's completed) will include a template preview system but this is nice for those who want to let their viewers choose which template they like to view your site with.
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#3
|
||||
|
||||
|
@dwilkinsjr: oh, any details or even a preview about the new website ?
|
|
#4
|
||||
|
||||
|
No, it's being worked on slowly but there is no public preview or anything.
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#5
|
|||
|
|||
|
Yeah Baby... nice feature. I am in the process of porting about 25 templates and it was driving me nuts. Nice job and thank you!!!
|
|
#6
|
||||
|
||||
|
I've just added this to my site. Very good and works well. Also I changed so when you select the option from the drop down it changes without having to click submit.
|
| Post Reply |
| Thread Tools | |
|
|