vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - Latest Album Pictures - Forum Home (https://vborg.vbsupport.ru/showthread.php?t=174445)

Magnumutz 03-29-2008 05:43 AM

Wow, awesome... good job !
Would be interesting to have an option like "Choose Random or Latest Album Pictures"
Or just make another mod with Random display.

toadyd 03-29-2008 08:22 AM

To quickly change it to display randomly instead of by the date you can change
Code:

ORDER BY dateline DESC LIMIT 0, $displayrecords
to
Code:

ORDER BY rand() DESC LIMIT 0, $displayrecords
which will work fine for smallish tables.

Boofo 03-29-2008 09:11 AM

Quote:

ORDER BY RAND(NOW()) DESC LIMIT 0, $displayrecords
is what I use.

Boofo 03-29-2008 09:21 AM

I am also getting this showing up:

My pride & Joy where it should be My pride & Joy

EDIT:
I fixed the problem with the & not being parsed. You might want to make this change as you are going to run into this with other things down the road.

Find:

Code:

$lpicture['title'] = strip_tags(htmlspecialchars($lpicture['title']));
And change it to:

Code:

$lpicture['title'] = trim(strip_quotes($lpicture['title']));

Magnumutz 03-29-2008 10:19 AM

Quote:

Originally Posted by toadyd (Post 1477462)
To quickly change it to display randomly instead of by the date you can change
Code:

ORDER BY dateline DESC LIMIT 0, $displayrecords
to
Code:

ORDER BY rand() DESC LIMIT 0, $displayrecords
which will work fine for smallish tables.

Thanks, that worked great :)

Endertr 03-29-2008 10:42 AM

Thanks.

jluerken 03-29-2008 11:10 AM

Great Product, many thanks.
It would be nice if you can add a function to only allow special usergroups to see this

GrendelKhan{TSU 03-29-2008 11:30 AM

great job!

anestetic 03-29-2008 11:47 AM

?ok guzel olmus bu tesekkurler Turkish man :D

birde ORDER BY RAND(NOW()) DESC LIMIT 0, $displayrecords bu nedemek ?

GrendelKhan{TSU 03-29-2008 12:05 PM

REQ:
would love to see a "random album picture" setting for this. :)


All times are GMT. The time now is 01:21 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.01519 seconds
  • Memory Usage 1,732KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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