kmfdm_kid2000
08-22-2002, 10:00 PM
First off, if this doesn't belong here, delete, move, ect. I'm new here, so forgive me. Secondly, this is NOT my hack. Credit goes to Zajako 100%. He created this hack while he was a Co-Admin on my board. I just cracked it, that's all.
Step 1:
Create a new profile field edittable only by Admin. Call it something like Postbit#. Then note the ID# for it, you'll need that info later. Best way to find out is Click on Modify custom Profile fields after it's created, right click it, copy shortcut, and paste it somewhere like a blank notepad page. The last 2 numbers will be it's ID#. Open your profile, and in that field, put a 1.
Step 2:
Open your postbit template. Highlight it's contents, and copy. Then create a new template, name that postbit_admin and paste the contents of the standard post bit into your new post bit. Save it. You can come back to this template, and customize it to your liking.
Step 3:
Here's what qualifies this as a hack, I think. Download and open admin/functions.php then find this line:
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
Directly above it, put this code in:
} else {
If ($post[fieldX] == "1")
eval("\$retval =
\"".gettemplate("postbit_admin")."\";");
Note the X in $post[fieldX] is the ID# of that custom field you made in step 1. You can make multiple templates as well. I.E. I have clans on my board. I've made different templates for each, I usually change the post colors. For instance, there's a clan that's called HGC. I named that template postbit_HGC and in the gettemplate("postbit_admin")." part, I just changed it to gettemplate("postbit_HGC")." However, you need a different number in the custom profile field. Let's say you use 2 to denote someone posting w/ an HGC post bit. The part that says If ($post[fieldX] == "1") gets changed to If ($post[fieldX] == "2")
Just add another line above that, I.E.
} else {
If ($post[fieldX] == "2")
eval("\$retval =
\"".gettemplate("postbit_HGC")."\";");
And you can add as many as you have templates for.
I have 8 different templates on my site. Mind you, every time I make a post bit change, I must apply it to every postbit template. You can customize the different templates as you see fit. Here's some screen shots:
http://gamequest2.netfirms.com/custompostbit.jpg
Note my highly customized postbit, that's not even a sig, it's HTML built right into the postbit's HTML coding itself
http://gamequest2.netfirms.com/standardpostbit.jpg
This is the standard post bit. Play around with the code, and see if you can customize things to your liking. There are 5 places you must look for to change post color, just look for
<td bgcolor="$post[backcolor]" and hard edit it to your liking.
Enjoy, and please, remember this was NOT my hack, this was Zajako's hack. If I did something wrong, please tell me. I'll try to help as much as I can, but you'll have to do your own HTML customization...
EDIT: For a full Demo, visit http://www.gqforums.com
Threads aren't viewable if you're not logged in, so here's Log in info:
Username: Visitor Password: gamequest
Step 1:
Create a new profile field edittable only by Admin. Call it something like Postbit#. Then note the ID# for it, you'll need that info later. Best way to find out is Click on Modify custom Profile fields after it's created, right click it, copy shortcut, and paste it somewhere like a blank notepad page. The last 2 numbers will be it's ID#. Open your profile, and in that field, put a 1.
Step 2:
Open your postbit template. Highlight it's contents, and copy. Then create a new template, name that postbit_admin and paste the contents of the standard post bit into your new post bit. Save it. You can come back to this template, and customize it to your liking.
Step 3:
Here's what qualifies this as a hack, I think. Download and open admin/functions.php then find this line:
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
Directly above it, put this code in:
} else {
If ($post[fieldX] == "1")
eval("\$retval =
\"".gettemplate("postbit_admin")."\";");
Note the X in $post[fieldX] is the ID# of that custom field you made in step 1. You can make multiple templates as well. I.E. I have clans on my board. I've made different templates for each, I usually change the post colors. For instance, there's a clan that's called HGC. I named that template postbit_HGC and in the gettemplate("postbit_admin")." part, I just changed it to gettemplate("postbit_HGC")." However, you need a different number in the custom profile field. Let's say you use 2 to denote someone posting w/ an HGC post bit. The part that says If ($post[fieldX] == "1") gets changed to If ($post[fieldX] == "2")
Just add another line above that, I.E.
} else {
If ($post[fieldX] == "2")
eval("\$retval =
\"".gettemplate("postbit_HGC")."\";");
And you can add as many as you have templates for.
I have 8 different templates on my site. Mind you, every time I make a post bit change, I must apply it to every postbit template. You can customize the different templates as you see fit. Here's some screen shots:
http://gamequest2.netfirms.com/custompostbit.jpg
Note my highly customized postbit, that's not even a sig, it's HTML built right into the postbit's HTML coding itself
http://gamequest2.netfirms.com/standardpostbit.jpg
This is the standard post bit. Play around with the code, and see if you can customize things to your liking. There are 5 places you must look for to change post color, just look for
<td bgcolor="$post[backcolor]" and hard edit it to your liking.
Enjoy, and please, remember this was NOT my hack, this was Zajako's hack. If I did something wrong, please tell me. I'll try to help as much as I can, but you'll have to do your own HTML customization...
EDIT: For a full Demo, visit http://www.gqforums.com
Threads aren't viewable if you're not logged in, so here's Log in info:
Username: Visitor Password: gamequest