simonecatalano Posted August 28, 2013 Report Posted August 28, 2013 Hello Pilots, How insert the IMAGE COUNTRY on staff online before the name ? Look the picture http://qs.lc/3cm8 Thanks very much!! Quote
Sava Posted August 30, 2013 Report Posted August 30, 2013 You've already opened a topic on this, haven't you? You can add an image, but depending on which script you are using, you need to modify the image url. If you are using this script: http://forum.phpvms.net/topic/8742-staff-online/page__hl__%2Bstaff+%2Bonline Then something like this should work: <img src"<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower($pilot->location);?>.png" alt="" /> Quote
simonecatalano Posted August 30, 2013 Author Report Posted August 30, 2013 How i copy this <img src"<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower($pilot->location);?>.png" alt="" /> Quote
Sava Posted August 31, 2013 Report Posted August 31, 2013 You hover over it, right click "Copy", then right click "Paste" inside the foreach and if loops for the staff...A bit of effort from your side instead of waiting for others to do everything for you would certainly be appreciated from your side. All your posts are is request for support where you could have easily solved the issue yourself, or, on the other hand, when you are provided the solution, you don't even try and implement it yourself. Take this as an example. You already have the staff online code, and you have my bit of code, so, it would be logical that they have to be in some way connected. If you started placing the code at each line from top and all the way to the bottom, you would either get an error, or it wouldn't display the image, or it would work. So pretty much 1 minute of trial and error work. It's much quicker then waiting for me or someone else to answer the topic, and to be honest, it shows lack of patience and willingness to fix something yourself. My 0.2c and a bit of what is supposed to be constructive criticism. Regards, Sava 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.