Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #81  
Old 07-14-2006, 05:15 PM
ullmannn Offline
forum loafer
 
Join Date: Jun 2006
Location: Newark, DE
Posts: 17
Warchive (http://www.pixelpost.org/v1/index.ph...ads&details=67) is indeed the method I use for my tag cloud.
Reply With Quote
  #82  
Old 07-15-2006, 09:45 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Here is my test image_template.html file (for everyone having problems):
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title><SITE_TITLE></title>
<!-- Link for ATOM feed autodiscovery -->
<ATOM_AUTODETECT_LINK>
<!-- Link for RSS feed autodiscovery -->
<RSS_AUTODETECT_LINK>
<!-- Meta-Information -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="imagetoolbar" content="false" />
<meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />
<meta http-equiv="content-type" name="description" content="<SITE_TITLE>-PhotoBlog: <IMAGE_TITLE>, <IMAGE_NOTES_CLEAN>" />
<base href="<SITE_URL>" />
<!-- StyleSheet -->
<link rel="stylesheet" href="./templates/pixelpost-light/pixelpost-light.css" type="text/css" />
<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
    current=(document.getElementById(rid).style.display == 'none') ? 'block' : 'none';
    document.getElementById(rid).style.display = current;
}
// End -->
</script>
</head>
<body>
<div id="wrapper">

<div id="calendar">
<SITE_CALENDAR>
</div>


<div id="logo">
<SITE_TITLE>
</div>
<SC_IMAGE_PREVIOUS_LINK>
<img id="image" src="./images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_PREVIOUS_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" /></a>

<div id="image-info">
<span class='headline'><IMAGE_TITLE></span>
<IMAGE_NOTES>

<IMAGE_DATETIME> - <IMAGE_COMMENTS_NUMBER> comments. <IMAGE_CATEGORY><p />&nbsp;&nbsp;&nbsp;&nbsp;
<EXIF_CAMERA_MODEL><br />
<EXIF_EXPOSURE_TIME>  <EXIF_APERTURE>  <EXIF_FOCAL_LENGTH>  <EXIF_FLASH>  <EXIF_ISO>
<br style="clear:both;" />
<IMAGE_THUMBNAIL_ROW>

</div>

Browsing category: <SC_CAT_NAME> (#<SC_CAT_ID>)

<div id="image-navigation">
<SC_IMAGE_PREVIOUS_LINK_TXT> (#<SC_IMAGE_PREVIOUS_ID>, <SC_IMAGE_PREVIOUS_TITLE>, <SC_IMAGE_PREVIOUS_DATETIME_FORM>) 
<a href="index.php">Current</a> 
<SC_IMAGE_NEXT_LINK_TXT> (#<SC_IMAGE_NEXT_ID>, <SC_IMAGE_NEXT_TITLE>, <SC_IMAGE_NEXT_DATETIME_FORM>)
&nbsp;&nbsp;&nbsp;
<SITE_PHOTONUMBER> photos | <SITE_VISITORNUMBER> visitors
&nbsp;&nbsp;&nbsp;
<IMAGE_PERMALINK>
&nbsp;&nbsp;&nbsp;
<a href="<SITE_BROWSELINK>">Browse Archive</a>
</div>
<div id="comments">
<a href='#addcomment' onclick="flip('add-comment'); gotocomments(); return false;">Add Comment</a>
<IMAGE_COMMENTS>
</div>
<div id="add-comment">
 <script type='text/javascript'>
 <!--
 function gotocomments()
 {
	document.location = '#addcomment';
 }
 -->
 </script>
<script language='javascript' type='text/javascript'>flip('add-comment');</script>
<form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'>
<a name="addcomment">Message:</a><br />
<textarea name='message' rows='2' cols='40'></textarea><br />
<label for="name">Name:</label><br />
<input type='text' name='name' class='input' value='<VINFO_NAME>' id="name"/><br />
<label for="url">Website URL, if any:</label><br />
<input type='text' name='url' class='input' value='<VINFO_URL>' id="url"/><br />
<label for="email">Email (not visible to others):</label><br />
<input class='input' type='text' name='email' value='<VINFO_EMAIL>' id="email"/><br />
<input type='checkbox' value='set' name='vcookie' id="saveinfo" />Save User Info<br /><br />
&nbsp;&nbsp;<input type='submit' value='Add' />
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
</form>
</div>

<a href="http://validator.w3.org/check/referer">Valid XHTML</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> |
<SITE_RSS_LINK> | <SITE_ATOM_LINK> |
<a href="http://www.pixelpost.org" target="_new">Powered by Pixelpost 1.5</a>
</div>

<SC_THUMB_ROW><br /><br /><SC_THUMB_ROW_REV><br /><br />

SQL9: <SQL9><br />
SQL10: <SQL10><br />
SQL11: <SQL11><br />
SQL12: <SQL12><br /><br /><br />

SQL1: <SQL1><br />
SQL2: <SQL2><br />
SQL3: <SQL3><br />
SQL4: <SQL4><br /><br />

<SC_BROWSE_CATEGORY><br /><br />

SQL5: <SQL5><br /><EXEC_TIME><br /><br />

SQL1: <SQL1><br /><EXEC_TIME1><br /><br />
SQL2: <SQL2><br /><EXEC_TIME2><br /><br /><br /><br />


EXEC_TIME: <EXEC_TIME>
</body>
</html>
and here is for browse_template.html:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Browse Archive</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="imagetoolbar" content="false" />
<link rel="stylesheet" href="./templates/pixelpost-light/pixelpost-light.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="title">
Browse archive: <BROWSE_CATEGORIES><br /><br />
<BROWSE_CHECKBOXLIST><br /><br />
</div>

<div id="tag_cloud"><PIXELPOST_WARCHIVES smallest="5" largest="20" unit="px"></div>

<a href="index.php">Back to Site</a><br /><br />
<div id="images">
<SC_THUMBNAILS>
<SC_THUMBNAILS_NAV>
<SQL8>
</div>

<div id="tag_cloud"><PIXELPOST_WARCHIVES smallest="5" largest="20" unit="px"></div>

<a href="http://www.pixelpost.org" target="_new">Powered by Pixelpost 1.5</a>
</div>
</body>
</html>
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #83  
Old 07-17-2006, 11:37 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Within next few (10-20) hours there will be an update.

2-3 bugfixes and finished all categories linking stuff between main and browse page.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #84  
Old 07-18-2006, 08:38 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
IMHO Addon is right now in finished state.

Quote:
History 28:
  • finally finished full multicategory show support (now it also works where user is going from browse template to image template)
  • now archive has got sample template using all features of addon
  • fixed bug with images not ordered descending by date in one of cases in browse mode
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #85  
Old 07-19-2006, 09:55 AM
budgie Offline
forum loafer
 
Join Date: May 2006
Location: Perth, Western Australia
Posts: 19
Geos,
thanks for this addon and your hard work... I've just upgraded to v28 (from 1.6) and most things seem to be working (including a fix that for displaying the selected category name in the 'image' template). However I'm seeing a couple of weird things with v28..
  • When I select a category in my 'browse' template (for example: "Elements: Animals") I see all 19 pics in this category in the 'browse' template thumbnails however when I click on one of them and goto the 'image' template I'm finding that the 'previous' link from the main image picture isn't working. Probably easiest to explain if you try it.
  • Under my 'browse' template I'm only seeing 20 of my 53 photo thumbnails being displayed when there is no category selected (as it is when you first jump to the 'browse' page) whereas before I was seeing them all. Is there a config setting somewhere to set how many thumbnails are viewable per page?

I'll leave the v28 version running so you can see what I'm babbling about. It's here: http://www.aspect-photography.com/index.php Goto my 'browse' template, select a category (ie: "Elements: Animals") and then click on one of the thumbnails in the middle of that category.

Hopefully I'm doing something silly and it's an easy fix.

Cheers Tony
Reply With Quote
  #86  
Old 07-20-2006, 12:14 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
1. <SC_THUMBNAILS_NAV> - this is for navigation through pages in archive
2. inside addon there is config variable $sc_thumb_num with number of thumbs per page
3. Rest of problems Ill check out later
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #87  
Old 07-20-2006, 01:28 PM
budgie Offline
forum loafer
 
Join Date: May 2006
Location: Perth, Western Australia
Posts: 19
Geos,
I hope you don't think I'm being picky or hassling you about this stuff, I certainly only mean to get my addon working 100% and help identify any bugs (if there are any). With relation to your advice;

  • I apologise, for some reason I completely missed the $sc_thumb_num config option. This is all working now
  • I've used the <SC_THUMBNAILS_NAV> tag and it works however the 'next' nav option points to a non-existent page. ie: I've set my $sc_thumb_num to 36 so when I 'show all' pictures I get my 36 displayed and with the <SC_THUMBNAILS_NAV> I get options for pages '1' (current, no link), '2' (links to page showing remaining thumbnails) and 'next' (but the link fails). I noted that the URL that the 'next' option is trying to link to is: "pagenum=3" which doesn't exist (I have less than 2 pages of thumnails). See: http://www.aspect-photography.com/index.php?x=browse
  • I double checked the 'image' browse template for the 'previous' link problem and it's definitely doing weird stuff. I'll have a bit more of a play and let you know if I can find anything else that may help you.
  • and one more minor thing I noted.. (Sorry). When no gallery is selected (ie: showing all pics) the <SC_CAT_NAME> displays "every category" on my 'image' template and it changes to the correct category when one is chosen which is great. However when no category name is chosen the <SC_CAT_NAME> doesn't return the same "every category" name in the 'browse' template but works ok as soon as you select a category. In my 'browse' template I use the <SC_CAT_NAME> in the box header, prefaced with the text "Viewing gallery", ideally when no category is chosen in the 'browse' template the <SC_CAT_NAME> would return the "every category" text as it does in the 'image' template


cheers tony
Reply With Quote
  #88  
Old 07-20-2006, 05:29 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Thanks for your post.

Ill try to look on it tonight - now I must go out.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #89  
Old 07-21-2006, 06:27 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
In my developers enviroment I couldnt simulate same problem as you wrote. I dont know what is wrong.

PS IMHO category should stay empty if user looks thorough all photos. That is my point of view.
Fix for thinking in other way is simple. Near line 420 find:
PHP Code:
        $sc_browse_category .= "<option value=\"index.php\">ALL</option>\n"
and replace with:
PHP Code:
        $sc_browse_category .= "<option value=\"index.php\"";
        if(
$cat_id == '')    $sc_browse_category .= ' selected';
        
$sc_browse_category .= ">ALL</option>\n"
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #90  
Old 07-23-2006, 01:38 PM
budgie Offline
forum loafer
 
Join Date: May 2006
Location: Perth, Western Australia
Posts: 19
Hi Geos,
Ok, I've done some more playing and have managed to get around most of the problems I was seeing (see below for what I did) however I still have the problem whereby....

You select a category on the 'browse' template and see the list of thumbnails. You then click on one of those thumbnails and you jump to the 'image' template with the chosen thumbnail displayed as the image plus the thumbnails from the other images in that category are displayed - all good so far. The problem I have is that the <SC_IMAGE_PREVIOUS_LINK> link no longers works, the navigation bar 'previous' link is dead and the images title text (set by <SC_IMAGE_PREVIOUS_TITLE>) returns "No previous image". I can view the previous images in that category by clicking on the thumbnails at the bottom of the 'image' template and the (<SC_IMAGE_NEXT_LINK>) "next" navigation link works fine (including the 'next' link disabling itself when the end of images in that category is reached. To me it looks like there may be a problem with the <SC_IMAGE_PREVIOUS_TITLE> code however you say you're unable to reproduce this so I'm at a loss.

To see this problem in action click here: http://www.aspect-photography.com/in...58&category=30 where I've selected category "Elements: Animals" from the 'browse' template, then click on the fish shot (image=58, cat=30).



I've looked around but can't seem to work this one out so any/all help is appreciated. I'm happy to run whatever tests you may need etc.

cheers tony



  • For the <SC_THUMBNAILS_NAV> showing the 'next' link with the incorrect page number (ie; page "3" instead of page "2") I simply removed lines 306 and 322 from your addon code. These were the two lines that created the 'previous' and 'next' links. I also changed the page number display to always show (even if there was only 1 page) by setting the IF statement at line 304 to "if($pages_numb > 0)"
  • I can work around the <SC_CAT_NAME> name not returning 'every category' (as it does on the 'image' template) so I'm ok with this now.
Reply With Quote
Post Reply


Thread Tools




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

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