View Full Version : New Addon: PixelPost Promote
kevincrafts
12-24-2007, 05:04 AM
The PixelPost Promote Addon allows you to promote either your latest photos or some random photos on web pages/sites outside of the pixelpost framework.
PixelPost Promote Addon Directions
Copy promote.php to your addons directory
Copy promote_template.html to your current template directory. Do NOT edit this file.
Put some javascript on the web page you want to promote your pixelpost site on, such as: <script src="http://yoursitehere/index.php?x=promote&type=latest&total=6&showtitle=yes"></script>
type value can be 'latest' or 'random'
total value = how many photos you want to display
showtitle value(yes/no) will show the title and link to your blog
The code output looks like this:
<div id="pixelpostpromote"> <div class="pixelposttitle"><a href="http://yoursitehere/">Your Site Title</a></div> <a href="http://yoursitehere/?showimage=8"><img src="http://yoursitehere/thumbnails/thumburl.jpg" border="0" alt=" "/></a> </div>
See a demo (http://blog.kevincrafts.com/promote.html)
Download (http://www.pixelpost.org/extend/addons/pixelpost-promote/)
rk.balla
12-25-2007, 02:12 AM
this is an excellent addon.. a great way to promote your photo blog.
thanks kevin.
one suggestion:
if the images slide instead of being static, like a slideshow.. with some 'next' & 'prev' buttons to boot.. it will look awesome.
i hope it would come in the next version of the addon.
- RK
here's my promotion :-)
http://klachak.balla.in/promotion.html
davidrwalters
12-27-2007, 09:15 PM
Hi-
I put the addon into the addon folder, place the promote_template.html into my template directory, placed the script into image_template.html and wanted the bannder to appear at the footer of my image_template.html page.
I know I'm messing something up here with the script somewhere. Just not sure how I can make this appear on my own page.
Not sure what's wrong?
Thank you for your help.
Dave
kevincrafts
12-27-2007, 10:47 PM
The addon was really made to use on pages/sites outside of your pixelpost install, but it should work within pixelpost too - do you have a url I can look at to see what's going on?
Omar1000
12-28-2007, 02:06 PM
Great addon, works fine.
Is it possible to promote only pictures for one category?
kevincrafts
12-28-2007, 02:54 PM
Not right now, but I can build that into a future version
davidrwalters
12-28-2007, 02:55 PM
You can check out my code at www.uncommoncommons.com I left it in there and all that's showing up is the text link. Thanks for your help.
Dave
Omar1000
12-28-2007, 03:06 PM
Not right now, but I can build that into a future version
That would be great! I m looking forward! Thanks a lot!
kevincrafts
12-28-2007, 04:52 PM
Are you putting the <PROMOTE> tag on your image_template.html file? You don't need to use that tag at all. All you need is the script tag which should look like this:
<script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle=yes"></script>
You can check out my code at www.uncommoncommons.com I left it in there and all that's showing up is the text link. Thanks for your help.
Dave
davidrwalters
12-28-2007, 05:05 PM
I put <script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script> into the promote_template.html in the template folder. <PROMOTE> was on that html, but in the directions it says not to edit this html page. I have it in templates directory folder not the actual template I'm using does that matter?
Also, not sure if the coding in the image_template.html is right? I have
<script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script> in the scripts and the output coding in the bottom.
Do I need to edit the index.php?
I know it's something simple that I'm doing wrong? Should i just create a new HTML and link that image? If so what's the best way I go about that?
davidrwalters
12-28-2007, 05:20 PM
I was not using the <PROMOTE> in my image_template.html.
I put <PROMOTE> back in the promote_template.html, since i misread your response.
In the scripts of image_template.html i placed
<script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script>
What code do I need to place in image_template for the script to come up?
kevincrafts
12-28-2007, 05:40 PM
David, place the promote_template file in your warmhorizon directory.
Remove the <script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script> from the scripts area.
Remove the 'output code' and put this in it's place: <script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script>
davidrwalters
12-28-2007, 05:44 PM
I uploaded promote_template.html to warmhorizons folder.
Removed script code.
Place <script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script> into the footer and still no luck.
kevincrafts
12-28-2007, 05:57 PM
When I look at the output of your url there is an exta closing </div> in there that is messing things up. Do you know where this came from?
You can see this if you put this url in your browser: http://www.uncommoncommons.com/index.php?x=promote&type=latest&total=6&showtitle=yes and view the source
</div>
document.write('<div id="pixelpostpromote"><div class="pixelposttitle"><a href="http://uncommoncommons.com/">Uncommon Commons</a></div>');document.write('<a href="http://uncommoncommons.com/?showimage=59"><img src="http://uncommoncommons.com//thumbnails/thumb_20071224162346_cloudsunweb.jpg " border="0" alt=" "/></a>');document.write('<a href="http://uncommoncommons.com/?showimage=58"><img src="http://uncommoncommons.com//thumbnails/thumb_20071223181405_raindroplightsweb.jpg " border="0" alt=" "/></a>');document.write('<a href="http://uncommoncommons.com/?showimage=57"><img src="http://uncommoncommons.com//thumbnails/thumb_20071222185557_combinedchristmasweb.jpg " border="0" alt=" "/></a>');document.write('<a href="http://uncommoncommons.com/?showimage=55"><img src="http://uncommoncommons.com//thumbnails/thumb_20071219105819_frozenoverlookweb.jpg " border="0" alt=" "/></a>');document.write('<a href="http://uncommoncommons.com/?showimage=54"><img src="http://uncommoncommons.com//thumbnails/thumb_20071218112802_icyfieldweb.jpg " border="0" alt=" "/></a>');document.write('<a href="http://uncommoncommons.com/?showimage=53"><img src="http://uncommoncommons.com//thumbnails/thumb_20071217130503_redbarnsideweb.jpg " border="0" alt=" "/></a>');document.write('</div>');
I uploaded promote_template.html to warmhorizons folder.
Removed script code.
Place <script src="http://www.uncommoncommons.com//index.php?x=promote&type=latest&total=6&showtitle= yes"></script> into the footer and still no luck.
davidrwalters
12-28-2007, 06:02 PM
Not sure where that </div> is coming from? Where can I delete that to see if it fixes things? Image_template.html somewhere?
kevincrafts
12-28-2007, 06:57 PM
David,
Did you make any changes to the promote.php file?
if you made any changes to the files, perhaps you should download a fresh set.
davidrwalters
12-28-2007, 10:37 PM
I didn't make any changes to the promote.php file. I'll try uploading fresh files.
davidrwalters
12-28-2007, 10:45 PM
Uploaded fresh files. Still no go. Maybe just doesn't work with in pixelpost? Can I link this to be an image in my footer?
could the extra </div> be somewhere in my code?
kevincrafts
12-28-2007, 11:07 PM
I can't replicate what is happening with yours. Have you hacked any of the core pixelpost files? No matter what arguments I give (even none) I still get that closing tag at the top and it is what is causing it to fail.
http://www.uncommoncommons.com/index.php?x=promote
Uploaded fresh files. Still no go. Maybe just doesn't work with in pixelpost? Can I link this to be an image in my footer?
could the extra </div> be somewhere in my code?
effraie
06-07-2008, 08:54 AM
hello,
that plugin seem nice, but i've got a problem: it give me a blank page:
http://blog.effraie.org/promote.html
it's a bit strange, cause i've got: http://pics.effraie.org/index.php?x=promote&type=latest&total=6&showtitle=no working.
and if i replace my url in browse.html bu kevin's one, it's work (showing that's not a misconfiguration in my external site)
any idea?
kevincrafts
06-07-2008, 06:58 PM
The problem comes from the apostrophe in your site name - something I didn't anticipate when making the addon. I've updated the addon so it should work with your site name - you can download it here (http://www.pixelpost.org/extend/addons/pixelpost-promote/download/).
effraie
06-08-2008, 11:00 PM
it work, you rock ;)
any way to make it vertical?
kevincrafts
06-09-2008, 02:23 AM
you can do some css styling to make it vertical
witty
06-09-2008, 04:12 PM
Hi,
Is there a way to use this addon as a "signature" for this forum, for example?
-Witty
kevincrafts
06-09-2008, 06:28 PM
I'm going to say no, since the forum signature is based on Markdown and I don't htink there is a way to insert script tags into that.
witty
06-09-2008, 07:05 PM
Hi,
That's what I figured, but thought I'd ask. It's a neat add-on, but the only use for it FOR ME, would be as a signature for my account on another forum to which my blog relates. Oh well. Thanks!
-Witty
Dkozikowski
06-09-2008, 11:13 PM
I've got a script which will display your latest photo (or random) in a forum signature / forum post, etc. If you're interested shoot me a PM and I'll clean the code up and package it.
hi,
i am from germany and my english isn't so pretty. I activate the code on my side, but when i click on the link its open in the same window. I want to open my pixelpost-fotoblog in extern window, what must i do ?
thanks 4 help.
Greets mexi
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.