• denully

    (@denully)


    It does what it says and couldn’t be easier to setup ??
    I would have liked to be able to show a image with the Map, i tried to set it in my self, but it wouldnt really take the <img…. in the code.

    any chance for a update for this ?

    i tried with:

    if($serverInfo[‘map’] == de_dust2){
    $html .= “<img src=”/maps/hl/de_dust2.jpg”>”;}

    but it just fails.

Viewing 8 replies - 1 through 8 (of 8 total)
  • @denully.

    Any chance you were able to sort this? Get a image going?

    Thread Starter denully

    (@denully)

    unfortunately i never got it to work, so i ended up giving up on it, since support was impossible to get for that plugin.
    Ended up making a single still picture to just show, rather then switching images per map.

    but if you do find a way i would love to know ??

    @denully
    Got that working. Give me an hour to tweak it and Ill give you the code.

    /Rattle

    if ($serverInfo['map'] == 'de_dust2') {
    			//$html .= "<img src=\"https://electro-team.dotsi.pt/sourcebans/images/maps/de_dust2_cz.jpg\">";
    		}
    		$html .= "<tr><td colspan=2 class=\"strong\"><img width=\"260px\" src=\"https://electro-team.dotsi.pt/sourcebans/images/maps/".$serverInfo['map'].".jpg\"></td></tr>";
    Thread Starter denully

    (@denully)

    You sir, are a god ??

    Thank you very much for sharing.

    Just to note guys,
    I tidied the code up a bit more. Had realised I put that older config in there. This should be enough for all to work. Make sure you use the original authors README.TXT and put the tables into your template CSS file

    $html .= "<tr><td colspan=2 class=\"strong\"><img width=\"260px\" src=\"https://electro-team.dotsi.pt/sourcebans/images/maps/".$serverInfo['map'].".jpg\"></td></tr>";

    That code is all you need.

    Thread Starter denully

    (@denully)

    Noted ?? thanks again.

    Thread Starter denully

    (@denully)

    btw you seem to know what your doing. ?? any idea how to make it choose a “nopic.jpg” if its on a map where we don’t have the image yet ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Does what it says’ is closed to new replies.