Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #31  
Old 06-13-2008, 07:53 PM
mhulett Offline
forum loafer
 
Join Date: Jun 2008
Posts: 2
help please

could you please look at my site and tell me what i've done wrong. i thought i followed the instructions thoroughly but still can't get it to work. thanks so much.

http://www.me1585.com/photoblog
Reply With Quote
  #32  
Old 06-27-2008, 09:15 AM
blkant Offline
forum loafer
 
Join Date: Oct 2007
Posts: 14
I installed the albumview addon successfully, and turned it on.
I made a browse_album.html, and put the tag <ALBUMVIEW> in the file, but when I use the ....index.php?x=album to visit , the browser responds:
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

But the same tag <ALBUMVIEW> works well in the template file browse_template.html.
What's wrong with that?
Pls do me a favor if you know....thx.......
---------------------------
OMG, I made a so stupid mistake........the album template file should be album_template.html.
Reply With Quote
  #33  
Old 06-28-2008, 02:20 PM
aran Offline
forum loafer
 
Join Date: Jun 2008
Posts: 13
great addon by the way but I made a small modification which I believe you should include in your next version...

Basically I had some categories that have no images in, and they were showing up so I simply added a if statement around certain areas that checked to see if $num_rows is 0 if it did then it skips that section...

PHP Code:
        if ($num_rows 0){
        
$albumview .= "<div class=\"albumWrapper2\" >";
        }
        
        
$catquery "select ".$pixelpost_db_prefix."pixelpost.id, ".$pixelpost_db_prefix."catassoc.id, image_id, cat_id, image from ".$pixelpost_db_prefix."catassoc, " .$pixelpost_db_prefix"pixelpost where ((".$pixelpost_db_prefix."pixelpost.id = image_id) and (cat_id = ".$row['id'].") and (datetime<='$cdate')) ORDER BY datetime DESC LIMIT 1";
                
$catresultsmysql_query ($catquery);
        while (
$row1=mysql_fetch_array($catresults)) {
            if (
$num_rows 0){
            
$albumview .= "<a href=\"index.php?x=browse&category=" $row1['cat_id'] . "\"><img src=\"" $thumbpath "/thumb_" .$row1['image'] . "\" border=\"0\" alt=\" \" class=\"album-thumbnails\" /></a>";
            }
        }
        if (
$language_abr == $default_language_abr) {
            if (
$num_rows 0){
            
$albumview .= "<div class=\"albumTitle\"><a href=\"index.php?x=browse&category=" $row['id'] . "\">" stripslashes($row['name']) . " <span class=\"number\">($num_rows)</span></a></div>";
            }
        } else {
            if (
$num_rows 0){
            
$albumview .= "<div class=\"albumTitle\"><a href=\"index.php?x=browse&category=" $row['id'] . "\">" stripslashes($row['alt_name']) . " <span class=\"number\">($num_rows)</span></a></div>";
            }
        }
        if (
$num_rows 0){
        
$albumview .= "</div>";
        } 
Currently this is only for <ALBUMVIEW> because this is all I need, above is line 45 to 67 so you can get an idea of my mod.
Reply With Quote
  #34  
Old 06-28-2008, 03:59 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
I guess I never put that in because I thought why would you make a category if there were no photos in it?

Thanks for putting that in.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #35  
Old 06-29-2008, 08:34 AM
aran Offline
forum loafer
 
Join Date: Jun 2008
Posts: 13
No problem...
Reply With Quote
  #36  
Old 08-25-2008, 04:05 AM
seekc Offline
forum loafer
 
Join Date: Aug 2008
Posts: 4
Category 'ALL'

How would one get rid of the category 'ALL' and it's thumbnail?

Thanks! Great Addon BTW!
Reply With Quote
  #37  
Old 09-16-2008, 01:26 PM
yvankat Offline
forum loafer
 
Join Date: Sep 2008
Posts: 1
Question Album view help

Hi all,

I've got a problem installing album view.
--------------------------------------------------
Instructions

1. Add album_view.php to your addons directory and turn it on
- Done


2. Add some css to display the thumbnails properly. I've included the css I'm using as a sample in the package.
- Put it where???


3. Add one of the Album View tags to one of your templates. I would suggest making a new template page for this tag - for instance I put the tag on album_template.html. Tags to use:

<ALBUMVIEW> - Shows newest photo for each category.
<ALBUMVIEWPAGED> - Same as above but for use with Paged Archive Addon.
<ALBUMVIEWRAND> - Shows random photo for each category.
<ALBUMVIEWPAGEDRAND> - Same as abover but for use with Paged Archive Addon.

I must make a new template? Or use an existing? Put it where on the template?

I really dont get it. Hope someone else does and can help me.

Gr.

Yvan
Reply With Quote
  #38  
Old 09-16-2008, 04:25 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
CSS can go on the template or in your css file. I suggest making a new template file so you can still use all the functions that come in the browse template. Make a copy of one of your current templates and put the tag where you want the addon output to appear.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #39  
Old 10-05-2008, 09:26 PM
whitenoise Offline
forum loafer
 
Join Date: Sep 2008
Posts: 4
Great add-on... I'm trying it. Just a question: when i choose one one the album, the browser is redirected to a browse page for the selected category. Is it possible to redirect to an album view page that display all the thumbs for the desidered category?


Thank you


Giorgio
Reply With Quote
  #40  
Old 10-05-2008, 11:19 PM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
No - it's designed to redirect to the browse page
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:49 PM.

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