I'am using the FullCalendar. When clicked a event the colorbox pops up. But there is a horizontal scrollbar and there is a lot of space to scroll to.
I've been looking all over the place but I don't seem to find out where I can style the colorbox.
I see an option in a view that is part of the contenttype called Event. This is to be found on Display settings >> Colorbox options. Here I can width and height but they don't seem to work.
Than I tried colorbox_default_style.css which doesn't seem to work either.
Or shoulld I style the specific content type..?! But where?!
I've been roaming the net to search for an answer but not able to find what I'am looking for.
Help very much appreciated.
Namaste
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | colorbox-Expand_Instructions_for_Custom_Style-1489638.patch | 1.42 KB | dolly nyc |
| #22 | colorbox-Expand_Instructions_for_Custom_Style-1489638.patch | 0 bytes | dolly nyc |
| #18 | Picture 6.png | 215.19 KB | misscosmic |
| #11 | colorbox_problemz.jpg | 183.47 KB | misscosmic |
Comments
Comment #1
tim.plunkettFullCalendar just integrates with Colorbox, I'm moving this to their queue for more support.
Comment #2
lsolesen commentedComment #3
jdwfly commentedAre there any javascript errors on the page? Setting the width and height of the colorbox does work for me with the latest version. I'd make sure your colorbox module is up to date and also make sure that you have the latest colorbox plugin as well.
Comment #4
misscosmic commentedNo JS errors.
Yes the latest versions.
Changing the size I have managed to do no because it is an option in the admin>configuration>colorbox.
But what about changing the background ect. Which file?
Or how to make it so that an other CSS file is responsable for the design of the colorbox instead of the CSS that shapes the intire site as it seems to be now..?
Comment #5
lsolesen commentedHave you read this: http://drupalcode.org/project/colorbox.git/blob/refs/heads/7.x-1.x:/READ...
Comment #6
misscosmic commentedThanks for the energy you put in my issue Isolesen. I don't seem to get it to work. The problem I often encounter is that I see much more options and it often seems to be about which file I need to path-to or edit.
Same in this case, the link you gave me, which sounds promising clear and exactly what I would like give me the same problem. Namely path, yes but to which file..?!
"Add a custom Colorbox style to your theme:
74 ----------------------------------------
75 The easiest is to start with either the default style or one of the
76 example styles from the Colorbox plugin. Simply copy the whole
77 style folder to the theme and rename it and the files to
78 something logical.
79
80 Add entries in the themes info file for the Colorbox CSS/JS files.
81
82 In the Colorbox settings select "None" as style. This will leave the
83 styling of Colorbox up to your theme."
The/my problem is #80. Is the entry
- the path to the Colorbox module in the sites/all/libraries/colorbox
- or to the files in sites/all/libraries/colorbox/colorbox (which is there and has to be there also)
- or is it to the files I just copied in my themes folder (#76)
Comment #7
lsolesen commentedcould you attach the style you are trying to get to work
Comment #8
lsolesen commentedcould you attach the style you are trying to get to work
Comment #9
misscosmic commented... but it still it shows the background and the hole layout of a normal page..
I found thislink. In which is:
I would like to try this script, but than (again) my ever (endless) lasting issue, in which file do I put this script..?
Comment #10
lsolesen commentedWe can only help you if we get the whole source for the style, you are trying to create and some screenshots of what is going wrong.
Comment #11
misscosmic commentedIn the red frame is the colorbox pop-up.
The layout and size is exactly as the site itself, althought I made a path to a css for the colorbox.
Comment #12
lsolesen commentedwe need the entire code.
Comment #13
misscosmic commentedSee this is my problem..I feel damn silly.. What do you mean by the entire code? The 'view source' of colorbox pop-up in the browser? A php file, the css?
Comment #14
misscosmic commentedstyle.css of the theme:
php.tpl.php of the theme:
if ($logo):print check_url($front_page); " title="
print t('Home');">print t('Home');" />endif;if ($site_name || $site_slogan):
if ($site_name):print check_url($front_page); " title="
print t('Home');">print $site_name;endif;if ($site_slogan):print $site_slogan;endif;endif;print render($page['search_area']);if (theme_get_setting('breadcrumb_display','corporateclean')): print $breadcrumb; endif;if ($page['highlighted']):print render($page['highlighted']);endif;if ($messages):print $messages;endif;if ($page['help']):print render($page['help']);endif;if ($action_links):print render($action_links);endif;print render($title_prefix);if ($title):print $titleendif;print render($title_suffix);if ($tabs):print render($tabs);endif;print render($page['content']);print render($page['sidebar_first']);print render($page['footer_first']);print render($page['footer_second']);print render($page['footer_third']);print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('class' => array('secondary-menu', 'links', 'clearfix'))));print render($page['footer']);print render($page['footer_bottom_right']);Comment #15
dolly nyc commentedmisscosmic -- the easiest way is to copy the entire "default" or "stockholmsyndrome" folder from the styles folder in the colorbox module folder INTO your theme's folder. Rename the folder to something you'll recognize like "mycolorbox." Inside that folder is a .css file and a .js file (and an images folder). Rename both the .css and .js files to match your folder name: i.e. "colorbox_mycolorbox.css" and "colorbox_mycolorbox.js"
Then, you need to add a line to the info file of your theme -- "yourtheme.info" -- so your theme knows to use the stylesheet from "mycolorbox"
stylesheets[all][] = mycolorbox/colorbox_mycolorbox.css
(It's around line 49 in my theme which is based on Zen--you need to search the .info file for the other stylesheets[all][] which allow the them to override any module's css)
Make sure you have the style set to "None" in the Admin->Configuration->Colorbox settings page under "Styles and Options"
Then make any css adjustments to your "colorbox_mycolorbox.css" file
Comment #16
lsolesen commented@dolly nyc Could you make a patch for the README with your extensive explanation?
Comment #17
dolly nyc commentedI'll try -- never made a patch before so have to read how to do that properly :)
Comment #18
misscosmic commentedThnks dolly nyc.
I do exactly what you say and still the layout is influenced by the style.css and not the colorbox_style.css.
As you can see in the screendump firebug shows both style.css and colorbox_xtyle.css.
I imagin that I had to leave the style.css in the .info aswell..?! Otherwise the normal pages read the color_style.css which of course I don't want.
So in the .info now there is both:
stylesheets[all][] = style.css
stylesheets[all][] = colorbox_style/colorbox_style.css
Is it something in the content type..? Do I have to add or remove field. A filter..?
Comment #19
lsolesen commented@dolly nyc --> http://drupal.org/node/707484
Comment #20
dolly nyc commented@isolesen -- thanks, working on it
@misscosmic
i forgot to write that you need to add this line to the info file too:
scripts[] = mycolorbox/colorbox_mycolorbox.jsAgain, look for a similar line in the .info file so it's easy for you to find again
you shouldn't delete any of the other style sheets that are mentioned in the .info file since most likely they were put there by your theme (unless you added them too)
it looks like you're trying to open a node in the colorbox? look through the issues for the information on that, there are a lot of different solutions that will help you to format the node properly (or maybe you even want to look at http://drupal.org/project/colorbox_node -- i don't know anything about that module but it might solve your problems)
Comment #21
misscosmic commented@isolesen, @dolly nyc thanks for all your help. I don't seem to be able to make it work. The colorbox keeps on being influenced by the style.css no matter what I try..
Comment #22
dolly nyc commentedSorry for the delay -- my first patch, I hope I did this correctly. (At least it's only to the README file, can't break too much there...)
Comment #23
dolly nyc commentedOops here it is :0
Comment #24
frjo commentedThanks @dolly nyc. Committed with some minor changes to both 6-dev and 7-dev.
Comment #25
misscosmic commentedThanks dolly. It will be my first time a apply a patch, which makes me a little nervous.. but I'll do my best
Comment #26
dolly nyc commented@misscosmic -- the patch is just for the README, it's the same as the instructions I wrote above in #15 above. Look at http://drupal.org/project/colorbox_node because that might solve your problems if you're trying to open a single node within the colorbox.