Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 08-25-2005, 02:04 AM
Michael Offline
forum loafer
 
Join Date: Aug 2005
Posts: 13
Radom Imagine for WP

Hey, is there a random image addon for wordpress? Thanks.
Reply With Quote
  #2  
Old 08-25-2005, 07:11 AM
dontfeedthenerd Offline
pp veteran
 
Join Date: Aug 2005
Posts: 73
Errr wordpress, not one tuned for it. But if you check out my site, the banners are picked randomly everytime. Is that what you mean?

Otherwise there's a display random image addon in the addon section of the pixelpost website.
__________________
http://www.exuvia.net
Reply With Quote
  #3  
Old 08-26-2005, 09:21 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
use this addon:
PHP Code:
<?php

// use http://www.yourphotoblogaddress.com/index.php?random=image as the link to a random page on your photoblog
 
if ($_GET['random']=='image')
 {
     
$idmysql_query("select DISTINCT id from 
     "
.$pixelpost_db_prefix."pixelpost
     order by rand() limit 0,1"
);
     while(list(
$id) = mysql_fetch_row($id)) {
     
header("Location: index.php?showimage=".$id);
     
//exit;
     
}
 }
?>
0) Copy this addon to the addons
folder
1) use http://www.yourphotoblogaddress.com/index.php?random=image as the
link to a random page on your photoblog in any page on the net!

@Michael,
Please, post your modified addon to the forum to let other people have it.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #4  
Old 08-26-2005, 10:35 PM
Michael Offline
forum loafer
 
Join Date: Aug 2005
Posts: 13
Is there a way to implement the random thumbnail along with that as well?
Reply With Quote
  #5  
Old 08-27-2005, 06:57 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by Michael
Is there a way to implement the random thumbnail along with that as well?
there is already a random thumb plugin for wp ! check out my weblog.raminia.com and then weblog.raminia.com/hp-hacks
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #6  
Old 08-27-2005, 05:49 PM
Michael Offline
forum loafer
 
Join Date: Aug 2005
Posts: 13
That site didn't work. Ya, I'm looking for that addon thats on your site. But I thought the one you have now doesn't work with wordpress. Thats what I'm really looking for, thanks.
Reply With Quote
  #7  
Old 08-27-2005, 06:40 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
my site is not down. it is working... try again
http://weblog.raminia.com/wp-hacks/
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #8  
Old 08-29-2005, 03:29 PM
Michael Offline
forum loafer
 
Join Date: Aug 2005
Posts: 13
I feel like an idiot, but I really can't get it to work. I edited all the things that it said to, but still nothing. When I place the code in my sidebar it does absolutely nothing. Not sure what the problem is, I'm using pixepost 1.4.2, so I downloaded the top one. I wish it'd work.
Reply With Quote
  #9  
Old 08-31-2005, 12:23 AM
Michael Offline
forum loafer
 
Join Date: Aug 2005
Posts: 13
Any ideas?
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:19 AM.

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