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
  #72  
Old 10-13-2004, 02:31 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks much better if you place the conditional as a <tr>......</else> right at the start of the table
Reply With Quote
  #73  
Old 10-13-2004, 03: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

Thanks Lionel. Will do as soon as I have time.
Reply With Quote
  #74  
Old 10-14-2004, 07:34 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
In the changes I said to make in the postbits,
Find:
PHP Code:
$bbuserinfo['usergroupid'] == '6' 
Replace with:
PHP Code:
$bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7' 
i wanted to let only admins, mods and supermods give awards so i did this:

PHP Code:
<if condition="$bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='7' OR $bbuserinfo[usergroupid]=='5'"
but it won't let them add awards. says "user has no permission" page when they click on add award.

they can see the "add award", they just can't perform the function because they don't have permission.

suggestions?
Reply With Quote
  #75  
Old 10-14-2004, 08:26 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try it with OR condition= instead of OR $bbuser...
Reply With Quote
  #76  
Old 10-14-2004, 08:31 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 yinyang
i wanted to let only admins, mods and supermods give awards so i did this:

PHP Code:
<if condition="$bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='7' OR $bbuserinfo[usergroupid]=='5'"
but it won't let them add awards. says "user has no permission" page when they click on add award.

they can see the "add award", they just can't perform the function because they don't have permission.

suggestions?
They can see it, but they can't use it if it's not thier forum.
Reply With Quote
  #77  
Old 10-15-2004, 09:36 AM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
They can see it, but they can't use it if it's not thier forum.
what do you mean by "their" forum. also, is there a way to make it so they could use it?
Reply With Quote
  #78  
Old 10-15-2004, 11:57 AM
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 yinyang
what do you mean by "their" forum. also, is there a way to make it so they could use it?
The forums they moderate.
Reply With Quote
  #79  
Old 10-16-2004, 12:16 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To replace the navbits, that displays 'Search Results', in search.php I added the bold between:

// add to the navbits
$navbits[''] = $vbphrase['search_results'];
if ($award !=""){
$navbits[''] = 'Editor\'s Pick';
}

$templatename = 'search_results';


Replace Editor's Pick with whatever you want


Quote:
Originally Posted by Lionel
in search.php

find:

$displayUsers = implode(" $vbphrase[or] ", $display['users']);

under it put:

$award="mytest"; //or whatever just to create the condition

then in search_results template, after:

<phrase 1="$searchtime">$vbphrase[search_took_x_seconds]</phrase>
</span>


put in

<if condition="$award"><img src="images/misc/rosette.gif"> <else />

and before the close of the </td>

you close the condition

</if>

you can put whatever you want next to image
Reply With Quote
  #80  
Old 10-20-2004, 08:47 AM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same Problem as yinyang! I tried all Examples here but no one works. Moderators can the the "ADD AWARD" Button, but they have no Permission to add one!

Ist vll. jemand deutschsprachiges hier, der es hinbekommen hat das Moderatoren Awards vergeben können?
Reply With Quote
  #81  
Old 10-20-2004, 05:42 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 HarryBO
I have the same Problem as yinyang! I tried all Examples here but no one works. Moderators can the the "ADD AWARD" Button, but they have no Permission to add one!

Ist vll. jemand deutschsprachiges hier, der es hinbekommen hat das Moderatoren Awards vergeben k?nnen?
I'll look into it when I have a chance.
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:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09959 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)bbcode_php
  • (6)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
  • (4)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