Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select all in [code] and [php]
#21
Well needed thanks.
Reply
#22
Worked as a charm for me. I use plugin version with language edits and no issues whatsoever. Thanks! Smile
Reply
#23
hope you enjoin it Big Grin
[Image: statsig.php]
Reply
#24
lol Toungue thanks for joey for the idea Toungue
<signature too big>
Reply
#25
(10-24-2009, 03:05 AM)Joshee Wrote: I have an issue.
http://iphorums.net/thread-33-post-116.html
Reply
#26
I can't enter your page

@AndrewPH: did you publish the plugin yet?
[Image: statsig.php]
Reply
#27
(11-08-2009, 02:05 AM)Joey_Pham423 Wrote: I can't enter your page

@AndrewPH: did you publish the plugin yet?

Yea sorry the site was down for a while today. It should be up now.
Reply
#28
ok, I'll wait
[Image: statsig.php]
Reply
#29
let me check my code.. ill fix the plugin in a few days this week kinda busy in real life.. thanks for the bug report
@joshee

can you post your code and php language file via admin cp here? thanks
<signature too big>
Reply
#30
Javascript code:
Code:
<script type="text/javascript">
function selectCode(a)
{
   var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
   if (window.getSelection)
   {
      var s = window.getSelection();
       if (s.setBaseAndExtent)
      {
         s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      else
      {
         var r = document.createRange();
         r.selectNodeContents(e);
         s.removeAllRanges();
         s.addRange(r);
      }
   }
   else if (document.getSelection)
   {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
   }
   else if (document.selection)
   {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
   }
}
</script>

And I have
Code:
Code: <a href="#" onclick="selectCode(this); return false;">[Select all]</a>
And
Code:
PHP Code: <a href="#" onclick="selectCode(this); return false;">[Select all]</a>
In the languages.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)