![]() |
how can i let the output appear on new winprint "<div align=\"center\"><a href=\"photos/showphoto.php/photo/" . $row['id'] . "\"><img src=\"photos/data/" . $row['cat'] . "/thumbs/" . $row['bigimage'] . "\"></a><br /><a href=\"/gallery\">See more photos in the Gallery</a></div>"; dows, new frame.
|
Just in case anyone needs it. I've modified the query to exclude a category I have for NSFW images. This was based on help from the photopost forums. Thought I would share.
Change Code:
$result = mysql_query("SELECT id,cat,bigimage FROM pp_photos order by rand() LIMIT 1" ) or die(mysql_error()); Code:
$result = mysql_query("SELECT id,cat,bigimage FROM pp_photos WHERE approved=1 AND cat NOT IN (502) order by rand() LIMIT 1" ) or die(mysql_error()); |
hmm couldnt get this to show an actual picture - just the 'more pictures in the gallery' (the link of which worked ok)
shame |
I have 4 images in a horizontal line
Is it possible to show images in vertical line rather than horizontal? |
I have tried to change the div align code
and a few other things but I can't find the right way. |
It works as VBCMS Modul at HERE
|
ZippySLC - thanks for such a nice little hack works as described no problems
couple of things 1) i have found that i can increase the number of images shown by changing LIMIT to a higher number this is great but i would love to have the images shown horizontally - is this possible ?? 2) i also tried changing the order from random to date but strangely it showed it in the reverse order with the oldest images in the database showing first - regards and thnx again Anthony |
If you are usign SEO in "Spider-Friendly URL's" you have to change the Select and the href code:
Code:
SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.title,c.catname,c.photos,c.posts Code:
print "<div align=\"center\"> It works in my site about aquariums |
Hi,
I am a newbie and want to use your widget. I have followed the steps as mentioned by you but i don't have Photopost tables. From where i can get this tables. Please help me on this. Regards, Pankaj |
I was messing around with this code today and was able to get the widget to show HORIZONTALLY. Here is what I got and if you want to see it in action, visit http://www.modificationnation.com/ and under the big banner in the center you will see random members then FRESH INK & MODS.
You will need to add your database info at the top and change DOMAIN.COM to your URL. It should work no matter what your seo url's are set to but I don't know for sure. I have it set up to pull the newest photos from the gallery. If you would like it to pull random simply change "order by id DESC" to "order by rand()" I am no coder, so I will do my absolute best to help you if it doesn't work Code:
$host = 'localhost'; |
All times are GMT. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|