Page 1 of 2

Random Image block?

PostPosted: Sun Mar 20, 2011 12:19 am
Author: Lycanth
I'd like to add a block to my portal that will display a random image, but i'd like it to choose the images from a specific folder. Is this possible? If so, what settings do I change in the ACP?

Re: Random Image block?

PostPosted: Sun Mar 20, 2011 3:51 pm
Author: Helter
install this block and put your images in your forum root/images/random_pics

Re: Random Image block?

PostPosted: Mon Mar 21, 2011 5:51 pm
Author: Lycanth
Thank you. Got it all installed, but i'm using subblack and it doesn't seem to want to show with it. What do I need to amend to make it work for this theme?

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 8:19 am
Author: MWE_001
Meaning it does not show up on the site at all? or just the colors are all wrong?

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 3:22 pm
Author: Lycanth
meaning it's not showing at all.

Oh, and while I have your attention <img>

I'm also wanting the banner at the top of my site to change each time the page is refreshed. I have 4 banners that I will be using. I've researched and found one for phpbb3, but when i looked in includes/functions.php for the correct code to change, thinking i might be able to tweak it, i couldn't find what it was looking for, so i'm assuming that 2 and 3 are too different. Is there any other way to accomplish this?

And finally, is there any way to have blocks show on the left AND right of my forum. Currently, the blocks to the right that i have showing in my portal disappear as soon as the forum is entered.

Thanks to you gentlemen for yet again dealing with my complete lack of skills!s

oops, figured i'd better add my url! http://www.nextincantation.com

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 4:19 pm
Author: Helter
did you add the block to the dark template as well? also remember to refresh your cache in acp/IM Portal/Delete Cache Files

to show blocks on the forum page go to acp/IM Portal/Portal Configuration
set "Enable system-wide portal footer" to yes go to acp/IM Portal/Blocks Management and select your portal page.
set whatever "right" blocks you want to display on the forum page to "footer" ten delete your cache files again.

for the rotating logo upload a duplicate of the forum root/images/random_pics folder but firs rename it to random_header.
Add your logos to it.
OPEN forum root/templates/Dark/overall_header.tpl
FIND
Code: Select all
<img src="{LOGO}" width="{LOGO_WIDTH}" height="{LOGO_HEIGHT}"

REPLACE WITH
Code: Select all
<img src="./images/random_header/rotate.php" width="{LOGO_WIDTH}" height="{LOGO_HEIGHT}"

be sure your images are all the same size and set the size in acp/General Admin/Configuration
Dont worry about the "Choose a Logo" part because it will not show anyway.

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 5:16 pm
Author: Lycanth
Okay, got the random pic block working, thanks! Now...to pick your brain...there's a site i go to that has a random pic set up where they have names under the pictures, and the name is a link to their profile:

http://sodiumsky.com/eotwawki/phpBB3/in ... 42c4c9fa7e

How would I do that for mine, or is it undoable?


ETA: Got random banner working, now, as well! Looking awesome and I can't thank you enough for your help. Next on my list is enabling right hand blocks <img>

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 8:55 pm
Author: Helter
I dont know what to make of that site. The owner is from Denver and I would be willing to bet that all those famous ppl are NOT members of the site. I could be wrong though.... but I doubt it <img>

it is more than likely just a simple js that loads one of several web pages into that block

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 9:24 pm
Author: Lycanth
it's a roleplaying site, hehe.

And ok. The owner of said site did mention she did a lot of coding into it, and she added the pictures herself. Will have to ask her.

Re: Random Image block?

PostPosted: Tue Mar 22, 2011 9:47 pm
Author: Lycanth
My site is almost perfect, I just have one small problem. I did the right hand blocks as instructed, but now there's a gap between the forum and those blocks.

http://www.nextincantation.com

Hopefully this is an easy fix?

Re: Random Image block?

PostPosted: Wed Mar 23, 2011 12:30 am
Author: Lycanth
Taking a closer look at that other sites block, it looks like they're using <a href etc etc for the pic and link....but no idea how they're randomisng it yet. *keeps researching*

Re: Random Image block?

PostPosted: Wed Mar 23, 2011 9:35 am
Author: viragotech
"Lycanth" wrote:Taking a closer look at that other sites block, it looks like they're using <a href etc etc for the pic and link....but no idea how they're randomisng it yet. *keeps researching*


Its probably just some simple html or java image rotation code stuck inside a block.

You can think of a block as a mini webpage, you can stick anything you want in one.

http://www.google.com/search?client=ope ... 8&oe=utf-8

Re: Random Image block?

PostPosted: Sat Mar 26, 2011 10:22 am
Author: MWE_001
Hello Ly. I just logged back on to your site the other day. I forgot my info. Now I am good to go. Shoot me a PM over on your site of what you need done and I will see what we can do.

Ray

Re: Random Image block?

PostPosted: Sat Mar 26, 2011 12:03 pm
Author: Helter
"Lycanth" wrote:My site is almost perfect, I just have one small problem. I did the right hand blocks as instructed, but now there's a gap between the forum and those blocks.

http://www.nextincantation.com

Hopefully this is an easy fix?


go to acp/IM Portal/Page Management
change your page Template File from portal_body.tpl to layout1.tpl

portal_body.tpl includes space for right blocks

Re: Random Image block?

PostPosted: Mon Mar 28, 2011 2:39 pm
Author: MWE_001
Ahh ya beat me to it. lol Good one Helter.

I was going to log on her site and do it for her, but I had a rough weekend and just now got back online.