Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 05-18-2008, 11:49 AM
TunaFish Offline
pp regular
 
Join Date: Dec 2007
Posts: 30
Hi Ubbe, I did some filtering on the browsepage and also the captions you want.
http://www.antonputtemans.com/index....=last_uploaded

First I hacked the functions_browse.php, but at the end I rewrote everything in the paged_archive.php addon.

Anyway, you can check out my functions_browse.php here
Reply With Quote
  #12  
Old 05-18-2008, 03:23 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Quote:
Originally Posted by Ubbe View Post
Once again, thank you very much, but with fear of sounding too demanding, I'd like to point out that it still gives a strange error when browsing categories..

Insted of showing the picture it gives the link, the image title, and the image file name, for example:
Mitsubishi
20080514174857_mitsubishi showcase copy.jpg

The little space infront of 'mitsubishi' is where the link is placed, It seems it's simply placing the info in wrong positions, I still can't find out which part of the functions_browse.php controls the browse though.
This should not be the case at all. I'll need to see an example or any other modifications you have made to the code.
Reply With Quote
  #13  
Old 05-18-2008, 03:54 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
Well this kinda spoils the presentation of my new layout lol

http://www.ubbedall.dk/blog/index.ph...wse&category=2

If you press the "All" button in the top right corner, you'll see that when it merely shows the browse page there are no problems, but when filtering by some category it makes the previously mentioned error.



[Edit]

Ahh I found out that this is the output for the thumb:

<a href="./index.php?showimage=12">
<img class="thumbnails" title="test2" alt="test2" src="thumbnails/thumb_2008-05-18 16:52:45"/>
</a>

the timestamp must be the thing breaking it up...
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote
  #14  
Old 05-18-2008, 05:19 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Why do your thumbnails have time-stamps but not your images? The filenames should be the same except for the affixed thumb_.

Also, your file names don't contain a file extension (.jpg)

If you can provide me with your browse page code and a snapshot of your thumbnails folder directory contents i'd be able to see what's going on a bit better. You can private message me this stuff if you wish or email using the link in my profile.
Reply With Quote
  #15  
Old 05-18-2008, 05:40 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Nevermind. I know what's happening.

You can still send me your browse page code and i'll fix it for you so you don't have to mess around too much as multiple queries will have to be fixed.

OR

You can attempt the fix yourself. It's not too difficult.

Wherever you see a mysql query containing $headline_selection add $body_selection after it.

so if you see

Code:
SELECT 1,t2.id,$headline_selection,image,datetime FROM
make it look like:

Code:
SELECT 1,t2.id,$headline_selection,$body_selection,image,datetime FROM
Also, watch out for one specific query.

Code:
SELECT 1, t1.id,t1.$headline_selection,t1.image, t1.datetime
Notice the t1.

so for this specific query you'll need to make it look like so:

Code:
SELECT 1, t1.id,t1.$headline_selection,t1.$body_selection,t1.image, t1.datetime
That should do it. Make sure you don't forget any! I also updated the browse page source file found in my earlier post to reflect the changes.
Reply With Quote
  #16  
Old 05-18-2008, 09:10 PM
Ubbe's Avatar
Ubbe Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Denmark
Posts: 151
It works like a charm now :P Thanks a lot!
__________________
Best Regards
Ubbe - UbbeDall.dk | Photoblog
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:49 AM.

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