vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Yet Another Awards System 3.5 v2.1.2 (https://vborg.vbsupport.ru/showthread.php?t=94836)

mtha 10-23-2005 10:44 AM

Quote:

Originally Posted by Flow Fusion
Does anyone have it active?

1. Did you turn the option to request award ON? (see attachment)
http://giftedsouls.com/gs/admincp/op...dogroup=awards

2. Did you look at the right place for the request award link? (see attachment)
http://giftedsouls.com/gs/awards.php


remember, when you turn it on and use it, you HAVE to configure the request-award properties in order to use it properly.

Flow Fusion 10-23-2005 03:43 PM

I'm afraid my confusion is in this part.

PHP Code:

//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array 
////////////////////////////////////////////////////////////////////////////////////////////////////

if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7,8.9.10.11.12,27,))) print_no_permission();

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF THIS PHP FILE AND TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS!
//You can easily make more forms by just copying this file, renaming it, and modifying the variable in
//this file. You can keep the same templates for different forms. For more customization, you can 
//use different templates, by renaming and modifying the templates.
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of this file
$phpfilename "request_award.php";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "1";

//FORUM TO POST NEW THREAD IN
$formforumid "131";<---------------------------------------I added the arror

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll "1";
$formoption1 "Yes";
$formoption2 "No";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD
$formreply "1";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid "1";<---------------------------------------I added the arror


//FORUM ID WHERE THE EXISTING THREAD IS IN
$formreplyforumid "2";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm "1"


Flow Fusion 10-23-2005 05:53 PM

I have it working I just don't see the link..

http://www.giftedsouls.com/gs/reques...php?award_id=1

Name: test
PW: 999999

Flow Fusion 10-23-2005 07:21 PM

I got it now. Great hack. Thanks.

Flow Fusion 10-25-2005 12:27 AM

Any way to make it so more than one person can get a PM on the request?

MissKalunji 10-25-2005 12:07 PM

i get this error when i try to go here : http://www.dancehallareaz.com/forum/...8&postcount=15


Quote:

SELECT a.*, au.*
FROM award a, award_user au
WHERE (au.userid = ) AND (a.award_id=au.award_id)
ORDER BY au.issue_time;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND (a.award_id=au.award_id)
ORDER BY au.issue_time' at
Error Number : 1064
Date : Tuesday, October 25th 2005 @ 09:05:56 AM
Script : http://www.dancehallareaz.com/forum/showpost.php?p=458
Referrer :
IP Address : 24.37.191.104
Username : MissKalunji
Classname : vb_database

mtha 10-31-2005 10:27 AM

Quote:

Originally Posted by MissKalunji
i get this error when i try to go here : http://www.dancehallareaz.com/forum/...8&postcount=15

it's because you are looking at a guest's post.

I dont have access to my code now, but you can try this:

Go to your AdminCP, edit the plugin YAAS - postbit_display_start

LOOK FOR
PHP Code:

        if ($vbulletin->options['aw_postbit']) 
        {
            if (
THIS_SCRIPT == 'private'$this->post['userid'] =& $post['fromuserid']; 

REPLACE BY

PHP Code:

        if (THIS_SCRIPT == 'private'$this->post['userid'] =& $post['fromuserid'];
         if ((
$vbulletin->options['aw_postbit']) AND ($this->post['userid']))
        { 


ps. i didnt test it, let me know if it works :)

MissKalunji 10-31-2005 01:35 PM

Quote:

Originally Posted by mtha
it's because you are looking at a guest's post.

I dont have access to my code now, but you can try this:

Go to your AdminCP, edit the plugin YAAS - postbit_display_start

LOOK FOR
PHP Code:

        if ($vbulletin->options['aw_postbit']) 
        {
            if (
THIS_SCRIPT == 'private'$this->post['userid'] =& $post['fromuserid']; 

REPLACE BY

PHP Code:

        if (THIS_SCRIPT == 'private'$this->post['userid'] =& $post['fromuserid'];
         if ((
$vbulletin->options['aw_postbit']) AND ($this->post['userid']))
        { 


ps. i didnt test it, let me know if it works :)

worked i didnt know it was a guest post

thanks!!

The Chief 10-31-2005 01:58 PM

looks like a great extension I'll try it out on my vb 3.5, lets see if it works!

RetroDreams 11-01-2005 02:18 PM

If I'm posting a thread to the forum, what do I edit to change the title of that? It currently just throws a generic title in there and I'd like it to basically say "User Nomination for $nominatedusername"??

Also, same goes for the poll? How do I edit what the question of the poll should be?


All times are GMT. The time now is 07:54 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.01332 seconds
  • Memory Usage 1,775KB
  • 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_php_printable
  • (4)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