Jump to content

how to fix the Awards & Ranks


ace92nd

Recommended Posts

every time when i try to go to the link for Awards & Ranks even when I do have the rank setup it is always saying

An Error Was Encountered

The module "RANK" doesn't exist!

An Error Was Encountered

The module "AWARDS" doesn't exist!

How do i fix that?

Link to comment
Share on other sites

I was about to post a similar question as "ace92nd".

Hello ace92nd!

Did you just install the "rank" and "awards" modules addons that can be found on this site? If you did, I think the reason you are getting the error is because you need to add some "images" that refer to the ranks and awards you wish to use.

Now, I base that on the fact that I am getting the same error as you for the "awards" module. I don't get that error for the "ranks" module because phpVMS comes with "one" rank image... new hire. I think that's why!?!

If I'm right, could someone tell me where I add the images for the ranks/awards modules. Is there any available for download?

Thanks!

Murray

Link to comment
Share on other sites

1) Go to your Admin Center.

2) On the left side, click to expand the "Pilots & Groups" tab.

3) Click Pilot Ranks

4) Add images, descriptions and hours.

5) Repeat step 2

6) Click Awards

7) Add images and descriptions

Link to comment
Share on other sites

1) Go to your Admin Center.

2) On the left side, click to expand the "Pilots & Groups" tab.

3) Click Pilot Ranks

4) Add images, descriptions and hours.

5) Repeat step 2

6) Click Awards

7) Add images and descriptions

Man I feel stupid! Thanks Jeff. I just came back to remove my question cause I found it! LOL!

Link to comment
Share on other sites

ok I add images ranks and awards images but in my Admin Center both of ranks and Images show but in the Awards page on my main site it is still saying

An Error Was Encountered

The module "AWARDS" doesn't exist!

http://vatwa.org/index.php/awards

same for the ranks too

An Error Was Encountered

The module "RANK" doesn't exist!

http://vatwa.org/index.php/rank

when I got my pilot list it show there rank image but not the Awards image in there profile. it only show the name of the award not the image of it?

Link to comment
Share on other sites

This is what is inside the /public_html/core/modules/rank/rank.php file

<?php
/**
* Rank Table v1.0b
* By Dimitris 4463
* greeceairwaysva.com/fss
* Dimitris4463 on phpVMS forums 
*/  


class Rank extends CodonModule 
{

	public function index()
{
	$this->set('ranks', RanksData::GetAllRanks());
	$this->render('ranks_allranks.tpl');

	}
}
?>

This is what is inside the /public_html/core/modules/awards/awards.php file

<?php
/**
* Award Table v1.0b
* By Dimitris 4463
* greeceairwaysva.com/fss
* Dimitris4463 on phpVMS forums 
*/  


class Awards extends CodonModule 
{

	public function index()
{
	$this->set('awards', AwardsData::GetAllAwards());
	$this->render('awards_allawards.tpl');

	}
}
?>

Double check to see if yours matches.

Link to comment
Share on other sites

ok I add images ranks and awards images but in my Admin Center both of ranks and Images show but in the Awards page on my main site it is still saying

An Error Was Encountered

The module "AWARDS" doesn't exist!

http://vatwa.org/index.php/awards

same for the ranks too

An Error Was Encountered

The module "RANK" doesn't exist!

http://vatwa.org/index.php/rank

when I got my pilot list it show there rank image but not the Awards image in there profile. it only show the name of the award not the image of it?

Now I see the error you're getting. Are you sure you followed the installation instructions properly? That error happens when the RANK and AWARDS modules are missing from your "modules" directory. Check again to make sure they are there.

Murray

Link to comment
Share on other sites

This is what is inside the /public_html/core/modules/rank/rank.php file

<?php
/**
* Rank Table v1.0b
* By Dimitris 4463
* greeceairwaysva.com/fss
* Dimitris4463 on phpVMS forums 
*/  


class Rank extends CodonModule 
{

	public function index()
{
	$this->set('ranks', RanksData::GetAllRanks());
	$this->render('ranks_allranks.tpl');

	}
}
?>

This is what is inside the /public_html/core/modules/awards/awards.php file

<?php
/**
* Award Table v1.0b
* By Dimitris 4463
* greeceairwaysva.com/fss
* Dimitris4463 on phpVMS forums 
*/  


class Awards extends CodonModule 
{

	public function index()
{
	$this->set('awards', AwardsData::GetAllAwards());
	$this->render('awards_allawards.tpl');

	}
}
?>

Double check to see if yours matches.

ok i went there and i don`t have those two folder in there that might be way so i can just use this coding and make my own?

Link to comment
Share on other sites

Yes you can.

Inside /core/modules

create 2 folders (if they aren't there already)

rank

awards

then in each of those folders, create their files

rank.php

awards.php

then copy/paste the codes above in their respected file.

Link to comment
Share on other sites

ok i got that done but this is what i am getting

Notice: The template file "/home/vaairtra/public_html//core/templates/awards_allawards.tpl" doesn't exist in /home/vaairtra/public_html/core/classes/TemplateSet.class.php on line 248

Notice: The template file "/home/vaairtra/public_html//core/templates/ranks_allranks.tpl" doesn't exist in /home/vaairtra/public_html/core/classes/TemplateSet.class.php on line 248

how do i fix this. do i have to make my own tpl file?

Link to comment
Share on other sites

ok i got that done but this is what i am getting

Notice: The template file "/home/vaairtra/public_html//core/templates/awards_allawards.tpl" doesn't exist in /home/vaairtra/public_html/core/classes/TemplateSet.class.php on line 248

Notice: The template file "/home/vaairtra/public_html//core/templates/ranks_allranks.tpl" doesn't exist in /home/vaairtra/public_html/core/classes/TemplateSet.class.php on line 248

how do i fix this. do i have to make my own tpl file?

anyone?

Link to comment
Share on other sites

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...