Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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

Version: 3.5.3 Rating:
Released: 07-21-2005 Last Update: 02-08-2006 Installs: 86
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Post Award Hack 2.1


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
  • Settings to allow what users or usergroups can give thanks
Installation information on hack:
  • Files edited: 0
  • Templates edited: 4
  • Files to upload: 1
  • Time to install: 5 minutes max
Updates:

Version 2.1 (2/8/06):
  • GOLD Release of this hack for vBulletin version 3.5
  • Added user and usergroup permissions via the acp options
  • Rewrote the template edits

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-22-2005, 01:47 PM
ForYou ForYou is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Award ,

is there away to give users Award , it's like this hack ,

Regards
Reply With Quote
  #3  
Old 07-22-2005, 04:10 PM
Azhrialilu's Avatar
Azhrialilu Azhrialilu is offline
 
Join Date: Aug 2003
Location: Stretton, Derbyshire
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice
Reply With Quote
  #4  
Old 07-22-2005, 04:34 PM
Darth Gill Darth Gill is offline
 
Join Date: Jul 2005
Location: St. Louis, MO
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where's the PHP file (award.php) and where is the SQL to update the database. Also I found a problem in the templates editing...

You have

in MEMBERINFO:
Code:
find:
--------------------------------------------------------------------
<if condition="$vboptions['profilelastpost']">
--------------------------------------------------------------------

replace with:
--------------------------------------------------------------------
<tr>
<td><a href="search.php?$session[sessionurl]do=findawards&amp;u=$userinfo[userid]">Find all awarded posts by $userinfo[username]</a></td>
</tr>
--------------------------------------------------------------------
It should be:
Code:
find: 

<td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
				</tr>



after it add: 

<!-- HACK -->
<tr>
<td><a href="search.php?$session[sessionurl]do=findawards&amp;u=$userinfo[userid]">Find all awarded posts by $userinfo[username]</a></td>
</tr>
<!-- HACK -->
Reply With Quote
  #5  
Old 07-22-2005, 04:45 PM
Darth Gill Darth Gill is offline
 
Join Date: Jul 2005
Location: St. Louis, MO
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind I see the sql in the xml.
Reply With Quote
  #6  
Old 07-22-2005, 04:48 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 Darth Gill
Where's the PHP file (award.php) and where is the SQL to update the database. Also I found a problem in the templates editing...

You have

in MEMBERINFO:
Code:
find:
--------------------------------------------------------------------
<if condition="$vboptions['profilelastpost']">
--------------------------------------------------------------------

replace with:
--------------------------------------------------------------------
<tr>
<td><a href="search.php?$session[sessionurl]do=findawards&amp;u=$userinfo[userid]">Find all awarded posts by $userinfo[username]</a></td>
</tr>
--------------------------------------------------------------------
It should be:
Code:
find: 

<td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
				</tr>



after it add: 

<!-- HACK -->
<tr>
<td><a href="search.php?$session[sessionurl]do=findawards&amp;u=$userinfo[userid]">Find all awarded posts by $userinfo[username]</a></td>
</tr>
<!-- HACK -->
First, thanks for that template error. It should have said "add before" instead or "replace". I fixed it in the zip download.

Second, the award.php is no longer needed. All actions are in the plugings. Yhe SQL change is also done by the installer when you import the plugings. It's a pritty cool way how the installer and uninstaller work using the plug-in sytem.
Reply With Quote
  #7  
Old 07-22-2005, 04:52 PM
Darth Gill Darth Gill is offline
 
Join Date: Jul 2005
Location: St. Louis, MO
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do some of the templates link to award.php then if it's handled by the plugin?
Reply With Quote
  #8  
Old 07-22-2005, 04:57 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 Darth Gill
Why do some of the templates link to award.php then if it's handled by the plugin?
I must have been sleeping when I made the installer. Anyways, I just fixed it over. award.php was not changed to showthread.php. The search features I had made already go to search.php.
Reply With Quote
  #9  
Old 07-22-2005, 05:08 PM
Darth Gill Darth Gill is offline
 
Join Date: Jul 2005
Location: St. Louis, MO
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, another bug, you have in the instructions to upload to images/buttons when it should be images/misc
Reply With Quote
  #10  
Old 07-22-2005, 06:04 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 Darth Gill
Oh, another bug, you have in the instructions to upload to images/buttons when it should be images/misc
Anything else? I'm glad I call this Beta.

I had copied the image location from my Post Thanks Hack that is why is said button and not misc.

Anyways, all showld be good now.
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 02:09 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.06889 seconds
  • Memory Usage 2,298KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (3)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
  • (2)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