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

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

Shadow

#60
Thank's you for telling me Ich :)

Edited --

THe code work great so far :)

DerekTREK


jpark

I'm sure I'm overlooking something simple (and I don't mind if someone points that out to me)  ;) but... how do I get this block to show up on the gallery page if the gallery url is: http://mysite.com/index.php?action=gallery.  I made the block centered and with 5 most recent pictures with 5 columns.  Now i'm trying to select the TP block settings so it just shows up on that url above but I can't find that selection among the drop-downs..  and http://mysite.com/gallery shows me the folder, not the gallery.  hmm.... can anyone help? :D

Thurnok

You can use this block to display a random pic (or pics) anywhere - your home page, or any other part of your SMF/TP site.

When you wish to display any TP block somewhere specifically, you use the:
Show for this action
(custom action name)

field of the block settings.  If the specific area (action) you wish to show the block on does not exist in the "pulldown" menu to the right, simply leave the pulldown set at -none- and manually enter the action code in the editbox that is just to the right of the pulldown.

In otherwords, enter gallery in the editbox that is to the far right on the Show for this action (custom action name) field in the block settings for your block.

jpark

ahh... the custom action fixed it.  thanks for your help!

ORGASMUS

Hmmmm..gallery installed and working good..but where i must to put this code??

IchBin

In the first post he gives you all the info you need.

QuoteType of block:
This is a phpblock.

So, in a block is where you put the code.

wilsy

#67
Hi Thurnock,

This is the best way I can think of explaining this.

What I want to achive is that when you are viewing a members profile, you can see the first 20 (configurable) of that members gallery pics (thumbs) in a block on the profile, with a link to view all if more exist. If they have no gallery pics then the block would state this.

I can make the block appear with no problems by setting the action selection as =profile.

Is it possible to amend the code for this block and create a new block called 'SMF Gallery Pics in Profile' - that would be a cool block :)

Regards,

Wilsy.

seleleth

Wow!!! Thanks for this mod, Thurnok.

I put up our site a few months ago with some basic Gallery block I found here, not knowing about this one.

Ever since then, I had been glaring at the pitiful thing every time I visited our site. I kept thinking, "Wouldn't it be cool if that block showed this and that..." Turns out I wasn't the only one! Your block is EXACTLY the kind of thing I was looking for. I wish I had found it first!

And thank you for making it so simple to follow, too. Even though I can generally dig deep into code and find ways to alter as necessary, it's SO much easier to just have a simple, obvious set of configuration variables right at the start. I'm sure it took you a lot of extra time to setup, but you've saved all of us a ton of time in return.

Here's my site, greatly enhanced by your work!

http://clan-ai.org

Thurnok

@seleleth - Welcome.  Glad you enjoy it.  :)

@Wilsy - I think I can add that pretty easily.  No time tonight.. maybe later this week or weekend.

This website is proudly hosted on Crocweb Cloud Website Hosting.