1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.


Discussion in 'XenForo Development Discussions' started by Mythotical, May 6, 2012.

  1. Mythotical

    Mythotical Well-Known Member

    Can anyone shed some light on how serialize works within XenForo? I ask because I adopted Jaxel's layout portion of XenPorta but for the life of me, it saves all positions of blocks as 'disabled'. When it inserts the data it serializes all data then unserializes when pulling it to display on the front page.

    If anyone needs to see files then I will gladly share files.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Mythotical

    Mythotical Well-Known Member

    Thanks Jake, tried it but for what I'm doing it won't work.

    I'm trying to understand why it won't save 'position' for each block where I have them.

    Here is the layout page:

    Output when unserializing on front page:
    Each one should save as the location in the screenshot such as top-left, mid-right, sidebar, etc.
  4. cclaerhout

    cclaerhout Well-Known Member

    Are you using JqueryUI to make movable box into a list using "sortable"? If yes, there is a serialize function.
    You can write a javascript to insert the last configuration into an hidden field of your form. Then when you press on "save", you can do an action to get those datas from the empty field. After this, you can play with those datas as you want to. That what I did with the Mark It Up integrator. If you want my addon (as I proposed you in pm ^^) to see the code and use it, don't hesitate.
  5. Mythotical

    Mythotical Well-Known Member

    I ended up reverting everything. I had the jQuery and all in place, it just wouldn't save for nothing the position. The template had a hidden field and all.

Share This Page