Page 1 of 1
Nyx question
Posted: Thu Feb 05, 2015 5:07 am
by Mistress Jenifer
When I made my first tease...
The range command was told to me to be extremely picky. I was told that if I loaded the page in the visual editor the range command broke in the script page.
This still true?
Thanks
~Mistress Jenifer
Re: Nyx question
Posted: Thu Feb 05, 2015 6:41 am
by philo
Mistress Jenifer wrote:When I made my first tease...
The range command was told to me to be extremely picky. I was told that if I loaded the page in the visual editor the range command broke in the script page.
This still true?
Thanks
~Mistress Jenifer
The nyx editor does have a habit of losing changes, I can't remember the exact circumstances.
But it does do strange things if you do changes in the script editor then use the visual editor.
I must admit I gave up on it and wrote the offline editor.
I only use nyx to publish and test stuff rather than as an editor
Re: Nyx question
Posted: Thu Feb 05, 2015 1:40 pm
by Nezhul
Yes this is still the case. The problem is that nyx adds "#" sign in front of any page ID (page name) when it's a target of a button. If the target is range, then visual editor will STILL add # in front of it, and it is not a valid call anymore.
basically it turns the line
buttons('lalala',range(1,3,'page')) or something into
buttons('lalala',#range(1,3,'page')) and this button will simply not work.
You will have to then go to script editor and remove this extra sign and save it like that.
p.s. I don't remember if # is in front or after the page ID. Either way there shouldn't be no # near range() function.
Re: Nyx question
Posted: Thu Feb 05, 2015 4:56 pm
by Mistress Jenifer
Nezhul wrote:Yes this is still the case. The problem is that nyx adds "#" sign in front of any page ID (page name) when it's a target of a button. If the target is range, then visual editor will STILL add # in front of it, and it is not a valid call anymore.
basically it turns the line
buttons('lalala',range(1,3,'page')) or something into
buttons('lalala',#range(1,3,'page')) and this button will simply not work.
You will have to then go to script editor and remove this extra sign and save it like that.
p.s. I don't remember if # is in front or after the page ID. Either way there shouldn't be no # near range() function.
So basically that only happens if I open the pages in the range in the visual editor?
If I setup a 20 page range and then go three pages out of it before fully setting up the range in the script, presuming I never touch those 20 pages it'll never break?
Re: Nyx question
Posted: Fri Feb 06, 2015 3:03 am
by Nezhul
So basically that only happens if I open the pages in the range in the visual editor?
You can visit the pages
IN the range as much as you want. You shouldn't visit the page that holds the button/timer that
picks a random page. So basically if you have a page that picks from 20 other pages, you can visit all of those pages, but then you shouldn't visit the page that is choosing them.
Anyway, if you find yourself visiting some page and ruining the command, I recommend you:
1) write your tease entirely not bothering of where you go
2)when it's done go to script view
3) Copy the entire script and paste it into NotePad (simple text editor)
4) Press Ctrl+H (this lets you exchange one piece of text for another)
5) in the first field put ")#", in the econd put ")" (without quotes)
6) press exchange all.
7) copy your script back to nyx and save.
8) Publish without going to visual.
This simple method will fix ALL range() commands in your tease.
