Hubs page module

short question why do you use

getRankInfo

what does it return?

think getRankImage is for the image

change this

<img src="'.RanksData::getRankInfo($pilot->rank).'" />

to this:

<img src="<?php echo RanksData::getRankInfo($pilot->rank);?>" />

I have this

<?php echo $pilot->rank;?>

which works on my site

Worked beautifully Thankyou!!

1 Like

when i click on any off the hubs i get an little box with a cross in and states EGCC as that is my hub is that for pictures of the aurport logo to add and if so where do they go

You can have a picture of the airport or the logo they use. Just name the file the same as the airport icao and it should pick it up.

which folder would i inseret the airport logos to

create a folder in the lib>images folder called airports, and insert the images in there.

could you please do an example

http://malaysiava.org/index.php/Hub/HubView/WMKK

There you go.

thanks mate

I keep getting this is this something im missing

Fatal error : Class ‘HubStats’ not found in /home/deltaair/public_html/core/templates/hub/hubview.tpl on line 47

it is saying the class file is not there. you must have the hubstats.class file

Thanks I found it thanks for the replay

Hi, I followed the instructions in the readme.txt, when I go to the admin panel and click on Hubs under Addons this comes up…

Notice : The template file “/home5/uvaairco/public_html//admin/templates/hub/hub_index.tpl” doesn’t exist in /home5/uvaairco/public_html/core/classes/TemplateSet.class.php on line 248

I tried putting the hub_index.tpl into the /public_html/core/classes/ folder but it made no difference.

What version of phpvms are you using? The tpl files should never go into the core>classes folder, that error you are getting is saying the hub_index.tpl file is not in the folder hub.If you are using simpilot’s version of phpvms the tpl files must be in php format, not tpl

I am using the latest phpvms, from the phpvms website

The download may have gotten corrupted, so redownload it and upload it.

That fixed the Admin issue, when I added the link to the site I got an error again

Notice : The template file “/home5/uvaairco/public_html//core/templates/hub/index.tpl” doesn’t exist in /home5/uvaairco/public_html/core/classes/TemplateSet.class.php on line 248

Question, I have hub managers in my system, but for some reason they don’t show up listed as Hub Manager for this mod. Any idea what I need to do to get it to show? I don’t know what info you may need to help, so let me know and I’ll post.

I am working on getting that working on a solution, it might take a little while. It should take from the hub manager db too, but doesn’t seem to be, for the ones you have not added. It will require an edit to some core files. Let me work on it and I will post the code or the update to it.

1 Like