|
#1
|
|||
|
|||
|
Creating category index page: how?
Hi!
I just installed PP and I must say: I am really impressed. There is actually only one extra function I am looking for at this moment. I will use PP together with 2 other persons. Now, I created categories for our names, so when uploading a file, the photographer needs to select his name. The thing I want to do is, besides having a index page for all the pictures, 3 other index pages which are completely the same, only filtered on the persons name. In this way, you can also go to: www.mydomain.com/myname and only see my latest picture (+ thumbs). I searched this forum and found a topic which had quite the same question: http://forum.pixelpost.org/showthrea...category+index. The only big difference is that I want to develop the 3 index pages as extra. Then, the MySQL solution in this topic won't work and the other solution is not compatible with PP 1.5. My question: can anyone help me creating such a page, with the photos filtered of only one photographer? Thanks
|
|
#2
|
||||
|
||||
|
pixelpost is a single user system.
you can run many installs of pixelpost on the same server (different database prefixes) on the other hand, take a look at http://g8.no there are 5 photographers sharing one photoblog. they use categories. |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
Addon with repeated the most of index.php code with switcher between photographers IDs/nicknames/... . It should work with some special template like
http://url/index.php?x=custom_pixelpost_usage and it would be /templates/active_template_name/custom_pixelpost_usage_template.html file. |
|
#5
|
|||
|
|||
|
I understand.. Unfortunatly, I am not a PHP or MYSQL whizkid, so hopefully someone can help me out here. For me it is a great start when I can select the latest photo of a selected category. The only thing I need to do then is specifying this in the code. The code currently looks like this:
Code:
// Get Current Image.
if(!isset($_SESSION["pixelpost_admin"]))
{
if(!isset($_GET['showimage']) /*$_GET['showimage'] == ""*/)
{
$row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE datetime<='$cdate' ORDER BY datetime DESC limit 0,1");
}
else
{
$row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."') AND datetime<='$cdate'");
}
}
else
{
if($_GET['showimage'] == "")
{
$row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost ORDER BY datetime DESC limit 0,1");
}
else
{
$row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."')");
}
}
Thanks in advance!
|
|
#6
|
|||
|
|||
|
try this
in "browse_template.html" find a place to write <li><a href="<SITE_BROWSELINK>" title="Browse">title you want to be seen</a></li> ps : i use pp 1.6 horizon template oh i think it is no you wanted try this find index.php find in it // You can now add any template you want by just adding the template and a link to it. For example, // ?x=about will load the template about_template.html if(isset($_GET['x'])&& $_GET['x'] == "ref") { // Maintain backwards compatibility with the referer template $_GET['x'] = "referer"; } write after if(isset($_GET['x'])&& $_GET['x'] == "ref") { $_GET['x'] = "newpage"; } save update on ftp and you need to create a file named newpage_template.html note i think you very need the expression "_template" in the name of the file and write this in all other template files <li><a href="index.php?x=newpage" title="newpage">title you want see</a></li> newpage_template.html could be a copy (for start) of about_template.html in witch you could write <li><a href="<SITE_BROWSELINK>" title="newpage">title you want to be seen</a></li> that's all |
| Post Reply |
| Thread Tools | |
|
|