The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

i want Select content button

View previous topic View next topic Go down

i want Select content button

Post by I-Angel-Q on February 27th 2011, 10:15 am

Hello !
How are you ..

i want learn how to add (Select content) button when using (Code) .
and this clarification picture .



thanks Arrow

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Jophy on February 27th 2011, 12:08 pm

Bold and color are reserved for moderation, like this, so please keep to the default font

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 27th 2011, 12:44 pm

Joph25 wrote:Bold and color are reserved for moderation, like this, so please keep to the default font

Ok . I am so sorry

Sad

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Quicktext on February 27th 2011, 12:58 pm

I don't understand what you want please be more specific and more detailed.

Regards

Quicktext.

Quicktext
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 27th 2011, 1:11 pm

@Quicktext wrote:I don't understand what you want please be more specific and more detailed.

Regards

Quicktext.

my dear i want add Select content button when to using code button where show above code Smile
i need to add this idiosyncrasy in my forum such us forumotion .

see this picture ...... Question

http://www.up-king.com/almaciat/jgmw8wzzwy26re45l428.png


thanks

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Ezio on February 27th 2011, 2:39 pm

yeah, I also want to add "select content" in the "code quote".
and seem to "quote" in my forum and the standards are too ugly.

Ezio
Forumember

Male Posts : 155
Reputation : 10
Language : Bahasa. Indonesia
Location : Request change my Age, I'm 13-14 years old.. :D

http://www.forumbargedoz.ce.ms

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 27th 2011, 3:23 pm

@Ezio wrote:yeah, I also want to add "select content" in the "code quote".
and seem to "quote" in my forum and the standards are too ugly.

Ok .. We wait the supporters

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Quicktext on February 27th 2011, 9:30 pm

Ohh I understand what you are trying to say now, Thanks for re-explaining it, but I am unsure of how to solve this problem, what I do is I hold CRTL + A which selects everything.. but click in the box 1st so that it only selects everything in that box.

Sorry I couldn't be of much help

Regards

Quicktext

Quicktext
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 27th 2011, 10:12 pm

@Quicktext wrote:Ohh I understand what you are trying to say now, Thanks for re-explaining it, but I am unsure of how to solve this problem, what I do is I hold CRTL + A which selects everything.. but click in the box 1st so that it only selects everything in that box.

Sorry I couldn't be of much help

Regards

Quicktext

Yeah my dear i am know this mode (Ctrl+A) But i want but the characteristic in (code quote) in my forum . Very Happy
thank you for reply .

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 28th 2011, 3:23 pm


my dear i am attempt this mode but not work with me .. please set a explanation with picture .
note : my version is phpbb2

thanks

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Guest on February 28th 2011, 3:44 pm

This doesn't need any pics its easy to do (:
1. ACP - Modules - HTML - HTML pages management
- Create new HTML page and paste this code inside it:
Code:
function selectCode(a)
{
  // Get ID of code block
  var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
 
  // Not IE
  if (window.getSelection)
  {
      var s = window.getSelection();
      // Safari
      if (s.setBaseAndExtent)
      {
        s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      // Firefox and Opera
      else
      {
        // workaround for bug # 42885
        if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>')
        {
            e.innerHTML = e.innerHTML + ' ';
        }
 
        var r = document.createRange();
        r.selectNodeContents(e);
        s.removeAllRanges();
        s.addRange(r);
      }
  }
  // Some older browsers
  else if (document.getSelection)
  {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
  }
  // IE
  else if (document.selection)
  {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
  }
}
if(text){}else{ var text = 'Selecionar todos';}
jQuery(document).ready(function(){
  jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;" title="Select all the content" class="code-a">Select All</a>');
});
Then save it.
2. now you can see the page ID where it says "Page ID".
- Go to ACP - Display - Templates - Overall_header
- Search for <!-- END switch_ticker --> then put this script under it:
-
Code:
<script src="/hID-" type="text/javascript"></script>
- Now replace the HTML page ID you made with where it says "ID" (:
- Save + Publish (:

Guest
Guest


Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on February 28th 2011, 4:52 pm

@Gangstar15 wrote:This doesn't need any pics its easy to do (:
1. ACP - Modules - HTML - HTML pages management
- Create new HTML page and paste this code inside it:
Code:
function selectCode(a)
{
  // Get ID of code block
  var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
 
  // Not IE
  if (window.getSelection)
  {
      var s = window.getSelection();
      // Safari
      if (s.setBaseAndExtent)
      {
        s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      // Firefox and Opera
      else
      {
        // workaround for bug # 42885
        if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '
')
        {
            e.innerHTML = e.innerHTML + ' ';
        }
 
        var r = document.createRange();
        r.selectNodeContents(e);
        s.removeAllRanges();
        s.addRange(r);
      }
  }
  // Some older browsers
  else if (document.getSelection)
  {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
  }
  // IE
  else if (document.selection)
  {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
  }
}
if(text){}else{ var text = 'Selecionar todos';}
jQuery(document).ready(function(){
  jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: [url=http://help.forumotion.com/#]Select All[/url]');
});
Then save it.
2. now you can see the page ID where it says "Page ID".
- Go to ACP - Display - Templates - Overall_header
- Search for then put this script under it:
-
Code:
- Now replace the HTML page ID you made with where it says "ID" (:
- Save + Publish (:

thank you for reply .. but i am search for (<!-- END switch_ticker -->) and not found it in (Overall_header) .. as you remember my forum version is phpbb2 .
Regards ..
Crying or Very sad

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Guest on February 28th 2011, 8:41 pm

I'm not sure if will works with phpbb2 so i need to test it first (:

Guest
Guest


Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on March 1st 2011, 12:49 pm

@Gangstar15 wrote:I'm not sure if will works with phpbb2 so i need to test it first (:

unfortunately not works with phpbb2 .. i am tested it Sad .
i am waiting for reply Shocked

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Darren1 on March 7th 2011, 2:15 am

@I-Angel-Q wrote:
@Gangstar15 wrote:I'm not sure if will works with phpbb2 so i need to test it first (:

unfortunately not works with phpbb2 .. i am tested it Sad .
i am waiting for reply Shocked

Hi,

Please review my post here:
http://help.forumotion.com/t86954-select-content-script#560418

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: i want Select content button

Post by I-Angel-Q on March 7th 2011, 9:48 am

@Darren1 wrote:
@I-Angel-Q wrote:
@Gangstar15 wrote:I'm not sure if will works with phpbb2 so i need to test it first (:

unfortunately not works with phpbb2 .. i am tested it Sad .
i am waiting for reply Shocked

Hi,

Please review my post here:
http://help.forumotion.com/t86954-select-content-script#560418

do not work again Sad

I-Angel-Q
Forumember

Male Posts : 54
Reputation : 1
Language : Arabic and English

Back to top Go down

Re: i want Select content button

Post by Ahmedvirus on July 19th 2011, 12:04 pm


Ahmedvirus
Forumember

Male Posts : 321
Reputation : 59
Language : English

http://help.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum