The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Widget: display random image thumbnail from public albums Details »» | |||||||||||||||||||||||||||||
Widget: display random image thumbnail from public albums
Developer Last Online: Nov 2013
What it does ?
This widget displays a thumbnail image, taken randomly from any public albums and adds a "More..." link redirecting to albums. Clicking on the thumbnail opens full sized picture in its current album. Version history : 1.0: Initial release 1.1: Style can now be independant of template modification / Added option to display more than one thumbnail / Added option to define a custom size for the thumbnails. 1.2: You can now restrict picture fetching to a list of albums / Added fixes to the request. Install instructions : 1- Go in to your AdminCP > vBulletin CMS > Widgets > Create new widget 2- Choose type 'PHP direct execution' 3- Give it a name (i.e: Random Picture) 4- Give it a description (i.e Random picture from public albums) 5- Save it 6- Configure it with the following code (copy/paste) PHP Code:
PHP Code:
define a list of albums IDs (coma-separated list) to use, when taking a picture randomly. You can also specify only one ID. note: if you leave this variable empty, ALL public albums will be used. $use_vB_thumbnail_size : false = the widget will use $twidth to set up the width of the thumbnail. true = default vBulletin thumbnail size will be used. $twidth: Width of a thumbnail (in pixel.) will only be used if $use_vB_thumbnail_size is set to false. $limit: # of thumbnails you want to display in the widget. $use_custom_css false = the styling of widget elements will be performed inside the widget itself (using style="" html tag.) true = the styling will be performed by CSS, thus a template needs to be manually edited : vbcms.css Code:
.pthumb { text-align:center; } .pthumb img { border: 1px solid black; padding:4px; background: white; } .pcaption { text-align:center; font-style:italic; font-family: "Times New Roman", Times, serif; margin-bottom:10px; } .pmore { text-align:right; display:block; } Screenshot : see below. Screenshots
Show Your Support
|
Благодарность от: | ||
Haponing |
Comments |
#52
|
|||
|
|||
Cool works great on 4.0.5 thanks..
|
#53
|
|||
|
|||
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/ |
#54
|
||||
|
||||
Agreed! This would be great for a monthly forum photo contest we have.
|
#55
|
|||
|
|||
The problem is what all people in "Who is Online" viewing an attachment if this mod is aktive.
|
#56
|
|||
|
|||
Hello... is there support?
|
#57
|
|||
|
|||
Can´t see Thumbnails wenn I´m not logged in.
|
#58
|
|||
|
|||
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
|
#59
|
||||
|
||||
I installed it for forum blocks. You don't have to change anything.
|
#60
|
|||
|
|||
its not changing on reload
|
#61
|
|||
|
|||
Hi
How can I display the last image I? No Random Pictures |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|