TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 554
  • Total: 554

[Block] SMF Gallery Random Picture

Started by Thurnok, December 01, 2006, 09:32:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

Quote from: Lesmondâ„¢ on July 03, 2009, 01:28:53 PM
Quote from: fl4pj4ck on July 03, 2009, 01:24:06 PM
same block, but working with SMF Media Gallery
You would be best asking over at smf media gallery for this request 

:edit: look here

Nice find Les. :up: :up:

ZarPrime

ElectricSquid

Am I correct in thinking that I could reuse some of the code that makes up this block, in order to rebuild how the main Gallery acts?

Some of the options this code has, I would like to add directly to the Gallery code.

fl4pj4ck

I know the other block, but this one is superior talking about configuration, etc, that's why I'm asking

I changed the link from (=gallery) to (=mgallery) here, it works ok but not showing up the pictures
seems it's a little too big for me

blizz-craft


alecoddly

#284
Hi I have had it reported that when clicking on any of the images displayed it is not bringing up the full image. A page is displayed saying no image selected with something similar to http://wcsconline.com/index.php?action=gallery;sa=view;pic=71 in the address bar.

Can anyone help please

have noticed that within the gallery when you hover over a picture or click the link  shows id= whereas the link generated from the block shows pic=

FIXED edited the below to show id= instead of pic=

   // display the picture thumbnail and link it to gallery full picture
         echo   '         <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a>
'."\n";

wyvern

Glorious snippet!

Great help in the comments to assist configuration: was easy for me to display the 5 most recent pics, with minimal text.

Thank you very much!

Mick

Is this something that can be converted to smf 2.0?   Will it be a pain to do? 


Mick

Quote from: freddy888 on April 10, 2010, 12:20:55 PM
Does this code work ?

http://smf-media.com/community/index.php?topic=121.msg7728#msg7728
Im sure it works for aeva but, im using SMF gallery.   Quite frankly i had it with aeva bugs.

Freddy

Yep, that block was listed under :

SMF Media Community Ã,» SMF Media Gallery Ã,» Hacks and mods Ã,» Random Image Block for TP

Did you try it then ?

This website is proudly hosted on Crocweb Cloud Website Hosting.