Select All & Copy Code To Clipboard

Started by karlbenson, October 14, 2007, 04:51:27 PM

Previous topic - Next topic

karlbenson

Are you using a language supported by the mod?
Are you getting any errors in your error log?
Can you link me to a url/page on your forum where url tags are installed?


karlbenson

Something has gone wrong with SMF package manager.
Its inserted the language strings in the wrong place in the file.

Its not a bug with this mod (or my buy me a beer mod), but for some unknown reason it happens with smf.

Open
Themes/default/Languages/Modifications.english.php

Make sure <?php is at the VERY TOP at the file on its OWN line
and
?> is at the very bottom of the file on its OWN line.

(so as necessary move any language strings in-between).

Do the same for
Themes/default/Languages/Modifications.english-utf8.php
if your using utf8.

And for any other languages you may be using.

au8ust

Hm... Weird :( I can't use it in Firefox, Select All and Copy To Clipboard are not working at all. It's working in IE for Select All only.

Any idea?

karlbenson

The mod has been tested in firefox.

In firefox Goto
Tools > Error console

is it giving you any error?

Is flash enabled in Firefox?

au8ust

Okay I'll try that

BTW, below is Thai and Lao translation ;)


<file name="$languagedir/Modifications.thai-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['codeselectall'] = 'เลือกทั้งหมด';
$txt['codecopytoclipboard'] = 'สำเนาไว้ใน Clipboard';
$txt['codedivider'] = '|';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.lao-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['codeselectall'] = 'ເລືອກທັງຫມົດ';
$txt['codecopytoclipboard'] = 'ສຳເນົາໄວ້ໃນ Clipboard';
$txt['codedivider'] = '|';
]]></add>
</operation>
</file>

au8ust

Quote from: karlbenson on January 07, 2008, 12:53:40 AM
The mod has been tested in firefox.

In firefox Goto
Tools > Error console

is it giving you any error?

Is flash enabled in Firefox?

Okay, it causes from Flashblock extension so I disable it and Select All is working fine now :)

For the Copy to Clipboard shows these errors

Warning: Error in parsing value for property 'opacity'.  Declaration dropped.
Source File: http://mydomain.tld/webboard/index.php/topic,72.msg83.html#msg83
Line: 0
Warning: Error in parsing value for property 'opacity'.  Declaration dropped.
Source File: http://mydomain.tld/webboard/index.php/topic,72.msg83.html#msg83
Line: 0

karlbenson

So the Copy to Clipboard bit still isnt working?

The mod doesnt do anything for opacity.
They are probably related to some other javascript on your page.

ne.miguelito


au8ust

NWM, I will use only the Copy All ;)

Thanks for the MOD!

karlbenson

I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.

Teunel

Hi, Thanks for this great mod. I have one question though.

I have changed my forum a lot, and when I post a topic, it automatically shows the content in a Code box. I'm not using the code tags, I just placed the code divs in my Display.Template.php. An example can be seen here: http://www.krabbelplaatjes.com/grappig/lol-t1201.0.html
Now, I want to show the Select all and Copy to that code box too, but it isn't really working. What do I have to modify to get this working? I tried looking at the source and adding the Javascript in there manually, but this isn't working.

Here is a Dutch translation:

$txt['codeselectall'] = 'Selecteer Alles';
$txt['codecopytoclipboard'] = 'Kopieer naar Klembord';
$txt['codedivider'] = '|';

karlbenson

It wouldn't be easy.
The javascript is built on basis of the default code <div>s

I cannot provide support for customizing it.

Teunel

Ok, then I will take a look at it myself when I can find some time! :D Thanks anyway for the great mod!

Darknico

#34
Good mod!!!
Thanks!

It is possible for tag [php][/php] ?
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Kimmie

Hi Karl, seems this is my week to "bug" you... heehehe

I tried to install this mod via package manager and got this:

1. Execute Modification ./Themes/default/script.js Test successful
2. Execute Modification ./Sources/Subs.php Test failed
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
5. Execute Modification ./Themes/default/languages/Modifications.english_british.php Skipping file
6. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file
7. Execute Modification ./Themes/default/languages/Modifications.turkish.php Skipping file
8. Execute Modification ./Themes/default/languages/Modifications.turkish-utf8.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.spanish.php Skipping file
10. Execute Modification ./Themes/default/languages/Modifications.spanish-utf8.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.spanish_es.php Skipping file
12. Execute Modification ./Themes/default/languages/Modifications.spanish_es-utf8.php Skipping file
13. Execute Modification ./Themes/default/languages/Modifications.greek.php Skipping file
14. Execute Modification ./Themes/default/languages/Modifications.greek-utf8.php Skipping file
15. Extract File ./_clipboard.swf


Would the fact I am using 1.1.5 be the issue since you stated that no manual theme edits were needed with this one? I wanted to ask and see what you thought before I tried manually installing it and screwing up something..lol.

karlbenson

It must be conflicting with another mod.

Its not a theme edit. Its a conflict. The only solution is to do it manually.

Kimmie

ew I was afraid of that...ok one more question and I will leave you alone (for a while anyways..hehe).

In a case like this, which way do you recommend I do it:

1. Install it via package manager and then edit the Subs.php file and make the edits
2. Install the whole thing manually

I am not sure if it really makes a difference but I wanted to ask your professional opinion as to what you think the best way would be. I guess I just need clarification tht if I do it the #1 way, can I be assurred tht it will make the correct edits to the other files? (this is me trying to learn how to do this so I dont have to keep asking hehehe). In most cases I usualy dont have to do manual edits cuz my theme uses mostly the default files - so I havent had a whole lot of practice with manual edits and I want to make sure I do it right. :)

Thanks for ALL your help. Your mods are some of the best I have used (and I have several lol)

karlbenson

Thanks.

Generally I'd recommend installing it entirely manually.
But I've done it the other method too.

So its your choice.
Although I would recommend taking full backups of your files and your database before proceeding with such changes.


Advertisement: