Pixelpost

Authentic Photoblog Flavour


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

Post Reply
 
Thread Tools
  #21  
Old 12-01-2008, 11:05 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by hicks0r View Post
I updated my installation, for now all is ok, let me test it I report you in a few days.
I just did some minor tweaks with regard to CSS, added README.txt. I now consider the javascript/CSS in final stages. I will work on modifications for full mod_rewrite in paged archive addon next.

http://joeroback.com/downloads
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #22  
Old 12-01-2008, 11:43 PM
hicks0r Offline
pp regular
 
Join Date: May 2005
Posts: 38
I download the last version. I have one more question, take a look at this page

http://www.enricmoreno.com/p/3

The photo is in "panoramic format", and the date and info+comment appears so down, it's possible when I publish that kinf of photos the text was under the image like when I post normal size images ?

And about xhtml HTTP headers what they do ?
__________________
ENRICMORENO dot COM | my pblog
Reply With Quote
  #23  
Old 12-02-2008, 01:12 AM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Yea I accidentally hard coded a 480px height in the style sheet. I fix it layer tonight when I get home
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #24  
Old 12-02-2008, 02:06 AM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
height issue fixed

Quote:
Originally Posted by robackja View Post
Yea I accidentally hard coded a 480px height in the style sheet. I fix it layer tonight when I get home
Ok, fixed. http://joeroback.com/downloads. All you really need is the joeroback.css file or remove the
Code:
min-height: 480px;
line from it.

The site is designed though for images that are 720px wide, but will work with anything smaller than 720px... but the main content is statically divided into a 720px area BY design.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #25  
Old 12-02-2008, 09:28 AM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
mod_rewrite

Ok, I hacked up paged_archive.php for full mod_rewrite support. Modified version read a variable $cfgrow['mod_rewrite'], if true, produces mod_rewrite friendly URLs, if false, produces previous URLs.

http://joeroback.com/downloads

It would be nice to get a mod_rewrite option in the main admin options page.

Need these following RewriteRules in your htaccess or apache config:

Code:
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5
RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #26  
Old 12-02-2008, 05:13 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Now get that code on Extend.
__________________
Jay Williams | A Different View
Reply With Quote
  #27  
Old 12-02-2008, 07:31 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
I put both the paged_archive mod as a single addon and the template on Extend.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #28  
Old 12-02-2008, 08:08 PM
hicks0r Offline
pp regular
 
Join Date: May 2005
Posts: 38
One more question, it's possible to have diferent page title?

I use that in the head

<title>enricmoreno dot com | <IMAGE_TITLE> | Image No. <IMAGE_ID></title>

That's OK when I'm on image_template.php but don't word (obviously) in te about or browse.

Any way to resolve it ?
__________________
ENRICMORENO dot COM | my pblog
Reply With Quote
  #29  
Old 12-02-2008, 08:14 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by hicks0r View Post
One more question, it's possible to have diferent page title?

I use that in the head

<title>enricmoreno dot com | <IMAGE_TITLE> | Image No. <IMAGE_ID></title>

That's OK when I'm on image_template.php but don't word (obviously) in te about or browse.

Any way to resolve it ?
Well the TAGs <IMAGE_TITLE> and <IMAGE_ID> are only defined in the image_template.html page. You can in Javascript, in the window.onload function, have it update the title.

Code:
window.onload = function() {
	document.title = document.title + ' | <IMAGE_TITLE> | Image No. <IMAGE_ID>';
	
	var img = document.getElementById('photo');
	
	img.onload = function(evt) {
		// using custom fader since Effect.Appear() from scriptaculous
		// lacks a few things:
		// (1) callback function to do something when appear effect completes
		// (2) work with visibility style instead of display
		fade(img, 0.5, 10, fadeCallback);
	}
	
	// set img src
	img.src = 'http://joeroback.com/images/20081130190138__mg_5130.jpg';
};
I don't know of any other way to have a custom title for just the image_template page without some sort-of complicated addon.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #30  
Old 12-05-2008, 06:54 PM
mckendall's Avatar
mckendall Offline
forum loafer
 
Join Date: Mar 2005
Location: Champaign, Illinois
Posts: 15
I've got to stop by here more often. Seems like there's a lot I'm missing out on. As for the template, I don't mind at all, Joe. Nice work...really.
__________________
photoblog: [ www.treeswing.net ]
blog: [ www.mckendall.net ]
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:54 AM.

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