Search…

X3 Photo Gallery Support Forums

Search…
 
florent
Experienced
Topic Author
Posts: 98
Joined: 02 Jan 2008, 17:53

change items script on Panel Settings Toolbar

17 Jan 2016, 04:00

Good morning

Try to set up my last download version for my new site : new.bsbd.fr
I delete some lines inside the items script (twitter, google, ...) and now I can't load my index page ...
There is a way to initialise again just this part ?
Thanks
Florent
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: change items script on Panel Settings Toolbar

17 Jan 2016, 05:36

florent wrote:I delete some lines inside the items script (twitter, google, ...) and now I can't load my index page ...
I think you have just a tiny error in your ITEMS code:
Code
{
      "id": "comment",
      "icon": "comment",
      "label": "Post Comment"
    },
See the trailing comma (,) at the end? You need to remove it. JSON is a strict format, and the comma at the end implicates that another item/object is following. I believe it will work after you remove the comma at the end.
 
florent
Experienced
Topic Author
Posts: 98
Joined: 02 Jan 2008, 17:53

Re: change items script on Panel Settings Toolbar

17 Jan 2016, 05:48

Yes, right it's work, thanks a lot Karl :D

Maybe a good idea, to add for each scripts, an reset option permitting to avoid this ?

Florent
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: change items script on Panel Settings Toolbar

17 Jan 2016, 06:41

florent wrote:Maybe a good idea, to add for each scripts, an reset option permitting to avoid this ?
It would be useful for this specific option yes ... I would have preferred something easier than managing a strict JSON object for the toolbar items config, but I couldn't figure out a solution that provides the same flexibility.