vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget: display random image thumbnail from public albums (https://vborg.vbsupport.ru/showthread.php?t=237884)

cws 01-07-2011 11:10 PM

Thanks :)
One question: Can I manage to get the pictures not vertically but horizontally shown.

I would like to have them in the Center :)

beatyourtruck 01-15-2011 02:31 AM

LOVE this mod! In case anyone was wondering, it works great as a CMS Widget and a Forum Block (vB 4.0.8).

I have it running on my forum and CMS to display the winner of our Monthly Photo Contest. I have one album for the winner of the month (which is what this mod looks at) and when we get a new winner, I move the old one to a Past Winners album. Just in case anyone else is looking to use it this way.....

Thanks XmanuX!

Bestrafung 02-01-2011 12:30 PM

Is it possible to change how often the image is randomized? I've noticed that the same image is loaded for approximately two to three minutes before another random image is loaded.

Edit: I had to remove this widget from our page. It seems after a short period of time it has developed a random database error. We were unable to save articles due to this error. If anyone could point out why it's happening I'd be most appreciative.

HTML Code:

Database error in vBulletin 4.1.1:

Invalid SQL:

    SELECT    alb.albumid, att.attachmentid, att.userid, att.caption, att.dateline, att.state, fdt.filesize, IF(fdt.thumbnail_filesize > 0, 1, 0) AS hasthumbnail, fdt.thumbnail_dateline, fdt.thumbnail_width, fdt.thumbnail_height, u.username
    FROM album AS alb
    LEFT JOIN attachment AS att ON alb.albumid = att.contentid
    LEFT JOIN filedata AS fdt ON att.filedataid = fdt.filedataid
    LEFT JOIN user AS u ON att.userid = u.userid
    WHERE alb.state = 'public' AND att.contenttypeid = '8' AND alb.albumid IN (2)
    ORDER BY rand (16470)
  LIMIT 1;

MySQL Error  : FUNCTION gunnook_vb4.rand does not exist
Error Number  : 1305
Request Date  : Tuesday, February 1st 2011 @ 09:57:43 AM
Error Date    : Tuesday, February 1st 2011 @ 09:57:44 AM
Script        : http://xxxxxxxxxxxxxxxxxx.com/content.php?182-Nebraska-FFL-Dealers
Referrer      : http://xxxxxxxxxxxxxxxxxx.com/content.php?139-ffl-dealers
IP Address    : xx.xx.xx.xx
Username      : Admin
Classname    : vB_Database
MySQL Version : 5.0.91-community


ash50210 02-27-2011 06:49 PM

Appreciate the way how to make the pictures in horizontal mode
anyway, great mods!

sweetpotato 03-06-2011 12:31 PM

Thank you very much. I'd like to know how to display newest pictures?

Antidepresiv 03-19-2011 01:56 PM

Thanks for this mod, only thing is that it would look much much better if they displayed like :

xxx
xxx

instead of :

x
x
x
x

besides that, this mod is perfect. Thanks again.

Datenpapst 05-14-2011 01:07 PM

how can I get 2 thumbnails next to each other so its like this

X X
X X
X X

etc

nurga 05-27-2011 09:43 PM

Is there a way that I could use this to simply grab and resize the actual image itself and not the thumbnail?

*edit: Simply edit the Widget's config and search for "&thumb=1" and change it to "&thumb=0" in case anyone else was curious.

goshalim 06-16-2011 05:23 AM

Why we do not get any reply , the same queation was made in the 5 pages who can we make this work and show the pictures Horisozontal mode

Its a great mode but please someone can help on this issue

Videx 06-16-2011 02:21 PM

Quote:

Originally Posted by goshalim (Post 2208365)
Why we do not get any reply , the same queation was made in the 5 pages who can we make this work and show the pictures Horisozontal mode

Its a great mode but please someone can help on this issue

Assuming you've carefully searched the entire thread and haven't found a solution, then the reason you aren't getting a reply is that nobody has figured it out yet. Consider hiring someone.


All times are GMT. The time now is 11:13 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
  • Page Generation 0.01221 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete