Jump to:

10843 Posts in 2514 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Problem with User Forms

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1215 Views
  • Wil
    Avatar
    Community Member
    15 Posts

    Problem with User Forms Link to this post

    Hello Everyone.

    I was trying to use a product called Slickboard on my home page and it requires javascript. In setting this up my user forms no longer work in the admin. When I click on the user form page it shows up blank and cannot be edited.

    Is there any way to fix the user forms?

    tx

    Wil

    I have already removed all the references to the slickboard application form my template files.

  • Wil
    Avatar
    Community Member
    15 Posts

    Re: Problem with User Forms Link to this post

    Hello?

    I couldn't figure this out so I wiped out my SS install and redid it from scratch. I tested the user forms and they worked until I applied the template I built. I switched applications and I am now using the jquery lite plugin so I have the following javascript in my page.ss

    <script type="text/javascript" src="mysite/javascript/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="mysite/javascript/jquery.cycle.lite.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $('#slideshow').cycle();
    });
    </script>

    Once I run the pages, the userforms in the admin section can't be edited. I only get a blank page. Even when I go back to the default blackcandy theme, the userforms still can't be edited in admin.

    Does anybody know why this is?

    tx

    Wil

  • Wil
    Avatar
    Community Member
    15 Posts

    Re: Problem with User Forms Link to this post

    It is now solved - I just downloaded the lastest trunk version and rebuilt the database and it now seems to work.

    Wil

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Problem with User Forms Link to this post

    You should also in future use the jquery bundled with SilverStripe in sapphire/thirdparty/jquery/jquery.js since alot of modules (forum, userforms at least) will include jquery on the front end (the one from sapphire) if your code uses the one in sapphire like below it will prevent loading 2 jquerys to the same page (which is bad for performance)

    Use this line in your Page.ss to include the jquery from sapphire and prevent duplication. (Uses jquery 1.4.2)

    <% require javascript(sapphire/thirdparty/jquery/jquery.js) %>

  • Wil
    Avatar
    Community Member
    15 Posts

    Re: Problem with User Forms Link to this post

    tx

    Appreciate the help

    1215 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.