Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1228
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Random Image ( NOT GALLERY)

Started by Old Fossil, April 28, 2010, 04:21:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Old Fossil

Hi Folks

Is there a way of using a block to show random images such as the ones in the Community Link on the MKA forum?

http://www.mkaware.co.uk/MKAForum/index.php?action=pages

The banners in the link will show what I am after.

The images are NOT all the same size however.
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Nathaniel

A Simple php block should suffice.

The code in the post below does something similar with quotes.
http://simpleportal.net/index.php?topic=1745.msg11523#msg11523
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Old Fossil

Hmm quotes.

Hey stop giving me ideas will ya.

:D

How would I make the images a similar size?

Should I add the images to a folder of their own?
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Nathaniel

Quote from: Brack1 on April 29, 2010, 08:01:41 AM
How would I make the images a similar size?

Well, you could use the portal resizing if you set the class for the image html element to "bbc_img sp_article".

Ie:
<img src="{url}" class="bbc_img sp_article" />

Quote from: Brack1 on April 29, 2010, 08:01:41 AM
Should I add the images to a folder of their own?

You could if you wanted to, although you could use have an array of complete image urls as well.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Old Fossil

How would I display this ina block?

Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast