cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
date picker/calendar styling
Tags: calendar
February 9, 2012
3:31 pm

Hi, I enabled the calendar feature for plugin, but It tries to load style from http://webpageurl/ folder. Why is that happening?

March 1, 2012
7:32 pm

I found the solution after following a clue from another post.


In /wp-content/plugins/cforms/cforms.php, line 1126, the css is registered with:


wp_register_style('calendar-style', $r . '/styling/calendar.css' );


But the $r variable is not set anywhere. The correct variable should be $cforms_root, so change the line to:


wp_register_style('calendar-style', $cforms_root . '/styling/calendar.css' );

March 3, 2012
11:15 am
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Great catch, thank you! It'll be added to the next release!

January 3, 2014
8:49 pm

In the current version of cformsII (14.6) I had to add the following  line to cforms.php right below line 1218.

echo '<link rel="stylesheet" id="cforms-calendar" href="' . $cforms_root. '/styling/calendar.css" type="text/css" media="all" />'."\n";

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3759

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5357

Posts: 18737

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)