vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=187600)

ndut 12-28-2008 10:35 PM

the error, disapper after i update the new version. :)

Abominus 12-29-2008 11:40 AM

We want to display the award icons in several lines, i.e., add a line break after every 10th icon. Would the following change in the product-yet_another_award_system.xml do the trick?

First we add a new template awards_bit2:

PHP Code:

- <template name="awards_bit2" templatetype="template" date="1174777642" username="Cypher" version="">
- <![
CDATA[ <a href="member.php?$session[sessionurl]u=$award[userid]&tab=myawards#aw_issue$award[issue_id]"><img src="$award[award_icon_url]alt="$award[award_name]border="0" /></a><br>;
  ]]> 
  </
template

It's just a copy of the original awards_bit with the &nbsp replaced by < br>.

Then we modify the loop inserting the awards as follows. Original version:
PHP Code:

                $aw_i 0;

                while (
$award $db->fetch_array($alluserawards))
                {
                    
$aw_i++;
                    if (
$aw_i <= $vbulletin->options['aw_display_limit'])
                    {
                        eval(
'$post[userawards] .= "' fetch_template('awards_bit') . '";');
                    }
                } 

is replaced by

PHP Code:

                $aw_i 0;
                
$aw_cnt 0;

                while (
$award $db->fetch_array($alluserawards))
                {
                    
$aw_i++;
                    
$aw_cnt++;
                    if (
$aw_i <= $vbulletin->options['aw_display_limit'])
                    {
                        if 
$aw_cnt<10
                        
{
                            eval(
'$post[userawards] .= "' fetch_template('awards_bit') . '";');
                        }
                        else
                        {
                            eval(
'$post[userawards] .= "' fetch_template('awards_bit2') . '";');
                            
$aw_cnt 0;
                        }
                    }
                } 

Or is there an easier way to reach the same result?

home9000 01-02-2009 01:35 PM

Is it working in 3.6.5 ?

MOF 01-02-2009 02:45 PM

Is there a way to decide who can and who can't give awards?

Breakpoint 01-02-2009 09:54 PM

How can I turn the texts that says "awards" in my forum to "Trophies"?

Just the text, dont need to turn any of the files names.

fodboldforumdk 01-03-2009 02:47 PM

Seems i cant find the answer here. but i installed this mod without any probs. but i cant se the awards anywere. the only spot i can se who i have awarded is in the memberlist.

What could be the problem?

WreckRman2 01-04-2009 09:13 PM

I installed this and can't get anything to show up in the postbit. Everything else seems to work. Is there anything else I need to edit to make it show up?

scottny 01-06-2009 02:40 PM

I installed it and get the settings screen but I do not see the screen where I can award people. Sorry if this is something simple but I am kind of new to this. What am I missing?

Nadavy 01-06-2009 11:37 PM

Hey, I was wondering if it would be possible to make it so this option is editable under the 'administrator permissions' section so that not everyone who has access to the ACP can mess with the system.

Nadeemjp 01-09-2009 02:58 PM

is it 3.8 compatible?an my problem is still not solved:(


All times are GMT. The time now is 09:12 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.01341 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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