Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 09-03-2006, 07:17 PM
boffers Offline
forum loafer
 
Join Date: Aug 2006
Posts: 18
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
Reply With Quote
  #2  
Old 09-03-2006, 08:02 PM
Vernon.Trent's Avatar
Vernon.Trent Offline
pixelpost guru
 
Join Date: Apr 2006
Location: Germany
Posts: 341
Send a message via ICQ to Vernon.Trent
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.
__________________
best regards
~~~~~~~~
photoblog: XoverIP
Reply With Quote
  #3  
Old 09-03-2006, 10:06 PM
boffers Offline
forum loafer
 
Join Date: Aug 2006
Posts: 18
Quote:
Originally Posted by Vernon.Trent
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.
Yeah I understand- working with categories is the easiest.This is how I want to work too. But then, you must be able to create a page (or even a tag on a page) where you only select photos of one category, and showing the last photo of that category, correct? In this way, you can have 3 different photographer indexes, plus the total index. Anyone has an idea on this?
Reply With Quote
  #4  
Old 09-03-2006, 10:57 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
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.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #5  
Old 09-04-2006, 08:03 PM
boffers Offline
forum loafer
 
Join Date: Aug 2006
Posts: 18
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']."')");
		}
	}
Can anyone perhaps show me how I can do this? It would really be great Thanks in advance!
Reply With Quote
  #6  
Old 06-01-2007, 06:35 PM
elruamnnay Offline
forum loafer
 
Join Date: May 2007
Posts: 3
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:37 PM.

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