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)

y2krazy 09-05-2005 05:18 PM

Quote:

Originally Posted by Roxie
Great! Database error is gone, but now it submits the form and refreshes to the form again. No thank you page. hmmm

I tested mine and it works smoothly with the new files. Not quite sure what's going wrong over there... :(

Roxie 09-05-2005 08:49 PM

hmmm...let me check my settings...

peterska2 09-07-2005 10:44 PM

[high]* peterska2 clicks install.
[/high]

I had to delete a duplicate plugin though "YAAS Memberlist_Complete" coz it was putting the awards twice in the profile. Clean fresh install too so it's something in your XML there.

Looks good though. Now I just have to come up with some things to give awards for :D

y2krazy 09-08-2005 04:45 PM

The only change is that I edited the request form to make it look more streamlined with the forums. Screenshot is included.

Style Manager -> Choose the Style to Edit -> "awards_request_form"
Replace entire template with:

Code:

$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $formtitle</title>
$headinclude
</head>
<body>
$header
$navbar

<form enctype="multipart/form-data" method="post" action="$phpfilename">
<input type="hidden" value="$userid" name="userid">
<input type="hidden" value="submit" name="action">
<input type="hidden" value="$award[award_id]" name="award_id">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="3">
                Request for $award[award_name] (id: $award[award_id])
        </td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
                        <fieldset class="fieldset" style="margin:0px">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>$formpurpose</td>
                                </tr>
                                </table>
                        </fieldset>

                        <br><div align="center"><img src="$award[award_img_url]"></div><br>

                        <fieldset class="fieldset">
                                <legend>Description</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td>$award[award_desc]</td>
                                </tr>
                                </table>
                        </fieldset>

                </div>
        </div>
        </td>
</tr>
</table>

<br>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="3">
                $formtitle
        </td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
               
                        <fieldset class="fieldset">
                                <legend>Username</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><b>$bbuserinfo[username]</b></td>
                                </tr>
                                </table>
                        </fieldset>
               
                        <fieldset class="fieldset">
                                <legend>$question1</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td><input type="text" class="bginput" size="30" name="answer1"></td>
                                </tr>
                                </table>
                        </fieldset>

                        <fieldset class="fieldset">
                                <legend>$question2</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><input type="text" class="bginput" size="30" name="answer2"></td>
                                </tr>
                                </table>
                        </fieldset>
               
                        <fieldset class="fieldset">
                                <legend>$longquestion1</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td>$longexplain1</td>
                                </tr>
                                <tr>
                                        <td><textarea rows="5" cols="50" name="longanswer1"></textarea></td>
                                </tr>
                                </table>
                        </fieldset>

                </div>
        </div>
        </td>
</tr>
<tr>
        <td class="panelsurround" align="center">
        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="submit" name="submit" class="button" value="Submit Request" accesskey="s" />
                <input type="reset" name="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
        </div>
        </td>
</tr>

</table>
</td>
</tr>
</table>

</form>

$footer
</body>
</html>

You can test the Awards out yourself at my site if you wish, too(see my sig for a link).

Blaine0002 09-09-2005 12:52 AM

OK, Great hack. BUT! When a user submits a request it automaticly goes to threadid 1. How do i change this?

Roxie 09-09-2005 09:22 PM

Blah..I'm still having the same issue. I have no clue. I tried having it redirect to the thread, the forum, the thank you page. Other than that, everything works good! :D

Metropolitan 09-13-2005 01:47 AM

Can somebody plz explain me how to add the awards-request function? I want the request function in my navbar, but i have no idea how to configure this.

I hope somebody can help me ;)

Thanks in advance

Metro

Biker_GA 09-13-2005 12:44 PM

Just create a link in your navbar.. And you have to link to awards.php, not awards-request.php. I added the link to the drop down menu in the postbit. :)


mtha -- Something to consider for a future version? The ability to restrict the use of the request function based on number of posts and length of membership. In other words, unless the individual requesting the award (either for themself or another person) has been a member for at least "x" days and has at least "x" posts, they can not use the form.

blackpheonix 09-14-2005 04:15 AM

i get a broken zip :(

mtha 09-14-2005 05:43 AM

I get no problem downloading and reading content of the zip file at all. try to download again.


All times are GMT. The time now is 03:07 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.01469 seconds
  • Memory Usage 1,770KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_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