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)
-   -   Yet Another Awards System [1.2.1] (https://vborg.vbsupport.ru/showthread.php?t=78934)

dark dragun 04-18-2005 06:11 AM

I think I need to create the award_cat table again, cause when I click on Award Category Manager I get a error

Could not find phrase 'no_award_categories_found'.

Also when clicking Award Manager, or Add New Award I get this error

(Fatal error: Cannot redeclare construct_depth_mark() (previously declared in D:\Inetpub\wwwroot\forums\admincp\award.php:91) in D:\Inetpub\wwwroot\forums\includes\adminfunctions. php on line 1235)

should i delete all 3 awards tables and run query manually for this part ?
if so whats the code ? I try useing whats in awards_install.php under updateds - Run Querys, and created the tables that way but as you can see some thing is wronge. I need a little help.

mtha 04-18-2005 07:39 AM

Quote:

Originally Posted by dark dragun
I think I need to create the award_cat table again, cause when I click on Award Category Manager I get a error

Could not find phrase 'no_award_categories_found'.

Also when clicking Award Manager, or Add New Award I get this error

(Fatal error: Cannot redeclare construct_depth_mark() (previously declared in D:\Inetpub\wwwroot\forums\admincp\award.php:91) in D:\Inetpub\wwwroot\forums\includes\adminfunctions. php on line 1235)

should i delete all 3 awards tables and run query manually for this part ?
if so whats the code ? I try useing whats in awards_install.php under updateds - Run Querys, and created the tables that way but as you can see some thing is wronge. I need a little help.

Seems like you were upgrading, and you might have to go through "step 1b" where it says
IF you upgrade from YAAS 1.0 and DID NOT have Award Category, click here to CREATE Category Table -->

if you dont have anything yet, you can just un-install and install it again. it's easier.

anyway, I update the award_cat.php to fix the category error.

You may need to create a category first, before adding award. in the installation, I have a default category, but you missed that by one step.

dark dragun 04-18-2005 08:08 AM

Installed

Thank you so much, wow support at 1:30 a.m. lmao so cool. I redownloaded the zips. I than removed all querys from awards_install.php and manually ran the querys, then ran my edited awards_install.php which skipped the query section and finished the rest step. Maybe you should leave it out had have people run it manually.
Once again thanks so much this hack is awsome !

deathemperor 04-18-2005 10:30 AM

Quote:

Originally Posted by mtha
The example looks really nice.
however, i think that your would lead to a seperate award system, or a branch of it.

I dont really like the idea of giving awards "automatically" very much, for right now, but that'd be a nice idea.
However, for this to work,you dont have award issue time and reason, you also dont have award history. just the current users has, says, top posts (or reputation) showing up, right? if tomorrow, someone else has higher score, the former one will lose his award?

It's ok if you don't do the auto awards it's easier with cron jobs for this right ?

other parts are good, I think you should make it, I'm looking forward to it (wait for an update mail ^^).

playstation 04-18-2005 03:54 PM

I went to install this today and when i run the installer i am getting this error

Code:

Parse error: parse error, unexpected '}' in /backup/home/carzone/public_html/forum/admincp/awards_install.php on line 126
This is lines 126-128
Code:

126                        }
127                }
128                echo "<font size=\"1\">Updated Setting - $varname </font><br />";


mtha 04-18-2005 06:22 PM

Quote:

Originally Posted by playstation
I went to install this today and when i run the installer i am getting this error

Code:

Parse error: parse error, unexpected '}' in /backup/home/carzone/public_html/forum/admincp/awards_install.php on line 126
This is lines 126-128
Code:

126                        }
127                }
128                echo "<font size=\"1\">Updated Setting - $varname </font><br />";


strainge. I have enough } in there. do you have the latest awards_install.php? just to make sure, download the zip file again, and use the installer in there.

- whats is the process running when you get the error?
something like:


Updated Phrase - award_settings
Updated Phrase - request_award
Updated Phrase - total_awards
Updated Phrase - more_awards

Phrases Updated Successfully

Updated Phrase - settinggroup_awards
Updated Phrase - setting_aw_memberlist_title
Updated Phrase - setting_aw_memberlist_desc
Updated Setting - aw_memberlist

MikeGK 04-18-2005 09:58 PM

This hack looks amazing, but it would be more awesome if we could have a place where an award winner could fill in their name and home address to claim for prizes. We're talking about real awards. Maybe there's a button where they can click on to claim and after clicking on the claim button it will prompt to fill in personal info where the admin can then send real prizes to the winners. The claim button can be in the postbit or user profile. Thanz

gigaenvy 04-18-2005 11:05 PM

Upgrade to 1.2.0 and received this error as well

Quote:

Parse error: parse error, unexpected '}' in /home/mmotri2/public_html/forums/admincp/awards_install.php on line 126
Edit: Fixed it myself knowing less than zilch about vbulletin or php syntax.

I added a trailing ';' at the end of 'WHERE varname' statement.

Code:

{
                                $DB_site->query("UPDATE " . TABLE_PREFIX . "setting SET grouptitle = '$settinggroup' " .
                                                iif($value, ", value = '" . $value . "'") .
                                                iif($defaultvalue, ", defaultvalue = '" . $defaultvalue . "'") .
                                                iif($optioncode, ", optioncode = '" . $optioncode . "'") .
                                                iif($displayorder, ", displayorder = '" . $displayorder . "'") .
                                                " WHERE varname = '$varname'");
                        }


dark dragun 04-18-2005 11:21 PM

I got this hack installed and working, but I need help with one thing.
I have mine set up after someone request a award, a new thread is started stating the request with no replys, and a poll option. Also a pm is set to admins and mods. My problem is when you read the request in the thread or if its email or pm to you they all have this bold tag in them twice as you can see below. How can I remove these ?

Dark Dragun Award Request Form

--------------------------------------------------------------------------------


Award Request Form - Dark Dragun

------------------
Sender Information

UserID: 1
Username: Dark Dragun
Fullname: Dark Dragun

-----------------------------
Request Information:
Award ID: 3
Award Name : Distinguished Service Cross
Award Description : Awarded to AMA Special Forces who have distinguished themselfs by extraordinary heroism.[b]


Recipient username : [b] Dark Dragun

-----------------------------------------------------
Please explain why the listed recipient should receive the award.

test
-----------------------------------------------------

Update: I dont know how to paste code here per rules, but I can tell you were my error was. It was in awards_request_formanswers template. Left out a slash in the last bold tag toward the bottom, I know did this late a night huh ? lol I love your hack thanks again.

mtha 04-19-2005 03:36 AM

Quote:

Originally Posted by gigaenvy
Upgrade to 1.2.0 and received this error as well

Edit: Fixed it myself knowing less than zilch about vbulletin or php syntax.

I added a trailing ';' at the end of 'WHERE varname' statement.

Thanks gigaenvy, someone had an error with ";" and I removed the wrong ; by mistake :">

the file was updated.

Quote:

Update: I dont know how to paste code here per rules, but I can tell you were my error was. It was in awards_request_formanswers template. Left out a slash in the last bold tag toward the bottom, I know did this late a night huh ? lol I love your hack thanks again.
fixed in installer too. :"> actually you nead a closing [/b] instead of [b] at the end of $award[award_desc]


Quote:

This hack looks amazing, but it would be more awesome if we could have a place where an award winner could fill in their name and home address to claim for prizes. We're talking about real awards. Maybe there's a button where they can click on to claim and after clicking on the claim button it will prompt to fill in personal info where the admin can then send real prizes to the winners. The claim button can be in the postbit or user profile. Thanz
You can make another form for this. just like the "Award request form". Look over Dr Erwin Loh for FORM TO THREAD/ FORUM/ PM/ EMAIL hack for detail.


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