User-only iFrame and External File Woes

Permalink
Hello fellow concrete5-ers! This is a bit of a problem I have been trying to solve and failing at miserably. What I'm trying to find out is if I can display an iFrame that is dependent on the username of the viewer. For example, if your username was bacon, the iFrame would displayhttp://example.org/assets/usr_bacon.php... and your friend whose username is apple would seehttp://example.org/assets/usr_apple.php....

Also, as a little extra part (you don't have to answer this, but I would like if you did!) can an external PHP file use concrete5's data? As external I mean it is on the same server, but was not made using concrete5, is in a different directory, and was hand-coded. Thank you in advance!

-DaMoglin

damoglin
 
Blenderite replied on at Permalink Reply
Blenderite
If I had to guess:

http://www.concrete5.org/documentation/developers/permissions/conte...

http://www.concrete5.org/documentation/developers/permissions/users...

There are a few more links to the left on both of those pages. I am not sure if this is what you are looking for, but it might be.

You may be able to adapt this to fit your needs:
http://stackoverflow.com/questions/7906693/maxmind-geoip-display-di...

I hope that some of this helps point you in the right direction!
damoglin replied on at Permalink Reply
damoglin
Thank you for now. I've not tried the iFrame yet, but it looks good. On the side of external files I'll have to test it out. If everything works I'll be sure to reply!