We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Edit the order of the post details; ei. the avatar, member title, ect; By Coded Death
Topic Started: Jan 25 2010, 11:01 AM (377 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Coded Death
[CODE
 
Edit the order of the post details; ei. the avatar, member title, ect]This code is put in ACP > Board Wrappers > FOOTER.

What it does is rearranges the details at the side of the post (ie. avatar, member title, pips, ect. all of which are listed below with the modification instructions).

Code:
 

<script>
// Code created by: unknownranger/death
// E-mail: unknownranger@epals.com
// This code may be freely distributed as long as this copyright
// remains intact.
// If you have questions about this code, feel free to PM me on
// InvisionFree's support forum (unknownranger)

var ftd=document.getElementsByTagName("td")
for(a=0;a<ftd.length;a++) {
if (ftd[a].className=="post1" || ftd[a].className=="post2") {
var fspan=ftd[a].getElementsByTagName("span")
for (b=0;b<fspan.length;b++) {
if (fspan[b].className=="postdetails") {
var utitle=fspan[b].innerHTML.split("<BR>")
for(c=0;c<utitle.length;c++) {
utitle[c]=utitle[c]+"<br />"
}
var new="";


new+=utitle[0]
new+=utitle[1]
new+=utitle[2]
new+=utitle[3]
new+=utitle[4]
new+=utitle[5]
new+=utitle[6]
new+=utitle[7]
new+=utitle[8]
new+=utitle[9]
new+=utitle[10]


fspan[b].innerHTML=new
}
}
}
}
</script>


The code is currently set up to put it in the default order for a default board. To change the order, simply rearrange the utitle[x] (where x is a number). Each utitle[x] controls a specific section of the post details.

Part numbers with corrosponding post detail

Default Board:
utitle[0] - Avatar
utitle[1] - Blank
utitle[2] - User Title
utitle[3] - Pips
utitle[4] - Blank
utitle[5] - Member Group
utitle[6] - Number Of Posts
utitle[7] - User Number
utitle[8] - Date Of Joining
utitle[9] - Blank
utitle[10] - Warn Bar

RPG Hack Board:
utitle[0] - Avatar
utitle[1] - Blank
utitle[2] - User Title
utitle[3] - Pips
utitle[4] - Blank
utitle[5] - Warn
utitle[6] - Money
utitle[7] - RPG Stats
utitle[8] - Class
utitle[9] - Gender
utitle[10] - Group
utitle[11] - Number Of Posts
utitle[12] - User Number
utitle[13] - Date Of Joining
utitle[14] - RPG Items
utitle[15] - RPG Weapons
utitle[16] - Blank
utitle[17] - Blank


To add custom text between any element, add a line of the following in between the sections you want the text between. you must leave the <br> at the end to make it look good.
Quote:
 

new+="CUSTOM TEXT HERE<br>"
[/color]

This code does not work in conjunction with any modification that is put in the post details.

EDIT: RPG Hack Boards:
Modified for compliance with RPG Hack. Follow instructions.

EDIT: xProfile Boards: Because of xProfile's awesome power, I cannot release a guide for this code for it and have it accurate for everybody. xProfile adds info if you fill it in and doesn't if it is empty. This means that the info is different from user to user, so I cannot release a guide that could even be accurate from one user to the next.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply