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: 968
  • 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]


NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Gallery block in footer

Started by freeopkiller, April 13, 2010, 05:00:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freeopkiller

I'm using SMF gallery, I added the block to show random Images. Works great. But I'm wanting to place it into my index.template.php footer.  Being new to Simple Portal, Is there an easy include call, available snippet or will I have to strip code from the portalblocks.php ?

I tried using function call : sp_gallery();
Which does show 1 image, I'm missing the variable to show 4 randoms...


Any Help or Suggestions are Greatly Appreciated..Thanks

AngelinaBelle

I never thought of that -- putting the block contents someplace else.
You can take a look at the function's parameters. The one you really want is $parameters['limit'].

Does this really work?

$parameters =
array(
        'limit' => 4,          // integer number of images to show
        'type' => True,    // true = random, false = most recent
        'direction' => True  // true = horizontal, false = vertical
);

sp_gallery($parameters);
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

freeopkiller

#2
Works great ! Thank You. 

I like Simple Portal, however it looks like any other portal, big square middle and little boxes wrapped around them. It limits a lot of creativity and freedom of design. ( Without lots of hacking. )   If you could create a block, enter prams, create a block.template for it, then a function to plugin to your web site design it would greatly open up design and usability.   Ie. plugging in block on my footer..  or just a simple pop-up that would show the function call for the block would be great..   Thank you again for your help.. Another perfect solution from Simple Portal Team..


AngelinaBelle

Glad to help. Ok that I've marked it solved?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?


AngelinaBelle

Another option, if you have already created the block, is to use the method [SiNaN] wrote about in his team blog posting: http://simpleportal.net/index.php?topic=5332.0

There's plenty there to play with!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?