Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2012-05-19 13:05:32

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

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

New version 0.3 fixes delete issues with dots in filenames (thanks Yiannis).

Download

(Yiannis: if you re-save your jquery.cycle script – and then try and delete it – it should work.)

Simon

Offline

#26 2012-05-19 15:06:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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

That was very fast. The new version fixes the problem. Thanks!


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#27 2012-05-28 15:46:07

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

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

Version 0.4 released – now with Minify support.

Offline

#28 2012-06-20 11:44:23

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

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

#@spf_js
#@language it-it
spf_javascript => JavaScript
spf_js_dir => JavaScript directory
spf_script_name => Nome dello script
spf_edit_script => Stai modificando lo script
spf_copy_script => …o copia lo script con nome
spf_all_scripts => Tutti gli script
spf_create_new_script => Crea nuovo script
spf_script_created => Script <strong>{name}</strong> creato.
spf_script_exists => Lo script <strong>{name}</strong> esiste gi&agrave;.
spf_script_name_required => Per favore inserisci un nome per lo script
spf_script_updated => Script <strong>{name}</strong> aggiornato.
spf_script_deleted => Script <strong>{name}</strong> cancellato.
spf_cannot_delete_default_script => Lo script <strong>default</strong> non pu&ograve; essere cancellato.

Offline

#29 2012-06-20 16:10:54

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

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

MarcoK wrote:

#@language it-it

Thanks Marco – Italian Textpack added.

Offline

#30 2012-07-11 16:50:50

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

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

spiffin a écrit:

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

Hi Simon

Ok then the only way to use txp tag inside javascript is to embed the code directly into the page or form, but not on javascript tab.

Offline

#31 2012-07-11 17:54:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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

Hi Rabah

I’m wondering if rah_external and spf_javascript could work together for your needs.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#32 2012-07-12 09:59:45

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

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

Hi Yiannis

I make a test: create an spf_js:

var toto = <txp:category />

and create a rah_externat_output named css:

<txp:spf_js />

and then embed it using:

<txp:rah_external_output name=“css”/>

that not worked, the code inserted.

But if using rah_external_output alone and putting a snippet:

<script>
var toto = <txp:category name=“produits”/>
</script>

that works, but the js is embedded in html!

I dont think we can parse txp:tags inside spf_js because it stores the js in a flat file to improve speed load, i think i must continue putting thos kind of code directly inside html.

Cheers

Offline

#33 2012-09-09 06:51:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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

Hi Simon

I am trying to install this plugin in a subdomain on txp4.5 but it just does not recognise the js directory.

After installation, I visit the advanced preferences where the existing js directory is not detected.
When I enable the plugin I get a modal window stating internal error "Table 'my_db.prefixspf_js' doesn't exist" and after clicking OK I get I’m sorry. I’m afraid I can’t do that. I think spf_js is no safe operation at this time.

I checked the db and spf_js table is not created.

This is the first time I am installing this plugin in a subdomain. Should you need a login to the site to check what is happening please let me know.

Last edited by colak (2012-09-09 15:26:04)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#34 2012-09-12 13:56:40

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

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

Hello Yiannis

I’ve just installed a clean copy of Textpattern 4.5.1 on a local subdomain and installed spf_js with no problems whatsoever.

I’m assuming your site is on a Unix server with PHP 5?

I suggest you check your file privileges, database privileges and check your logs (PHP and MySQL error logs).

Simon

Offline

#35 2012-09-12 14:05:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

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

hi Simon

It seems that the problem is fixed now. I did not mention that the installation was not only in a subdomain but also in a “prefixed” db. I reinstalled txp without the prefix and your plugin worked just fine.

Having said that, there is a display problem in the remora theme, mentioned here


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#36 2012-09-12 14:10:53

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

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

Thanks – I’m aware of the styling issues and an update will be coming soon.

I’m away from home until next week so it’ll be a week or two.

Offline

Board footer

Powered by FluxBB