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: 561
  • Total: 561

[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.

DirtBike

Ok thanks I have done this, sorry about the post

DirtBike

Quote from: DirtBike on July 29, 2008, 09:37:20 AM
I have installed this mod and set it all up but I only get the dreaded Red X instead of the thumbnails showing up. Any ideas would be appreciated   

I thought I would just post the fix for this if anyone else has this problem.

I had not installed the GD extensions in my php setup

G6Cad

Thanks DirtBike for poting up the fix  :up:

I will mark this to solved :)

Phil Serna


blouogies

Thanks for the share Thurnok!!!

This is excellent!!!!  ;)

Thurnok

Glad to help. :)

One of these days I'll actually get around to doing some updates I've planned for so long... hehe

lOOmis

Great code. I have done a search and read through the threadbut did not find my problem. I am trying to get just one gallery to show up in the front page block. I've changed the path to the gallery pics in the gallery config and moved the pictures to the correct folder but no pictures show up in the block. I would like to use two different gallery blocks (one for graphics and one for web design) to show images from two different gallery's (graphics and web design). Thanks

Thurnok

Sorry, I'm not sure what you mean.  What do you mean by a single gallery?  Are you saying you have multiple SMF Galleries installed?  Or are you talking about only displaying a single gallery category vice all categories?

If you mean "categories" there is a variable in the Admin Config Section for that exact purpose and explained in the comment text of the code, as well as the first post in this thread.  Look at the $gal_allowCats variable info.

katers

I am having sort of the same problem as 100mis.  I want to show only one category.  It is the add on recent video for smf gallery.  I think I change something in the following code but cannot figure out what.  Also, how do I figure out what the category number is?

Thank you

//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

IchBin

// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";  <-- add the category number inbetween the quotes that you want show. To get the category number you look at your URL when you're in the category, it should show in the URL.

This website is proudly hosted on Crocweb Cloud Website Hosting.