Jump to content

Hub's [SOLVED]


Daniel

Recommended Posts

  • Administrators

In the public profile you could use a print_r temporarily to find what info is available in the local variable, in the case of the public profile page it is $userinfo;

<?php
   print_r($userinfo);
?>

When you do this you will get a printed string in the page something like

stdClass Object ( [pilotid] => 1 [firstname] => Dave [lastname] => Clark [email] => dave.clark@virtualaca.net
[code] => ACA [location] => US [hub] => CYHZ [password] => xxxx [salt] => xxxxx [bgimage] => approach.png 
[lastlogin] => 2010-11-23 [totalflights] => 11 [totalhours] => 20.11 [totalpay] => 1816.5 [transferhours] => 50
[rankid] => 13 [rank] => Chairman Of The Board [ranklevel] => 13 [confirmed] => 1 [retired] => 0 [joindate] => 2010-05-09 13:51:09
[lastpirep] => 2010-07-21 23:50:40 [lastip] => 127.0.0.1 [comment] => [rankimage] => /lib/images/PilotRanks/rank_ceo.png [payrate] => 90 )

If you look through that variable dump you will find that the hub is included.

You can print out any piece of the data by using an echo statement, for the hub you can do;

<?php
   echo $userinfo->hub;
?>

You can use the same process for the other page, find the variable and then find what is available in it, then echo out what you want. If the data you are looking for is not available then you will have to go back into the module and create a new data call to supply it to the template.

  • Like 1
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...