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
  #12  
Old 08-23-2002, 03:35 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good hack..I don't know why admins would want a custom post bit..its too much work, and well I wouldn't see a point to it.

If I ever find a use for it, I will install it
*Downloads*
Reply With Quote
  #13  
Old 08-23-2002, 06:53 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DrkFusion
Good hack..I don't know why admins would want a custom post bit..its too much work, and well I wouldn't see a point to it.

If I ever find a use for it, I will install it
*Downloads*
Well you can hide stuff like the ip logged to normal users. however i wont be installing it. nice idea tho.
Reply With Quote
  #14  
Old 08-24-2002, 06:21 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i threw this hack together in seconds and that is why i did not release it. if it were not for the fact it is of no use for me anymroe i would make a clan hack out of it by makign it so that when you join a clan it changes the postbit automaticaly and you can register a clan by filling out a form and makeing a postbit for it... there are many possibilities for this hack, but do to me nolonger helping at gq and my board being a peacefule non claned board its of no use so i won't bother with it.
Reply With Quote
  #15  
Old 08-24-2002, 10:42 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

It IS a bit of extra work, since I have 8 different post bits, but for me it's worth it, my members like having different colored post bits for their groups, and I like being able to have mine look totally different than the rest. I also lock my Co-Admins out of editting templates, and Storm wrote me a custom hack that allows my Co-Admin to edit his custom template from the Mod CP, so that's 1 less post bit I have to worry about...
Reply With Quote
  #16  
Old 08-24-2002, 02:46 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Xenon


Not only you
*yawns* I am not releasing mine though since hence I dont feel like making a hack file for it oO ... and its way to much code... :ninja:
Reply With Quote
  #17  
Old 08-27-2002, 06:42 PM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This shouldn't even be considered a hack.

If you are modifying multiple postbits, then it is a template change, not a hack.

I could understand a few slight modifications to an admin postbit, but you have gone WAY overboard. I got a headache just from reading your signature!!!

Remember, message boards are for people to have a community in, not for admins and moderators to be the popular crowd. Making yourself look so much more 1337 than everyone else is not really....aww forget it, nobody listens anyways. I just hope that board isn't on my host
Reply With Quote
  #18  
Old 08-28-2002, 12:15 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is a hack. It requires a file edit
Reply With Quote
  #19  
Old 12-21-2002, 07:36 PM
mx3's Avatar
mx3 mx3 is offline
 
Join Date: Nov 2002
Location: prescott valley, az
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can see how KKid liked this one, and i kinda do to when i go to his forums...I might install later.
Reply With Quote
  #20  
Old 02-12-2003, 06:53 PM
sonic3d's Avatar
sonic3d sonic3d is offline
 
Join Date: Jan 2002
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well it doesn;t work for me.

l8er
sonic
Reply With Quote
  #21  
Old 08-22-2004, 08:47 AM
Courage Courage is offline
 
Join Date: Feb 2002
Location: Romania
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've created a new custom field editable by admins, but I want to put the info for anyone in the postbit.

How can this be done ?
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:29 PM.


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.04699 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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