<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
		<link>https://punbb.informer.com/forums/topic/18979/solved-image-resize-problem-with-small-gif-and-png-in-ie-6and7/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/18979/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7.]]></description>
		<lastBuildDate>Tue, 15 Apr 2008 17:53:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113492/#p113492</link>
			<description><![CDATA[<p>I friend of mine solved it yesterday before I saw your respong MattF <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> Thanks for your help anyways! Your the man <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><br /><p><span class="bbu">Here&#039;s how to solve it for anyone who&#039;s interested. </span></p><p><strong>parser.php</strong><br /></p><div class="codebox"><pre><code>// Turns an URL from the [flag] tag into an &lt;img&gt; tag or a &lt;a href...&gt; tag//

function handle_flag_tag($url, $is_signature = false)

{
    global $lang_common, $pun_config, $pun_user;

    $img_tag = &#039;&lt;a href=&quot;&#039;.$url.&#039;&quot;&gt;&lt;&#039;.$lang_common[&#039;Image link&#039;].&#039;&gt;&lt;/a&gt;&#039;;

    if ($is_signature &amp;&amp; $pun_user[&#039;show_img_sig&#039;] != &#039;0&#039;)

        $img_tag = &#039;&lt;img class=&quot;sigimage&quot; src=&quot;&#039;.$url.&#039;&quot; alt=&quot;&#039;.htmlspecialchars($url).&#039;&quot; /&gt;&#039;;

    else if (!$is_signature &amp;&amp; $pun_user[&#039;show_img&#039;] != &#039;0&#039;)

        $img_tag = &#039;&lt;img class=&quot;postflag&quot; src=&quot;&#039;.$url.&#039;&quot; alt=&quot;&#039;.htmlspecialchars($url).&#039;&quot; /&gt;&#039;;


    return $img_tag;

}</code></pre></div><p><strong>base.css</strong><br />Add this under section <em>7.4 These items control overflow and scrolling within posts.</em></p><div class="codebox"><pre><code>IMG.postflag {width: 12px}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Tue, 15 Apr 2008 17:53:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113492/#p113492</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113467/#p113467</link>
			<description><![CDATA[<div class="quotebox"><cite>gleb wrote:</cite><blockquote><p>Wasn&#039;t what I&#039;m was looking for. I don&#039;t want to get a country flag per user I want to be able do describe a person, team or whatever by using a country flag/country image before the name. Let&#039;s say I want to describe a match between two teams. I will use:</p><p>[snipped...]</p><p>Would it be possible to edit parser.php or any other file and add a new TAG called [flag] were you could add px limitation to 12px X 12px?</p></blockquote></div><p>Ah, apologies. I misinterpreted your requirements. <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> Just copy all the img entries in the parser, rename the new entries to flag, (except for the output which obviously needs to be &lt;img), and add the height/width parameters to its output tag.</p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Tue, 15 Apr 2008 11:20:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113467/#p113467</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113437/#p113437</link>
			<description><![CDATA[<p>That would appear to be a css problem but without a link to your forum its not possible to tell exactly where it is.</p>]]></description>
			<author><![CDATA[null@example.com (Paul)]]></author>
			<pubDate>Mon, 14 Apr 2008 19:23:55 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113437/#p113437</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113435/#p113435</link>
			<description><![CDATA[<p>CountryFlagMod-1.1 1.0<br />AMP_BB_Code_ImgSize 1.1</p><p>Wasn&#039;t what I&#039;m was looking for. I don&#039;t want to get a country flag per user I want to be able do describe a person, team or whatever by using a country flag/country image before the name. Let&#039;s say I want to describe a match between two teams. I will use:</p><div class="codebox"><pre><code>[img]http://www...../img/flags/small/no.gif[/img] Norway - [img]http://www...../img/flags/small/no.gif[/img] Germany</code></pre></div><p>Output: <span class="postimg"><img src="http://de.static.ggl.com/CB/images/flags/no.gif" alt="http://de.static.ggl.com/CB/images/flags/no.gif" /></span> Norway - <span class="postimg"><img src="http://de.static.ggl.com/CB/images/flags/de.gif" alt="http://de.static.ggl.com/CB/images/flags/de.gif" /></span> Germany</p><p>So the problem is that I don&#039;t nessacary want to describe a registerd person, it could be anyone or anything.</p><p>Would it be possible to edit parser.php or any other file and add a new TAG called [flag] were you could add px limitation to 12px X 12px?</p>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:51:12 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113435/#p113435</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113431/#p113431</link>
			<description><![CDATA[<div class="quotebox"><cite>MattF wrote:</cite><blockquote><p>If you look over on Punres, I believe someone released a mod for the country flags. (I seem to remember it had flaws, though. I could be mistaken upon that, however).</p></blockquote></div><p>Aight! I&#039;ll check on that! It might work, Thanks alot!</p>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:16:02 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113431/#p113431</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113430/#p113430</link>
			<description><![CDATA[<p>If you look over on Punres, I believe someone released a mod for the country flags. (I seem to remember it had flaws, though. I could be mistaken upon that, however).</p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:13:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113430/#p113430</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113428/#p113428</link>
			<description><![CDATA[<p>Aight, to bad not what I&#039;m looking for...</p><p>Is this a possible solution?<br /><a href="http://www.punres.org/viewtopic.php?id=3045">http://www.punres.org/viewtopic.php?id=3045</a></p><br /><div class="quotebox"><cite>MattF wrote:</cite><blockquote><p>Why are you using country flags within posts? Surely the user details segment would be a better place.</p></blockquote></div><p>Okey ...could you guide me?</p>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:10:11 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113428/#p113428</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113427/#p113427</link>
			<description><![CDATA[<p>Why are you using country flags within posts? Surely the user details segment would be a better place.</p>]]></description>
			<author><![CDATA[null@example.com (MattF)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:09:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113427/#p113427</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113424/#p113424</link>
			<description><![CDATA[<p>My mistake. I thought it was outside a post...</p><p>If you change the img tag globally then it will change all images on your site to that size. <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Mon, 14 Apr 2008 18:04:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113424/#p113424</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113422/#p113422</link>
			<description><![CDATA[<p>Hmm...I&#039;ve tried to use...<br /></p><div class="codebox"><pre><code>[img width=&quot;12px&quot; height=&quot;12px&quot;]http://www...../img/flags/small/no.gif[/img]</code></pre></div><p>Output: [img width=&quot;12px&quot; height=&quot;12px&quot;]http://www...../img/flags/small/no.gif[/img]</p><p>...but it&nbsp; doesn&#039;t work. Am I getting all this wrong?</p>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Mon, 14 Apr 2008 17:56:16 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113422/#p113422</guid>
		</item>
		<item>
			<title><![CDATA[Re: *SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113417/#p113417</link>
			<description><![CDATA[<p>If all the flags are the same size then add the following to the img tag.<br /></p><div class="codebox"><pre><code>width=&quot;12px&quot; height=&quot;12px&quot;</code></pre></div><p>This should fix the problem.</p><p>I have a simliar problem. When my page loads and the img is not loaded it creates a weird shape on my site because the image is much smaller than the default IE no image icon. Setting width and height fixed this problem. <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Mon, 14 Apr 2008 16:57:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113417/#p113417</guid>
		</item>
		<item>
			<title><![CDATA[*SOLVED* Image resize - Problem with small *.gif and *.png in IE 6and7]]></title>
			<link>https://punbb.informer.com/forums/post/113416/#p113416</link>
			<description><![CDATA[<p>I have a small but really annoying problem with my forum and within .../viewtopic.php... I&#039;m currently using small &quot;icons&quot;, country flags at my forum and there seemes to be some kind of problem with IE 6 and 7 and the size. Works just fine in Firefox and Safari but IE is another story :S</p><p><strong>Here how it looks!</strong></p><p><span class="postimg"><img src="http://img134.imageshack.us/img134/9357/flagpt8.jpg" alt="http://img134.imageshack.us/img134/9357/flagpt8.jpg" /></span></p><p>So, as you can see the flag gets out of hand and is way to big. The original size is 12px x 12px but somehow it resize&#039;s. Anyone with a clue? I&#039;m lost here <img src="https://punbb.informer.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (gleb)]]></author>
			<pubDate>Mon, 14 Apr 2008 16:41:44 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/113416/#p113416</guid>
		</item>
	</channel>
</rss>
