View Full Version : Addon: GeoS Show Category ADDON
Name:
GeoS Show Category ADDON
DESC:
This addon gives you possibility to watch images on front page within choosen category.
To do so you need to add extra variable to standard URL - category=CAT_ID.
I.e. URL should look like http://piotrgalas.com/index.php?showimage=1000&category=10 - this will give you possibility to watch only images from caterogy with ID = 10
For URLs without specified category variable it works normally just like standard Pixelpost.
Plugin inspreated by jdleung needs - thx :)
PS In all my "fresh" addons there is always Paypal button thanks to which you can donate process of creating next releases of it. The amount of money doesnt matter - the most important for me is to see its worth to sleep less, to read about new technologies, to search new solutions and think about new ideas.
People ask where they can see it online. Right now I dont know any place where current version is running BUT very similar to this release you can see at Vernon Trents site. The only difference is that its one month old and released in unofficial way, especially for him. Take a look:
http://www.xoverip.info/pb/
Installation:
Just copy it to addons directory. Then add proper tags to your image_template.html and browse_template.html files and thats all.
Available tags:
<SC_IMAGE_PREVIOUS_ID> - gives ID of previous image
<SC_IMAGE_PREVIOUS_NAME> - gives filename of previous image
<SC_IMAGE_PREVIOUS_TITLE> - gives title of previous image
<SC_IMAGE_PREVIOUS_DATETIME> - gives date and time of previous image
<SC_IMAGE_PREVIOUS_DATETIME_FORM> - gives formated date and time of previous image
<SC_IMAGE_PREVIOUS_LINK> - gives link to previous image (just first part of HTML code - <a href=...>)
<SC_IMAGE_PREVIOUS_LINK_TXT> - gives text link to previous image (linked Previous text from localization file)
<SC_IMAGE_NEXT_ID> - gives ID of next image
<SC_IMAGE_NEXT_NAME> - gives filename of next image
<SC_IMAGE_NEXT_TITLE> - gives title of next image
<SC_IMAGE_NEXT_DATETIME> - gives date and time of next image
<SC_IMAGE_NEXT_DATETIME_FORM> - gives formated date and time of next image
<SC_IMAGE_NEXT_LINK> - gives link to next image (just first part of HTML code - <a href=...>)
<SC_IMAGE_NEXT_LINK_TXT> - gives text link to next image (linked Next text from localization file)
<SC_CAT_ID> - gives ID of current category
<SC_CAT_NAME> - gives name of current category
<SC_BROWSE_CATEGORY> - gives form with selectable category
<SC_THUMBNAILS> - gives thumbnails with it's category in link for browse_template
<SC_THUMBNAILS_NAV> - gives page navigation through thumbnails in browse_template
<SC_THUMB_ROW> - gives thumbnails row for image_template (if THUMBNAILROW in admin section is even then it's value will be incement by 1)
<SC_THUMB_ROW_REV> - gives thumbnails row, in reversed order, for image_template (if THUMBNAILROW in admin section is even then it's value will be increment by 1)
<SC_CATEGORY_LINKS_AS_LIST_PAGED> - gives list of categories linked to the newest image in category
<SC_IMAGE_NEXT_THUMB_NAME> - gives back filename of next thumbnail
<SC_IMAGE_PREVIOUS_THUMB_NAME> - gives back filename of previous thumbnail
Addon page:
http://www.pixelpost.org/extend/addons/geos-show-category/
Download:
http://www.pixelpost.org/extend/addons/geos-show-category/
History 57:
Fixed alternative language support (thx KArin)
History 55:
New tag - <SC_CATEGORY_LINKS_AS_LIST_PAGED> - gives the list with links to categories redirecting to the newest image in selected cat. It shows also the number of images in bracket. (thx to Vernon Trent for inspiration)
Now there is no need to set any configuration inside addon code - all data are stored in DB.
Added support of bilingual category names - based on Pixelpost 1.6 (thx goes to luxtom)
Added tags for filename of next and previous thumbnail - <SC_IMAGE_PREVIOUS_THUMB_NAME> and <SC_IMAGE_NEXT_THUMB_NAME> (this time thx also goes to luxtom)
History 46:
New version checkup mechanism
Tags support
Fix of bug (thx to austriaka - http://forum.pixelpost.org/showpost.php?p=42878&postcount=142)
History 31:
fixed buggy redirection to the first image (now it doesnt redirect to images from future set)
fixed another bug with for first IF statement
small code optimization
History 30:
fixed bug with link to "next" subpage in browse template (thx to budgie)
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
History 25:
fixed bug of not showing thumbnails in browse_template (thx to ullmannn)
fixed bug of incorrect version numbering
History 24:
at first here it is - new method of version numbering as I'm currently using SVN in my development process
all who use this addon also in archives now they can use paging support - there is 1 new tag <SC_THUMBNAILS_NAV> which gives page navigation through thumbnails in browse_template
now inside selectable list with categories active one is marked
all unique elements visible in HTML code have own ID or class (if there is more same elements)
as some of users were saying about problems with chr(10) at ends of lines now there isn't such solutions
as archive now supports links with multiple categories next point on TODO list is to add such support in image preview mode (currenly there is no way to go from archive and watch just selected categories straight from it; there is such option only at start watching images from image preview navigation)
History 1.6:
2 new tags <SC_THUMB_ROW> and <SC_THUMB_ROW_REV> which gives option to put row of thumbnails with same category as current; there is additional configuration variable $sc_th_row for enable/disable this future
History 1.5.1:
fix SQL query for categories dropdown list which now does not give option to go to image which is not public available (thx RobbieMc)
History 1.5:
tags which are not anymore present: <SC_IMAGE_NAME>, <SC_IMAGE_TITLE>, <SC_IMAGE_ID>, <SC_IMAGE_DATETIME>, <SC_IMAGE_DATETIME_FORMATTED>, <SC_IMAGE_NOTES>, <SC_IMAGE_NOTES_CLEAN>, <SC_IMAGE_NOTES_NO_MARKDOWN>, <SC_IMAGE_WIDTH>, <SC_IMAGE_HEIGHT>, <SC_IMAGE_THUMB_WIDTH>, <SC_IMAGE_THUMB_HEIGHT>, <SC_IMAGE_CATEGORY>
now there are comments to code
now previous & next title when are empty are set with proper text for it - No Previous Image & No Next Image (thx to RobbieMc)
code for showing first image in category (when URL has got only category variable in query string) is optimized - instead of additional SQL querys and code for additional tags there is redirect to show image in "standard" way; this makes enable EXIF and whole rest of futures which were available before installing this addon and before case which we are talking in this point
starting from this version there is archive to previous version for people who wants to get older versions (from many reasons) - this will be a standard for all my new developed addons
History 1.4:
Added new tags for description of current image: <SC_IMAGE_NAME>, <SC_IMAGE_TITLE> <SC_IMAGE_ID>, <SC_IMAGE_DATETIME>, <SC_IMAGE_DATETIME_FORMATTED>, <SC_IMAGE_NOTES>, <SC_IMAGE_NOTES_CLEAN>, <SC_IMAGE_NOTES_NO_MARKDOWN>, <SC_IMAGE_WIDTH>, <SC_IMAGE_HEIGHT>, <SC_IMAGE_THUMB_WIDTH>, <SC_IMAGE_THUMB_HEIGHT>
Added new tag <SC_IMAGE_CATEGORY> for category list to which belongs current image
Added new tag <SC_THUMBNAILS> for browser template usage with all futures available in my addon; there is additional configuration variable $sc_browse_cat for enable/disable this future (thx for inspiaration to RobbieMc)
Now tag <SC_CAT_NAME> is set to "every category" when we are not watching one of available categories (thx to RobbieMc)
History 1.3:
Added new tags <SC_IMAGE_PREVIOUS_DATETIME_FORM> and <SC_IMAGE_NEXT_DATETIME_FORM> for formated date of previous and next image
Added new tag <SC_BROWSE_CATEGORY> which gives form with selectable category (thx for inspiaration to RobbieMc)
Added configuration variables inside script which tell if code for form with selectable category should be executed (for this who dont use this form it will speed up addon) and if you want to get current image ID under sc_image_next_id or sc_image_previous_id when you are watching image at one of ends (once more time thx to RobbieMc)
History 1.2:
Added new tag for category ID <SC_CAT_ID> (thx RobbieMc).
Bugfix of next links problem (thx jdleung)
History 1.1:
First public version
RobbieMc
03-10-2006, 11:34 PM
This looks great, GeoS, exactly what I was looking for. I have a few questions though about implementation. How do you pass the CAT_ID variable from the first image viewed to the next? I can get the SC_IMAGE_ID to pass the next image in that category, but as soon as the page loads, the CAT_ID is lost. It needs a tag for CAT_ID but I can't find reference to one? Am I missing something here? Thanks.
jdleung
03-11-2006, 12:22 AM
SMART IDEA!
GREAT ADDON!
:D
blinking8s
03-11-2006, 06:36 AM
nice, this has been in high demand for a while, i'll have to check it out when i get home
How do you pass the CAT_ID variable from the first image viewed to the next? I can get the SC_IMAGE_ID to pass the next image in that category, but as soon as the page loads, the CAT_ID is lost. It needs a tag for CAT_ID but I can't find reference to one? Am I missing something here? Thanks.
Good questions - it is what I was waiting for :)
1. Today Ill try to add CAT_ID tag - its easy to do so at evening (my time is CET) there will be update.
2. Instead of linking only by SC_IMAGE_NEXT_ID it would be better to use prepared tag with link: SC_IMAGE_NEXT_LINK (which gives you <a href=...>) or its text version SC_IMAGE_NEXT_LINK (which gives whole text link with localizated string - <a href=...>Next</a> for english, <a href=...>Nastepny</a> for polish and so on)
There was an update:
History 1.2:
1. Added new tag for category ID <SC_CAT_ID> (thx RobbieMc).
2. Bugfix of next links problem (thx jdleung).
History 1.1:
1. First public version
jdleung
03-12-2006, 01:43 AM
my original intention is that first showing my favorite images(specified category) in the front page,and then visitors can choose to go into my blog site which is ordered by datetime(normal PP). So I'm thinking how to automatically show category image when the first page loaded.
and GeoS gave me a suggestion adding this:
if(!isset($_GET["category"])) $_GET["category"] = My_category_id ;
it works,but when I want to show images ordered by datetime without any category,it always goes to the specified category.
and the above code from Geos give me inspiration, and find codes in index.php, so add like this:
if (!isset($_GET['showimage']) && !is_numeric($_GET['showimage']) && !isset($_GET["category"]))
{
if(!isset($_GET["category"])) $_GET["category"] = My_category_id;
}
Have fun.
Thanks again,GeoS.
RobbieMc
03-12-2006, 03:14 AM
Thanks, GeoS, for the CAT_ID tag. This is damn near perfect now. I have, however, a few more observations about integration:
1) Thanks for the tip on using <SC_...TXT>. That is fine on the navigation bar, but what about the image link itself? I use <a href="index.php?showimage=<SC_IMAGE_PREVIOUS_ID>&category=<SC_CAT_ID>" which passes the catgeory to the next image, but does seem to have one small glitch. When you arrive at the first image in that category, it returns a empty ID, which causes a "Not Found" error message. Would it be possible to have the _PREVIOUS_ID> and _NEXT_ID> tags return the same image id if there are no more in the category (like the <IMAGE_PREVIOUS_ID> appears to do.) or perhaps the most recent again?
2) As I said, this addon now has all the functionality to allow browsing within a category, but you still need to get the CAT_ID into the URL. This can be hardcoded I know, but I have two new requests :-) that would make this perfect:
a) A new <SC_THUMNAILS> tag that would pass both the Image id and the category ID to the image page when a thumbnail is clicked. If "ALL" is selected in catgeory, then the ID would be empty and the image page would act as a blog;
b) The second one may be a little more controversial (because it starts to move away from the blog format) but I could see a new <SC_BROWSE_CATEGORY> tag that would add a drop down menu to the image page that would pass an image ID and category ID to the URL to begin restricting browsing. This one might be trickier because you would have to change the image as well, and I suspect the best change would be to load the latest image in that category. I could certainly live without this feature but would be quite happy to have the SC_THUMBNAILS.
Thanks again for all the great work.
There is an update.
History 1.3:
1. Added new tags <SC_IMAGE_PREVIOUS_DATETIME_FORM> and <SC_IMAGE_NEXT_DATETIME_FORM> for formated date of previous and next image
2. Added new tag <SC_BROWSE_CATEGORY> which gives form with selectable category (thx for inspiaration to RobbieMc)
3. Added configuration variables inside script which tell if code for form with selectable category should be executed (for this who dont use this form it will speed up addon) and if you want to get current image ID under sc_image_next_id or sc_image_previous_id when you are watching image at one of ends (once more time thx to RobbieMc)
1) Now you (RobbieMC) got variable for it in configuration part.
Going back to this topic - you got SC_IMAGE_NEXT_LINK_TXT AND SC_IMAGE_PREVIOUS_LINK_TXT which shows up only if there are some pictures.
You can use SC_IMAGE_NEXT_LINK AND SC_IMAGE_PREVIOUS_LINK just like above but for rest of non-text elements (i.e. for images linking).
2) a) - I left it for future release
2) b) - Now it is implemented. I was trying to get one smart query for MySQL < 4.1 for a whole day but I didnt found such. There is only "small" automatic optimalization for MySQL >= 4.1 which speeds up query ~10%.
PS By default configuration is set to disable 1) and 2) b). Not everyone wants such behaviour and slower scripts.
RobbieMc
03-13-2006, 03:40 AM
Thanks again GeoS, for the script and for the amazing turnaround. I now have everything I need to finalize the blog template for my wife (the real photographer). I will post a link when I am done and it is live.
Long live PP.
Rob
nice!
this was where i was waiting for, but..
one thing doesn't work:
if i put this in my html: <SC_CAT_NAME>
it doesn't give me any output.
:(
does anyone have a solution?
RobbieMc
03-17-2006, 02:39 PM
It only provides output if there is a "&category=x" in the URL, so this tag is only useful when you have entered restricted browsing mode by some means. I imagine that ot would be possible to code the tag to display the cetgory of the current image, as opposed to what is in the URL, but that is beyond my capabilities.
Ah than it doesn't do wat i want :)
do you know if it's possible to make it possible to select a catagorie on the frontpage?
here's my example (not in the final design)
http://www.poezebeesten.nl
it's about 3 cats, i want to be able to view the front page for only one of the cats. could that be possible?
thx,
Harold
At weekend there will be quite important update.
Till it please write here all your suggestions about this addon - Ill try take a look on them and maybe put into this (weekends) release.
jdleung
03-17-2006, 04:28 PM
Ah than it doesn't do wat i want :)
do you know if it's possible to make it possible to select a catagorie on the frontpage?
here's my example (not in the final design)
http://www.poezebeesten.nl
it's about 3 cats, i want to be able to view the front page for only one of the cats. could that be possible?
thx,
Harold
insert the following codes at the begining of codes, you will find what you want:
/*****************/
/* CODE of ADDON */
/*****************/
if (!isset($_GET['showimage']) && !is_numeric($_GET['showimage']) && !isset($_GET["category"]))
{
if(!isset($_GET["category"])) $_GET["category"] = 2;
}
remember to change your category id.
by now, the first image will be the latest image of all images, the second starts to perform the category you want.
It's only a substitute. I think GeoS will give us a suprise soon.
At weekend there will be quite important update.
Till it please write here all your suggestions about this addon - Ill try take a look on them and maybe put into this (weekends) release.
cool!
Well, in short:
i want a button to view only one category at a time (or all)
I'll put a menu in my site to show what i exactly want :)
but that, later tonight.
jdleung: looks nice, but i guess i'll wait for the update first.
thx!
RobbieMc
03-17-2006, 07:04 PM
hs-l, if you only have three categories (one for each cat) and don't intend to change them often, then you could hard code three buttons on the template with URLs that include the category ID (i.e, ...index.php?category=1, etc. and a fourth button that resets the URL to not have a category.
You can also use the category drop down tag (<SC_BROWSE_CATEGORIES>)that GeoS developed to be able to limit your browsing.
But as you say, I expect that GeoS update will make all of this even easier.
GeoS, two things come to my mind for suggestions, the first of which I mentioned earlier so you may already have it covered:
1) a <SC_THUMBNAILS> replacement for the browse_template that passes the category ID selected in the browse template to the image_template;
2) I have put the <SC_BROWSE_CATEGORY> on my main page, but I wanted also to tell viewers that they were in fact browsing a limited set. I have currently hard coded in the template beside the drop down: "You are currently browsing <SC_CAT_NAME>.", which works fine when one has actually selected a category. When no category is selected, since <SC_CAT_NAME> is blank, my sentence remains unfinished. Code in the tag that results in "all images" or "All" or "all categories" when no category is selected would be nice.
That is all I can think of right now. Thanks again.
Rob
You can also use the category drop down tag (<SC_BROWSE_CATEGORIES>)that GeoS developed to be able to limit your browsing.
this is what i also wanted, but it doesn't work :(
RobbieMc
03-17-2006, 08:42 PM
Two thoughts: I misquoted the tag name above: it is <SC_BROWSE_CATEGORY>, not categorIES;
Also, I suspect it must be on the image_template to work properly, and you have to change the "next" and "previous" buttons for them to pass the category to the next image.
Beyond that, I don't have access to my code right out to confirm.
Good luck.
jdleung
03-18-2006, 03:06 AM
this is what i also wanted, but it doesn't work :(
1.set $cat_form = 1;(in addon codes)
2.don't forget to insert a form tag in image_template.html : <form><SC_BROWSE_CATEGORY></form>
have fun.
spipasucci
03-19-2006, 04:07 PM
Has anyone posted an example of this addon 'in action' yet? I'm curious and wanting to implement it but not sure how to get it to function in a clear way with my existing setup...
Looking forward to the next update....
<form><SC_BROWSE_CATEGORY></form>
IMHO this <form> and </form> is not needed.
Is it problem without this two tags to validate template?
PS Im starting to make final tests of version 1.4. Maybe Ill add this thumbnails future today too (if there would be enough time for it).
There was upgrade (to v. 1.4):
http://pixelpost.org/v1/index.php?x=downloads&details=156
If you use this addon now then please make backup of it before upgrade. Its late in here (about 4AM) and I dont know if I made all needed test :P
All posts with comments will be appreciate.
History 1.4:
1. Added new tags for description of current image: <SC_IMAGE_NAME>, <SC_IMAGE_TITLE> <SC_IMAGE_ID>, <SC_IMAGE_DATETIME>, <SC_IMAGE_DATETIME_FORMATTED>, <SC_IMAGE_NOTES>, <SC_IMAGE_NOTES_CLEAN>, <SC_IMAGE_NOTES_NO_MARKDOWN>, <SC_IMAGE_WIDTH>, <SC_IMAGE_HEIGHT>, <SC_IMAGE_THUMB_WIDTH>, <SC_IMAGE_THUMB_HEIGHT>
2. Added new tag <SC_IMAGE_CATEGORY> for category list to which belongs current image
3. Added new tag <SC_THUMBNAILS> for browser template usage with all futures available in my addon; there is additional configuration variable $sc_browse_cat for enable/disable this future (thx for inspiaration to RobbieMc)
4. Now tag <SC_CAT_NAME> is set to "every category" when we are not watching one of available categories (thx to RobbieMc)
RobbieMc
03-21-2006, 05:11 PM
Thanks, GeoS, once again, for a fine upgrade. The additional tags now make the installation complete, allowing complete control over restricted browsing. I did have some tags that didn't show the info correctly (eg. SC_IMAGE_NAME), but I suspect that it was just the way I had implemented it. (For now, the original IMAGE_NAME seems to still show the name even when in restricted browsing (although I suspect I will find out why you had to create new tags for these.)
I have one problem, but I don't think it is related to this addon, and that is that the tag (can't remember what it is called now) that places the name of either the category browsed or the month browsed on the browse page doesn't show the month, although it doeas show the category. It has never worked when SC_THUMBNAILS is used, but it only worked once when normal THUMBNAILS was used, so I think I may have done something wrong somewhere.
Another problem I have is with my CSS validation. It won't even start the validation: I get a "validate your xml first" and "content not allowed in prolog" error messages. But as above, even though this error started when I installed the addon, I don't think it is caused by the addon.
Finally, I do get one xhtml validation error from the addon, but it does not seem to be related exclusively to the addon: all the dropdown boxes on my site (SC_BROWSE_CATGEORIES, BROWSE_CATGEORIES, etc) get a document type error related to
...there is no attribute "onChange".
...)</b> <select name="browse" onChange="self.location...
with the quotes between onChange and self seeming to cause the problem.
BTW, I just realized last night that the function that reproduces the same image when you reach the end was not needed. I asked for it because I had used only <EC_IMAGE_ID>&category=<SC_CAT_ID> for the link from the image itself, which obviously produced an error when I got to the end. Now that I have properly installed <SC_IMAGE_PREVIOUS_LINK>, it simply remains blank when at the end, which is a much nicer implementation than what I suggested. (because the menu links disappear when you reach the end). Sorry for the confusion, but thanks for offering the option.
I will post a link to the site when I finish the language switch function that I am working on.
Today (when I will get up) Ill work on next update. Today I got new tricky idea for better/faster addon working in some conditions :) It will also need less work on stuff which is to do right now :)
Thx for your post Robbie. Ill read it carefully one more time when works on new version will start.
RobbieMc
03-22-2006, 01:47 AM
One thing I did notice, GeoS, is that <SC_IMAGE_PREVIOUS_TITLE> doesn't return "No Previous Entry" (from language file) like <IMAGE_PREVIOUS_TITLE> does.
Rob
@Robbie: Now in my Subversion archive your last hint is present.
Today (after some sleep and school) Ill upload on server new (IMHO) much better and somehow faster version of this addon. Just like I wrote before - I found one smart trick to do like that ;)
History 1.5:
1. tags which are not anymore present: <SC_IMAGE_NAME>, <SC_IMAGE_TITLE>, <SC_IMAGE_ID>, <SC_IMAGE_DATETIME>, <SC_IMAGE_DATETIME_FORMATTED>, <SC_IMAGE_NOTES>, <SC_IMAGE_NOTES_CLEAN>, <SC_IMAGE_NOTES_NO_MARKDOWN>, <SC_IMAGE_WIDTH>, <SC_IMAGE_HEIGHT>, <SC_IMAGE_THUMB_WIDTH>, <SC_IMAGE_THUMB_HEIGHT>, <SC_IMAGE_CATEGORY>
2. now there are comments to code
3. now previous & next title when are empty are set with proper text for it - No Previous Image & No Next Image (thx to RobbieMc)
4. code for showing first image in category (when URL has got only category variable in query string) is optimized - instead of additional SQL querys and code for additional tags there is redirect to show image in "standard" way; this makes enable EXIF and whole rest of futures which were available before installing this addon and before case which we are talking in this point
5. starting from this version there is archive to previous version for people who wants to get older versions (from many reasons) - this will be a standard for all my new developed addons
jdleung
03-25-2006, 04:05 PM
Great update, GeoS.
You did what I really want.
Thanks.
RobbieMc
03-27-2006, 01:40 AM
GeoS, I think I found a minor glitch in the addon: if you post images in advance of the day they will appear, the addon gets confused. The dropdown menu on the image template looks for all images in the specified category, without regard to post date. So when it passes the url to the browser with, for example, category=14&showimage=145, image 145 will be the latest image posted, and possibly dated after todays date. Since showimage=145 is not cleared for display, the "No image to show" error occurs.
Is it possible to limit the search for images in a category for those prior to the current date and time. Thanks.
Sorry, you have right - its a bug.
Ill fix it and release today after university.
History 1.5.1:
1. fix SQL query for categories dropdown list which now does not give option to go to image which is not public available (thx RobbieMc)
optishin
04-05-2006, 06:33 AM
first of all...great addon. It was exactly what I was looking for in regard to browsing within catagories.
Is there any way to create a thumbnail row underneath the main image view that only contains images from the selected catagory? Whenever I select a catagory and specific image, the same thumbnails (in date order) come up in the thumbnail row...displaying images that aren't in the catagory selected. I can get the next and previous buttons to work within the catagory, but the thumbnails confuse the viewer. Didn't know if I was missing something, or if this could be a future revision.
thanks!!!
pagingdave
04-05-2006, 03:26 PM
Geos...thanks so much for attacking this feature...I think it's a great addon for a great piece of software
Though I can usually muddle through impementing such things I'm having a little trouble with something
I know how and where to add the tags...no problem
but how do I
"add extra variable to standard URL - category=CAT_ID." as instructed?
where would this be "added"? I assume it would go in a template...but I really haven't a clue.
Thanks in advance.
@optishin: I forgot about this. It was a part of version 1.4 and when I was making addon more simple I erased it.
Ill try to add it in next revision, 1.6, maybe at weekend.
@pagingdave: It depends from what you want to link as catogorized.
There are ready to use tags for previous and next image which works fine even if there is no category selected. Please check i.e. <SC_IMAGE_PREVIOUS_LINK_TXT> and <SC_IMAGE_NEXT_LINK_TXT>.
pagingdave
04-05-2006, 05:46 PM
Thanks Geos...I'll experiment with those tags...
If you would get any problems then just PM me. Ill try to help you. In next version Ill attache some small howto.
pagingdave
04-05-2006, 05:58 PM
I guess I should be more explicit with what I need to do.
What I'd like is:
1) From the standard browse template a person selects a category from the dropdown menu which takes them to that categories group of thumbnails (normal function of PP)
2) The person selects a thumbnail they like which takes them to the large image (again already a normal function of PP)
3) If they click that large picture, it goes to the next image within that category, and the next image does the same, until they are at the end of that category. (this I have no idea how to do)
4) The same behaviour for all categories except "ALL" If they select "ALL", then PP functions normally.
I'd really prefer to use the dropdown menu rather than text.
Am I dreaming...or just out of my league?
Its done already.
1) Set $cat_form variable to 1 in addon configuration section and then use <SC_BROWSE_CATEGORY> tag for it in template.
2) Here you should use <SC_IMAGE_PREVIOUS_LINK> tag in image_template.html as link under large image (put this tag before <img ...> tag).
3) Set $sc_round variable to 1 in addon configuration section.
PS Really use PM for problems. Im going to work on addon right now and then lear a little before tomorrows exam. Only PM will bring me back to this today :P
pagingdave
04-05-2006, 06:28 PM
Thanks Geos...
I'll PM you if i have a problem...i think i got it now, though.
jaybussiere
04-09-2006, 01:35 AM
Here is my CSS thumbnail code bug fix. It seems the margin gets some extra spacing for some reason...
/* margin CSS tags are buggy and need one negative value to equal 0. I'm not sure why this is but is only needed for the *GeoS Show Category ADDON* for pixelpost. The default pixelpost CSS value of 0 work fine. */
.thumbnails {
background: #CCCCCC;
border: 1px solid #CCCCCC;
padding: 0px;
margin: -1px;
}
.thumbnails:hover {
background: #FFFFFF;
border: 1px solid #666666;
padding: 0px;
margin: -1px;
}
jaybussiere
04-09-2006, 02:56 AM
Geos, the addon works wonderfully.
a little tricky on the href links on whether to add the <tags> inside or outside. which was different on 2 occasions (one in and the other outside).
check it out:
http://www.opticdesire.com/pixelpost/index.php?x=browse&category=30
pixelpost is now everything i needed! for now! perfecto!
Cool to see that it works for you ;)
RobbieMc
04-10-2006, 02:46 AM
Here is my CSS thumbnail code bug fix. It seems the margin gets some extra spacing for some reason...
I also found that the thumbnails generated by <SC_THUMBNAILS> gained a little in the margins from the original <THUMBNAILS> tag. I fixed it on my site by modifying the addon script itself, removing the ".chr(10)" from line 238.
I guess that code is for a carriage return or something that ends up putting each thumbnail on a different line in the output html. Removing it tightened them up again.
Rob
Ill remember that in next release.
greentraveler
04-30-2006, 12:28 AM
Thanks for the update today! :D
There was an update.
Please read addon changelog (history) on forum (http://forum.pixelpost.org/showpost.php?p=25565&postcount=1) or in addon section of pixelpost.org (http://pixelpost.org/v1/index.php?x=downloads&details=156).
EDIT: Green you've posted just before my info about update (you were faster then I) :P
PS Please all of you - inform me if there is something not OK (about any bugs) or if you want something more (but for today I think that is all what it should have)
greentraveler
04-30-2006, 02:06 AM
Geos, the addon works wonderfully.
a little tricky on the href links on whether to add the <tags> inside or outside. which was different on 2 occasions (one in and the other outside).
check it out:
http://www.opticdesire.com/pixelpost/index.php?x=browse&category=30
pixelpost is now everything i needed! for now! perfecto!
Jay,
Just so I don't go crazy trying to figure out whether or not your category navigation is dynamically generated...the categories on the right side of the page you linked to were hardcoded, right? If not, please share your secret...maybe it's not even a secret and I'm missing something big. But having a list automatically generating links to category-only viewing is too tempting not to ask about.
Any way you slice it, nice site!
ttlive
05-01-2006, 11:21 PM
That's a great plugin, thank's a lot!
I'm just having a little problem here (http://www.foto.ttlive.de/index.php?showimage=39&category=7) with the drop-down-menue.
After I had selected or changed a category (e.g. "Germany") in the drop-down-menue and after than the page as been reloaded, the name of the category is disapearing in the box. Insead off e.g. "Germany" there is nothing (blank) shown in the box. I tried it with Firefox and the Konqueror on Linux.
The name of the category is shown under next to the "SC_CAT_NAME" tag, so everything is working fine, the browsing, the thumbnails, ...
... but just the name of the selected category is disapearing th e drop-down-menue.
Did I do something wrong, is there something I forgot and a way to fix it or is it a bug?
Its not bug, I didnt forget about this, ... - there was no such intention for this drop-down menu.
Solution is quite easy. Find in code of addon (line 334/345):
while(list($cat_id,$cat_name,$img_id) = mysql_fetch_row($query4))
{
$sc_browse_category .= '<option value="index.php?category=' . $cat_id . '&showimage=' . $img_id . '">' . $cat_name . '</option>';
}
and replace it with:
while(list($cat_id,$cat_name,$img_id) = mysql_fetch_row($query4))
{
$sc_browse_category .= '<option value="index.php?category=' . $cat_id . '&showimage=' . $img_id . '"';
if($cat_id == $_GET["category"]) $sc_browse_category .= ' selected';
$sc_browse_category .= '>' . $cat_name . '</option>';
}
PS I didnt test it but it should work fine :) Write to me a PM if it doesnt work then we will find solution.
RobbieMc
05-03-2006, 02:02 AM
Geos, I didn't test your solution so I can't tell clearly what it does, but I have so much faith in your work that I know it works. However, I think I managed the same thing that ttlive requested by changing this (around line 323):
$sc_browse_category .= '<option value=""></option>'.chr(10);
to:
$sc_browse_category .= '<option value="">'.$sc_category.'</option>'.chr(10);
You can also change the text in line 311 ("every category") and line 324 ("All") to whatever you want so that the drop down has the text you want.
(Geos, I think the difference between my solution and yours is that yours will show a name in the drop down box only when a category is selected and be blank when one is not, where as mine will show the category name when one is selected, but will show the contents of line 311 (in the original addon file) when none is selected. Which you use depends on how you want to implement it.)
Hope that helps (see http://photoblog.sophiepasquet.com for example).
BTW, Geos, with this <SC_THUMBS_ROW> tag, this addon really is perfect. Congratulations and thanks.
Rob
Im glad that you like it.
Im going out on trip to Czech Republic in 20 minutes so I wont write more :P Ill do whem Im gonna be back.
fruitystar
05-10-2006, 10:30 PM
Hi,
I've just been testing out some of the features of your add on GeoS...pretty cool! One thing though, and perhaps I've missed it and it might already be there, but can the number of thumbnails be set so you only see a certain amount on a page within a category ? So for instance I only see 25 thumbnails on one page and then there are page number links (i.e page 1 | 2 | 3 | 4.....) which lets me go to the next page to see 25 further thumbnails within the same category?
I saw on your website that you have this feature working for you (http://geos.wzzone.com/browse/category/14/1/). I would love to know how you've done it?!
Thanks
@fruitystar: this feature which you are talking about is done thanks to mod_rewrite and modyficated by myself Page-By-Page-Archive Version 1.0.
If you want it just PM me with your email address and Ill send you my .htaccess and addon files.
fotoquid
06-13-2006, 03:55 PM
Solved! Thanks! :D
--------------------------------------
Thanks for this fantastic addon! With this my website is perfect! :D
But I have a little problem with the thumbnails row using the tag <SC_THUMB_ROW>: as you can see in this page
http://www.fotoquid.com/photo06/index.php (http://www.fotoquid.com/photo06/index.php)
the thumb referred at the active image is incoerent.... like a random thumb.... why? :confused:
Thanks in advance!
Antonio Napoli / Fotoquid
1. I dont see any random thumbnail but today I found similar issue at other user host.
2. In next version there will be multipage archive. I need only to pass term.
moloko
06-20-2006, 06:45 AM
Hi there,
can anyone please tell me, how and where I can modyfy the URL of Pixelpost?
The addon is exactly what I need for my blog.
But where is a step-by-step manual to implement it and make it working right.
I think, most of the readers arent php- or sql specialists.
Thanx a lot ...
:confused:
fotoquid
06-20-2006, 07:49 PM
1. I dont see any random thumbnail ....
I had make some change at my website.. removing the addon in the last days...
Now I have re-actived this addons and the problem .... :(
I have a little problem with the thumbnails row using the tag <SC_THUMB_ROW>: as you can see in this page
http://www.fotoquid.com/photo06/index.php
the thumb referred at the active image is incoerent.... like a random thumb.... why?
Thanks GeoS!
Antonio Napoli / Fotoquid
I found this problem at other users blog and reason was quite simple - he had an addon which was using variable $image_name or similar which I use to get name of current image/thumbnail. Oryginal variable (this from PP) was overwrite in other addon before my used it and that was why it was "random".
If I good remember that was addon for showing random thumbnails.
PS Im planing to sit back to this addon and develop it just after term. Same with documentation - Ill write some short "HOWTO".
fotoquid
06-21-2006, 07:17 AM
I found this problem at other users blog and reason was quite simple - he had an addon which was using variable $image_name or similar which I use to get name of current image/thumbnail. Oryginal variable (this from PP) was overwrite in other addon before my used it and that was why it was "random".
If I good remember that was addon for showing random thumbnails.
PS Im planing to sit back to this addon and develop it just after term. Same with documentation - Ill write some short "HOWTO".
I have found that the problem is due to this addons: "random_thumb - version 0.3)"... I have set to OFF this addons and all work right!:D
Thanks again Geos!
Fotoquid.
Problem is when addon developer overwrite PP variables. It would be great if all of them would not do that in future releases and leave it as they are for usage in other addons. There is no big deal to creat new, "own" variable.
fotoquid
06-22-2006, 07:43 PM
...another little request, if possible an if is simply...:rolleyes:
there is a mode to change the background color of the form select and the chars from white/black to black/white?
(from letter black/background white to letter white/background black)..
Thanks again & again! :)
Fotoquid
budgie
06-27-2006, 11:12 AM
Geos,
I'm sure this is something silly but the <SC_CAT_NAME> tag isn't working for me in the 'browse' template yet it works fine in the 'image' template...
What I'd like to do is display the category name that the visitor has selected in the 'browse' template page above the <SC_THUMBNAILS> (thumbnail row which works fine)...
My site is here: http://www.aspect-photography.com/index.php?x=browse&category=30
cheers tony
Ill work on it in next week. I just finished term.
budgie
06-30-2006, 09:25 AM
Thanks Geos however I assumed this 'should' already work and I was doing something stupid.. For instance I assume RobbieMC is using your addon at this site http://photoblog.sophiepasquet.com/index.php?x=browse&category=20 and that browse template seems to display the category name (top right, above thumbs)..
Maybe he made modification of my addon and moved code from 'image' to level up?
I finished term so at this week I want to work a little on Pixelpost and this addon.
ttlive
07-08-2006, 09:58 AM
Its not bug, I didnt forget about this, ... - there was no such intention for this drop-down menu.
Solution is quite easy. Find in code of addon (line 334/345):
while(list($cat_id,$cat_name,$img_id) = mysql_fetch_row($query4))
{
$sc_browse_category .= '<option value="index.php?category=' . $cat_id . '&showimage=' . $img_id . '">' . $cat_name . '</option>';
}
and replace it with:
while(list($cat_id,$cat_name,$img_id) = mysql_fetch_row($query4))
{
$sc_browse_category .= '<option value="index.php?category=' . $cat_id . '&showimage=' . $img_id . '"';
if($cat_id == $_GET["category"]) $sc_browse_category .= ' selected';
$sc_browse_category .= '>' . $cat_name . '</option>';
}
PS I didnt test it but it should work fine :) Write to me a PM if it doesnt work then we will find solution.
No I found how it's working...
$sc_browse_category .= '<option value=""><SC_CAT_NAME></option>'.chr(10);
$sc_browse_category .= '<option value="index.php">ALL</option>'.chr(10);
... I just added in the first line the SC_CAT_NAME tag and now the drop down box showes here (http://www.foto.ttlive.de/index.php?category=2&showimage=6) the current category name in the box
Now I am having an other little problem... when it comes to the last picture of the category (e.g. here (http://www.foto.ttlive.de/index.php?category=2&showimage=3) if you click on the image) I get the "not found" error..
.. does anybody have an Idea how I can avoid, with this great "geos_show_category", the "not found" error??
Now I am having an other little problem... when it comes to the last picture of the category (e.g. here (http://www.foto.ttlive.de/index.php?category=2&showimage=3) if you click on the image) I get the "not found" error..
.. does anybody have an Idea how I can avoid, with this great "geos_show_category", the "not found" error??
Yeah,
your solution is quite simple ;)
About error - it is just because you are using only tags for ID, not whole tag for link. Tag for ID returns nothing because there is nothing to show and tag for link shouldnt link to anywhere or just loop on last image. That is why you get an error.
You you want solve it you must handle exception when image ID is empty (i.e. by sending back to refering document) otherwise you should use other tag or do it completly in own way.
PS I got right now list of TODO stuff. Now Im going back to main code of Pixelpost. Take care all of you :)
ttlive
07-09-2006, 09:58 PM
Yeah,
your solution is quite simple ;)
About error - it is just because you are using only tags for ID, not whole tag for link. Tag for ID returns nothing because there is nothing to show and tag for link shouldnt link to anywhere or just loop on last image. That is why you get an error.
You you want solve it you must handle exception when image ID is empty (i.e. by sending back to refering document) otherwise you should use other tag or do it completly in own way.
Thanks, I have just no clue how or where I have to handle exception at all.
Has this be done in the "htaccess" file or somewhere and somehow in any php file?
Somehow in PHP file. The easiest way would be to use addon in round mode - read about it in settings part of addon code.
There was update few minutes ago.
History 24:
at first here it is - new method of version numbering as I'm currently using SVN in my development process
all who use this addon also in archives now they can use paging support - there is 1 new tag <SC_THUMBNAILS_NAV> which gives page navigation through thumbnails in browse_template
now inside selectable list with categories active one is marked
all unique elements visible in HTML code have own ID or class (if there is more same elements)
as some of users were saying about problems with chr(10) at ends of lines now there isn't such solutions
as archive now supports links with multiple categories next point on TODO list is to add such support in image preview mode (currenly there is no way to go from archive and watch just selected categories straight from it; there is such option only at start watching images from image preview navigation)
ullmannn
07-11-2006, 03:46 PM
This has been one of the best addons to pixelpost I use. Also, I was extremely pleased to see one of the fixes for the new version was addressing the page numbering. When I upgraded to the new version of this addon I started experiencing issues with selecting categories from both my drop down menu in my browse page as well as the category tag cloud I use on my main image page. I have left the error up to help diagnose the issue, but the only solution I have come up with so far is to downgrade. Any help is extremely appreciated. Keep up the good work.
Noah
So explain to me where are this issues about which you are talking?
ullmannn
07-11-2006, 11:34 PM
Here is the link to my site: http://ouvyt.com/pixels/
This is the link to a page that displays the problem: http://ouvyt.com/pixels/index.php?x=browse&category=15
This is the code for the browse page if it helps:
<div id="categorie">
<div id="catlist"><BROWSE_CATEGORIES></div>
<div id="catthumbs"><SC_THUMBNAILS></div>
</div>
The problem only occurs when selecting a category, either using any of the dropdown categories, or when you select one of the categories from the tag cloud on the image page.
Let me know if I can provide anymore explanation of the problem.
Please PM me to refresh my memory - Ill look on it at evening as Im now at work. If you can for a while set error_reporting(0) to error_reporting(E_ALL) at /index.php. Then copy it, put to an email and revers it to version which was before.
As I dont see any errors and addon works fine at my localmachine I dont know what is going on.
ullmannn
07-13-2006, 12:34 PM
I understand the part about setting the error_reporting(0) to ...(E_ALL) at index.php. I am a little confused however, about "Then copy it, put to an email and revers it to version which was before." It would help me a lot if you rephrased that a bit. Thanks.
njdu
1) Change error_reporting from (0) to (E_ALL)
2) refresh page with archives
3) copy all warnings and errors
4) paste it into email or PM
5) send it to me
6) change back error_reporting from (E_ALL) to (0)
More or less its it.
PS Where did you find tag clouds addon?
Vernon.Trent
07-13-2006, 07:51 PM
@geos
it could be this one (tag clouds like)
http://www.pixelpost.org/v1/index.php?x=downloads&details=67
#edit
it is the above mentioned addon
<div id="tag_cloud"><PIXELPOST_WARCHIVES smallest="5" largest="20" unit="px"></div>
UPDATE
IMHO problem should be fixed right now. I was trying to not use same time twice same code but I made with it to big logical shortcut.
History 25:
fixed bug of not showing thumbnails in browse_template (thx to ullmannn)
fixed bug of incorrect version numbering
ullmannn
07-14-2006, 02:19 PM
Thank you very much for your continued work on this great addon.
It needs for now only one more step which Ill try to make at weekend (if there will be enough time for everything planed till now).
ullmannn
07-14-2006, 05:15 PM
Warchive (http://www.pixelpost.org/v1/index.ph...ads&details=67) is indeed the method I use for my tag cloud.
Here is my test image_template.html file (for everyone having problems):
<!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.displa y == '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 />
<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>)
<SITE_PHOTONUMBER> photos | <SITE_VISITORNUMBER> visitors
<IMAGE_PERMALINK>
<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 />
<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:
<!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>
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.
IMHO Addon is right now in finished state.
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
budgie
07-19-2006, 09:55 AM
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
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
budgie
07-20-2006, 01:28 PM
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
Thanks for your post.
Ill try to look on it tonight - now I must go out.
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:
$sc_browse_category .= "<option value=\"index.php\">ALL</option>\n";
and replace with:
$sc_browse_category .= "<option value=\"index.php\"";
if($cat_id == '') $sc_browse_category .= ' selected';
$sc_browse_category .= ">ALL</option>\n";
budgie
07-23-2006, 01:38 PM
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/index.php?showimage=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.
budgie
07-23-2006, 01:44 PM
Geos,
actually I just had a thought with relation to my <SC_IMAGE_PREVIOUS_LINK> problem (see previous post in this thread). In case it's relevant the <SC_IMAGE_PREVIOUS_LINK> works fine as long as no category has been selected. It seems that when a category is selected and the URL includes the image number AND category number the <SC_IMAGE_PREVIOUS_LINK> no longer works.
cheers tony
In my development enviroment I cant get the same problem with prev link as you. Here all works fine. So if you can make for me small test account with test DB (if you have cPanel or something similar), copy of your PP installation and send me login data on PM then I would appreciate it.
Second problem - yes there was small bug with incorrect variable in link (this with line 306 and 322). In a minute Ill update it. Line 304 I would treat as private customization :P
every category is line 402 so it isnt any big case right now.
Thanks for your support.
IMHO Right now addon is very close to final version.
History 30:
fixed bug with link to "next" subpage in browse template (thx to budgie)
budgie
07-24-2006, 07:00 AM
Geos, I have PM'd you my details.
cheers tony
Problem solved.
As I found small error in one SQL statement in previous version (28) I would like to excuse all users of my addon and suggest to update to the newst one - 30.
28 wasnt fully synchronized with development version :/
budgie
07-26-2006, 11:38 AM
Geos, I've upgraded to v30 and have done some more testing and everything looks perfect.
Thanks for your help and patience, really appreciated.
http://www.aspect-photography.com/index.php
cheers tony
ullmannn
07-26-2006, 12:55 PM
Seems to be working great. Thanks for the hard work GeoS.
Its nice to read so nice posts :) Im happy that all is fine right now and that someone use it on own site :)
posefius
08-23-2006, 02:33 PM
An improvement request?
Is it possible to introduce a category list tag showing the categories the showed image belongs to, something like <SC_LIST_IMAGE_CATEGORY>.
At the moment I use the <IMAGE_CATEGORY_PAGED> tag to display the list of categories the picture on the image template belongs to. It would be nice If someone clicks on one of the categories listed the pictures belonging to that specific category are showed.
At the moment I use the <IMAGE_CATEGORY_PAGED> tag to display the list of categories the picture on the image template belongs to. It would be nice If someone clicks on one of the categories listed the pictures belonging to that specific category are showed.
There are two options:
1) I dont get what you want
2) which is more possible, there is something like you want. When you have image in image_template you can list all cats and with links to browse_template showing all thumbs within selected category
posefius
08-25-2006, 08:19 AM
Thats not what I mean. Now you can use the <SC_BROWSE_CATEGORY> in the image template to select a category and show all the pictures in this category directly in the image template. It would be nice if you can show a list of categories the image belongs to on the image template, and you offer the possibility to select one of this categories. The result is the first picture in this category in the image template. Take a look at my photoblog. You see for example this list of categories on the image template.
Categories: [People] [Rob van Kleef] [Shadows] [Ukraine]
Clicking one of those categories must not result in going to the browse archive but must show the first picture belonging to the selected category in the image template. I hope you understand what I mean.
There is such option. Just set links to cats like this:
http://your_site.com/?category=CAT_ID&showimage=
Then it referes to line 105 of addon and this line handles functionality about which you are writing.
PS Remember to set 1 for $img_exclude config variable.
posefius
08-28-2006, 06:43 AM
Thank you for the quick answer. But where do I need to modify this line, in the index.php?
Vernon.Trent
08-28-2006, 03:13 PM
@posefius
line 105 in the addon... not index.php
@posefius:
./addons/geos_show_category.php @ line 46.
I feel very stupid but I’m stuck..
Been reading this topic a few times now, and don’t get it where I have to put these ones.
What file do I have to adjust?
” To do so you need to add extra variable to standard URL - category=CAT_ID.
I.e. URL should look like http://piotrgalas.com/index.php?showimage=1000&category=10 - this will give you possibility to watch only images from caterogy with ID = 10.”
Tell us what you need and we will try to do so but remember to be more precise.
I want a lot ;) But first things first. When you enter the site. I want to stay locked in a cat when I choose a cat and click the pic or thumbs you go to the next cat. How can I prevent that?
my test site (http://saait.marroe.net)
You must come to Pixelpost installation with my addon with extra paramter at the beginning.
I.e. going from /index.html (with hardcoded link) to /index.php?showimage=&category=10 will do what you want - go and display from the beginning category with ID = 10.
Read description of TAGs at first!!
boffers
09-16-2006, 12:31 PM
Edit: I think I got it working :)
Cool. Give us a link to see how you use it ;)
boffers
09-20-2006, 09:59 AM
Cool. Give us a link to see how you use it ;)
I use it in this way, with my subdomains. We have 3 photographers on the photoblog. You can reach them by clicking these links:
Bas (http://bas.offersphoto.com)
Jeroen (http://jeroen.offersphoto.com)
Donald (http://donald.offersphoto.com)
You see the subdomains are forwared to their category. Thanks to this addon!
With mod_rewrite it can be even much more powerfull. I.e. you can attache to each photographers "profile" the other template adding some additional variables through mod_rewrite.
It gives much more power then anyone can imagine. Its just case of idea how to use this "tool".
PS You didnt attache category variable under prev/next/main image navigation so only the first images from your links use whole idea of this addon (and additionaly thumbs but they are less important part of navigation).
3jaeger
10-15-2006, 07:29 AM
Hello,
I had installed GeoS Show Category, but it does'nt work.
I think it's because of me !!!
Can you please help me to resolve that ?
http://3jaeger.free.fr/pixelpost/index.php
First, I'm not sure in which file I have to put tags.
Thanks
There was update:
History 31:
* fixed buggy redirection to the first image (now it doesnt redirect to images from future set)
* fixed another bug with for first IF statement
* small code optimization
Now there is enough to put http://url/pixelpost_path/index.php?category=5 (where 5 is example number of cat ID) and it should link to first image from this cat.
syntaxmonster
10-23-2006, 07:33 AM
Hi guys,
first of all thank you for this great addon. I have a little problem, though. In the image_template.html i have this piece of code:
<a href="index.php?showimage=<SC_IMAGE_PREVIOUS_ID>&category=<SC_CAT_ID>">
<img src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="<IMAGE_TITLE>" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" id="photo" />
</a> to display the previous image of a category on the frontpage. This works till it gets to the first image. After that the "showimage" variable is empty.
Can someone help me out with this?
Thanks
syntaxmonster
10-23-2006, 10:39 AM
Nevermind ;) I found it out :rolleyes:
Im happy that you found out solution. In near future I like to produce docs to my addons/hacks so then it should be easier to install it.
RobbieMc
11-04-2006, 08:07 PM
Geos, thanks again for the continued support of this addon.
I recently got around to upgrading from PP 1.5B to 1.5 Final and I noticed one small glitch (I think it may come from the core index.php and not the addon): If you are browsing within a category on the image_template and you then click on the comment button, the url is reset without the category limit.
Click on the link below, then click on 'comment' and watch what happens in the bacjground to the url and the SC_THUMBS_ROW. They get reset.
http://photoblog.sophiepasquet.com/index.php?showimage=187&category=11
I suspect that something has changed in the popcomment instruction but I can't find it. Can you help? Thanks.
Rob
Youve got right Robbie. I didnt think about this issue before.
It can be quite easly fixed by changing in the image_template.html file something similar to (or similar to tag <COMMENT_POPUP>):
<a href='index.php?showimage=187' onclick="window.open('index.php?popup=comment&showimage=187 ','Comments','width=480,height=540,scrollbars=yes, resizable=yes');">Comments</a>
to:
<a href='#' onclick="window.open('index.php?popup=comment&showimage=<IMAGE_ID>','Comments','width=480,height=540,scrollbars=yes, resizable=yes');">Comments</a>
RobbieMc
11-04-2006, 10:37 PM
Thanks, Geos. Once again you found the problem and in very short time. Doesn't look like it was 1.5 Final at all, but was probably always there, but I just never ran into it.
I replaced the href in the 'COMMENT_POPUP' tag with # and it works fine now. Thanks.
Rob
No problem.
Im happy that it works now as you wanted :D
j_ambrose
11-17-2006, 05:57 PM
Maybe I'm an idiot but I can't get this to work at all. Will it be standard on a future version of PP? I'll just wait until then.
Probably it wont so PM me with your questions. There is one ready template which should work. It is enough to look on it and copy what is needed to yours.
j_ambrose
11-19-2006, 05:35 PM
Ok I'll give that a try I was wondering why those templates were in there. I'll pm you if I have any more troubles.
Nevermind ;) I found it out :rolleyes:
And how did you fix it?
Thanks..
There are tags for complete link, i.e.:
<SC_IMAGE_PREVIOUS_LINK_TXT>
<SC_IMAGE_NEXT_LINK_TXT>
and so on. There shouldnt be a problem with links.
This looks great.. having some troubles incorporating it into the theme. I am using this modified theme:
http://forum.pixelpost.org/showthread.php?t=4714&highlight=ame235
which allows for a mouse over the image for previous and next navigation. That bit of code is:
<div id="image">
<img src="./images/<IMAGE_NAME>" id="imgmaine" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" />
<div id="menu_browse" style="width: <IMAGE_WIDTH>px; height:<IMAGE_HEIGHT>px;">
<script type="text/javascript">
var existprev = "<IMAGE_PREVIOUS_ID>";
var existnext = "<IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<IMAGE_PREVIOUS_ID>\';"></a>');
}
if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<IMAGE_NEXT_ID>\';"></a>');
}
</script></div>
</div>
i tried changing it to this but no luck:
<div id="image">
<img src="./images/<IMAGE_NAME>" id="imgmaine" width="<IMAGE_WIDTH>" height="<IMAGE_HEIGHT>" />
<div id="menu_browse" style="width: <IMAGE_WIDTH>px; height:<IMAGE_HEIGHT>px;">
<script type="text/javascript">
var existprev = "<SC_IMAGE_PREVIOUS_LINK_TXT> (#<SC_IMAGE_PREVIOUS_ID>, <SC_IMAGE_PREVIOUS_TITLE>, <SC_IMAGE_PREVIOUS_DATETIME_FORM>) ";
var existnext = "<SC_IMAGE_NEXT_LINK_TXT> (#<SC_IMAGE_NEXT_ID>, <SC_IMAGE_NEXT_TITLE>, <SC_IMAGE_NEXT_DATETIME_FORM>)";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<SC_IMAGE_PREVIOUS_ID>\';"></a>');
}
if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<SC_IMAGE_NEXT_ID>\';"></a>');
}
</script></div>
</div>
The arrows still work to navigate, however they ignore the chosen category. You can see what I mean at my testing site:
http://www.folkphotography.com/attic/
Thanks for the great addon and for any help with this.
Hmmm I am floundering. I guess the problem lies in:
<SC_IMAGE_PREVIOUS_LINK> - gives link to previous image (just first part of HTML code - <a href=...>)
So somehow I must combine it with this:
<a href="#" id="menu_browse_prev" onclick="document.location = 'index.php?showimage=<SC_IMAGE_PREVIOUS_ID>';"></a>
am I on the right track?
Yeap - it should work (the last example of code).
I need some free time to make web page with all my addons, to create docs to them and so on. This isnt easy :/
Hi Geos,
I appreciate you are busy and if this solution does not seem obvious feel free to tell me to buzz off.. I tried that last little bit of code and it doesn't work. The thumbnails work and it remains in category, however if you use the nav on the image itself it drops you out of the category and defaults back to all of the images. I am not sure what else I should try.
Let me know if there are any menial tasks I can help you out with.. I appreciate all of your hard work.
If you want to stay within the same cat they you need to get such URL:
<a href="#" id="menu_browse_prev" onclick="document.location = 'index.php?showimage=<SC_IMAGE_PREVIOUS_ID>&category=<SC_CAT_ID>';"></a>
Thats it !! Thanks GeoS .. You Rock !!!
No problem :) Have fun (Pixel)posting images :P
well.. one more question and think I can call this thing done.. In your description of this you say <b><SC_IMAGE_NEXT_LINK_TXT></b> - gives text link to next image (linked Next text from localization file)<br />
What does localization file mean? I am looking to change that text link (and the no previous/next image text) but I can not find what it is I have to change.
austriaka
01-24-2007, 07:41 PM
What does localization file mean?
language file I guess
KArin (adoring user of category addon)
Thanks... that is what I have been fiddling with.. i just cant get the navigation image (I replace the next with an arrow) to go away when there is no next image.. I changed the lang files to show a blank when there is no next image but for some reason it isnt working :confused: i will keep working on it.
Yes, that variable is from language file. All this stuff related to visibility is connected with setting correct addons configuration variables.
alexle
02-13-2007, 07:52 PM
Hi there,
can anyone please tell me, how and where I can modyfy the URL of Pixelpost?
The addon is exactly what I need for my blog.
But where is a step-by-step manual to implement it and make it working right.
I think, most of the readers arent php- or sql specialists.
Thanx a lot ...
:confused:
Can anyone give a code example?
I don't have any knowledge in PHP or SQL
Thanks.
There is sample template in package so just unpack it look to the files and that should be enough for start.
Still I dont have a time to write docs. In this week I want to make first step to prepare online enviroment for that.
PS 2 useful links:
http://forum.pixelpost.org/showpost.php?p=42447&postcount=12
http://forum.pixelpost.org/showpost.php?p=42466&postcount=16
alexle
02-15-2007, 08:01 PM
There is sample template in package so just unpack it look to the files and that should be enough for start.
Still I dont have a time to write docs. In this week I want to make first step to prepare online enviroment for that.
PS 2 useful links:
http://forum.pixelpost.org/showpost.php?p=42447&postcount=12
http://forum.pixelpost.org/showpost.php?p=42466&postcount=16
Thanks!
I think i got it:
http://www.picperday.com
however when i tried to put it in the upper part (after the rss) , it didn't work.
austriaka
02-25-2007, 06:28 PM
I found a little bug in addon script:
You forgot to ask for image date lower than actual date in $sc_browse_category for MySQL > 4.1, in the else statement (MySQL < 4.1) it is ok.
This gives the odd message "Coming soon..." when choosing a category whose newest image is in the future for "upgraded" MySQL.
KArin
Thx for info. Finally I must sit back to this addon, update it, write doc and so on. Instead of it today I made new addon :P
There is too much to do and so less time :/
Update!!!
History 46:
New version checkup mechanism
Tags support
Fix of bug (thx to austriaka - http://forum.pixelpost.org/showpost.php?p=42878&postcount=142)
SnowScan
07-06-2007, 09:05 AM
Hi,
Can anyone help me with how to show e.g. 6 thumbnails from a specific category on a page.
I can figure it out when the user click a category, but here I want to select the category for the user (no link/click)
Tell exactly what you want to do? How do you want to select category for user? Do you want to make default category?
If so then you can use for it i.e. mod_rewrite.
When you give us answer then we will be able to help you in better way.
SnowScan
07-07-2007, 02:08 PM
Sorry for being unclear...
On this page http://www.snowscan.org/index.php?x=priser I show two sets of thumbnails from two different categories.
As it is now I have just pulled out the static HTML to show this.
What I would like is to use tags to pull out the e.g. 6 most recent pictures in each category and when you click to view one of the images you browse that category.
So use must create custom addon for that.
There was update to revision 55.
PS In all my "fresh" addons there is always Paypal button thanks to which you can donate process of creating next releases of it. The amount of money doesnt matter - the most important for me is to see its worth to sleep less, to read about new technologies, to search new solutions and think about new ideas.
Fixed alternative language support (thx KArin)
UPDATE:
fixed one condition from which depends proper work of some tags (thx to KArin)
http://www.pixelpost.org/extend/addons/geos-show-category/
Omar1000
12-16-2007, 02:44 PM
In PP1.6 i used this tag in my browse_template <CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> and the category name was displayed propper, even the names for date, archive etc.
Now with geos show category v58 this tag doesnt work, instead i put in <SC_CAT_NAME>. it is working, but only for the category names. Furthermore i have in my image_template always "all", allthough i am not in the category view
And there is another strange behaviour, when switching in the admin panel "Do you want form with selectable category or categories linking to the newest photo" to "no" the name of the category will not displayed anymore and the even the title for alternate language is not working.
Any solution?
1. <SC_CAT_NAME> - its designed mostly for BROWSE TEMPLATE more or less like whole addon but it works as it should also in IMAGE TEMPLATE (its showing current category - when category is not specified then its showing ALL what is true).
2. With the "Do you want form with selectable category or categories linking to the newest photo" - what title of alternative language is not working? Which title??
I have switched it to off and I see category names in browse template.
Please give me more details as I didnt found any issue which you are trying to let me know.
Omar1000
12-17-2007, 06:53 PM
1. <SC_CAT_NAME> this is logic to display "All" if no category is choosen, but unfortunaly it will not display in the browse_template, but in the image_template. In the image_template I wont have it, because it is clear, but when i have choosen an image out of a category it makes sense to show the name of the category, this behaviour was in your old plugin - you can test it on my site http://sayami.de - this is PP1.6 and your old addon.
2. the mouseover title. my main language is german and the alternative langauge english. When in the admin panel "...linking to the newest photo.." is switched to "yes" and you switch to the english language, then the mouseover-titles are displayed in english. And as i described, when "...linking to the newest photo.." is switched to "no" there is only the german mouseover title. Is this helpful, i hope i could explain it correctly.
Omar1000
12-17-2007, 06:55 PM
sorry! i did forget to tell you in which template!
2. this behaviour happens in the browse_template.
CurlyRed
02-18-2008, 01:28 AM
Ok maybe someone can help me here. I got this category thing installed now.
However, if I go into my browse archive and select say for example norwich state hospital.
I then click the image to the left however for me to see more images in the category I have to click "previous" vs "next". Is there a way to fix this?
www.ReflectionsOfSilence.com
Thanks,
Amy
austriaka
02-18-2008, 06:25 AM
I am not sure if I understand you right. The only issue I found was the link in the main image on image page, it is built up like this:
http://www.reflectionsofsilence.com/blog/index.php?showimage=12&a mp;category=
(watch out the empty space within the & entity).
I checked your template and it says
<a href="index.php?showimage=<SC_IMAGE_PREVIOUS_ID>&a mp;category=<SC_CAT_ID>">
CurlyRed
02-18-2008, 02:45 PM
Thanks I fixed that! :)
I am wondering if this is more like a photoblog software thing now that I think of it.
Like if you go to my main page it is always the latest picture I have uploaded so clicking next there isn't any after that. You have to click previous to get the older pictures.
Thanks for the response...
austriaka
02-18-2008, 03:30 PM
yes, this behaviour is typical for a blog - newest entry first, older ones are "previous", newer ones are "next".
You can change the direction in your admin options
tdphoto
04-18-2008, 09:37 PM
This is just the add-on I've been looking for! However I can't begin to use it :(
As soon as I turn it "On," it returns the message
MySQL server has gone away
and I can't get to the add-on page again unless I delete geos_show_category.php from the add-ons folder.
I'm using PP 1.7.1, and Mysql 5.0.16. Any help?
Thanks,
Tim
ranmajen
05-03-2008, 02:14 PM
I am using 1.7, I don't know if I have setup the addon correctly or not, I have encountered the following problem:
I have changed all image previous/next tags to SC_ ones. And refreshing the image page, it works great. If i click the thumbnails of the thumbnail row, it still works fine.
But after clicking the previous or next arrow on the image, it redirects to the previous or next image without categorizing. The thumbnail row shows thumbnails that in other categories (ie, all thumbnails from all categories) again.
How come and how can I fix it? Has the addon not fit to version 1.7 yet?
Thanks.
ranmajen
05-03-2008, 04:28 PM
Let me give more info, i don't know if it is the issue of my template?
I am using delicious_v1_1 template, not sure if this javascript causes the problem, the codes are changed with the new tags of Geos Show Category:
<script type="text/javascript">
function browsing(){ var existprev = "<SC_IMAGE_PREVIOUS_ID>"; var existnext = "<SC_IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<SC_IMAGE_PREVIOUS_ID>\';"></a>');
} if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<SC_IMAGE_NEXT_ID>\';"></a>');
} }
</script>
Messiah Khan
06-19-2008, 10:29 PM
This is just the add-on I've been looking for! However I can't begin to use it :(
As soon as I turn it "On," it returns the message
and I can't get to the add-on page again unless I delete geos_show_category.php from the add-ons folder.
I'm using PP 1.7.1, and Mysql 5.0.16. Any help?
Thanks,
Tim
Ive also come across the same problem. Im using pp 1.7.1 with Mysql 5.0.22. As soon as I add the latest version of the addon into the addon folder and try and add it in the admin panel, SQL falls over with the MySQL server has gone away error. I can then no longer access my site or admin panel until my wehost restarts the sql server. Any ideas of what's cauing the problem and how to fix it GeoS?
<script type="text/javascript">
function browsing(){ var existprev = "<SC_IMAGE_PREVIOUS_ID>"; var existnext = "<SC_IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<SC_IMAGE_PREVIOUS_ID>\';"></a>');
} if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<SC_IMAGE_NEXT_ID>\';"></a>');
} }
</script>
Try to change it to:
<script type="text/javascript">
function browsing(){ var existprev = "<SC_IMAGE_PREVIOUS_ID>"; var existnext = "<SC_IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<SC_IMAGE_PREVIOUS_ID&category=<SC_CAT_ID>>\';"></a>');
} if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<SC_IMAGE_NEXT_ID>&category=<SC_CAT_ID>\';"></a>');
} }
</script>
Ive also come across the same problem. Im using pp 1.7.1 with Mysql 5.0.22. As soon as I add the latest version of the addon into the addon folder and try and add it in the admin panel, SQL falls over with the error. I can then no longer access my site or admin panel until my wehost restarts the sql server. Any ideas of what's cauing the problem and how to fix it GeoS?
To check it I need access to your server. I cant reproduce this error.
My test platform:
PHP-version 5.2.4 (Pixelpost's min requirement: PHP version: 4.3.0 )
MySQL version 5.0.45-community-nt (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.34 compatible) with JPEG support
File Uploads to Pixelpost site are possible.
Server Software Apache/2.2.6 (Win32) SVN/1.4.5 DAV/2 PHP/5.2.4
EXIF Pixelpost is using exifer v1.5 for EXIF-information.
There is no special SQL statements which could take down SQL server until its edition is buggy, misconfigured or some alpha/beta edition. IMO there is some DB error, not addon error (as you are first person, which I know, with such problem).
This is just the add-on I've been looking for! However I can't begin to use it :(
As soon as I turn it "On," it returns the message
and I can't get to the add-on page again unless I delete geos_show_category.php from the add-ons folder.
I'm using PP 1.7.1, and Mysql 5.0.16. Any help?
Thanks,
Tim
Where exactly do you get this error? Can I get access to this server to check what is going on?
Im using the latest (or almost the latest) revision of PP with additional tunes up and all is working fine.
Dr.Ozdi
06-21-2008, 07:06 AM
Just question...is there possibility after click on link to browse_template page with tag <THUMBNAILS> have page in the first moment without thumbnails? Thumbnails will show after click to something else...I can´t change link to browse_template like this "index.php?x=browse&pagenum=1"
I use on the same page list of keywords, list of categories and Multiphoto addon and its a quite many photos for first view and makes a mess.
Thanks for this addon.
The easiest is to switch to paged mode. Somehow it solves problem of too much thumbs to load.
Giving answer straight to your question - there is such option but it need additional coding.
PS Other option is to set Browse link to non existing tag i.e. index.php?x=browse&tag=Choose category
PS 2 Just a sec ago Ive tested PP 1.7.1 at Messiah Khan place and all seems to work as it should (MySQL is still running).
Messiah Khan
06-23-2008, 11:08 AM
PS 2 Just a sec ago Ive tested PP 1.7.1 at Messiah Khan place and all seems to work as it should (MySQL is still running).
Just tested it on my main site and it fell over again :(
Edit; I can confirm its not a conflict between addons, as I removed all the other addons and tried it on its own. Same problem. Im also able to bring the sql server back by removing the plugin and waiting a while.
Connect DB Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) Cause #2 Is the error it produces when it falls over. Anyone have any suggestions as to what is causing this?
As Messiah posted me some hosting support report then I can give one solution. It should work at least at his case.
Query is fine but there is alternative, less optimal solution for issue. You can try to change:
if(($mysql_v[0] == 4 && $mysql_v[1] >= 1) || $mysql_v[0] > 4)
{
$sql4 = "SELECT c.id, c.name, (SELECT a.id FROM ".$pixelpost_db_prefix."pixelpost a, ".$pixelpost_db_prefix."catassoc b WHERE b.cat_id = c.id AND a.id = b.image_id AND a.datetime <= '$cdate' ORDER BY a.datetime DESC LIMIT 1), (SELECT count(f.id) FROM ".$pixelpost_db_prefix."pixelpost f, ".$pixelpost_db_prefix."catassoc g WHERE g.cat_id = c.id AND f.id = g.image_id AND f.datetime <= '$cdate'), c.alt_name FROM ".$pixelpost_db_prefix."categories c ORDER BY c.name";
to:
if(1 == 0)
{
$sql4 = "SELECT c.id, c.name, (SELECT a.id FROM ".$pixelpost_db_prefix."pixelpost a, ".$pixelpost_db_prefix."catassoc b WHERE b.cat_id = c.id AND a.id = b.image_id AND a.datetime <= '$cdate' ORDER BY a.datetime DESC LIMIT 1), (SELECT count(f.id) FROM ".$pixelpost_db_prefix."pixelpost f, ".$pixelpost_db_prefix."catassoc g WHERE g.cat_id = c.id AND f.id = g.image_id AND f.datetime <= '$cdate'), c.alt_name FROM ".$pixelpost_db_prefix."categories c ORDER BY c.name";
Messiah Khan
06-24-2008, 10:27 PM
And I confirm that GeoS' fix works perfectly for me. Thanks a lot mate. Now I can carry on tinkering with the settings :)
tdphoto
06-27-2008, 06:48 PM
As Messiah posted me some hosting support report then I can give one solution. It should work at least at his case.
Query is fine but there is alternative, less optimal solution for issue. You can try to change:
if(($mysql_v[0] == 4 && $mysql_v[1] >= 1) || $mysql_v[0] > 4)
{
$sql4 = "SELECT c.id, c.name, (SELECT a.id FROM ".$pixelpost_db_prefix."pixelpost a, ".$pixelpost_db_prefix."catassoc b WHERE b.cat_id = c.id AND a.id = b.image_id AND a.datetime <= '$cdate' ORDER BY a.datetime DESC LIMIT 1), (SELECT count(f.id) FROM ".$pixelpost_db_prefix."pixelpost f, ".$pixelpost_db_prefix."catassoc g WHERE g.cat_id = c.id AND f.id = g.image_id AND f.datetime <= '$cdate'), c.alt_name FROM ".$pixelpost_db_prefix."categories c ORDER BY c.name";
to:
if(1 == 0)
{
$sql4 = "SELECT c.id, c.name, (SELECT a.id FROM ".$pixelpost_db_prefix."pixelpost a, ".$pixelpost_db_prefix."catassoc b WHERE b.cat_id = c.id AND a.id = b.image_id AND a.datetime <= '$cdate' ORDER BY a.datetime DESC LIMIT 1), (SELECT count(f.id) FROM ".$pixelpost_db_prefix."pixelpost f, ".$pixelpost_db_prefix."catassoc g WHERE g.cat_id = c.id AND f.id = g.image_id AND f.datetime <= '$cdate'), c.alt_name FROM ".$pixelpost_db_prefix."categories c ORDER BY c.name";
That worked as well for me. Thank you very much! Really do appreciate it.
siddr20
10-14-2008, 08:24 AM
Can someone please help me with adding the following thing:
To do so you need to add extra variable to standard URL - category=CAT_ID.
I.e. URL should look like http://piotrgalas.com/index.php?show...00&category=10 - this will give you possibility to watch only images from caterogy with ID = 10
For URLs without specified category variable it works normally just like standard Pixelpost.
Where exactly do i add this bit? Which file and where abouts?? please
Thanks for your help!!
sniper_pak
12-02-2008, 05:46 PM
Hi people! :) Please help me - i have a problem with photoblog of wife. Please see - http://fotokartka.com/index.php?x=browse&pagenum=1&lang=de . Pages more 45. Problem - tag <SC_THUMBNAILS_NAV> not correctly working with CSS stile, width:720px, but no break,enter... numbers division of pages in 2 line, all numbers in 1 string going to right :(
Like siddr, I also need help with the url. I've been through all the posts in a couple of different forums and can't find a direct answer although others seem to be having the same or similar problem.
I tried changing the url's in index.php to no avail at all. I changed the one in image_template and ended up with the same problem as others have had - I was able to get category= in the url but then it was blank afterwards. Also tried using SC_CAT_ID, and that didn't pull the ID either. I know the ID is there because it will show up when you click on the category in the browse pull-down menu. (And I tried copying that code to the other showimage url's, but there seemed to be some conflict with showprefix because not even category= would appear...)
Specific, step-by-step help would be greatly appreciated, even though I know it's probably something idiotically stupid... (All I'm wanting to do is to stay within the same category when you hit 'next' and 'previous' in the image template, and as far as I can tell from everyone's posts and reviews, this addon does that very well).
Thank you for the help!!
workingatit
12-28-2008, 07:44 AM
Hi
Am working on a web site for a photo club and love the way PP shows photos (and many photographers using it). Am using the basic "Simple" template with some of the addons coming with 1.7.1. The club needs the Show Category addon for for photographer, contest etc..
Excuse me for being dense, but it doesn't even show up in the addon page. I've unzipped the download on my local PC and copied it to the addon folder. Tried both having the exe-file and the others in the addon root and in a geosetter folder. Also tried running the exe at my web host using FileZilla, which only placed a copy of the exe-file and the desktop.ini in the Pixelpost folder on my PC.
www.nagot.se/foto/ (preliminary work site)
This is my setup: PP 1.7.1 Svedish
PHP-version 5.2.6 (Pixelposts minimum systemkrav: PHP, version: 4.3.0 )
Sökväg för att spara sessioner /tmp
MySQL version 5.0.45 (Pixelposts minimum systemkrav: MySQL: 3.23.58 )
GD-lib bundled (2.0.34 compatible) med JPEG-support
... Uploading files tol Pixelpost is possible.
Servermjukvara Apache/2
EXIF Pixelpost använder exifer v1.5 för EXIF-information
All the checks are green.
Utterly grateful for help. Am an amateur who knows some CSS, but no programming.
Snipe_pak's site looks very good to me. It is a rather slow to load, but the category/portfolio looks good and it works to browse within a category. (One nit. Pointing at the photo gives the previous photo name, not the current.)
Inga
Dennis
12-28-2008, 05:02 PM
Pixelpost addons are PHP files, not exe files. If you downloaded an exe file you probably have to unpack it first.
workingatit
12-29-2008, 04:28 AM
Thank you Dennis
This is too incredibly embarrassing. I had downloaded a bunch of addons and used GeoSetter not piotrgalascom_geos_show_category58.
The show_category, with it's templates, are now activated and looks a bit of a mess, but works.
Thanks again.
Inga
Can somebody please help with this: „To do so you need to add extra variable to standard URL - category=CAT_ID.
I.e. URL should look like http://piotrgalas.com/index.php?showimage=1000&category=10”
Like siddr20, I have the same problem implementing this. Which file and where about?
A ste-by-step- configuration would really be helpful.
Thanks
Naco (http://www.nacophotography.com/pixelpost/)
workingatit
01-07-2009, 02:22 PM
Siddr, Zemo and Naco
The php-file fixes the category address. (PG thanks jdleung, whose need for the feature inspired PG to solve it.)
1. Download and unzip the piotrgalascom_geos_show_category58 file on your computer.
2. transfer geos_show_category.php to the addon folder on your web site and
3*. the pixelpost-show-cats folder, with the example templates and css, to your template folder on your web site
4. log in on your pixelpost admin page. Open the Alternative/Template page and change your template to "pixepolst-show-cats"
5. Open the Addon page and activate (click on Off) for GeoS Show Category ADDON
6. Leave settings as is for now
*OBS! Edit the style sheet link in the example templates before uploading them to get the example styling. I print the example templates, the css files and the addon description page to study and adjust my chosen theme templates.
Hope this helps... and that I understood your question correctly.
Inga
Can somebody please help with this: „To do so you need to add extra variable to standard URL - category=CAT_ID.
I.e. URL should look like http://piotrgalas.com/index.php?showimage=1000&category=10” ....
[/URL]
Hi Pixelposters :)
Does anyone know of a mod to have this kind of functionality with tags not categories? Or does this one do that ? ?
Dennis
01-10-2009, 11:33 PM
The new version does it, but I believe GeoS hasn't updated the version on the Extend section.
Please contact him about this.
oh cool... thanks for the response(s) Dennis. do you know where i can find the updated version?
holgerK
02-01-2009, 11:54 AM
I am having a wierd problem.
When I browse photos in "ALL" category it is OK, but when I click on thumbnail under some category, it redicts me to main domain page.
For better undrestanding check my page: http://photo.pri.ee/lomospot/index.php?x=browse&category=3
My browse.html
<div id="page">
<span class="title">portifolio</span><hr /><br />
<br /><br />
<div style="width:1200px; margin:10px auto; clear:both;">
<ALBUMVIEWRAND>
<SC_THUMBNAILS>
<SC_THUMBNAILS_NAV>
</div>
weberknecht
02-10-2009, 01:19 PM
So easy and simple... Love it :)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.