Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
However, I've quickly noticed that this if statement is always satisfied. I suppose it's because the "Add a comment" link satisfies the if. I was originally thinking this if snippet would only return true if actual comments existed instead of just links for creating comments. It was also showing the h2 on teasers which obviously satisfied it but I solved that by adding an extra if before and after <?php if ($page != 0); ?> so that fixed that problem, but now it adds the h2 "Comments" regardless if there are any comments.
I need this because on blog posts it goes directly from the entry to the first comment and looks like there should be some kind of break and to let users know these are comments and possibly not other, related blog posts or something. I know they'll catch on quick but I'd still like to print the Comments before if they exist.
So if you know what the proper way of writing this if statement to mean if there are actual comments.
I have been able to find quite a few examples of adding css classes to the list items (
) within a menu but, I need to add a couple of css classes to the actual menu. The examples I have seen that deal with the list items override the theme_menu_item_link function. But there doesn't seem to be a similar function for the menu itself (something like theme_main_menu). At least, I haven't been able to find mention of one.
Should I attempt to put some code in menu.inc, or in theme.inc?
Okay, I am over my head on developing a new website. I currently have two sub-directories with my Drupal sites in them. One is a main site and one as a subdomain careers site. The current site is a flash site at the root level of my hosting.
new Drupal 7 install
I've been successfully adding "basic page" content when suddenly today I'm presented with "Body: the text may not be longer than 375 characters."
I have previously added content well beyond 375 characters with no problems
- I have refreshed cache, uninstalled maxcharacter and assorted recent modules to no avail.
Apparently my server company had some kind of failure over the weekend, might this be some kind of database error/corruption?
I have little experience with MYSQL and would appreciate any advice