![]() |
Problem fixed!
works ok |
Quote:
|
Entered the code but all I see is "see more photo's in our Gallery"
|
Yeah, there's a problem with the code or the path to your gallery. If you send me a copy of your code (with the database info redacted) and a link to your CMS and gallery, I'll take a look.
|
Working great now, thanks for the help!
|
Glad I could help!
|
Any way to show more than one image like maybe 3 or 5 images?
Quote:
|
Quote:
Quote:
|
Quote:
I and serveral VB.ORg members really like to get it. Thank you! |
Quote:
Keep in mind this is not a widget like ZippySLC's |
I can't download.
Would you like to attach it in vbulletin.org ? |
help me :(
|
It's right there in the thread that Taz linked to.
|
Quote:
Again, this is not the exact same thing that Zippy has done. |
Can this be used with PhotoPost "Classifieds?"
Fantastic job, looks great. :) Thank you. :) |
This is probably a simple error in my part, but would appreciate some advise to correct this :)
I get this error after installing the widget on the home page: Table '*****_****simvb4.pp_photos' doesn't exist ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ =============================================== Disregard above, figured that one out :) Now I don't have a photos showing. Here is my code, what did I do wrong. Photopost is in the root public_html/photopost and my forum (vB) is here public_html/forums/ If I right click on empty image and select show image in new tab, I get "Photo not found in the database!" PHP Code:
|
Anybody use this in VBCMS ( vbdesigns.de ) ? I am searching for a similar module to show random images on VBCMS portal.
|
I'm assuming this mod/widget is dead? I couldn't get it to work :( Looks great on the demo.... but that doesn't help me :(
|
Finished all steps but no output.
|
At the moment we try to solve this on a module in VBCMS ( vbdesigns.de )
|
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'; |
<a href="http://www.dizilerimizden.com" target="_blank">www.dizilerimizden.com</a> . i added my cms
|
|
Great! but I cannot get it to work I've installed it but I'm getting this message
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'database_server' (1) in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 6 Can you point me in the right direction please, Dummies guide;-) |
Interesting.
|
Quote:
Code:
$host = 'localhost'; |
isn't there a way to reference (require once or include) a custom php file that can store the database and password info instead of putting it into the widget itself? Don't want all admins to have that info.
|
Here's an update to this code using vb db class type stuff I learned from migrating another project from vb 3.8x to v4.x. Now the "dangerous" db connection stuff is not available to any who read the code.
My version comments out two query executions you will need if your photopost db is different than your vb db. I have also tweaked the query to fix an issue where the storage cat was different than the cat field and not 0 ( meaning catstore was not used. My code builds on 9 random images in a simple table. Note that I pull the cat out as cat_real and not just cat anymore. I give this code freely to the original author and the community. I will try to mind the thread to help people and/or the OP. Thank you ZippySLC for getting my brain rolling on this. You can see my version working here. PHP Code:
|
Quote:
How/where would I place/define this? PHP Code:
Thanks in advance... |
Quote:
I changed the '9' to '1' as I want just a single random photo showing. Only questions I have are, does the photo change daily or should it be changing with every screen refresh (I expected it to change with every screen refresh but that doesn't seem to be the case). Also - is it possible to make the pulled image a little bigger or define the default width and height (the pulled image is smaller than I'd like for that widget)? |
All times are GMT. The time now is 02:49 AM. |
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:
|