Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2012-04-21 11:30:04

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,152

Re: spf_js - JavaScript management - create, edit, delete, export to file

spiffin wrote:

spf_javascript was pulled immediately

Well, then I’m the lucky owner of the Blue Mauritius :))


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2012-04-21 16:37:39

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,205
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

… fr-fr Textpack file:

#@spf_js
#@language fr-fr
spf_javascript => JavaScript
spf_js_dir => Répertoire JavaScript
spf_script_name => Nom de ce script
spf_edit_script => Vous éditez le script
spf_copy_script => …ou copier le script sous
spf_all_scripts => Tous les scripts
spf_create_new_script => Créer un nouveau script
spf_script_created => Le script <strong>{name}</strong> a été créé.
spf_script_exists => Le script <strong>{name}</strong> existe déjà.
spf_script_name_required => Veuillez renseigner un nom pour votre script.
spf_script_updated => Le script <strong>{name}</strong> a été mis à jour.
spf_script_deleted => Le script <strong>{name}</strong> a été supprimé.
spf_cannot_delete_default_script => Le script <strong>default</strong> ne peut pas être supprimé.

Patrick.
G+
Github | CodePen

Offline

#13 2012-04-22 11:03:03

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

colak wrote:

works wonderfuly. Thanks so much for your work Simon

Thanks Yiannis

Last edited by spiffin (2012-04-22 11:52:44)

Offline

#14 2012-04-24 15:35:11

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

uli wrote:

German language pack:

.. thanks Uli.

Offline

#15 2012-04-24 15:35:48

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

Pat64 wrote:

… fr-fr Textpack file:

.. thanks Patrick.

Offline

#16 2012-04-24 15:39:16

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

Dragondz wrote:

Is the plugin parsed (can we include txp tag inside javascript file) ?

Hi Rabah

The simple answer is no. Textpattern tags (along with PHP) are server-side – and JavaScript is client-side.

This post might help.

Simon

Offline

#17 2012-05-07 16:26:22

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,251
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

Is there an easy way to migrate scripts from stm_javascript?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#18 2012-05-07 16:47:24

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

MattD wrote:

Is there an easy way to migrate scripts from stm_javascript?

Was asking myself the same question; then I saw this in Simon’s first post

stm_javascript

If stm_javascript is installed and activated you will see two JavaScript tabs in Presentation – one named ‘Javascript’ (stm_javascript – with lowercase ‘s’) and another ‘JavaScript’ (spf_js – uppercase ‘S’).

You can copy and paste scripts from stm_javascript to spf_js – and then disable stm_javascript. It’s not advisable to run both plugins simultaneously.

Last edited by joebaich (2012-05-07 19:13:47)

Offline

#19 2012-05-07 16:52:24

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

MattD wrote:

Is there an easy way to migrate scripts from stm_javascript?

Hi Matt

The easiest way is to activate both plugins — then you’ll have 2 tabs in Presentation called Javascript (stm_javascript) and JavaScript (spf_js) — and copy and paste from one to the other. Then de-activate stm_javascript.

stm_javascript uses a ‘rogue’ database table name (with a txp prefix rather than a plugin author prefix) and base64 encodes the scripts (which is no longer needed) and so made it trickier to write a simple import/export function.

Simon

Offline

#20 2012-05-18 12:34:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,901
Website

Re: spf_js - JavaScript management - create, edit, delete, export to file

Hi Simon,

I’ve hit on a minor bug.

I created a new javascript which I want to delete. On clicking the delete button, the script is deleted from the js folder but it still remains in the txp db and it is still visible in the admin interface.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

Board footer

Powered by FluxBB