PDA

View Full Version : Make thumb pages in archives


Zlato
02-09-2005, 06:30 PM
Hello everybody !

How can I do that kind of thing :

http://www.deceptivemedia.co.uk/archives.asp

after a certain number of thumbs a new page is created...

But I think the example site is very clear.

Thanks for your help for your :idea:

Zlato
02-11-2005, 01:29 AM
Is there anybody there to answer my question ? :cry:

raminia
02-14-2005, 03:32 PM
I didn't get the point here.
whad do you mean by
after a certain number of thumbs a new page is created...

Zlato
02-14-2005, 03:36 PM
Thanx for your interest and sorry for that. Anyway what I mean is here http://www.deceptivemedia.co.uk/archives.asp you see there are thumbnails rows and at the end there are pages number...This way it look better for me, because when I will have more than 50 pictures my page will be too long to see in good conditions.

Hope this time explanation is better :oops: and anyway Thanx in advance

raminia
02-14-2005, 04:07 PM
I got it! It's very usefull and I think pixel post should have such an option for browsing archive. After a year every pixelpost runner have a buch of photos which will be bulky to show in single archive page. I'm going to speculate as if I go through coding, I will mess up in this one. May by PixelPunk will do it some day;)


There is a query for the database at about line 409 of index.php
if($_GET['x'] == "browse") {
$thumb_output = "";
$where = "";
if($_GET['category'] != "") { $where = "and (category='".$_GET['category']."')"; }
$query = mysql_query("select id,headline,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') $where order by datetime desc");
while(list($id,$title,$name) = mysql_fetch_row($query)) {
$title = pullout($title);
$thumbnail = "thumbnails/thumb_$name";
$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
}
$tpl = ereg_replace("<THUMBNAILS>",$thumb_output,$tpl);
}
calls for all images to be tag[ed] as $thumb_output and then places them all in <THUMBNAILS>. There should be some certain modifications:
1) Checking if the page is called as
http://my.phtoblog/index.php?x=browse
or
http://my.phtoblog/index.php?x=browse&page=3
2) If it is the first case there should be a certain number of thumbnails from the all of thumbs. ( says 50 first thumbs). Else the thums from 50*($page - 1)+ 1 to 50*($page) should be shown.
3) There should be some tags generated for links to arhive pages. (e.g. <archive_pages_link>

Ramin :)

Zlato
02-14-2005, 04:18 PM
What to say, You're the BEST ! Thanks and look at the answer in the other topic, i've also changed "browse archive by date" thanks a L-O-T !!! :D

raminia
02-16-2005, 10:19 PM
Another Addon!
Archive page with thumbnails that have maximum number of thumbs in each pages. Usefull when you have plenty of photos in archive and you do not want it to be bulky.
Two new tages
<THUMBNAILS_WHOLE_PAGED> : Thumbnails but limited with maximum number your mention in each page.
<THUMBNAILS_PAGES_LINKS> : Links to each page of archive of thumbnails in the Browse Archive page

<?php
/*

Requires Pixelpost version 1.3
Archive Thumb Paged
Written by: Ramin Mehran
Contact: raminia@yahoo.com


Pixelpost www: http://www.pixelpunk.se/software/
License: http://www.gnu.org/copyleft/gpl.html

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

*/

$addon_name = "Archive thumb paged";
$addon_description = "Archive page with thumbnails that have
maximum number of thumbs in each pages. Usefull when you have
plenty of photos in archive and you do not want it to be bulky.
<br>Two new tages<br>
<THUMBNAILS_WHOLE_PAGED> : Thumbnails but limited with maximum number your mention in each page.<br>
<THUMBNAILS_PAGES_LINKS> : Links to each page of archive of thumbnails in the Browse Archive page<br>
";

$addon_version = "0.1";

// Edit this by your preference
$maxnumber_thumbs = 5; // maximum number of thumbnails in each browse page (e.g 5)

// Get the number of thumbnails shown at once from the admin config
$cfgquery = mysql_query("select * from ".$pixelpost_db_prefix."config");
$cfgrow = mysql_fetch_array($cfgquery);

