Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 02-17-2009, 01:39 PM
rymus Offline
forum loafer
 
Join Date: May 2008
Posts: 9
One database, two pixelpost blogs, two different templates

Want to add a second blog (to be a mobile version of main blog) to my current setup. Have the main blog at www.glasseyalley.com and the mobile at mob.glasseyalley.com

in mob.glasseyalley.com subdomain, have symlinks redirecting images/ and thumbnails/ to www.glasseyalley.com images and thumbnails dirs. Using same database for mob as www.

As pixelpost stores the template in use in the database, how can I run one database with two templates on two different sites? Thanks for any pointers.
Reply With Quote
  #2  
Old 02-18-2009, 05:05 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Well, you can hack the index.php of the mobile version. Right after the initial variables have been read from the database you can reset the $cfgrow['template'] value to the template you want.

PHP Code:
$cfgrow['template']='mobiletemplate'
As you might have guessed you can do this for every var in the configtable.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #3  
Old 02-18-2009, 04:23 PM
rymus Offline
forum loafer
 
Join Date: May 2008
Posts: 9
That sorted out the index page.. but when I go to anything that's not index (x=about or x=browse) it's giving me a 404. Maybe I put the code in at the wrong place or something?
Reply With Quote
  #4  
Old 02-18-2009, 04:42 PM
rymus Offline
forum loafer
 
Join Date: May 2008
Posts: 9
erm.. never mind.. I think it was a bad piece editing on my part. all good now. Thanks
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:34 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs