Page 1 of 1

[SOLVED]CGCalendar problem whenused with News in sidebar

Posted: Fri Oct 16, 2015 8:09 am
by frank4360
I am using the latest CMSMS and CGCalendar add-on modue (full system info below).

When used with a template with News in the left sidebar the latest CGCalendar shows the calendar heading at the top next to the news but then there is blank space before the calendar itself appears below the end of the news items.
Example screenshot attached below



With the older, deprecated version on CGCalendar this does not occur.
Example screenshot attached below.

I have looked at the News template to see if it is too wide, but the calendar header fits ok so this should not be a problem.

I would appreciate any ideas!

Thanks in advance.

Frank

System info:-



----------------------------------------------

Cms Version: 2.0.1.1

Installed Modules:

AdminSearch: 1.0
CMSContentManager: 1.0.1
DesignManager: 1.0.1
FileManager: 1.5.1
MenuManager: 1.50.1
MicroTiny: 2.0
ModuleManager: 2.0
Navigator: 1.0.1
News: 2.50.1
Search: 1.50.1
CGExtensions: 1.49.9
CGSimpleSmarty: 2.0.2
CGCalendar: 1.15.5


Config Information:

php_memory_limit:
max_upload_size: 2000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: America/Chicago
permissive_smarty: false


Php Information:

phpversion: 5.5.28
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference:
test_db_timedifference:
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Performance Information:

allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)

Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.68
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No file system time difference found


----------------------------------------------

Re: CGCalendar problem whenused with News in sidebar

Posted: Fri Oct 16, 2015 9:02 am
by velden
A link to the specific page would be helpful (if public)

Re: CGCalendar problem whenused with News in sidebar

Posted: Fri Oct 16, 2015 9:33 am
by frank4360
No problem - this is a test site before I move it to the real host.

Old Calendar module:-

http://med-and-mountain.com/adhd/index. ... -and-trips

New calendar module, showing blank space until end of News sidebar:-

http://med-and-mountain.com/adhd/index. ... ort-groups


Any further info required, please ask.

Thanks for your help.

Frank

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 9:04 am
by frank4360
I need to move on with the site so I am now going to have to use the deprecated

Code: Select all

{CGCalendar display=calendar}
If anyone can help with the new CGCalendar I will be most grateful.

Frank

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 2:43 pm
by Franck
Looks like a positioning problem, maybe CSS rules added by the new calendar?

Sorry to be this unprecise, but as you changed the display, we can't see the difference anymore, and I haven't installed the new version yet.

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 2:59 pm
by frank4360
I have put back one page with the call to the latest CGCalendar - you can see it at http://med-and-mountain.com/adhd/index. ... e=calendar

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 3:13 pm
by Franck
Capture d'écran 2015-10-21 17.13.34.png
By adding float:right; to the .fc declaration in CSS, the calendar is back where it has to be.
Are you comfortable with CSS, btw?

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 3:55 pm
by frank4360
Tomek wrote: Are you comfortable with CSS, btw?
"Comfortable" would be overstating it!!!

I am getting to grips with PHP, Smarty, Javascript, Jquery and CSS all at the same time. I did, however, start working as a programmer in 1966 - and ended up running a software house when I retired in 2000. None of this experience is much help in web design matters, though, so I am the new boy here!

I am happy editing CSS, but I am not good at knowing which particular file is to be edited, so all pointers appreciated.

Thanks for your help.

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 4:03 pm
by Franck
I was just asking to know if you'd be able to edit the css. :)

You found the file, didn't you?

Re: CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 4:45 pm
by frank4360
Tomek wrote:
You found the file, didn't you?
Yes, thanks, and I have edited it and it works!!

I was a little surprised to have to edit the file "/modules/CGCalendar/lib/fullcalendar/fullcalendar.min.css" - also that it was not neatly spaced and laid out, but it must be the required file.


Thanks very much for all your help.

I am now moving on to find out why News items I add return 404 when I click on them..... Hey ho - it keeps me off the streets!!

Thanks again.

Re: [SOLVED]CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 5:03 pm
by calguy1000
Nope. You did it wrong.

You should never edit a distributed file.
The proper place to do this is in the CMSMS stylesheets that are attached to your page template.

Re: [SOLVED]CGCalendar problem whenused with News in sidebar

Posted: Wed Oct 21, 2015 5:17 pm
by Franck
To be more precise: copy the CSS rule in the CSS attached to the template, and add float:right; to it.