View Full Version : Addon: Collage addon released
raminia
11-25-2005, 07:28 PM
Description:
Version 0.1 is released!
This addon makes an automatic random Collage. User can also select a cateory and it will created collage of that category. This will also show random thumbnails in mouse over action of the thumbnails. Sample collage template file is included for the Simple template.
Installation:
Copy contents of To_photoblog_root directory to the root of your photoblog (to main directory) (if you have Overlib (http://www.bosrup.com/web/overlib/) for rating addon (http://forum.pixelpost.org/showthread.php?t=987&highlight=rating+addon) or photoblink thumbs (http://forum.pixelpost.org/showthread.php?t=1642) addon you can skip this step)
Copy contents of To_Addons_folder to addons folder
Add <COLLAGE_CATEGORIES> and <COLLAGE> to a new page called
collage_template.html to make it work. To see a sample collage page. Copy the included sample collage template from to_templates_simple to templates/simple and use Simple template with address http://your_photoblog.com/index.php?x=collage.
To customize:
Edit addons/collage_addon.php file in an editor. You have a comprehensive
control on the behavior of the addon with changing the paramters that are stated at the top.
Download
http://pixelpost.org/v1/index.php?x=downloads&details=128
Sample (http://pblog.raminia.com/index.php?x=collage)
http://pixelpost.org/v1/devfiles/31_collage_1.jpg
Paul Wood
11-25-2005, 10:07 PM
Looks wonderful! Although with my old version of MySQL, the categories function does not work. I had the same problem with Fancy Archive.
I’m trying to get my host to upgrade the MySQL version.
raminia
11-26-2005, 05:31 AM
I'll try more simple and standard query for multi cat. It's been mentioned before in 1.4.x bugs but I didn't put it in here.
raminia
11-26-2005, 08:38 PM
Note on version 0.2:
now a random image is created each time for collage and old files will be delete after a while (less than a minute).
LynnR
11-27-2005, 12:14 AM
This is GREAT!! ... I just wish I wasn't quite so dense!
The add-on is in place in my folder and shows up in my PP admin page.
So, ... I need to add the link text to my image-template (correct?), and I link it to the "new page" I create?:confused:
I also need to create a page called: collage_template.html AND add <COLLAGE_CATEGORIES> and <COLLAGE> to that page?:confused:
This is where I'm confused. :confused: I'm not sure of what the code for this should be?
raminia
11-27-2005, 04:00 AM
This is GREAT!! ... I just wish I wasn't quite so dense!
The add-on is in place in my folder and shows up in my PP admin page.
So, ... I need to add the link text to my image-template (correct?), and I link it to the "new page" I create?:confused:
I also need to create a page called: collage_template.html AND add <COLLAGE_CATEGORIES> and <COLLAGE> to that page?:confused:
This is where I'm confused. :confused: I'm not sure of what the code for this should be?
I dont underestand what did confuse you.
1) This addon works for a new template page called collage_template.html. You need to make it for yourself or use the included one (which is for simple template).
2) if you are going to make your own template page for collage you should use <COLLAGE_CATEGORIES> and <COLLAGE> whenever you want to in that page.
3) As it is normal to do so, if you are adding a new page to your site it's natural to add a link to in too. You may add the link to the image_template.html that points to the collage page.
4) about the intensity of it. I'll work on that!
LynnR
11-27-2005, 02:10 PM
Sorry, .... it was getting late when I posted that last night. I'll work on a template page, and then come back with whatever problems I encounter (if any) .... Thanks Raminia. :)
LynnR
11-27-2005, 03:08 PM
Ok, ... I've made the template.
My problem seems to be my link path from my image_template page to my collage_template page.
I uploaded the collage_template page to the same directory / folder as my image_template page.
The link I used is: a href="collage_template.html?x=collage_template" .... is this correct?
tinyblob
11-27-2005, 03:17 PM
nope, just x=collage :)
LynnR
11-27-2005, 03:39 PM
Thank you. I was just scouring Raminia's source code, and figured that one out. :)
So, now I have the link right, but ... I'm working on the template. I guess I was to add a category to my categories menu to call the collage?
I feel so stupid sometimes, like I should know how to do this, but I don't. :(
LynnR
11-27-2005, 04:07 PM
This is the code I have on my collage_template page. What have I done wrong?:
<link rel="stylesheet" href="templates/visible/style.css" type="text/css" />
<!-- SCRIPTS -->
<script type="text/javascript" src="templates/simple/scripts/styleswitcher.js"></script>
<script type="text/javascript" src="overlib/overlib.js"></script>
</head>
<body>
<div id="overDiv" align="left" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div id="navigation">
<h1><a href="index.php" title="Return to current image">Digital Glad Rags</a></h1>
<span class="menu">
<a href="index.php" title="Return to Homepage">Home</a> |
<a href="index.php?x=collage" title="Collage">Collage</a> |
<a href="index.php?x=about" title="About">About</a>
</span>
</div>
<div id="page">
<span class="title">Collage Archive:</span><br />
<div align="center">
<COLLAGE_CATEGORIES> <COLLAGE>
</div>
</div>
http://digitalgladrags.com/photoblog/index.php
raminia
11-27-2005, 04:13 PM
@ LynnR
I check your site right now and the addon is not working. did you delete it or you haven't completely uploaded files?
<COLLAGE_CATEGORIES> <COLLAGE> are in the code but they are not converted to the corresponding codes. It means
1) the addon is not there
OR
2) you have type <COLLAGE_CATEGORIES> <COLLAGE> tags as
<COLLAGE_CATEGORIES> and <COLLAGE> in the html code of template. If so, you should edit the template page with an editor and enter the tags correctly.
LynnR
11-27-2005, 04:19 PM
no, I haven't deleted it.
I cut & pasted the code from the simple template into my template, as above.
The drop down menu is not there. al it says is:
Digital Glad Rags
Home | Collage | About
Collage Archive:
and that's all. I don't know how to add the <COLLAGE_CATEGORIES> <COLLAGE> to the html page ... ?
raminia
11-27-2005, 04:24 PM
<COLLAGE_CATEGORIES> <COLLAGE> is ok ! why did you change it.
raminia
11-27-2005, 04:24 PM
the html code looks ok
BUT the addon files are not there I assume.
you should have these files in addon folder of your photoblog
addons/collage_addon.php
addon/collage/Image_Toolbox.class.php
LynnR
11-27-2005, 04:26 PM
yes, I have uploaded both those files to my addons folder ...
I can upload them again ... ? ... just a minute.
(Done)
raminia
11-27-2005, 04:31 PM
and write now your template has the incorrect code
<COLLAGE_CATEGORIES> and <COLLAGE>
and the should be
<COLLAGE_CATEGORIES> and <COLLAGE>
LynnR
11-27-2005, 04:34 PM
Yes, I've changed the code so they are <COLLAGE_CATEGORIES> and <COLLAGE>
LynnR
11-27-2005, 04:40 PM
I open notepad and changed these parameters in the collage_addon.php file:
// Set Parameters
$w =800; // Width of the whole Collage thing
$h = 800; // Height of the whole Collage thing
$num_image = 10; // Number of images in the Collage
$radius = 180;//$temp_w/3; // Radius of Spiral
Would this have done any damage?
raminia
11-27-2005, 05:26 PM
I open notepad and changed these parameters in the collage_addon.php file:
// Set Parameters
$w =800; // Width of the whole Collage thing
$h = 800; // Height of the whole Collage thing
$num_image = 10; // Number of images in the Collage
$radius = 180;//$temp_w/3; // Radius of Spiral
Would this have done any damage?
did you saved it as txt or php? you can check that with your ftp/file manager on your host.
btw, save this paramteres and copy the original file to check if the problem is with edit.
LynnR
11-27-2005, 06:02 PM
I saved it as .php
.... OK
... later ... The same problem. The tags are not calling the <collage_categories>
I'm going to leave this alone for a while. I have some school work that needs my attention. ...
raminia
11-28-2005, 05:00 AM
If problem persists, contact me and I can log in into your account if you like and check it for you.
LynnR
11-28-2005, 04:39 PM
please send an e-mail to me at: lrockwell@eastlink.ca and I'll send you my login info ... Thanks Raminia :)
casaubon
11-28-2005, 06:22 PM
I've been searching a solution but as non-expert for codes... I find it difficult to fix.
http://casaubon.tv/images/addonproble,.jpg
The "?" mark which (might) indicates <IMAGE_PREVIOUS_TITLE> and the "(...)" mark above seem strange. Besides, it has no preview thumbnails.
The edited image_template_html code are following. (I edited only this file and i'm using the 23_Pepper template.)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><SITE_TITLE></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+XML" title="RSS 2.0" href="index.php?x=rss" />
<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>
</head>
<body>
<div id="wrapper">
<div id="background">
<div id="content">
<a href="index.php"><img src="images/header.png" width="600" border="0" /></a><br />
<div style="text-align:center"><a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><img id="image" src="images/<IMAGE_NAME>" alt="<IMAGE_TITLE>" title="aller vers: <IMAGE_PREVIOUS_TITLE>" /></a></div>
<div id="sub-wrapper">
<div id="navbar">
<span style="float:left;width:230px"> <a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><< <IMAGE_PREVIOUS></a> | <a href="index.php">current</a> | <a href="index.php?showimage=<IMAGE_NEXT_ID>"><IMAGE_NEXT> >></a></span> <span style="float:left;width:365px;text-align:right;"><a href="index.php?x=collage" title="Collage">Collage</a> / <a href="index.php?x=browse">archives</a> / <a href="index.php?x=about">about
+ links</a></span></div>
<div class="sub-wrapper">
<div class="texte">
<h3><IMAGE_TITLE> <small style="font-weight:normal; text-transform:none">(<IMAGE_DATE_MONTH>.<IMAGE_DATE_DAY>.<IMAGE_DATE_YEAR>)</small></h3>
<IMAGE_NOTES>
</div>
<div id="page">
<span class="title">Collage Archive:</span><hr /><br />
<div align="center">
<COLLAGE_CATEGORIES>
<br /><br />
<COLLAGE>
</div>
</div>
<div class="exif">
<h3>Exifs:</h3>
<EXIF_CAMERA_MODEL><br />
<EXIF_FOCAL_LENGTH><br />
<EXIF_APERTURE><br />
<EXIF_EXPOSURE_TIME><br />
<EXIF_ISO>
</div>
<br />
<br /><br /><br />
<h3><IMAGE_COMMENTS_NUMBER> Comments:</h3>
</div>
<div class="commentaire"><IMAGE_COMMENTS></div>
<div class="sub-wrapper"><a href='#' onclick="flip('add_comment'); return false;"><span class="navig"><b>Add
a comment</b></span></a><br />
<br />
<div id="add_comment">
<script language='javascript' type='text/javascript'>flip('add_comment');</script>
<form method='post' action='index.php?x=save_comment' name='commentform' >
<div class="row">
<span class="label">Name :</span>
<span class="formw">
<input type='text' name='name' class='input' value='<VINFO_NAME>' /></span></div>
<div class="row">
<span class="label">URL :</span>
<span class="formw"><input type='text' name='url' class='input' value='<VINFO_URL>' /></span></div>
<div class="row">
<span class="label">Comment :</span>
<span class="formw">
<textarea name='message' cols='70' rows='5' class="case-texte-form"></textarea>
</span></div>
<div class="row">
<span class="formw"><input type='checkbox' value='set' name='vcookie' />
Remember me</span></div>
<div class="row"><span class="label"> </span>
<span class="formw"><input type='submit' value='Send' />
</span></div>
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
</form><br />
</div>
<div style="text-align:center"><IMAGE_THUMBNAIL_ROW></div></div>
</div>
</div>
</div>
<div id="footer">
Powered by <a href="http://www.pixelpost.org/">pixelpost</a>. Design by <a href="http://www.nack.ch">bretzelman</a>.</div>
</div>
</body>
</html>
Could you help me fix it?
raminia
11-28-2005, 08:51 PM
this addon as it is at this point works only on a seperate page named collage.
the other tags and lines of images_template.html are not working in collage page. try the attachment as a modified version of you template for collage.
casaubon
11-28-2005, 10:10 PM
Wow. I've been misreading it. Thank you a lot. It works now.
Maemnunaem! (right? ;) )
raminia
11-29-2005, 06:59 AM
Wow. I've been misreading it. Thank you a lot. It works now.
Maemnunaem! (right? ;) )
Horray! Yeah! almost right;) Thank you! What's the URL of you photoblog?
Paul Wood
11-29-2005, 01:40 PM
I've shifted servers, so that now I have a more recent version of MySQL.
The good news is that the FancyArchive addon works now. :)
http://pnjwood.com/fotoblog/index.php?x=fancyarchive
The bad news is that the Collage addon does not. :( All I get is a black page:
http://pnjwood.com/fotoblog/index.php?x=collage
Which is strange, because on my old server, I at least got images in the initial page; the categories were not working.
Any idea why the addon isn’t picking up my images?
raminia
11-29-2005, 02:26 PM
Ok I'll take a look. I think the sql query of the addon has some problem.
tinyblob
11-29-2005, 02:47 PM
Are you overcomplicating your addons again Raminia? ;)
raminia
11-29-2005, 03:13 PM
Version 0.3 Released!
To fix the bug reported by Paul Wood, I changed the sql statement due to the bug report according to some previous post. Download the addon from the addon section. if you have dload it before. You can upgrade by just overwriting the new collage_addon.php file in addons folder.
Paul Wood
11-29-2005, 03:33 PM
Unfortunately, this did not fix the problem.
Should the collage addon show up on my admin/addons page? It is not there.
Paul Wood
11-29-2005, 03:36 PM
Whoops. It is listed, but it says:
Pixelpost Bad Behavior Extension (collage_addon.php - version 1.0BETA) and it has the same table as the one above it that says:
Pixelpost Bad Behavior Extension (bad-behavior-pixelpost.php - version 1.0BETA)
raminia
11-29-2005, 03:45 PM
whoops! just missed something! EDIT: Dload it again
Paul Wood
11-29-2005, 04:21 PM
whoops! just missed something! EDIT: Dload it again
Ok, I downloaded it again. It’s still doubling the bad-behavior addon information. When I disabled the bad-behavior addon, it doubled the current date-time addon information.
Sorry.
raminia
11-29-2005, 04:24 PM
completely confused!
please copy paste the collage_addon.php file that you are currently using.
:O++
Paul Wood
11-29-2005, 04:34 PM
please copy paste the collage_addon.php file that you are currently using.
Forum won’t let me post it, so here it is:
http://pnjwood.com/fotoblog/collage_addon.txt
raminia
11-29-2005, 04:50 PM
use this one and you won't see that strange behavior of addon name. But the whole black collage is not related to this behavior. Do you have yahoo messenger/ICQ/MSN messenger. We I can help you out now.
www.raminia.com/temp/collage_addon.phps
Paul Wood
11-29-2005, 05:04 PM
Ok, my addons page is fixed now.
As far as the collage page goes, I have discovered that the collage image is created in my images folder, but the image itself is solid black.
Messenger applications are blocked in my workplace, so I can’t I’M. Sorry, but thanks for the offer.
raminia
11-29-2005, 05:14 PM
you might use http://www.meebo.com/ for web-based messenger services;) I'm raminia at yahoo or Rmehran at google talk
raminia
11-29-2005, 06:25 PM
fixed re dload it.
conflict with fancy archive is fixed.
Paul Wood
11-29-2005, 07:06 PM
Woohoo! I now have them both (collage and fancy archive) running, and I've got them linked on my main page.
Thanks for all your help!
raminia
11-29-2005, 07:16 PM
you're welcome:)
Horray! it works again:P
steff
11-30-2005, 09:16 AM
that's COOL! :D
as soon as I get some spare time, i'll add this.
thank you :)
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.