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)

Scitz0 06-10-2010 11:22 AM

Quote:

Originally Posted by Animemike (Post 2032588)
Any chance to have better quality of the thumbnail like the other guy said




No all images are fine for me in the right place etc....
quality is set to low somewhere

Also look at the demo image his images look low setting also

I would also like to get better quality on the thumbnails.
Original pictures are fine.

Great widget otherwise.

Scitz0 06-17-2010 06:51 AM

For those who want better quality on their images, remove "&thumb=1" without the quotes from the widget code and it should be fine. The reason for the low quality images are that original code retrieves the thumbnail for the image and then resize this thumbnail.

ahmedipa 06-17-2010 09:24 AM

nice thank you

Videx 06-17-2010 02:44 PM

Quote:

Originally Posted by Scitz0 (Post 2054878)
For those who want better quality on their images, remove "&thumb=1" without the quotes from the widget code and it should be fine. The reason for the low quality images are that original code retrieves the thumbnail for the image and then resize this thumbnail.

Thanks for figuring that one out. This was a complaint a few people had early on and I could never figure out what they were talking about since mine looked perfect. Apparently it has to do with what size your thumbnails are.

XManuX 07-07-2010 08:30 AM

Hello, you have to take into consideration that removing &thumb=1 will drastically increase the amount of data transferred and the page load time, since you will always load the full image and not its thumbnail.

The solution would be to configure the album's images thumbnails size, so they exactly match the widget thumbnail size, but as far as i know, the option to configure album thumbnail size is still missing in vB4.0.3 PL1...

Regards.

cad2go 07-17-2010 10:17 AM

Very helpful stuff. Thanks for sharing.

sportsbuddys 07-20-2010 03:19 AM

Very nice mod! Im not getting a random picture though. Maybe because of the upgrade to 4.0.5

Videx 07-20-2010 04:26 PM

Well, aren't you the little spoilsport! Confirmed - in 405 no matter how many times I refresh the page the 'random' pic stays the same.

Oddly, FF and IE8 show one pic, but Chrome and Safari show another. But none of them are changing.

avitor 07-31-2010 09:09 PM

works 100%
thanks

ComoEstaEso-com 07-31-2010 10:26 PM

Tagged this... want to install in vB 4.0.5
:)
Thanks for the work!!

chuckhodson 08-05-2010 04:17 AM

Cool works great on 4.0.5 thanks..

toon79 08-05-2010 09:00 AM

I've added the widget (great by the way) but for some reason some of the rewritten (VBSEO) images can be clicked on and found but others aren't being rewritten and the link leads nowhere?

Any idea why this is?

Example....

http://www.estetica-design-forum.com...usa-europe.jpg

Not rewritten:

http://www.estetica-design-forum.com...achmentid=1589

Widget at foot

http://www.estetica-design-forum.com/content/

EDIT: According to the VBSEO forum these rules need including in the script somehwhere for people using VBSEO....

http://www.vbseo.com/f2/vbseo-functi...sibility-1662/

beatyourtruck 09-14-2010 12:45 AM

Quote:

Originally Posted by Veer (Post 2040912)
can we have forum block as well?

Agreed! This would be great for a monthly forum photo contest we have.

draver 09-15-2010 10:54 AM

The problem is what all people in "Who is Online" viewing an attachment if this mod is aktive.

draver 10-01-2010 09:27 AM

Hello... is there support?

Saghon 10-10-2010 06:41 AM

Can´t see Thumbnails wenn I´m not logged in.

XiTCLUB 11-20-2010 09:54 PM

Quote:

Originally Posted by beatyourtruck (Post 2097873)
Agreed! This would be great for a monthly forum photo contest we have.

i also want it to add on forum blocks because i have only purchased the vBulletin Forum it will be great for me and others please help us about adding this in forum blocks

8thos 11-21-2010 12:18 AM

I installed it for forum blocks. You don't have to change anything.

denman75 01-02-2011 07:40 PM

its not changing on reload

ehsanix 01-07-2011 08:00 AM

Hi
How can I display the last image I?
No Random Pictures

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.

orangefive 08-03-2011 09:14 AM

hmmm, when not logged in the thumbnails are just white boxes - any way to make it so that thumbnails show on when not logged in. Have it on homepage of www.thewoollybacks.co.uk

orangefive 08-04-2011 08:24 AM

or.... is it possible to create a user account with complex password and specify that account in the code to only be used for displaying the images?

tele955848 08-05-2011 06:33 AM

hallo,
great tool but the pictures do not move
http://www.1sta.de/forum

orangefive 08-06-2011 04:45 PM

I was being a bit thick - changed usergroup permissions on not logged in to be able to view public albums and now works like a charm at www.thewoollybacks.co.uk

Chadwicksracing 11-08-2011 05:54 AM

I would like to figure out how to stack the images horizontally. I was playing with the CSS and was able to get them to stack with float:left, but the widget content area would not expand with the series.

I tried to add in a DIV to consolidated the widget into one box, but I lack the skills to add that int he PHP code. I played with this for 4 hours.

Example: http://fordstnation.com/content.php?120-gallery

Maybe there is a quick fix to the .cms_widget_content class in the CSS?

Nacho Vidal 11-08-2011 09:21 PM

Quote:

Originally Posted by nurga (Post 2200694)
*edit: Simply edit the Widget's config and search for "&thumb=1" and change it to "&thumb=0" in case anyone else was curious.

The above works a treat, also set $use_vB_thumbnail_size to false!

If you want to remove the 'by [username]' from the caption, then just find and remove

Code:

by {$pic[username]}
My board is 4.1.7 and this appears to work fine! :D

Chadwicksracing 11-09-2011 01:50 AM

I got the code to work with horizontal.

_ _
_ _
_ _

Minor HTML edit in the php output, and some CSS work did the trick. This is a great script, suites my needs well.

oxoxo 11-16-2011 10:17 PM

become 4.17 Patch 2 the following Error:
Parse error: syntax error, unexpected T_STRING in /srv/www/vhosts/once-board.de/httpdocs/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 1

oxoxo 11-17-2011 06:34 AM

just now it works fine on 4.17 P2. i have too many uncoment line have copy/paste to code block.

bauers 11-27-2011 07:04 PM

Hi Chadwicksracing,

please, can you explain me, where I have to edit the code to get the pictures horizontal?

Thanks


All times are GMT. The time now is 09:11 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.01328 seconds
  • Memory Usage 1,820KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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