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-13-2004 02:31 PM

looks much better if you place the conditional as a <tr>......</else> right at the start of the table

Abe1 10-13-2004 03:04 PM

Thanks Lionel. Will do as soon as I have time.

yinyang 10-14-2004 07:34 PM

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?

Lionel 10-14-2004 08:26 PM

try it with OR condition= instead of OR $bbuser...

Abe1 10-14-2004 08:31 PM

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.

yinyang 10-15-2004 09:36 AM

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?

Abe1 10-15-2004 11:57 AM

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.

Lionel 10-16-2004 12:16 PM

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


HarryBO 10-20-2004 08:47 AM

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?

Abe1 10-20-2004 05:42 PM

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.


All times are GMT. The time now is 03:15 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.01171 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_php_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