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

Reply
 
Thread Tools
Post Award Hack 1.2 Details »»
Post Award Hack 1.2
Version: 1.2, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-06-2004 Last Update: 10-23-2004 Installs: 67
DB Changes
 
No support by the author.

Post Award Hack version 1.2

Overview:
This hack will allow you to award individual posts. It will give you an option to add or remove the award. It will show a rosette on a post that has been awarded.

Features:
Shows a rosette on all awarded posts
Search for individuals awarded posts
Search for all awarded posts
Allow either just admin, super mod and admin, or all moderators to give awards


Files to upload: 2 (one php and one gif)
Files to edit: Zero
Templates to add: Zero
Templates to edit: Five
Queries to run: Two
Time to install: Less then 5 minutes.

Please click ?install? if you use it.

Please post feedback as this is my first big hack.

Updates:
Version 1.0 -
Release

Version 1.1 -
Security Update
Find all awarded posts

Version 1.2 -
Fixed if you want moderators to give awards
Fixed Search page title
I no longer make the search options manual to implement

Show Your Support

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

Comments
  #112  
Old 04-24-2005, 04:27 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job Abe1! Very original. This is the kind of hack that other coders are probably kicking themselves in the butt and saying "now why didn't I think of that?" Your hacks are always well thought out and planned, and you always go the extra mile to include the small details (which make a big differance). You're a very good coder! Thank you for all of your hard work. We really appreciate it
Reply With Quote
  #113  
Old 04-27-2005, 07:18 PM
smacklan's Avatar
smacklan smacklan is offline
 
Join Date: Mar 2005
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The install went fine for me, but i get an vb error when I try to add an award that say "cannot find phrase added_award" This phrase doesn't exist in phrase manager...did I miss adding some phrases?
Reply With Quote
  #114  
Old 04-27-2005, 07:23 PM
smacklan's Avatar
smacklan smacklan is offline
 
Join Date: Mar 2005
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smacklan
The install went fine for me, but i get an vb error when I try to add an award that say "cannot find phrase added_award" This phrase doesn't exist in phrase manager...did I miss adding some phrases?
Fixed...I added the phrase manually and all is good (I still think I missed something)...anyway...nice hack, Thanks!

***Installed***
Reply With Quote
  #115  
Old 04-27-2005, 07:27 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smacklan
The install went fine for me, but i get an vb error when I try to add an award that say "cannot find phrase added_award" This phrase doesn't exist in phrase manager...did I miss adding some phrases?
I know about this. Will have to fix one of these days.
Reply With Quote
  #116  
Old 05-03-2005, 08:22 PM
Pain86 Pain86 is offline
 
Join Date: Mar 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this hack with vb 3.0.6 ?
Reply With Quote
  #117  
Old 05-04-2005, 08:09 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pain86
does this hack with vb 3.0.6 ?
i dont see why not.
Reply With Quote
  #118  
Old 05-05-2005, 09:14 AM
Pain86 Pain86 is offline
 
Join Date: Mar 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok im having trouble installing this..

Code:
open template 'postbit'

find:
--------------------------------------------------------------------
<div class="normal" style="float:$stylevar[right]">
ok.. well

someone said that code is in the first 10 or so lines of "postbit"..heres those links

Code:
<div style="padding: 5px 5px 5px 5px;"></div>
<!-- post #$post[postid] -->
<if condition="$show['spacer']">$spacer_open<if condition="!$post['islastshown']"><div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if></if>
<table border="0" cellpadding="0" cellspacing="0"  width="100%" height="40" align="center">
  <tr id="cat">
    <td width="170" height="27" align="left" valign="top">
    <img border="0" src="$stylevar[imgdir_misc]/tech2_top_left.gif" width="170" height="27"></td>
    <td style="background-image: url($stylevar[imgdir_misc]/cat_background.gif);" width="100%" height="27" align="center" valign="middle">
<span class="smallfont" style="font-weight:normal" $scrolltothis>
where is it?
Reply With Quote
  #119  
Old 05-05-2005, 02:03 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pain86
ok im having trouble installing this..

Code:
open template 'postbit'

find:
--------------------------------------------------------------------
<div class="normal" style="float:$stylevar[right]">
ok.. well

someone said that code is in the first 10 or so lines of "postbit"..heres those links

Code:
<div style="padding: 5px 5px 5px 5px;"></div>
<!-- post #$post[postid] -->
<if condition="$show['spacer']">$spacer_open<if condition="!$post['islastshown']"><div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if></if>
<table border="0" cellpadding="0" cellspacing="0"  width="100%" height="40" align="center">
  <tr id="cat">
    <td width="170" height="27" align="left" valign="top">
    <img border="0" src="$stylevar[imgdir_misc]/tech2_top_left.gif" width="170" height="27"></td>
    <td style="background-image: url($stylevar[imgdir_misc]/cat_background.gif);" width="100%" height="27" align="center" valign="middle">
<span class="smallfont" style="font-weight:normal" $scrolltothis>
where is it?
how about give me the next 10 lines also. Thanks
Reply With Quote
  #120  
Old 05-11-2005, 03:28 PM
Pain86 Pain86 is offline
 
Join Date: Mar 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<div style="padding: 5px 5px 5px 5px;"></div>
<!-- post #$post[postid] -->
<if condition="$show['spacer']">$spacer_open<if condition="!$post['islastshown']"><div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if></if>
<table border="0" cellpadding="0" cellspacing="0"  width="100%" height="40" align="center">
  <tr id="cat">
    <td width="170" height="27" align="left" valign="top">
    <img border="0" src="$stylevar[imgdir_misc]/tech2_top_left.gif" width="170" height="27"></td>
    <td style="background-image: url($stylevar[imgdir_misc]/cat_background.gif);" width="100%" height="27" align="center" valign="middle">
<span class="smallfont" style="font-weight:normal" $scrolltothis>		
			<!-- status icon and date -->
			<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
			<if condition="!$show['start_until_end']">
				$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
			<else />
				<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
			</if>
			$post[firstnewinsert]
			<!-- / status icon and date -->				
	</span>

	<span class="smallfont" style="font-weight:normal" align="$stylevar[right]">
		&nbsp;
		<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
</span>
there
Reply With Quote
  #121  
Old 05-11-2005, 03:34 PM
Pain86 Pain86 is offline
 
Join Date: Mar 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok for some reason
Code:
<div class="normal" style="float:$stylevar[right]">
is in "postbit" for the defualt skin.... but on my "tech 2 style" skin it aint there.

whats up with that?!?!
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 06:33 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.04773 seconds
  • Memory Usage 2,315KB
  • 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
  • (6)bbcode_code
  • (4)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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