//---------------------------
if($_GET['x'] == "browse") {
$thumb_output = "";
$where = "";
$limit = "";
if($_GET['category'] != "") { $where = "and (category='".$_GET['category']."')"; }
if ($_GET['pagenum'] != "") {$start = $maxnumber_thumbs*($_GET['pagenum']-1);
$limit = " limit $start , $maxnumber_thumbs ";};

$query = "select id,headline,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') $where order by datetime desc" .$limit;
$query = mysql_query($query);
while(list($id,$title,$name) = mysql_fetch_row($query)) {
$title = pullout($title);
$thumbnail = "thumbnails/thumb_$name";
$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";
}
// $tpl = ereg_replace("<THUMBNAILS_PAGED>",$thumb_output,$tpl);
}
$pagecounter=0;

// Get number of photos in database
$photonumb = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."pixelpost where datetime<='$datetime'");
$row = mysql_fetch_array($photonumb);
$pixelpost_photonumb = $row['count'];

$num_browse_pages = ceil($pixelpost_photonumb/$maxnumber_thumbs);

$Archive_pages_Links = "";
while ($pagecounter < $num_browse_pages)
{
$pagecounter++;
$Archive_pages_Links .= "<a href=?x=browse&pagenum=$pagecounter> $pagecounter </a>";
}

// new tages
$tpl = ereg_replace("<THUMBNAILS_WHOLE_PAGED>",$thumb_output,$tpl);
$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>",$Archive_pages_Links,$tpl);
?>

pay attention to lin 40-41
// Edit this by your preference
$maxnumber_thumbs = 5; // maximum number of thumbnails in each browse page (e.g 5) Test it before I put it in the addon section. It's ok on my computer.

take care!

Zlato
02-16-2005, 10:59 PM
I'm on my Knees ! :D

Ok Mister Pixelpunk you have to put a "Pixelpost God" for our friend Ramin, in place of "pixelpost Vetaran"

Cheers

Zlato
02-16-2005, 11:22 PM
Ok i've tried the new addon but the problem is that the number you can choose in $maxnumber_thumbs = n reflect the number choose in admin page... and if I put 10 for example it doesn't work and the fact is if I change this value to 10 in the admin pages then it affects the number of thumbnails in the front page (image_template.html)

Am I right ?

Anyway you're the Best... :wink: [/code]

Zlato
02-16-2005, 11:43 PM
Sorry but the other problem is that then you go to page

http://www.zlatogorov.com/pixelpost/index.php?x=browse

you got ALL the thumbnails as usual... Ok it's quite simple to put

http://www.zlatogorov.com/pixelpost/index.php?x=browse&pagenum=1

but it's not very easy for everybody because it change the global behaviour of pixelpost.

The other problem is that the code in index.php doesn't work anymore, for example i've put some javascript tags in it and now it doesn't work anymore (but i know it's my own problem, i know that point - message for Connie :wink: ), so I'm afraid it is interacting and blocking the job for thumbnails made in index.php....

Awfully sorry to be only able to tell what is not working :oops: :oops:

raminia
02-17-2005, 04:26 AM
This is an addon an it is not suppose to be an alternative to browse. This addon should not intimidate the normal functionality of the pixelpost.
I'll create additional links for the main template later but this version is just for your test.
about the Jscript I'm puzzled. could you send me your index.php that its jscrip does not work.

Zlato
02-17-2005, 12:26 PM
Finally it works well for my javascript "B&W to colour" trick here is what I have modified for it :

$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails'onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\" /></a>";

But there is still a couple of things that i can't understand :

1.If I put more than 5 in $maxnumber_thumbs then in archives i got, whatever i put, 8 thumbs in a row...

2.When you get the archives URL the script doesn't work, you have to choose the page first, for changes to appear.

3.If I do that :

$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails'onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\" /></a><br/>$title<br/>";

in fact putting the name under each thumbnails it doesn't fit no more my 650px box.... ( with the original <THUMBS> no problem and I know you've wrote the same things, sorry that it doesn't work, yet...)

I know You've done already a great job and i am already thankful, you know that... :wink:

raminia
02-17-2005, 04:19 PM
I'm confused! where do these codes that you mentioned in your last post exist? are they your in index.php?

I'm going to have a look on that. I was away for all day and now I got home.

Zlato
02-17-2005, 04:22 PM
Sorry there's a little confusion , forget the last message ( the PM one...)
the one upside yours is the only good one :D

raminia
02-17-2005, 05:11 PM
Hi Zlato:)
Sorry but none of your problems you mention is happening here!

1) There is no such a bug as
1.If I put more than 5 in $maxnumber_thumbs then in archives i got, whatever i put, 8 thumbs in a row...

if you change the addon you shoud refresh your index.php page in the browser to make it effective.

2) the problem you mentioned
2.When you get the archives URL the script doesn't work, you have to choose the page first, for changes to appear.
is a result of misuderestanding. I told you that this is not going to replace the code for the browse. if you want to use it instead of browse you should replace the Browse_Archive tag in the template with a link to the first page of this. In fact, I have plans to produce tags for it but I'm trying to figure out any other possible error before doing that. (I didn't find any till now though)

3) The is also not related to my code

3.If I do that :

Code:
$thumb_output .= "<img src='$thumbnail' alt='$title' title='$title' class='thumbnails'onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\" /> ('$PHP_SELF?showimage=$id')<br/>$title<br/>";


in fact putting the name under each thumbnails it doesn't fit no more my 650px box.... ( with the original <THUMBS> no problem and I know you've wrote the same things, sorry that it doesn't work, yet...) .
please pay attention that your JScript function should be defined before any call. the function is not in the addon and you should include it there. If you could provide me the funciton would be thankfull 'caue I like the effect.

4) I'm happy that the problem with the scripting is resolved but finally I didn't undrestand what was the problem that was solved!

5) The problem with not fitting in "650px box" should be the result of bad formating the html code. maybe there is an unclosed tag in the html code that produces the error. Here I see the images in the vertical line-up with the title of the at the bottom.

Zlato
02-17-2005, 07:04 PM
Good evening Ramin,

i use a hacked version of index.php (this one :http://www.pixelpost.org/index.php?x=downloads&details=29 )

it's maybe why it doesn't work well for me ?

So the first point :
Look at my site here http://www.zlatogorov.com/pixelpost/index.php?x=browse&pagenum=1 I've put 24 in $maxnumber_thumbs and the amount on the first page is correct, but as you can see the row is composed of 8 thumbs (?)


2.It's ok for that

3.For th B&W to colour it's a IE-only :cry: behaviour : (and it's not java related as I said :oops: )

first i put this in my CSS (tag related to thumbs):

#thumb img {
margin:12px;
padding: 2px;
background-color: #ffffff;
border: none;
filter: gray (enabled=true);
}

the "function is that one : filter: gray (enabled=true); basically the thumb is B&W (gray)

Then second i put this code there where we call for thumbnails and that's why you see that onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\;
in YOUR code like i do thumb_output .= "<img src='$thumbnail' alt='$title' title='$title' class='thumbnails'onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\" /><br/>$title<br/>";

4) In fact i haven't put the tags right at the first time... :oops:

5) I don't think so, or maybe i have understand nothing :oops: , but with the original tag <THUMBNAILS> all is fitting fine...And maybe it's because in this original tag (of the hacked version line 413) the thumbnails are in a table

I think the answers could help you...

raminia
02-17-2005, 07:22 PM
I think there should be good jscript for that graying effect.

and actually IE handles
onMouseOut=\"this.filters.gray.enabled=true\;
as jscript I think. (there should be some sort of script surely)

raminia
02-17-2005, 07:46 PM
So the first point :
Look at my site here http://www.zlatogorov.com/pixelpost/index.php?x=browse&pagenum=1 I've put 24 in $maxnumber_thumbs and the amount on the first page is correct, but as you can see the row is composed of 8 thumbs (?)


That's the effect of your template design for the browse page and nothing elese. I think you have used a div with absolute width. If you want to have more photo in a single line you could increase the width. If you want the thumbs to line up in more lines and less rows when the window's width gets smaller you could eliminate the fixed width.

That's not related to the code.

-------------------------------------
and about the 5th case
It's likely to be the effect of Tables and div and also the absolute width and.... that's all the matter of design.

Zlato
02-17-2005, 08:53 PM
Ok Ramin, i will look at that, thanks anyway for such patience...

Last but not least and that's the final point, when chose a categories for sure the pages at the bottom remains..try it on my site...

You're my best Ramin

Regards

raminia
02-17-2005, 08:58 PM
yeah! that's a real bug!
I'm working on it.

romamor
02-17-2005, 09:25 PM
Sorry if this is a trivial question, I am new to pixelpost and PHP;

What do I call the mod file?
How do I install this mod?
Are there any files to be modified?

Thanks for any help

[quote="raminia"]Another Addon!
Archive page with thumbnails that have maximum number of thumbs in each pages. Usefull when you have plenty of photos in archive and you do not want it to be bulky.
Two new tages
<THUMBNAILS_WHOLE_PAGED> : Thumbnails but limited with maximum number your mention in each page.
<THUMBNAILS_PAGES_LINKS> : Links to each page of archive of thumbnails in the Browse Archive page

raminia
02-17-2005, 09:37 PM
its an addon not a modification. for addons u don't need to change codes. just copying the addon file to the addon folder of pixel post will enable them.

raminia
02-17-2005, 10:43 PM
Ok Ramin, i will look at that, thanks anyway for such patience...

Last but not least and that's the final point, when chose a categories for sure the pages at the bottom remains..try it on my site...

You're my best Ramin

Regards
check out my photoblog and see how I handled it the old archive plus this paged archived. (addon is extended a little)

Zlato
02-17-2005, 11:15 PM
Ok it seems it's work very fine, but the point I don't understand is why do you have 8 thumbs in a row, is it your choice by working on style sheets, as you already said to me ?

ANyway it's real fine !

the picture "Chandelier" is quite as i like to do myself, and this one is really good, i like it.

Zlato
02-18-2005, 01:28 AM
All is allright now i have change little things for my needs as you can see on my archive page...here are the modifications:

if($_GET['x'] == "browse") {
$thumb_output = "";
$where = "";
$limit = "";
if($_GET['category'] != "") { $where = "and (category='".$_GET['category']."')"; }
if ($_GET['pagenum'] != "") {$start = $maxnumber_thumbs*($_GET['pagenum']-1);
$limit = " limit $start , $maxnumber_thumbs ";};

$query = "select id,headline,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') $where order by datetime desc" .$limit;
$query = mysql_query($query);
$thumb_output .= "<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>";
$i = 0;
while(list($id,$title,$name) = mysql_fetch_row($query)) {
$i++;
$title = pullout($title);
$thumbnail = "thumbnails/thumb_$name";
$thumb_output .= "<td align=\"center\"><a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails'onMouseOver=\"this.filters.gray.enabled=false\" onMouseOut=\"this.filters.gray.enabled=true\" /></a><br />$title<br /><!--$mydate--></td>";

if ($i == 5) {$i=0; $thumb_output .= "</td></tr><tr><td align=\"center\">";}
}
$thumb_output .= "</td></tr></table>";

here if ($i == 5) i can change the amount of thumbnails per row...

for the, very small, rest i know you working on it ...

raminia
02-18-2005, 06:07 AM
Ok it seems it's work very fine, but the point I don't understand is why do you have 8 thumbs in a row, is it your choice by working on style sheets, as you already said to me ?

ANyway it's real fine !

the picture "Chandelier" is quite as i like to do myself, and this one is really good, i like it.

Thanks!

the 8 pic are the result of the window size. try changing the windows size and you see there would be different number of rows and columns.

raminia
02-18-2005, 06:26 AM
addon's new version. some new tags to handle the browse archive with a single <THUMBNAILS_WHOLE_PAGED> that behaves as <THUMBNAILS> when there is no page mentioned.
there is also some other usefull tags for achive page such as archive page number, the name of the category user is browsing.

-- That's the version I mentioned in my last post and it is working on my pblog.


<?php
/*

Requires Pixelpost version 1.3
Archive Thumb Paged
Written by: Ramin Mehran
Contact: raminia@yahoo.com


Pixelpost www: http://www.pixelpunk.se/software/
License: http://www.gnu.org/copyleft/gpl.html

*/

$addon_name = "Archive thumb paged";
$addon_description = "Archive page with thumbnails that have
maximum number of thumbs in each pages. Usefull when you have
plenty of photos in archive and you do not want it to be bulky.
<br>Two new tages<br>
<THUMBNAILS_WHOLE_PAGED> : Thumbnails but limited with maximum number your mention in each page. <br>
<THUMBNAILS_PAGES_LINKS> : Links to each page of archive of thumbnails in the Browse Archive page<br>
also CATEGORY_NAME_PAGED_ARCHIVE and ARCHIVE_PAGES_NUM for navigation and title of archive page.
";

$addon_version = "0.1";

// Edit this by your preference
$maxnumber_thumbs = 50; // maximum number of thumbnails in each browse page (e.g 5)

/* // Get the number of thumbnails shown at once from the admin config
$cfgquery = mysql_query("select * from ".$pixelpost_db_prefix."config");
$cfgrow = mysql_fetch_array($cfgquery);
*/
//---------------------------
if($_GET['x'] == "browse") {
$thumb_output = "";
$where = "";
$limit = "";
$pagenum = $_GET['pagenum'];

if($_GET['category'] != "") { $where = "and (category='".$_GET['category']."')"; }
if ($_GET['pagenum'] != "") {$start = $maxnumber_thumbs*($_GET['pagenum']-1);
$limit = " limit $start , $maxnumber_thumbs ";};
$query = "select id,headline,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') $where order by datetime desc" .$limit;

$query = mysql_query($query);
while(list($id,$title,$name) = mysql_fetch_row($query)) {
$title = pullout($title);
$thumbnail = "thumbnails/thumb_$name";
$thumb_output .= "<a href='$PHP_SELF?showimage=$id'><img src='$thumbnail' alt='$title' title='$title' class='thumbnails' /></a>";

}
}
$pagecounter=0;

// Get number of photos in database
$photonumb = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."pixelpost where datetime<='$datetime'");
$row = mysql_fetch_array($photonumb);
$pixelpost_photonumb = $row['count'];

$num_browse_pages = ceil($pixelpost_photonumb/$maxnumber_thumbs);


$Archive_pages_Links = "";

while ($pagecounter < $num_browse_pages)
{
$pagecounter++;
$Archive_pages_Links .= "<a href=?x=browse&pagenum=$pagecounter>$pagecounter</a> ";
}

// new tages
if ($pagenum!=""){

$tpl = ereg_replace("<THUMBNAILS_WHOLE_PAGED>",$thumb_output,$tpl);
$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>",$Archive_pages_Links,$tpl);

$tpl = ereg_replace("<ARCHIVE_PAGES_NUM>",$pagenum,$tpl);

$tpl = ereg_replace("<CATEGORY_NAME_PAGED_ARCHIVE>","",$tpl);
}
else {
// the original thumbnails for browse archive
if($_GET['category'] != "") {
$catid = $_GET['category'];
$query = mysql_query("select name from ".$pixelpost_db_prefix."categories where id='$catid'");
$images_category = mysql_fetch_array($query);
$images_category = pullout($images_category['name']);

}

$tpl = ereg_replace("<THUMBNAILS>",$thumb_output,$tpl);

$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>",$Archive_pages_Links,$tpl);
$tpl = ereg_replace("<ARCHIVE_PAGES_NUM>","all",$tpl);
$tpl = ereg_replace("<THUMBNAILS_WHOLE_PAGED>",$thumb_output,$tpl);
$tpl = ereg_replace("<CATEGORY_NAME_PAGED_ARCHIVE>",$images_category,$tpl);}


?>

Zlato
02-18-2005, 08:52 AM
All is ok ! Ramin....

but there's still this behavior : when on a category the navigation pages remain...sorry for that...

For the rest as you can see here

http://www.zlatogorov.com/pixelpost/index.php?x=browse&pagenum=1

it's work G-R-E-A-T as usual Ramin !



Cheers

raminia
02-18-2005, 08:58 AM
yes but wanted them to be there.
if you don't want them, move
$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>",$Archive_pages_Links,$tpl);
into the if clause and then pass blank "" to it when they category browsing is happening.

Zlato
02-18-2005, 09:43 AM
sorry :oops: don't understand how to do that...in which "if" clause

raminia
02-18-2005, 11:52 AM
sorry :oops: don't understand how to do that...in which "if" clause

