[SOLVED]CGCalendar problem whenused with News in sidebar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

[SOLVED]CGCalendar problem whenused with News in sidebar

Post 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


----------------------------------------------
Attachments
New version CGCalendar showing blank space until end of News module
New version CGCalendar showing blank space until end of News module
Using old version CGCalendar
Using old version CGCalendar
Last edited by frank4360 on Wed Oct 21, 2015 4:46 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: CGCalendar problem whenused with News in sidebar

Post by velden »

A link to the specific page would be helpful (if public)
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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.
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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?
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

Re: CGCalendar problem whenused with News in sidebar

Post by Franck »

I was just asking to know if you'd be able to edit the css. :)

You found the file, didn't you?
frank4360
Forum Members
Forum Members
Posts: 30
Joined: Fri Jan 28, 2011 9:33 pm

Re: CGCalendar problem whenused with News in sidebar

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 261
Joined: Tue Jun 12, 2007 1:29 pm

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

Post by Franck »

To be more precise: copy the CSS rule in the CSS attached to the template, and add float:right; to it.
Locked

Return to “Modules/Add-Ons”