Usergroup Edition

Post your own Mods, Snippets, Tutorials here. Share what you got
There is no support here! Only Read Access!
Forum rules
User contributions are the users own "Stuff"
They are not supported by the BBCode Staff and is used at own risk
Locked
User avatar
Anthies
BBCoder II
BBCoder II
Posts: 10
Joined: 20 Mar 2010, 12:41
Location: Finland
Contact:

Usergroup Edition

Post 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}.
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: Usergroup Edition

Post 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>
Image
User avatar
Anthies
BBCoder II
BBCoder II
Posts: 10
Joined: 20 Mar 2010, 12:41
Location: Finland
Contact:

Re: Usergroup Edition

Post by Anthies »

Center will do, it saves space, that's why I use it.
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 847
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Usergroup Edition

Post 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.
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Usergroup Edition

Post 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!
User avatar
Anthies
BBCoder II
BBCoder II
Posts: 10
Joined: 20 Mar 2010, 12:41
Location: Finland
Contact:

Re: Usergroup Edition

Post by Anthies »

Well if it's not valid, then why does it work? :|
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: Usergroup Edition

Post 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.
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Usergroup Edition

Post 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!
Locked