sorry I used to fully comment my codes but I had no time when I was coding recently and I did it in a hurry.
the last if then else clause is the place you should change.
changing line 117


$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>",$Archive_pages_Links,$tpl);
to
$tpl = ereg_replace("<THUMBNAILS_PAGES_LINKS>","",$tpl);

would do that.

Zlato
02-18-2005, 12:43 PM
ALL IS FINE Ramin!

THANK YOU x 1.000.000.000 times and more...

raminia
02-18-2005, 08:08 PM
thank you :wink:

raminia
02-20-2005, 10:43 AM
see the release version here
http://www.pixelpost.org/forum/viewtopic.php?t=439&highlight=

Zlato
02-20-2005, 11:13 AM
Hi Ramin just seen the new release and will put it shortly...

Regards

-okapi-
02-20-2005, 11:25 AM
hi ramin!

thank you very much for this new addon!

btw, at the admin panel i get the following warning for category_links.php:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in W:\www\pixelpost\addons\paged_archive.php on line 180
what does that mean?

raminia
02-20-2005, 11:35 AM
what's your version of mysql?
I don't have that error here.
maybe I should turn it off in the admin page.

do you have the same warning on other pages?

-okapi-
02-20-2005, 11:41 AM
the version i use is MySQL 4.0.12

this warning appers only on the admin page (addons) in the section of category_links.php

maybe something's wrong with the date format on line 180 of paged_archive.php ?

raminia
02-20-2005, 11:48 AM
UPDATED!
yes there is a bug! change line 179 to 183 to this one
$query = mysql_query("select DISTINCT DATE_FORMAT(datetime, '%Y-%m') from ".$pixelpost_db_prefix."pixelpost order by datetime desc");
while(list($thedate) = mysql_fetch_row($query)) {

$query3 = "select count(*) as count from ".$pixelpost_db_prefix."pixelpost where DATE_FORMAT(datetime, '%Y-%m')='".$thedate ."'";
$count = mysql_query($query3);

BUT! you should eliminate the old addon
category_links.php
from addons.

THE CORRECT VERSION IS NOW IN THE ADDON.

raminia
02-20-2005, 11:54 AM
use
error_reporting(0);
at the top of admin/index.php ;)

this will do it;)

-okapi-
02-20-2005, 11:58 AM
i have replaced these lines, as you told me. but now i get the following:

Category List of Links (category_links.php - version 0.1)
This addon will enables the tag <CATEGORY_LINKS_AS_LIST> A vertical List of category names with link to each and number of photos in it.


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in W:\www\pixelpost\addons\paged_archive.php on line 184

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in W:\www\pixelpost\addons\paged_archive.php on line 184

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in W:\www\pixelpost\addons\paged_archive.php on line 184

raminia
02-20-2005, 12:02 PM
oops.... there is a bug in the date archive.... I'll debug it later not today

raminia
02-20-2005, 12:05 PM
error_reporting(0);
error_reporting(0);
error_reporting(0);
error_reporting(0);

-okapi-
02-20-2005, 12:06 PM
i just downloaded the new file, and the errors are gone!

thank you for your great work, ramin!

and thank's for your speedy help!

raminia
02-20-2005, 01:22 PM
the problem with date archive is solved. all ok now;)

-okapi-
02-20-2005, 01:44 PM
thank you!
almost everything is working now nicely!
exept for:
when i select "all" from the dropdown menus, i get the defined limited number of thumbs displayed, but with no pagenumbers to navigate.

when i select "all" from the list menus, i get all thumbs on one page.

raminia
02-20-2005, 02:02 PM
Thanks for fast bug report. I've already noticed that and the corrected version is (!!!!) in the addon section. I promise to not to change it for a while;)

raminia
02-20-2005, 02:10 PM
it is corrected and it's in the addon section!!

-okapi-
02-20-2005, 02:18 PM
thank you again!

everything is working now perfectly!

:)

raminia
02-20-2005, 02:28 PM
nope! :lol:
I've updated line 301 of the adoon form
if ($_GET['pagenum']!="")
to
if ($_GET['pagenum']!=""&$_GET['archivedate']=="")

to avoid duplicated page links

you dload it from addon secction!

-okapi-
02-20-2005, 02:36 PM
:lol:

thanks,

i hadn't noticed it yet.