Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Postbit for Admin Details »»
Custom Postbit for Admin
Version: 1.00, by kmfdm_kid2000 kmfdm_kid2000 is offline
Developer Last Online: Oct 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-22-2002 Last Update: Never Installs: 5
 
No support by the author.

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:

PHP Code:
} else {
        eval(
"\$retval = \"".gettemplate("postbit")."\";"); 
Directly above it, put this code in:

PHP Code:
} 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.

PHP Code:
} 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:



Note my highly customized postbit, that's not even a sig, it's HTML built right into the postbit's HTML coding itself



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
Code:
<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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-22-2002, 11:52 PM
GuruXL's Avatar
GuruXL GuruXL is offline
 
Join Date: Feb 2002
Location: Queens, NY
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm..this hack is nice, but...i still think it needs something more...but ok...thanks anywho
Reply With Quote
  #3  
Old 08-23-2002, 12:13 AM
Storm's Avatar
Storm Storm is offline
 
Join Date: Mar 2002
Location: RPG Palace Control Panel
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, I have this one!
Reply With Quote
  #4  
Old 08-23-2002, 12:19 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT:

I'm no longer supporting RPG Palace and it's corrupt Administration techniques...
Reply With Quote
  #5  
Old 08-23-2002, 01:58 AM
Dyntheos Dyntheos is offline
 
Join Date: May 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your kidding me right?

There no customization on those forums apart from a color shift. The buttons are even the same. :/
Reply With Quote
  #6  
Old 08-23-2002, 06:13 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am working on a more advanced version of this oO;;;
Reply With Quote
  #7  
Old 08-23-2002, 06:20 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neo i remember your user style hack are you going to be doing an advance version along those lines

btw about the hack its really just customization no?

g-force2k2
Reply With Quote
  #8  
Old 08-23-2002, 08:31 AM
kmfdm_kid2000's Avatar
kmfdm_kid2000 kmfdm_kid2000 is offline
 
Join Date: Mar 2002
Location: Where Towers Crumble (NYC)
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by g-force2k2
btw about the hack its really just customization no?

g-force2k2
Basically it is that exactly. i think if you've got all of your users on a standard post bit, it's nice to stand out as an Admin. And plenty of boards have clans, so I think it'd be nice to have certain clan postbits with logos, images, ect. built right in.

As far as my own template, I've removed most of the Variables, and hard coded almost everything in directly. Username, title, avatar, signature, everything was all removed and hard coded in directly into the template. I think if you like to code, it's a lot more fun to have an entire template to customize, rather than your standard ACP profile. There's almost limitless possibilities, as per the definition of customization.

Neo, by all means, if you want to improve on this, that'd be great, and appreciated. I'd be eager to see what you can add to this

This hack isn't anything profoundly functional, it's very much a cosmetic hack. The only thing really qualifying it as a "Hack" is a line of PHP, but I still liked it enough to share it. It's more of a Template Mod/ Mini-Hack. I'm still very much a newbie when it comes to coding, but I learn fast, and I hope to someday bring new functionality to my community, as well as others out there...
Reply With Quote
  #9  
Old 08-23-2002, 10:03 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Neo
I am working on a more advanced version of this oO;;;
Not only you
Reply With Quote
  #10  
Old 08-23-2002, 02:09 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks....but not useful to me
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04753 seconds
  • Memory Usage 2,308KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete