<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : New p.m. question and remark</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 15 Apr 2026 07:13:16 -0000</pubDate>

		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	Coooooooolll very much appriciated.. ;)</p>
]]></description>
			<pubDate>Zo, 15 Jan 2012 20:58:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32658]]></link>
		</item>
		<item>
			<title>uznik73</title>
			<description><![CDATA[<p>
	Всем привет. Я плохо знаю английский, и не хочется писать на кривом английском используя google translate. Но суть должна быть понятна и без описания.</p>
<p>
	Full topbar like on cotonti.com</p>
<p>
	header.tpl</p>
<pre class="brush:xml;">
	&lt;!-- BEGIN: GUEST --&gt;
	&lt;section id="topbar"&gt;
	&lt;div class="container"&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('index')}" id="home" title="Home"&gt;Home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/index.php?e=search" id="search" title="Search"&gt;Search&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;ul id="guest"&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/login.php" id="login" title="login" class=""&gt;Login&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;form action="/login.php?a=check" method="post"&gt;&lt;div style="display:inline;margin:0;padding:0"&gt;&lt;input type="hidden" name="x" value="B8747FEE"&gt;&lt;/div&gt;
			&lt;div id="loginbox" class="userbox hidden"&gt;
				name:&lt;br&gt;&lt;input type="text" name="rusername" maxlength="32" class="text"&gt;&lt;br&gt;
				password:&lt;br&gt;&lt;input type="password" name="rpassword" maxlength="32" class="password"&gt;&lt;br&gt;
				&lt;input type="hidden" name="rremember" value="1"&gt;
				&lt;button type="submit"&gt;Login&lt;/button&gt;
				&lt;a href="https://www.cotonti.com/{PHP|cot_url('users','m=register')}"&gt;{PHP.L.Register}&lt;/a&gt;
				&lt;a href="https://www.cotonti.com/{PHP|cot_url('users','m=passrecover')}"&gt;{PHP.L.users_lostpass}&lt;/a&gt;
			&lt;/div&gt;
		&lt;/form&gt;&lt;/div&gt;
	&lt;/section&gt;
	&lt;!-- END: GUEST --&gt;
	&lt;!-- BEGIN: USER --&gt;
	&lt;section id="topbar"&gt;
	&lt;div class="container"&gt;
	&lt;ul&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('index')}" id="home" title="Home"&gt;Home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/index.php?e=search" id="search" title="Search"&gt;Search&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;&lt;/div&gt;
	&lt;ul id="user"&gt;
			&lt;li id="notices"&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('users','m=profile')}"  id="profile" title="{PHP.L.Profile}"&gt;{PHP.L.Profile}&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}" id="messages" title="{PHP.L.Private_messages}"&gt;{PHP.L.Private_Messages}&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pfs')}" id="files" title="{PHP.L.PFS}"&gt;{PHP.L.PFS}&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;div id="logout" title="Logout"&gt;{PHP.out.loginout}&lt;/div&gt;&lt;/li&gt;
			
	&lt;/ul&gt;
	&lt;/section&gt;
	&lt;!-- END: USER --&gt;</pre>
<p>
	footer.tpl</p>
<pre class="brush:xml;">
&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
$(document).ready(function(){
	(function($) {
    $.fn.defaultValue = function(defaultvalue) {
        return this.each(function() {
            if (!$(this).val() &amp;&amp; defaultvalue) {
                $(this).val(defaultvalue);
            }
            if ($(this).val()) {
                $(this).attr('defaultValue', $(this).val());
            }
            $(this).live('focus', function() {
                if ($(this).attr('defaultValue') == $(this).val()) {
                    $(this).val('');
                }
            });
            $(this).live('blur', function() {
                if ($(this).val() == '') {
                    $(this).val($(this).attr('defaultValue'));
                }
            });
        });
    };
    $.fn.setActiveTab = function(baseurl, currenturl, classname) {
        if (baseurl.charAt(baseurl.length - 1) == '/') {
            baseurl = baseurl.substr(0, baseurl.length - 1);
        }
        currenturl.replace(baseurl + '/', '');
        if (!classname)
            classname = 'active';
        return this.each(function() {
            $(this).find('a').each(function() {
                $(this).removeClass(classname);
                var linkhref = $(this).attr('href').replace(baseurl, '');
                if (linkhref.charAt(0) == '/') {
                    linkhref = linkhref.substr(1);
                }
                if (currenturl == linkhref || linkhref &amp;&amp; currenturl.indexOf(linkhref) == 0) {
                    $(this).parents('li:last').find('a:first').addClass(classname);
                    return false;
                }
            });
        });
    };
    $.fn.toggleContent = function(options) {
        return this.each(function() {
            $(this).toggle(function(event) {
                event.preventDefault();
                if (options.css) {
                    $(this).css(options.css);
                }
                if (options.content) {
                    if (options.before) {
                        $(this).before(options.content);
                    } else {
                        $(this).after(options.content);
                    }
                }
                $(this).trigger('on.toggleContent');
            }, function(event) {
                event.preventDefault();
                $(this).trigger('off.toggleContent');
            });
        });
    };
    $.fn.cot_ajaxify = function(options) {
        return this.each(function() {
            var $this = $(this);
            var $targets = $this.find('a[href]');
            var path = window.location.pathname.substr(1);
            if (options &amp;&amp; options.filter) {
                $targets = $targets.filter(options.filter);
            }
            $targets.live('click', function(e) {
                var href = $(this).attr('href');
                var hash = href.replace(path, '');
                if (hash) {
                    e.preventDefault();
                    if (options &amp;&amp; options.history) {
                        $.history.load(hash);
                    } else {
                        if (options &amp;&amp; options.css &amp;&amp; options.css.before) {
                            $this.css(options.css.before);
                        }
                        $.get(href, function(data) {
                            $this.html(data);
                            if (options &amp;&amp; options.css &amp;&amp; options.css.after) {
                                $this.css(options.css.after);
                            }
                        });
                    }
                }
            });
            if (options &amp;&amp; options.history) {
                $.history.init(function(hash) {
                    $.get(path + hash, function(data) {
                        $this.html(data);
                        if (options &amp;&amp; options.css &amp;&amp; options.css.after) {
                            $this.css(options.css.after);
                        }
                    });
                }, {unescape: "/"});
            }
        });
    };
})(jQuery);
;
	$("#search").toggleContent({
		css: { 'margin-left': '240px' },
		content: '&lt;form id="searchform" action="{PHP|cot_url('plug','e=search')}" method="post"&gt;&lt;input id="searchfield" type="text" name="sq" title="Search" value=""&gt;&lt;/form&gt;',
		before: true
	}).bind('on.toggleContent', function() {
		$(this).parent().find('input').focus();
	}).bind('off.toggleContent', function() {
		$(this).parent().find('form').submit();
	});
	$("#login").toggle(function() {
		$(this).addClass('active');
		$("#loginbox").removeClass('hidden');
		$("#loginbox input:first").focus();
	}, function() {
		$("#loginbox").addClass('hidden');
		$(this).removeClass('active');
	});
	if({PHP.usr.messages}&gt;0){
		$("a#messages")
			.append('&lt;div id="pmcount"&gt;{PHP.usr.messages}&lt;/div&gt;')
			.attr('title', 'Messages (unread: {PHP.usr.messages})')
			.toggle(function(){
				$(this).addClass('active');
				$('body').append('&lt;div id="pmbox" class="userbox"&gt;&lt;p&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}"&gt;Inbox&lt;/a&gt; - &lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}&amp;f=sentbox"&gt;Sentbox&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;');
					$.ajax({
					url: '/index.php?e=pm&amp;f=inbox&amp;filter=unread',
					dataType : "html",
					success: function(html) {
						rows = ''
						var ajax_obj = $(html);
						t = ajax_obj.find("#message_theme");
						n = ajax_obj.find("#sender_name");
						for (var h = 0; h &lt; t.length; h++) {
						rows += '&lt;div id="message"&gt;';
						rows += '&lt;li&gt;'+t[h].innerHTML+'&lt;div id="sender"&gt;Sender: '+n[h].innerHTML+'&lt;/div&gt;&lt;/li&gt;';
						rows += '&lt;/div&gt;';
						document.getElementById('pmbox').innerHTML = rows+'&lt;p&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}"&gt;Inbox&lt;/a&gt; - &lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}&amp;f=sentbox"&gt;Sentbox&lt;/a&gt;&lt;/p&gt;';
						}
                
					}
				}); 
			}, function(){
				$(this).removeClass('active');
				$('div#pmbox').remove();
			});
	}
});
//]]&gt;
&lt;/script&gt;</pre>
<p>
	css</p>
<pre class="brush:css;">
section#topbar #home, section#topbar #admin, section#topbar #search, section#topbar #profile, section#topbar #messages, section#topbar #files, section#topbar #logout 			      {background-image: url("../img/sprite-navigation.png");}
section#topbar #guest a, section#topbar #user a 		{margin-left: 1px; margin-right: 0;}
section#topbar li a 									{display: block;margin: 1px;margin-left: 0;padding: 0 15px;height: 28px;line-height: 28px;color: #C0D2DD;background-repeat: no-repeat;background-position: center;}
section#topbar #profile 							{width: 30px; padding: 0; text-indent: -9999px; background-position: -90px 0;}
section#topbar #messages {width: 30px;padding: 0;text-indent: -9999px;background-position: -120px 0;}
section#topbar #files {width: 30px;padding: 0;text-indent: -9999px;background-position: -150px 0;}
section#topbar #logout {width: 30px;padding: 0;text-indent: -9999px;background-position: -180px 0;}
section#topbar {background: #012D48;height: 30px;}
section#topbar #guest, section#topbar #user {float: right;}
section#topbar ul {margin: 0;padding: 0;}
section#topbar li {list-style: none;float: left;}
#topbar {width: 960px;margin: 0 auto;padding: 0;clear: both;}
section#topbar #home {width: 30px;padding: 0;text-indent: -9999px;background-position: -30px 0;}
section#topbar #search {width: 30px;padding: 0;text-indent: -9999px;background-position: 0 0;}
section#topbar #searchfield:hover, #topbar #searchfield:focus {background-color: #0A5E91;}
section#topbar #searchfield {position: absolute;top: 1px;background: none;border: 0;outline: 0;width: 230px;height: 28px;margin: 0;padding: 0 5px;color: #C0D2DD;border-image: initial;}
#loginbox input {width: 170px;margin: 2px 0 4px 0;padding: 2px 4px;border: 1px #BBB solid;background: #EEE;height: 20px;-khtml-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;-o-border-radius: 4px;-webkit-border-radius: 4px;border-radius: 4px;border-image: initial;}
.userbox {position: absolute;top: 29px;left: 50%;margin-left: 280px;width: 180px;padding: 10px;background: white;border-bottom: 3px #CCC solid;z-index: 1;}
section#topbar a.active {background-color: white;color: #04293F;}
#loginbox button {width: 180px;padding: 4px 0;margin: 6px 0;-khtml-border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;-o-border-radius: 4px;-webkit-border-radius: 4px;border-radius: 4px;}
#pmcount {
position: absolute;
top: 2px;
left: 50%;
margin-left: 405px;
width: 9px;
height: 9px;
line-height: 9px;
background: #C00;
color: white;
padding: 1px;
text-indent: 0;
font-size: 9px;
font-weight: bold;
border: 1px #100 solid;
overflow: hidden;
text-align: center;
-khtml-border-radius: 2px;
-moz-border-radius: 2px;
-ms-border-radius: 2px;
-o-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
border-image: initial;
}
#pmbox li a {
color:#0079C1;
display: block;
font-weight: bold;
}
#pmbox ol {
list-style: none;
margin: 0;
padding: 0;
}
#pmbox li {
display: block;
border-bottom: 1px #CCC solid;
padding: 5px 8px;
list-style: none;
}
#pmbox p {
margin: 0;
padding: 0 8px;
font-size: 85%;
line-height: 20px;
}
#pmbox {
padding: 0;
width: 200px;
}

#sender a { color: #667E72; display: initial!important;}
#sender {
font-size: 85%;
}</pre>
<p>
	in modules/pm/tpl/pm.list.tpl change</p>
<pre class="brush:xml;">
&lt;p class="strong"&gt;{PM_ROW_TITLE}&lt;/p&gt;</pre>
<p>
	to</p>
<pre class="brush:xml;">
&lt;p id="message_theme" class="strong"&gt;{PM_ROW_TITLE}&lt;/p&gt;</pre>
<p>
	and</p>
<pre class="brush:xml;">
&lt;td class="centerall {PM_ROW_ODDEVEN}"&gt;{PM_ROW_USER_NAME}&lt;/td&gt;</pre>
<p>
	to</p>
<pre class="brush:xml;">
&lt;td id="sender_name" class="centerall {PM_ROW_ODDEVEN}"&gt;{PM_ROW_USER_NAME}&lt;/td&gt;</pre>
<p>
	I think it's all, hope it's help.</p>
<p>
	I almost forgot, put this image in "themename/img" <a href="http://www.cotonti.com/thms/cotcom/img/sprite-navigation.png">http://www.cotonti.com/thms/cotcom/img/sprite-navigation.png</a></p>
]]></description>
			<pubDate>Zo, 15 Jan 2012 18:16:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32655]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	I use this method as well. Works great and is easy to implement. </p>
]]></description>
			<pubDate>Thu, 12 Jan 2012 18:13:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32557]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	Not sure what they use on Cotonti.com, but that's what worked fine for me.</p>
]]></description>
			<pubDate>Thu, 12 Jan 2012 17:33:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32551]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	I'd expected some Javascript.. ;)<br /><br />
	Thx twieb.. will play around with it.</p>
]]></description>
			<pubDate>Thu, 12 Jan 2012 17:09:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32550]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	Something like this maybe?</p>
<pre class="brush:xml;">
&lt;!-- IF {PHP.usr.messages} &gt; 0 --&gt;
	&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}" class="newpm"&gt;{PHP.usr.messages}&lt;/a&gt;&lt;/li&gt;
&lt;!-- ELSE --&gt;
	&lt;li&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('pm')}"&gt;No new private messages&lt;/a&gt;&lt;/li&gt;
&lt;!-- ENDIF --&gt;
</pre>
]]></description>
			<pubDate>Thu, 12 Jan 2012 16:50:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32549]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	seeing I was smart and accitentally deleted my genoa db.. I thought it to be a good time to switch to Sienna, so I am in the process of creating a new skin.</p>
<p>
	Now I wondered how you - on this site - did that thing with the icons and a number appearing when a new mail arrives.<br /><br />
	When we're on that subject. the number appears on the my file space icon, instead of on the p.m. icon. I use the latest version of FF</p>
]]></description>
			<pubDate>Thu, 12 Jan 2012 16:33:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6718&d=0#post32548]]></link>
		</item>
	</channel>
</rss>