Sub Menu
Links Menu
Online Users

In total there are 305 users online :: 3 registered, 0 hidden and 302 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Random Image block?

Support for IntegraMOD 141

Moderator: Integra Moderator

Random Image block?

PostAuthor: Lycanth » Sat Mar 19, 2011 11:19 pm

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?

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: Helter » Sun Mar 20, 2011 2:51 pm

install this block and put your images in your forum root/images/random_pics
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Random Image block?

PostAuthor: Lycanth » Mon Mar 21, 2011 4:51 pm

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?

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: MWE_001 » Tue Mar 22, 2011 7:19 am

Meaning it does not show up on the site at all? or just the colors are all wrong?
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Random Image block?

PostAuthor: Lycanth » Tue Mar 22, 2011 2:22 pm

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

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: Helter » Tue Mar 22, 2011 3:19 pm

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.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Random Image block?

PostAuthor: Lycanth » Tue Mar 22, 2011 4:16 pm

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>

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: Helter » Tue Mar 22, 2011 7:55 pm

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
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Random Image block?

PostAuthor: Lycanth » Tue Mar 22, 2011 8:24 pm

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.

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: Lycanth » Tue Mar 22, 2011 8:47 pm

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?

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: Lycanth » Tue Mar 22, 2011 11:30 pm

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*

Lycanth
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Mon Nov 12, 2007 5:20 pm
Cash on hand: 0.00
Location: Australia

Re: Random Image block?

PostAuthor: viragotech » Wed Mar 23, 2011 8:35 am

"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
User avatar
viragotech
Sr Integra Member
Sr Integra Member
 
Posts: 292
Likes: 0 post
Liked in: 0 post
Joined: Wed Jul 04, 2007 10:30 am
Cash on hand: 0.00

Re: Random Image block?

PostAuthor: MWE_001 » Sat Mar 26, 2011 9:22 am

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
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Random Image block?

PostAuthor: Helter » Sat Mar 26, 2011 11:03 am

"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
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Random Image block?

PostAuthor: MWE_001 » Mon Mar 28, 2011 1:39 pm

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.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Next

Return to IntegraMOD 141

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron