Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

Problem with User Forms


Reply


5 Posts   1317 Views

Avatar
Wil

Community Member, 15 Posts

27 May 2010 at 5:55am

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.

Avatar
Wil

Community Member, 15 Posts

28 May 2010 at 4:27pm

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

Avatar
Wil

Community Member, 15 Posts

29 May 2010 at 1:55am

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

Wil

Avatar
Willr

Forum Moderator, 5513 Posts

29 May 2010 at 3:22pm

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) %>

Avatar
Wil

Community Member, 15 Posts

1 June 2010 at 3:54pm

tx

Appreciate the help