vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Post Award Hack 1.2 (https://vborg.vbsupport.ru/showthread.php?t=69198)

Lionel 10-21-2004 11:45 PM

Abe1, there is a small problem with my code :disappointed:

while it does the job for findallawards, it also display the same for findallposts by user
:o
https://vborg.vbsupport.ru/showpost....2&postcount=78

theArchitect 10-22-2004 12:29 AM

I am having a problem with my moderators. They can't add awards. As I understand they only should have permission to add awards in forums to which they are assigned, but at the moment they can't even do that.

I should note that they are not only assigned to a forum but have Moderator as their Primary user group. Do secondary user groups affect this? Because all of them have secondary groups.

Also, is it possible to change the award permissions so that staff can award outside their allotted forums?

Abe1 10-22-2004 12:55 PM

Quote:

Originally Posted by Lionel
Abe1, there is a small problem with my code :disappointed:

while it does the job for findallawards, it also display the same for findallposts by user
:o
https://vborg.vbsupport.ru/showpost....2&postcount=78

I realized that with out even trying your hack. Sorry, I've been very busy lately so I haven't even looked at this yet.

Abe1 10-22-2004 12:56 PM

Quote:

Originally Posted by theArchitect
I am having a problem with my moderators. They can't add awards. As I understand they only should have permission to add awards in forums to which they are assigned, but at the moment they can't even do that.

I should note that they are not only assigned to a forum but have Moderator as their Primary user group. Do secondary user groups affect this? Because all of them have secondary groups.

Also, is it possible to change the award permissions so that staff can award outside their allotted forums?

I will be trying to fix this ASAP. I'm pritty busy theese days, but hopefully soon.

Abe1 10-24-2004 12:29 PM

I fixed the things that everyone was waiting for.

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

teksigns 10-24-2004 01:25 PM

Quote:

Originally Posted by abe1
Quote:

Originally Posted by teksigns
I would like to be able to leave a award note with each one that i give
and have it appear under the award in the post .....


is this Possible ?

I'm sure it is. I'll see what I can do.


any idea when you might do this ?

mhobelsb 10-24-2004 01:36 PM

Is it possible to "bind" the award to the user and not to a post?

If a user got´s an award, the award picture is always shown. Not only on the awarded post. If i klick on the award picture i searches for all the awarded posts the user gots. But if he recieved one award the picture will always be there (till someone removes all of his awards of course)

would be great.

thank you for that great hack

Abe1 10-24-2004 01:53 PM

Quote:

Originally Posted by teksigns
any idea when you might do this ?

Didn't try this yet. Sorry. But thanks for reminding me.

Abe1 10-24-2004 01:56 PM

Quote:

Originally Posted by mhobelsb
Is it possible to "bind" the award to the user and not to a post?

If a user got?s an award, the award picture is always shown. Not only on the awarded post. If i klick on the award picture i searches for all the awarded posts the user gots. But if he recieved one award the picture will always be there (till someone removes all of his awards of course)

would be great.

thank you for that great hack

I'm sure it's possible. I'll see if I can do something.

deb0 10-24-2004 03:29 PM

If 1.0 is required, where can I get it?

Abe1 10-24-2004 05:07 PM

Quote:

Originally Posted by deb0
If 1.0 is required, where can I get it?

It's not required. Were does it say that? Just download 1.2

deb0 10-24-2004 05:27 PM

My misinterpretation. Will install after I finish watch my falcons get slaughtered by Kansas City.

deb0 10-24-2004 06:05 PM

2 thumbs up and an Install!!

wcbryant 10-24-2004 11:21 PM

Does anyone have this installed along with AnimeWebby's Awards/Medals/Cards Hack? Any conflicts?

This looks great, falls right in line with something my users have been asking for. Looking forward to plugging it in.

Abe1 10-25-2004 01:16 PM

Quote:

Originally Posted by wcbryant
Does anyone have this installed along with AnimeWebby's Awards/Medals/Cards Hack? Any conflicts?

This looks great, falls right in line with something my users have been asking for. Looking forward to plugging it in.

Not that I know of.

wcbryant 10-25-2004 02:13 PM

Quote:

Originally Posted by Abe1
Not that I know of.

Thanks, just wanted to check lest I get in over my head. ;) Installing now, very nice work.

Abe1 10-25-2004 02:48 PM

Quote:

Originally Posted by wcbryant
Thanks, just wanted to check lest I get in over my head. ;) Installing now, very nice work.

Thanks.

wcbryant 10-25-2004 04:56 PM

Works perfectly. Already clicked install.

My only note is that vbAdvanced CMPS users (or others with front end 'portals' that are in a lower directory) will need to make a simple change to the navbar template edit, just adding '$vboptions[bburl]/' before the search link so that the link is valid from any part of the site.

Really great though, this is exactly what they were after. Now I just need to finish up the other 900 things they want. ;)

--edit--

Just had a thought. How hard would it be to add something to this that could act as a CMPS (or general purpose) module that could display awarded posts on the front page (in part with a link probably) as a featured post sort of deal? I'm explaining that poorly, but it would be great to be able to show, say, single posts selected randomly from those awarded with this hack in the past X days (where X is definable somewhere) on the front page.

Sean S 10-25-2004 10:08 PM

thanks for the great hack :D, *install

qwertzu 11-02-2004 11:04 AM

Quote:

Originally Posted by Abe1
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

thanks a lot

Lord Brar 11-10-2004 11:57 AM

sounds interesting... I am gonna install it :D

James T Brock 11-14-2004 05:18 PM

Great hack. Works great. Anyway to get statistics with this, like how many awarded posts each user has?

Abe1 11-14-2004 05:20 PM

Quote:

Originally Posted by James T Brock
Great hack. Works great. Anyway to get statistics with this, like how many awarded posts each user has?

Hopefully some day.

cinq 12-10-2004 08:19 AM

Just to clarify, the search for awarded posts simply lists out ALL the awarded posts ?

Or can a search ( like normal vb search ) actually be done and only shows results which have the 'awarded post' status ?

sirstone 12-11-2004 09:31 AM

I´ve installed the version 3.0.3 of VB Bulletin..

open template 'postbit'

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

after place: (If you want only administrators to give awards)
--------------------------------------------------------------------
<if condition="$bbuserinfo[usergroupid]=='6'">
<if condition="$post[award]=='0'">&nbsp;
<a href="award.php?$session[sessionurl]do=award&postid=$post[postid]">Add Award</a>
<else />&nbsp;<a href="award.php?$session[sessionurl]do=award_remove&postid=$post[postid]">Remove Award</a>
</if>
</if>

I can´t find this one:

<div class="normal" style="float:$stylevar[right]">

Can anybody help?

Sirstone

Abe1 12-12-2004 12:35 PM

Quote:

Originally Posted by sirstone
I?ve installed the version 3.0.3 of VB Bulletin..

open template 'postbit'

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

after place: (If you want only administrators to give awards)
--------------------------------------------------------------------
<if condition="$bbuserinfo[usergroupid]=='6'">
<if condition="$post[award]=='0'">&nbsp;
<a href="award.php?$session[sessionurl]do=award&postid=$post[postid]">Add Award</a>
<else />&nbsp;<a href="award.php?$session[sessionurl]do=award_remove&postid=$post[postid]">Remove Award</a>
</if>
</if>



I can?t find this one:

<div class="normal" style="float:$stylevar[right]">

Can anybody help?

Sirstone

It should be in the top ten lines of the template.

Abe1 12-12-2004 12:37 PM

Quote:

Originally Posted by cinq
Just to clarify, the search for awarded posts simply lists out ALL the awarded posts ?

Or can a search ( like normal vb search ) actually be done and only shows results which have the 'awarded post' status ?

Right now, will only search all awarded posts. Maybe in the future I'll some more feature. Right now now I'm working on my other hack called 'Post Thank You Hack' (it's in the beta section).

Roxie 12-17-2004 06:09 PM

Excellent idea. I'll be installing this over the weekend. :D

MikaK 01-05-2005 11:43 AM

*installed*

j_86 01-08-2005 05:08 PM

This hack is VB 3.05 compatiable.

Bubble #5 04-24-2005 04:27 PM

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

smacklan 04-27-2005 07:18 PM

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?

smacklan 04-27-2005 07:23 PM

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***

Abe1 04-27-2005 07:27 PM

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.

Pain86 05-03-2005 08:22 PM

does this hack with vb 3.0.6 ?

Abe1 05-04-2005 08:09 PM

Quote:

Originally Posted by Pain86
does this hack with vb 3.0.6 ?

i dont see why not.

Pain86 05-05-2005 09:14 AM

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?

Abe1 05-05-2005 02:03 PM

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

Pain86 05-11-2005 03:28 PM

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

Pain86 05-11-2005 03:34 PM

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?!?!


All times are GMT. The time now is 04:51 AM.

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.01663 seconds
  • Memory Usage 1,849KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete