[Phpfreechat-svn] SF.net SVN: phpfreechat: [961] trunk/demo/demo50_data/mytheme
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-02-16 20:41:51
|
Revision: 961 http://svn.sourceforge.net/phpfreechat/?rev=961&view=rev Author: kerphi Date: 2007-02-16 12:41:51 -0800 (Fri, 16 Feb 2007) Log Message: ----------- rename to be ok with refactoring Added Paths: ----------- trunk/demo/demo50_data/mytheme/customize.js.php trunk/demo/demo50_data/mytheme/style.css.php Removed Paths: ------------- trunk/demo/demo50_data/mytheme/customize.js trunk/demo/demo50_data/mytheme/style.css Deleted: trunk/demo/demo50_data/mytheme/customize.js =================================================================== --- trunk/demo/demo50_data/mytheme/customize.js 2007-02-16 09:00:14 UTC (rev 960) +++ trunk/demo/demo50_data/mytheme/customize.js 2007-02-16 20:41:51 UTC (rev 961) @@ -1,99 +0,0 @@ -pfcClient.prototype.updateNickWhoisBox = function(nickid) - { - var div = document.createElement('div'); - div.setAttribute('class', 'pfc_nickwhois'); - div.setAttribute('className', 'pfc_nickwhois'); // for IE6 - - var ul = document.createElement('ul'); - div.appendChild(ul); - - // add the close button - var li = document.createElement('li'); - li.setAttribute('class', 'pfc_nickwhois_close'); - li.setAttribute('className', 'pfc_nickwhois_close'); // for IE6 - ul.appendChild(li); - var a = document.createElement('a'); - a.setAttribute('href', ''); - a.pfc_parent = div; - a.onclick = function(evt){ - this.pfc_parent.style.display = 'none'; - return false; - } - var img = document.createElement('img'); - img.setAttribute('src', this.res.getFileUrl('images/close-whoisbox.gif')); - img.alt = document.createTextNode(this.res.getLabel('Close')); - a.appendChild(img); - li.appendChild(a); - - // add the privmsg link (do not add it if this button is yourself) - if (pfc.getUserMeta(nickid,'nick') != this.nickname) - { - var li = document.createElement('li'); - li.setAttribute('class', 'pfc_nickwhois_pv'); - li.setAttribute('className', 'pfc_nickwhois_pv'); // for IE6 - ul.appendChild(li); - var a = document.createElement('a'); - a.setAttribute('href', ''); - a.pfc_nickid = nickid; - a.pfc_parent = div; - a.onclick = function(evt){ - var nick = pfc.getUserMeta(this.pfc_nickid,'nick'); - pfc.sendRequest('/privmsg "'+nick+'"'); - this.pfc_parent.style.display = 'none'; - return false; - } - var img = document.createElement('img'); - img.setAttribute('src', this.res.getFileUrl('images/openpv.gif')); - img.alt = document.createTextNode(this.res.getLabel('Private message')); - a.appendChild(img); - a.appendChild(document.createTextNode(this.res.getLabel('Private message'))); - li.appendChild(a); - } - - - // add the whois information table - var table = document.createElement('table'); -// table.setAttribute('cellspacing',0); -// table.setAttribute('cellpadding',0); -// table.setAttribute('border',0); - var tbody = document.createElement('tbody'); - table.appendChild(tbody); - var um = this.getAllUserMeta(nickid); - var um_keys = um.keys(); - var msg = ''; - for (var i=0; i<um_keys.length; i++) - { - var k = um_keys[i]; - var v = um[k]; - if (v && k != 'nickid' - && k != 'floodtime' - && k != 'flood_nbmsg' - && k != 'flood_nbchar' - && k != 'avatar' - ) - { - var tr = document.createElement('tr'); - var td1 = document.createElement('td'); - td1.setAttribute('class', 'pfc_nickwhois_c1'); - td1.setAttribute('className', 'pfc_nickwhois_c1'); // for IE6 - var td2 = document.createElement('td'); - td2.setAttribute('class', 'pfc_nickwhois_c2'); - td2.setAttribute('className', 'pfc_nickwhois_c2'); // for IE6 - td1.appendChild(document.createTextNode(k)); - td2.appendChild(document.createTextNode(v)); - tr.appendChild(td1); - tr.appendChild(td2); - tbody.appendChild(tr); - } - } - div.appendChild(table); - - // append the avatar image - var img = document.createElement('img'); - img.setAttribute('src',this.getUserMeta(nickid,'avatar')); - img.setAttribute('class', 'pfc_nickwhois_avatar'); - img.setAttribute('className', 'pfc_nickwhois_avatar'); // for IE6 - div.appendChild(img); - - this.nickwhoisbox[nickid] = div; - } Copied: trunk/demo/demo50_data/mytheme/customize.js.php (from rev 960, trunk/demo/demo50_data/mytheme/customize.js) =================================================================== --- trunk/demo/demo50_data/mytheme/customize.js.php (rev 0) +++ trunk/demo/demo50_data/mytheme/customize.js.php 2007-02-16 20:41:51 UTC (rev 961) @@ -0,0 +1,99 @@ +pfcClient.prototype.updateNickWhoisBox = function(nickid) + { + var div = document.createElement('div'); + div.setAttribute('class', 'pfc_nickwhois'); + div.setAttribute('className', 'pfc_nickwhois'); // for IE6 + + var ul = document.createElement('ul'); + div.appendChild(ul); + + // add the close button + var li = document.createElement('li'); + li.setAttribute('class', 'pfc_nickwhois_close'); + li.setAttribute('className', 'pfc_nickwhois_close'); // for IE6 + ul.appendChild(li); + var a = document.createElement('a'); + a.setAttribute('href', ''); + a.pfc_parent = div; + a.onclick = function(evt){ + this.pfc_parent.style.display = 'none'; + return false; + } + var img = document.createElement('img'); + img.setAttribute('src', this.res.getFileUrl('images/close-whoisbox.gif')); + img.alt = document.createTextNode(this.res.getLabel('Close')); + a.appendChild(img); + li.appendChild(a); + + // add the privmsg link (do not add it if this button is yourself) + if (pfc.getUserMeta(nickid,'nick') != this.nickname) + { + var li = document.createElement('li'); + li.setAttribute('class', 'pfc_nickwhois_pv'); + li.setAttribute('className', 'pfc_nickwhois_pv'); // for IE6 + ul.appendChild(li); + var a = document.createElement('a'); + a.setAttribute('href', ''); + a.pfc_nickid = nickid; + a.pfc_parent = div; + a.onclick = function(evt){ + var nick = pfc.getUserMeta(this.pfc_nickid,'nick'); + pfc.sendRequest('/privmsg "'+nick+'"'); + this.pfc_parent.style.display = 'none'; + return false; + } + var img = document.createElement('img'); + img.setAttribute('src', this.res.getFileUrl('images/openpv.gif')); + img.alt = document.createTextNode(this.res.getLabel('Private message')); + a.appendChild(img); + a.appendChild(document.createTextNode(this.res.getLabel('Private message'))); + li.appendChild(a); + } + + + // add the whois information table + var table = document.createElement('table'); +// table.setAttribute('cellspacing',0); +// table.setAttribute('cellpadding',0); +// table.setAttribute('border',0); + var tbody = document.createElement('tbody'); + table.appendChild(tbody); + var um = this.getAllUserMeta(nickid); + var um_keys = um.keys(); + var msg = ''; + for (var i=0; i<um_keys.length; i++) + { + var k = um_keys[i]; + var v = um[k]; + if (v && k != 'nickid' + && k != 'floodtime' + && k != 'flood_nbmsg' + && k != 'flood_nbchar' + && k != 'avatar' + ) + { + var tr = document.createElement('tr'); + var td1 = document.createElement('td'); + td1.setAttribute('class', 'pfc_nickwhois_c1'); + td1.setAttribute('className', 'pfc_nickwhois_c1'); // for IE6 + var td2 = document.createElement('td'); + td2.setAttribute('class', 'pfc_nickwhois_c2'); + td2.setAttribute('className', 'pfc_nickwhois_c2'); // for IE6 + td1.appendChild(document.createTextNode(k)); + td2.appendChild(document.createTextNode(v)); + tr.appendChild(td1); + tr.appendChild(td2); + tbody.appendChild(tr); + } + } + div.appendChild(table); + + // append the avatar image + var img = document.createElement('img'); + img.setAttribute('src',this.getUserMeta(nickid,'avatar')); + img.setAttribute('class', 'pfc_nickwhois_avatar'); + img.setAttribute('className', 'pfc_nickwhois_avatar'); // for IE6 + div.appendChild(img); + + this.nickwhoisbox[nickid] = div; + } Deleted: trunk/demo/demo50_data/mytheme/style.css =================================================================== --- trunk/demo/demo50_data/mytheme/style.css 2007-02-16 09:00:14 UTC (rev 960) +++ trunk/demo/demo50_data/mytheme/style.css 2007-02-16 20:41:51 UTC (rev 961) @@ -1,3 +0,0 @@ -img.pfc_nickwhois_avatar { - margin: 10px; -} \ No newline at end of file Copied: trunk/demo/demo50_data/mytheme/style.css.php (from rev 960, trunk/demo/demo50_data/mytheme/style.css) =================================================================== --- trunk/demo/demo50_data/mytheme/style.css.php (rev 0) +++ trunk/demo/demo50_data/mytheme/style.css.php 2007-02-16 20:41:51 UTC (rev 961) @@ -0,0 +1,3 @@ +img.pfc_nickwhois_avatar { + margin: 10px; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |