Jump to content

vAwards


Kyle
Message added by Kyle

WARNING: This module is no longer supported from the developer as the developer is shifting their focus on phpVMS v4 Addons.

Recommended Posts

  • Moderators

vAwards_V1.0

This module allows you to add different types of awards and add award under the type. You can issue awards to pilots aswell, and show them in the profile.

Created Under: http://creativecommo...s/by-nc-sa/3.0/

Completed By: Vansers

Screenshot of Module:

vAwards1-1.png

vAwards1.png

vAwards2.png

vAwards3.png

vAwards4.png

vAwards5.png

How To Install:

1) Download the file that is attached here...

2) Unzip the file...

3) Upload/Import the SQL file called vAwards_SQL.sql into the database that your VMS install sits.

4) Upload the files same as the structure as your phpvms files.

5) Go to Admin and Add-Ons, vAwardAdmin link will be added auto, based on EDIT_AWARDS permission.

Enjoy the Module!

To display the pilot's earned awards in the profile_main.tpl..

<?php MainController::Run('vAwards', 'showPilotIssuedAwards', $userinfo->pilotid); ?>

Version 1.0 - May 22, 2012

  • First Release

Download From GitHub - Download

If you have any questions, please post in this topic!

  • Like 2
Link to comment
Share on other sites

many thanks kyle :D

i have add this <?php MainController::Run('vAwards', 'showPilotIssuedAwards', $userinfo->pilotid); ?>

in my profile_main.tpl, i have added the award, but in pilot center dont'view the award

same problem here

best regards,

Thomas

Link to comment
Share on other sites

  • Moderators

Are we able to use this module in order to add multiple awards to a pilot? Like IVAO network do? For example, if i finish a va tour, which give me an award, twice...will the award shown twice on my profile?

you would have to add another award. you can't grant the same award again.

thank you very much kyle...it works great ;)

your welcome! glad it works for you! :D

Link to comment
Share on other sites

  • 4 weeks later...

This is an amazing module Kyle !!!! :D

Thank you for all your hard work, works wonderfully on my site, just fiddled around with it and its working just fine, now all thats needed are the award images haha

I really love the fact you can categorise awards, great idea ! :) One thing though, could you add a feature to remove an award type as well as the awards themselves? just i added an extra i didnt need and had to go into the database to remove it :P

Thanks again mate, your hard work is definitely appreciated :)

Regards

Tylor

  • Like 1
Link to comment
Share on other sites

  • Moderators

Can you make it so that you can show them by a single category instead of them grouped together? I want to show them in separate tables. Is it possible?

Jeff, I'm not sure if I'm understanding on what you want. Sorry.

Are you looking for something that has a table for a category, and so on?

Link to comment
Share on other sites

  • 2 months later...

Is there anyhing on the request I made about categorizing separate tasbles with this module?

As an example of what I am needing is as follows:

Table #1

Category: Type Ratings

List of all Type Rating Awards for that pilot. (Have them list three or four across then repeat under them as they get more awards for that category).

Table #2

Category: Frequent Flyer Awards

Same as above

For each new category you add to the module it creates a new table in the template. If the member has no rewards for a specific category, it will just say "No Rewards At This Time".

Let me know what you think Kyle. Thanks.

Link to comment
Share on other sites

  • 2 months later...

rather strange error

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'vAwards' does not have a method 'index' in /home/flyeurop/public_html/core/classes/MainController.class.php on line 218

vAward.php in modules look like this:

<?php
/**
Module Created By Vansers
This module is only use for phpVMS (www.phpvms.net) - (A Virtual Airline Admin Software)
@Created By Vansers
@Copyrighted @ 2011
@Under CC 3.0
@http://creativecommons.org/licenses/by-nc-sa/3.0/
**/
// Version 1.0 (May.32.12) - Module Created
class vAwards extends CodonModule
{
public function showPilotIssuedAwards($pilotid)
{
$this->set('pilotid', $pilotid);
$this->set('allawardtpes', vAwardsData::GetAllAwardTypes());
$this->render('vAwards/profile_issued_awards.tpl');
}
}

using Version 2.1.v2.1.935 the (latest stable)

I know I had Running sucessfully with one of the Beta versions of phpvms

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...