View Full Version : I have a few questions
myisha
02-14-2005, 08:59 AM
Hiya how do I display archives by monthly and catagories?
Archive
Dec 2004 (http://)
Jan 2005 (http://)
Feb 2005 (http://)
Catagory
Catagory One (http://)
Catagory Two (http://)
Catagory Three (http://)
once someone clicks on the corresponding link that shows the thumbnails for that month/catagory
Also how do I display catagoryname as a link?
from this
Catagory Catagory One
to this
Catagory Catagory One (http://)
I would like to make my photos larger how do I change the width?
Thanks in advance
Myisha :P
Connie
02-14-2005, 12:59 PM
Hiya how do I display archives by monthly and catagories?
Archive
Dec 2004 (http://)
Jan 2005 (http://)
Feb 2005 (http://)
Pixelpost doesn't offer this presentation of the archive, but did you link in the addons? There is an archive-calendar: http://www.pixelpost.org/index.php?x=downloads&details=17 and this offers nearly the same functionality
Also how do I display catagoryname as a link?
look here: http://www.pixelpost.org/index.php?x=downloads&details=26
I would like to make my photos larger how do I change the width?
what do you want to make larger? The pictures or the thumbnails?
the pictures which you upload have the dimensions which you choose and for the thumbnails you find options in the admin-panel / options...
Anonymous
02-14-2005, 02:07 PM
Hi Connie you're a pixelpost guru, it's what I read under your name, but I don't understand your answers. Because one of the question is : Also how do I display catagoryname as a link? and you answer look here and there but the question is : How can we ( because i'm searching this answer too) do to show ALL the categories as links in place of the box presented here http://www.pixelpost.org/index.php?x=downloads&details=29.
Thanks for a reply ( i've asking for this with an example, but nobody replies yet...see the topic here http://www.pixelpost.org/forum/viewtopic.php?t=378)
Zlato
02-14-2005, 02:16 PM
here is an other example at what we would havewith links....http://www.smudo.org/blog/archives.php
Zlato
02-14-2005, 02:22 PM
Thanks for a reply ( i've asking for this with an example, but nobody replies yet...see the topic here http://www.pixelpost.org/forum/viewtopic.php?t=378) SORRY ! it's another question, not the same, but waiting for an answer.... :oops:
Connie
02-14-2005, 02:39 PM
dear guest, I am sorry, that this forum software gives me a status which I never asked for, it's just that I post quite very often here to support other users
well sometimes I just give some hints and the other must also try to find his way... sometimes we don't have the ready solutions for everythings but some suggestions...
please don't feel disappointed, because this is a forum, where volunteers help each other but where no immediate satisfaction is guaranteed... :roll:
Zlato
02-14-2005, 03:04 PM
I know, I know, in fact yes I'm disapointed, but you do a great job, sorry for misunderstanding... :oops: :D
raminia
02-14-2005, 03:11 PM
at about line 422 to 430 of index.php at main folder you find
// build browse menu
$browse_select = "<select name='browse'
onChange='self.location.href=this.options[this.sel ectedIndex].value;'><option value=''>$lang_browse_select_category</option><option value='?x=browse&amp;category='>$lang_browse_all</option>";
$query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
while(list($id,$name) = mysql_fetch_row($query)) {
$name = pullout($name);
$browse_select .= "<option value='?x=browse&amp;category=$id'>$name</option>";
}
$browse_select .= "</select>";
and if you want to have link to categories as text not the drop box you should have a code similar to this on
// build browse menu
$browse_select = " <a href='?x=browse'> $lang_browse_all </a><br>";
$query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name");
while(list($id,$name) = mysql_fetch_row($query)) {
$name = pullout($name);
$browse_select .= "<a href='?x=browse&category=$id'>$name</a><br>";
};
instead.
This gives the category list as links. I tested it and it is ok! You should manage the font and style (in template) by yourself. For montly query, ask for other gurus ;)
Ramin
Zlato
02-14-2005, 03:15 PM
For Sure You're a guru, i'm standing on my knees. Respect and thanks. Regards from France. :D
Zlato
02-14-2005, 03:22 PM
Dear Ramin !
another thanks and another question, i know i have to search myself but I'm not a really clever developper, not developper at all in fact :oops: , but can you answer this question also, maybe and only if you want...see my topic here http://www.pixelpost.org/forum/viewtopic.php?t=378
PS. put an "about" on your site it will be great to know much about you :wink:
raminia
02-14-2005, 03:29 PM
Oh yeah... about page is always postponed! :))
thnx for reminding me.
Zlato
02-14-2005, 04:25 PM
and for all who search for that : here are the changes made in "browse archive by date" (// build archive menu line 430 after // build browse menu)
This gives the archive date by list as links.
: // build archive menu /* THANX TO RAMIN */
$thismonth = date("Y-m");
$select_display_thismonth=date("F, Y",strtotime($thismonth."-01"));
$archive_select = " <a href='?x=browse'> $lang_browse_all </a><br>";
$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)) {
if ($thedate == $thismonth) {continue;}
$select_display_date=date("F, Y",strtotime($thedate."-01"));
$thedate = pullout($thedate);
$archive_select .= "<a href='?x=browse&archivedate=$thedate'>$select_display_date</a><br>";
};
THANX RAMIN !
raminia
02-14-2005, 05:50 PM
Congrats! You're a guru now!
Ramin:)
myisha
02-15-2005, 04:04 AM
I suck at this I got archive by catagory working , but not the date
Here's a copy of my index.php page
http://paste.uni.cc/6661
Here's a copy of my browse_template.html page
http://paste.uni.cc/6662
I followed the directions of this page, could someone tell me what i am doing wrong.. :cry:
Here is the url for my Archive Page (http://photography.myisha.net/index.php?x=browse)
CONNIE Said..what do you want to make larger? The pictures or the thumbnails?
the pictures which you upload have the dimensions which you choose and for the thumbnails you find options in the admin-panel / options...
I was talking about the orginal image, i wanted to resize them,but that's ok i don't really need that anyone, I decided to leave them images as is.. 8)
Guest said and you answer look here and there but the question is : How can we ( because i'm searching this answer too) do to show ALL the categories as links in place of the box presented here http://www.pixelpost.org/index.php?x=downloads&details=29.
that's what i was talking about mingus the dropdowns thanks for explaining it better :D
Zlato I love yout photoblog I wish mine could look like that
Thanks everyone who replied thus far and fall all your help too
Happy Valentine Day
Myisha
Zlato
02-15-2005, 06:36 AM
Good Morning Myisha ! First thanks for your sweet words about my site :oops:
Ok your problem is simple you've forgotten some uneeded extra code here : Line 565 : $archive_select .= "</select>"; drop this line and don't miis the ";" at the end end of the line 564 after the "}"
Shortly :
select all this :
// build archive menu /* THANX TO RAMIN */
$thismonth = date("Y-m");
$select_display_thismonth=date("F, Y",strtotime($thismonth."-01"));
$archive_select = " <a href='?x=browse'> $lang_browse_all </a><br>";
$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)) {
if ($thedate == $thismonth) {continue;}
$select_display_date=date("F, Y",strtotime($thedate."-01"));
$thedate = pullout($thedate);
$archive_select .= "<a
href='?x=browse&archivedate=$thedate'>$select_display_date</a><br>";
}
$archive_select .= "</select>";
and replace by that :
// build archive menu /* THANX TO RAMIN */
$thismonth = date("Y-m");
$select_display_thismonth=date("F, Y",strtotime($thismonth."-01"));
$archive_select = " <a href='?x=browse'> $lang_browse_all </a><br>";
$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)) {
if ($thedate == $thismonth) {continue;}
$select_display_date=date("F, Y",strtotime($thedate."-01"));
$thedate = pullout($thedate);
$archive_select .= "<a href='?x=browse&archivedate=$thedate'>$select_display_date</a><br>";
};
I think it will work fine for you now :wink: ...
myisha
02-16-2005, 04:03 AM
Zlato said
and replace by that :
Code:
// build archive menu /* THANX TO RAMIN */
$thismonth = date("Y-m");
$select_display_thismonth=date("F, Y",strtotime($thismonth."-01"));
$archive_select = " $lang_browse_all ('?x=browse')<br>";
$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)) {
if ($thedate == $thismonth) {continue;}
$select_display_date=date("F, Y",strtotime($thedate."-01"));
$thedate = pullout($thedate);
$archive_select .= "$select_display_date ('?x=browse&archivedate=$thedate')<br>";
};
I think it will work fine for you now Wink ...
_________________
Thanks for the help Zato Your the best :wink:
sorry to bother you guys again :oops:
What tag i am supposed to use?
I've tried
<ARCHIVES>
<THISMONTH>
<ARCHIVEDATE>
raminia
02-16-2005, 06:00 AM
use
<?php echo $archive_select ?>
in your template OR someone make an addon on out of it with a <Archive_SelecT> tag and use it.
Ramin
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.