Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 11-15-2008, 08:38 PM
lushnis's Avatar
lushnis Offline
forum loafer
 
Join Date: Dec 2007
Location: China
Posts: 1
New Template Hoo!, for iPhone user

I just uploaded a new template named "Hoo!", now you can make your photoblog iPhone-friendly.

Here is it: http://www.pixelpost.org/extend/temp...te-for-iphone/
Reply With Quote
  #2  
Old 11-15-2008, 11:05 PM
Smartphoner Offline
pp veteran
 
Join Date: Jan 2008
Posts: 54
Send a message via MSN to Smartphoner
Nice ! but how can I make the Iphone uses the theme automaticly when another theme is active ? I cant use this theme for PC Users. And please limit the thumbnails on the browse page to 12 or so.
__________________
My Photoblog: http://www.romankeller.ch
Reply With Quote
  #3  
Old 11-19-2008, 04:30 PM
toots Offline
forum loafer
 
Join Date: Nov 2007
Posts: 2
A quick and dirty way to do that is to add the following line somewhere in the index.php :

Code:
if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) $cfgrow['template'] = "hoo";
Reply With Quote
  #4  
Old 11-28-2008, 04:47 PM
Scarabaeus's Avatar
Scarabaeus Offline
pixelpost guru
 
Join Date: Dec 2007
Location: England
Posts: 139
Really nice template, I've had a go at playing around with it. My version's not Phone compatible but I'd love to know people opinions?

www.scarabaeus.co.uk
__________________

Reply With Quote
  #5  
Old 12-03-2008, 09:41 AM
Smartphoner Offline
pp veteran
 
Join Date: Jan 2008
Posts: 54
Send a message via MSN to Smartphoner
Quote:
if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) $cfgrow['template'] = "hoo";
Does not run ! The default template is loading on iPhone and not hoo....
__________________
My Photoblog: http://www.romankeller.ch
Reply With Quote
  #6  
Old 12-03-2008, 10:30 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Make sure you put this line after the initial loading of $cfgrow. If you put it to early the variable is overwritten by the original contents. This is why you see the default template.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #7  
Old 12-04-2008, 04:49 AM
mercator Offline
forum loafer
 
Join Date: Dec 2008
Posts: 7
This is a great tepplate! One question: How do I get the nice menus I see when browsing using the iphone at hoo.mixfrog.com? The ones that list the categories one by one by one vertically (but not using a pulldown but all of them visible at the same time so I can click on one and then it opens the thumbs in that category)?
Reply With Quote
  #8  
Old 12-04-2008, 04:41 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

Works great. I added the code to my index.php file on line 115... which will likely vary slightly from person to person. I put it right before the line that reads:

Code:
if ($cfgrow['markdown'] == 'T') {

-Witty
__________________
Reply With Quote
  #9  
Old 12-05-2008, 02:32 AM
CyberGus's Avatar
CyberGus Offline
forum loafer
 
Join Date: Mar 2006
Location: Mexico City
Posts: 11
Send a message via AIM to CyberGus
Thanks a lot!, now is working perfectly... I'm just adding some more CSS.

Reply With Quote
  #10  
Old 12-19-2008, 07:22 AM
mercator Offline
forum loafer
 
Join Date: Dec 2008
Posts: 7
Quote:
Originally Posted by mercator View Post
This is a great tepplate! One question: How do I get the nice menus I see when browsing using the iphone at hoo.mixfrog.com? The ones that list the categories one by one by one vertically (but not using a pulldown but all of them visible at the same time so I can click on one and then it opens the thumbs in that category)?
Trying again: Has anyone taken his/her iPhone and gone to to http://hoo.mixfog.com and looked at the way the overview page shows the categories? How does one do that? I only get the not-so-nice pulldown menu...

Thanks for any hint,
Mercator
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:53 AM.

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