|
#1
|
|||
|
|||
|
Category Images Horizontal or in a block
Hi,
i really like pixelpost. now i want to put the category links into a block or as a horizontal bar under the title. is that possible? how? i hope you can help me. tim |
|
#2
|
|||
|
|||
|
Tim,
do you mean the category of the actual image or all categories? use <IMAGE_CATEGORY> and place them where you want to, they contain the links to the categories of the actual image if youuse the paged_archiv_addon, use <IMAGE_CATEGORY_PAGED> instead |
|
#3
|
|||
|
|||
|
thanks for the fast reply, but i meant the category_links.php-addon for the mainpage.
|
|
#4
|
|||
|
|||
|
ah, where is my christall-ball? :lol:
I don't use that addon, so I did not look into it.. maybe you ask the author of that addon? |
|
#5
|
|||
|
|||
|
aus deiner signatur lässt sich ja schließen, dass du deutsch bist
![]() wo finde ich denn die kontaktdaten des autors? |
|
#6
|
|||
|
|||
|
ich bin nicht "deutsch", ich bin sogar Hamburgerin ;=)
ja, der Autor,. der steht auf der Downloadseite meistens vermerkt, ain't it not so? you mean Category List of Links (vertical)? test this: save this as category_links_horizontal.php ftp it to the addon-directory Code:
<?php /* Requires at la st Pixelpost version 1.3 Category List of Links (horizontal) Written by: Ramin Mehran Contact: raminia@yahoo.com updated by Connie Müller-Gödecke, July 2005 Pixelpost www: http://www.pixelpost.org 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 = "Category List of Links"; $addon_description = "This addon enables the tag &lt;CATEGORY_HORIZONTAL&gt; <br />A horizontal List of category names with link to each and number of photos in it."; $addon_version = "0.1"; // 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); //--------------------------- unset($category_Link_List); // $browse_select = "<a href='?x=browse'> $lang_browse_all </a>"; $query = mysql_query("select * from ".$pixelpost_db_prefix."categories order by name"); while(list($id,$name) = mysql_fetch_row($query)) { $count = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."pixelpost where category=".$id); $count = mysql_fetch_array($count); $count= $count['count']; $name = pullout($name); $catname_count = $name ." (" .$count .")"; $category_Link_List .= "<a href='?x=browse&category=$id'>$catname_count</a>||\n"; }; $tpl = ereg_replace("<CATEGORY_HORIZONTAL>",$category_Link_List,$tpl); ?> |
|
#7
|
|||
|
|||
|
thanks, now it's horizontal. but it doesnt show the right numbers of pictures. maybe you take a look at www.prsonline.de/photobase to see the problem.
tim |
|
#8
|
|||
|
|||
|
Tim,
I will look into it, but : Please give me some time, as I have to prepare my birthday party ... |
|
#9
|
|||
|
|||
|
Tim,
I see it's wrong, but I don't see the error in the moment.. |
|
#10
|
|||
|
|||
|
ok, thanks in advance
|
| Post Reply |
| Thread Tools | |
|
|