View Full Version : Instead of thumbnails
Hi,
I was wondering if it was feasible that instead of the thumbnails being listed in the browse template, could it be the image title instead? I searched through the forums for a bit and came upon no answer, and was browsing through the tags that may aid me, but I came to no avail. If this was addressed already, I apologize and could someone please direct me to the already existing thread? If not, thanks for any insight/help in advance.
edit: we can browse by month with a drop down, but can we list the months?
Yes - we can list months. Look on left side of my page:
http://geos.wzzone.com/?x=browse&pagenum=1
Yes - we can list months. Look on left side of my page:
http://geos.wzzone.com/?x=browse&pagenum=1
How would I be able to do that? :confused:
I can give you my version of this addon (if you want).
Anyway in paged_archive.php addon there is <BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> tag.
Here is a file. Rename it to *.php
TommyBlue
12-30-2006, 09:55 PM
So I notice the original question hasn't been answered... I'm really curious if I can list all the posts on a page in text format Image Title links that are browser searchable... Any way to accomplish something like that?
Thanks,
_B_
Connie
12-31-2006, 01:43 PM
as every photo is stored in the database with title and description for sure it is possible to write an Addon which lists all titles and creates links to the image
only one fallback: this addon is, as far as I know, not written until now
but it would not be too difficult
happy new year,
Connie
Thats unfortunate, I could also make use of an addon like this. If anyone has some free time, perhaps they would be kind enough to write it?
Dkozikowski
05-04-2007, 02:24 AM
Real quick and simple. This will output all of your image titles with links. If you need more control like limiting the output or something and you can't figure it out, let me know your needs and i'll see what I can do.
Headlines v0.1 (http://www.dwilkinsjr.com/public/pixelpost/myaddons/headlines_v0.1.zip)
Use the following tag in your template <IMAGE_HEADLINES>
The image titles are outputted as an unordered list.
You can use CSS to style the list to your liking.
The CSS class name is headlines
august
06-17-2007, 11:10 PM
Isīt possible to make this addon write namelist in alphabetical order?
Regards
August
Dkozikowski
06-17-2007, 11:49 PM
Sure.
Open the addon file and replace line 46 with the following:
$query = mysql_query("SELECT * FROM `".$pixelpost_db_prefix."pixelpost` ORDER BY `headline` ASC") or die(mysql_error());
This will order your Image titles alphabetically, A-Z. If you wish to order them Z-A then you can change ASC to DESC
august
06-18-2007, 05:04 PM
Thankīs a lot!
That worked perfect, I even managed to rid of the <li> list and separat with / :rolleyes:
Isīt also posible to have it in date order?
Ex.
2007.02.12: bikefighters.
2007.02.08: lamp.
2007.02.06: cracked.
2007.02.04: four.
2007.02.03: girl. window.
2006.12.01: nieuwe leliestraat.
2006.11.18: catatonia
2006.11.16: teeth cringe.
Regards
August
Dkozikowski
06-18-2007, 09:52 PM
Yes, this is also easy to do.
Copy and paste all into your current addon_headlines.php file and save.
<?php
/*
Pixelpost 1.6 FINAL
Written by: Dwilkinsjr
Written for: Pixelpost www: http://www.pixelpost.org/
<!--
__ _ ____ _ _
____/ / __(_) / /__(_)___ _____ (_)____
/ __ / | /| / / / / //_/ / __ \/ ___/ / / ___/ HEADLINES v0.1
/ /_/ /| |/ |/ / / / ,< / / / / (__ ) / / /
\__,_/ |__/|__/_/_/_/|_/_/_/ /_/____/_/ /_/
http://dwilkinsjr.com/___/
-->
Contact: dwilkinsjr@dwilkinsjr.com
Copyright (c) 2007 <http://wwww.dwilkinsjr.com>
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.
*/
$addon_name = "Headlines";
$addon_version = "0.1";
$addon_description = "This addon will display all of your image titles as an unordered list.<br /><br />New Tag: <IMAGE_HEADLINES><br /><br />CSS Class: headlines<br /><br />ADDON Author: Dwilkinsjr (<a href='http://www.dwilkinsjr.com/myaddons' target='_blank'>dwilkinsjr.com</a>) (<a href=\"http://version.dwilkinsjr.com/22/".$addon_version."/\">Check for updates</a>)";
$dateFormat = "Y.m.d"; // EG: 2007.05.09
$query = mysql_query("SELECT * FROM `".$pixelpost_db_prefix."pixelpost` ORDER BY `headline` ASC") or die(mysql_error());
$image_headline = "\n<!--Begin Image Headlines-->\n\n";
$image_headline .= "<ul class=\"headlines\">\n";
while($row = mysql_fetch_array($query)) {
$headline = pullout($row['headline']);
$siteURL = $cfgrow['siteurl'];
$datetime = $row['datetime'];
$parent_id = $row['id'];
$timestamp = strtotime($datetime);
$timestamp = date(''.$dateFormat.'', $timestamp);
### Print out the contents of each row
$image_headline .= "\t<li><a href=\"".$siteURL."index.php?showimage=".$parent_id."\" id=\"h".$parent_id."\">".$timestamp." : ".$headline."</a></li>\n";
}
$image_headline .= "</ul>\n";
$image_headline .= "\n<!--End Image Headlines-->\n";
$tpl = ereg_replace("<IMAGE_HEADLINES>",$image_headline,$tpl);
?>
august
06-21-2007, 12:20 AM
Thankīs!
Is there any chans you could make the list separate between different years?
Ex
2007.04.01 VED
2007.04.01 VED
2007.04.01 VED
2006.12.29. ANNAt
2006.12.29. ANNAt
2006.12.29. ANNAt
I must say I do realy appreciate your work and the time you are spending at this! Please have a look at my "blog". Itīs not a typical photoblog but a presentation for me and my Architectualstudio. I do a lot of 3Dpictures so I thought pixelblog was the right media. Itīs for present only in swedish but I think youīll get it.
The layout started on Ame235īs template...anyway here it is www.augustwiklund.se/blog/
Regards
August
Dkozikowski
06-21-2007, 12:10 PM
Here you are.
DOWNLOAD HEADLINES V0.1D (http://dwilkinsjr.com/public/pixelpost/myaddons/headlines_v0.1d.zip)
<?php
/*
Pixelpost 1.6 FINAL
Written by: Dwilkinsjr
Written for: Pixelpost www: http://www.pixelpost.org/
<!--
__ _ ____ _ _
____/ / __(_) / /__(_)___ _____ (_)____
/ __ / | /| / / / / //_/ / __ \/ ___/ / / ___/ HEADLINES v0.1
/ /_/ /| |/ |/ / / / ,< / / / / (__ ) / / /
\__,_/ |__/|__/_/_/_/|_/_/_/ /_/____/_/ /_/
http://dwilkinsjr.com/___/
-->
Contact: dwilkinsjr@dwilkinsjr.com
Copyright (c) 2007 <http://wwww.dwilkinsjr.com>
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.
*/
$addon_name = "Headlines";
$addon_version = "0.1";
$addon_description = "This addon will display all of your image titles as an unordered list.<br /><br />New Tag: <IMAGE_HEADLINES><br /><br />CSS Class: headlines<br /><br />ADDON Author: Dwilkinsjr (<a href='http://www.dwilkinsjr.com/myaddons' target='_blank'>dwilkinsjr.com</a>) (<a href=\"http://version.dwilkinsjr.com/22/".$addon_version."/\">Check for updates</a>)";
$dateFormat = "Y.m.d"; // EG: 2007.05.09
$query = mysql_query("SELECT * FROM `".$pixelpost_db_prefix."pixelpost` ORDER BY `datetime`,`headline` ASC") or die(mysql_error());
$image_headline = "\n<!--Begin Image Headlines-->\n\n";
$image_headline .= "<ul class=\"headlines\">\n";
while($row = mysql_fetch_array($query)) {
$headline = pullout($row['headline']);
$siteURL = $cfgrow['siteurl'];
$datetime = $row['datetime'];
$parent_id = $row['id'];
$timestamp = strtotime($datetime);
$timestamp = date(''.$dateFormat.'', $timestamp);
if (isset($v) && $v != substr($datetime, 0, 4)) {
### Print a line-break if the year changes
$image_headline .= "\t<br />\n";
}
$v = substr($datetime, 0, 4);
### Print out the contents of each row
$image_headline .= "\t<li><a href=\"".$siteURL."index.php?showimage=".$parent_id."\" id=\"h".$parent_id."\">".$timestamp." : ".$headline."</a></li>\n";
}
$image_headline .= "</ul>\n";
$image_headline .= "\n<!--End Image Headlines-->\n";
$tpl = ereg_replace("<IMAGE_HEADLINES>",$image_headline,$tpl);
?>
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.