Mods online/offline

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Mods online/offline

Post by Tigerman75 »

Stoker where I can take the change that you use the images on the forum offline and online? To understand this!
Cattura.PNG
Thanks :oops:
You do not have the required permissions to view the files attached to this post.

Mods online/offline

Post by Stoker »

Open viewtopic_body.html
Find:

Code: Select all

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ELSE --> offline<!-- ENDIF -->
Open colours.css
Find:
.online {
background-image: url("{IMG_ICON_USER_ONLINE_SRC}");
}
add after:

Code: Select all

.offline {
   background-image: url("{T_IMAGESET_LANG_PATH}/icon_user_offline.gif");
}
Open content.css
Find:

Code: Select all

.online {
	background-image: none;
	background-position: 100% 0;
	background-repeat: no-repeat;
}
Replace with:

Code: Select all

.online {
	background-image: none;
	background-position: 100% 0;
	background-repeat: repeat-y;
}

.offline {
   background-image: none;
   background-position: 100% 0;
   background-repeat: repeat-y;
}
Finally you need the online/offline images placed in imageset folder (language)

Mods online/offline

Post by Tigerman75 »

Thanks stoker works, but I have a problem. Since I have profiles on the left so you can see the image:
Cattura.PNG
You can not move the image behind the avatar?Thanks Stoker! :thumb:
You do not have the required permissions to view the files attached to this post.

Mods online/offline

Post by Stoker »

Play around with the background-position ;)

Mods online/offline

Post by Tigerman75 »

I set up this way:

Code: Select all

.online {
   background-image: none;
   background-position: 0% 0;
   background-repeat: repeat-y;
}

.offline {
   background-image: none;
   background-position: 0% 0;
   background-repeat: repeat-y;
}
But if I go beyond the image disappears :(

It is shortly
Image

Mods online/offline

Post by Stoker »

Well, thats because of the style you are using.
You can try with some negative margin like: margin-left:-8px;

Mods online/offline

Post by Tigerman75 »

Code: Select all

.online {
   background-image: none;
   background-position: 100% 0;
   background-repeat: repeat-y;
   margin-left:-8px;
}

.offline {
   background-image: none;
   background-position: 100% 0;
   background-repeat: repeat-y;
   margin-left:-8px;
}
No, not good, if I add a margin-left moves everything.

Mods online/offline

Post by Stoker »

Take a look at the se square left style.
Man, its your style - figure it out ;)

Mods online/offline

Post by Tigerman75 »

No stoker nothing to do, and I saw all the files are equal. I also move the image to the right but not too much. And if I want to move even more to me the image disappears. Help!

Edit:
I take back everything I did. thanks stoker

Mods online/offline

Post by Solidjeuh »

works perfect!
Thank you!