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)

Abe1 10-12-2004 04:31 PM

Quote:

Originally Posted by Lionel
I'll be happy just to customize that line as per image

I noticed that also. I didn't look much into it. I'm going to look into it what I have time. I'd love to get the award pic there.

teksigns 10-12-2004 04:58 PM

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 ?

Lionel 10-12-2004 05:00 PM

Quote:

Originally Posted by Abe1
I noticed that also. I didn't look much into it. I'm going to look into it what I have time. I'd love to get the award pic there.

wonder if that could be done with preg_replace?

Abe1 10-12-2004 09:08 PM

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.

Abe1 10-12-2004 09:08 PM

Quote:

Originally Posted by Lionel
wonder if that could be done with preg_replace?

I'll look into it.

theArchitect 10-13-2004 02:16 AM

*theArchitect clicks install*.

Great hack. It will really help our less regular users to make the most of their forum viewing time.

theArchitect 10-13-2004 02:37 AM

Is there anything that should stop one from giving other user groups the power to give awards. I tried to alter the conditionals but must either being doing something wrong or am missing something. Here is the recoded if statement I am using:
Code:

<if condition="$bbuserinfo[usergroupid]=='5' OR $bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='7'">
                  <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>


Abe1 10-13-2004 12:22 PM

Quote:

Originally Posted by theArchitect
Is there anything that should stop one from giving other user groups the power to give awards. I tried to alter the conditionals but must either being doing something wrong or am missing something. Here is the recoded if statement I am using:
Code:

<if condition="$bbuserinfo[usergroupid]=='5' OR $bbuserinfo[usergroupid]=='6' OR $bbuserinfo[usergroupid]=='7'">
                  <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>


In the php I stop anyone who isn't a moderator of that forum form giving an award.

Lionel 10-13-2004 12:34 PM

In postbit this is how I handled it:

<if condition="$bbuserinfo[usergroupid]=='6'">
<if condition="$post[award]=='0'">&nbsp;
<a href="award.php?$session[sessionurl]do=award&postid=$post[postid]">Select for Editor's Pick</a>
<else />&nbsp;<a href="award.php?$session[sessionurl]do=award_remove&postid=$post[postid]">Remove Editor's Pick</a>
</if>
</if>

just like you, but for one group and that works

try putting $condition= in front of the other groups

Lionel 10-13-2004 02:14 PM

Quote:

Originally Posted by Lionel
wonder if that could be done with preg_replace?

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


All times are GMT. The time now is 11:52 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.01210 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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