![]() |
|
|
Mod Options |
Photopost Pro Random Image Widget Details »»
|
|||||||||||||||||||||||
|
Photopost Pro Random Image Widget
Developer Last Online: Nov 2010
Hey all,
One of the things that I missed from my transition from Drupal to vBCMS was my Photopost random image block. It's one of the features that my visitors seem to really like as well. After some trial and error, I managed to create a working vBCMS widget that utilizes the "Random Image Anywhere" code submitted by Garrynz on the Photopost site. Now, I will say that I am not a huge fan of the way that Garrynz's code works (variables are defined in the code rather than looking at the config files), but it's a quick and dirty way to get this work. In no way are your database details visible to anybody, so don't worry - it's more of an aesthetic thing than a security thing. Anyway, to utilize this widget, follow these steps: 1. Go into your AdminCP, vBulletin CMS, Widgets, and click on "Add New Widget" 2. Create a new widget of type "PHP Direct Execution" and name it what you want. This name gets used in the header of the widget. I chose "Random Image." 3. Paste the following code in, making changes for your specific environment:
Important Notes:
You can see this widget in action on my site, http://www.njpinebarrens.com Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||||||||||||||
|
#31
|
|||
|
|||
|
Now that I am playing around with it a bit, I see it doesnt always show a picture?
No members have liked this post.
|
|
#32
|
|||
|
|||
|
I have noticed a glitch, I have my random image block above my section menu and now the Header title text "Section" links to my photopost? see here, www.flyfishbc.com
No members have liked this post.
Last edited by Bergler : 01 Feb 2010 at 03:43. |
|
#33
|
||||
|
||||
|
Originally Posted by Bergler
I fixed this by removing this,
No members have liked this post.
|
||||
|
#34
|
|||
|
|||
|
Excellent, thanks for the post. Was looking for a widget like this. The plugin on the Photopost site generates a film strip in the forum and a profile reference. Slightly too much for my taste since there's no config/controls.
Aside from the db prefix and the relative path, I had to tweak href=\"photos/showphoto.php/photo/" to href=\"photos/showphoto.php?photo=" in order for the link to the actual picture to work, but it was up and running within 5 mins or less. No members have liked this post.
|
|
#35
|
||||
|
||||
|
Originally Posted by Prasutagus
Excellent, that edit also fixed the issue i reported earlier
![]() No members have liked this post.
|
|
#36
|
|||
|
|||
|
working great thanks
5* ![]() No members have liked this post.
|
|
#37
|
||||
|
||||
|
Yeah, the thing is that there seems to be two ways that the URLs for photos seem to be generated (SEO friendly and not.) The vBSEO rewriting the gallery URL's also made it a bit harder to troubleshoot. Then I clicked on your image and saw you had fixed it before I got to you! Glad it's working for you now!
No members have liked this post.
Last edited by ZippySLC : 02 Feb 2010 at 01:21. |
|
#38
|
||||
|
||||
|
Originally Posted by Bergler
So what is happening here is that the script is selecting a valid photo in your photopost database, but the thumbnail and possibly the full size photo don't exist on your server.
Look at post #4 (and the replies) in this thread. No members have liked this post.
|
|
#39
|
|||
|
|||
|
Is it possible make it show only certain category photos in the gallery instead of selecting from all category in the gallery and showing them?
No members have liked this post.
|
|
#40
|
||||
|
||||
|
Originally Posted by Drache
Yes. It's a matter of adjusting the SQL query that the script uses to find a picture.
This post in the original authors thread might point you in the right direction. No members have liked this post.
|
|
#41
|
|||
|
|||
|
Problem fixed!
works ok No members have liked this post.
Last edited by lovevn : 10 Feb 2010 at 13:10. |
|
#42
|
||||
|
||||
|
PM me the URL to your site and your code please.
No members have liked this post.
|
|
#43
|
|||
|
|||
|
Entered the code but all I see is "see more photo's in our Gallery"
No members have liked this post.
Last edited by HRCHOSTING : 10 Feb 2010 at 23:20. |
|
#44
|
||||
|
||||
|
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.
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 02:14.







5* 
