Page 1 of 1

Usergroup Edition

Posted: 18 Jul 2010, 08:04
by Anthies
1) Have you ever thought of centralizing the avatar and the rank if selected to your usergroup over the ACP?
Well it's super easy to do that.

Open: memberlist_body.html

Find:

Code: Select all

			               <!-- IF AVATAR_IMG -->{AVATAR_IMG}<!-- ENDIF -->
                        <!-- IF RANK_IMG -->{RANK_IMG}<!-- ENDIF -->
                        <!-- IF GROUP_RANK -->{GROUP_RANK}<!-- ENDIF -->
Replace with:

Code: Select all

			               <!-- IF AVATAR_IMG --><center>{AVATAR_IMG}</center><!-- ENDIF --><br />
                        <!-- IF RANK_IMG --><center>{RANK_IMG}</center><!-- ENDIF --><br />
			               <!-- IF GROUP_RANK --><center>{GROUP_RANK}</center><!-- ENDIF --><br />

2) Have you ever noticed that while viewing a usergroup you see the default description? Is it bothering you?
It bothers me so why keep it when it can be either edited (make it stand out) or deleted (make it disappear)?

Open: memberlist_body.html

Find:

Code: Select all

		<p>{GROUP_DESC} {GROUP_TYPE}</p>
Replace with:

Code: Select all

		<p>{GROUP_DESC} <strong>{GROUP_TYPE}</strong></p>
If you wanted to delete it, you'd just have to remove {GROUP_TYPE}.

Re: Usergroup Edition

Posted: 18 Jul 2010, 12:37
by KukY13
Just one thing I mind: <center> tag is not used anymore. You should use CSS to center those images. The easiest way is to do that in their parent tag. Like this:

Find:

Code: Select all

		<p>
			<!-- IF AVATAR_IMG -->{AVATAR_IMG}<!-- ENDIF -->
			<!-- IF RANK_IMG -->{RANK_IMG}<!-- ENDIF -->
			<!-- IF GROUP_RANK -->{GROUP_RANK}<!-- ENDIF -->
		</p>
Replace with:

Code: Select all

		<p style="text-align:center;">
			<!-- IF AVATAR_IMG -->{AVATAR_IMG}<!-- ENDIF -->
			<!-- IF RANK_IMG -->{RANK_IMG}<!-- ENDIF -->
			<!-- IF GROUP_RANK -->{GROUP_RANK}<!-- ENDIF -->
		</p>

Re: Usergroup Edition

Posted: 18 Jul 2010, 16:48
by Anthies
Center will do, it saves space, that's why I use it.

Re: Usergroup Edition

Posted: 18 Jul 2010, 16:56
by Steve
<center> tags are not html valid
http://www.w3schools.com/TAGS/deprecated.htm
Deprecated

A deprecated element or attribute is one that has been outdated.

Deprecated elements may become obsolete in the future, but browsers should continue to support deprecated elements for backward compatibility.
Obsolete

Obsolete elements and attributes have no guarantee of browser-support and they are no longer defined in the W3C specification.

Re: Usergroup Edition

Posted: 18 Jul 2010, 17:01
by cisco007
guys, please try to learn that when you post stuff, make sure it's the correct code, specially with so many browsers out there!
we try to post anything here that is w3c compliant, don't just use deprecated codes just to save time or space.
We appreciate the sharing nonetheless!

Re: Usergroup Edition

Posted: 21 Jul 2010, 14:49
by Anthies
Well if it's not valid, then why does it work? :|

Re: Usergroup Edition

Posted: 21 Jul 2010, 16:06
by KukY13
Anthies ยป 21 Jul 2010, 14:49 wrote:Well if it's not valid, then why does it work? :|
Because tons of pages who's owners don't know a thing about standards still use it! So it is only because of compatibility. But one day all code that isn't by the standards will stop being supported by browsers, and all pages containing that code will go to hell.

Re: Usergroup Edition

Posted: 21 Jul 2010, 18:06
by cisco007
yeah, just because it's not valid doesn't mean it wont work! just go ahead and pass your site through the validator a w3c and see how many errors you get!