Porting "Denver" Theme for Drupal 6.x
alimosavi - November 10, 2007 - 11:44
| Project: | Denver |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
I release denver theme for drupal 6
you can get it here : http://testd6.irdrupal.com/node/63

#1
I don't understand what you have done. It looks like the same denver.info file that was already there, plus a new file called style-rtl.css.
The theme already works with drupal 6, but still without the custom theme settings. What else, if anything have you done to prepare the theme for version 6? Please advise.
Thank you!
#2
Bad URL?
Every attempt yields a 509 (bandwidth exceeded) error.
#3
url : http://www.irdrupal.com/files/denver-6.x-1.x.zip_.zip
only added style-rtl.css file and change core to 6.x
#4
Seems to "almost" work.
I tried the latest 5.1 version (to get the shiny black navigation bar that's not included in your zip) and the 2 files you changed.
After changing line 2 of page.tpl.php (just hard-code the language code), it just about works - except the the navigation bar - the primary links won't show up on it. I got the shiny black bar, but that's it.
I hope colorado is moving this to version 6 soon!
m
#5
I am sorry . I forget it.
you can find it in this address : http://theme.irdrupal.com/?q=project/denver
http://theme.irdrupal.com is a new rtl center for drupal theme.
#6
Hello,
I've downloaded the 6.x version from irdrupal.com and installed it with Drupal 6.2. Looks fine. I want to use suckerfish menu's and so I enabled this in the template sections (i've installed theme api settings). In the blocks configuration section I can't find the suckerfish item to assign to the block. Am I missing something?
Kind regards,
Sjaak Terwindt
#7
Hey,
Just downloaded your theme and will begin testing. It looks VERY promising.
Thanks for all your work. It is greatly appreciated!
-ROR
#8
I have downloaded alimosavi's port to Drupal 6 for Denver. Filename: denver-6.x-1.x.zip.zip from here. (at the bottom of the page)
I have gone through the theme to test it:
My Results
With Denver enabled, Going to the themes list:
Errors:
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
and it shows Denver as version: 5.x-1.x-dev
Going to the "Denver" configuration page I get this error:
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
Going to Blocks
Got this error:
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
# recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/renec/sites/all/themes/denver/page.tpl.php on line 2.
Well, that seems like the only error. Hmmm....
I couldn't see how to enable the suckerfish menus either. Does anybody know how?
#9
Hellos,
Codes below are what I did in order to have this beautiful theme run in Drupal 6.3.
For denver.info : notice commented lines
name = Denver
description = Simple, table-based, multi-column, fluid or fixed width theme with tabbed navigation.
version = VERSION
core = 6.x
engine = phptemplate
regions[page_top] = Page top
regions[header] = Header
regions[header_right] = Right Header // enable right header
regions[suckerfish_menu] = Suckerfish Menu // enable suckerfish menu
regions[sub_nav] = Sub nav
regions[node_top] = Node top
regions[sidebar_left] = Left sidebar
regions[sidebar_right] = Right sidebar
regions[content_top] = Top of content
regions[user1] = User1
regions[user2] = User2
regions[user3] = User3
regions[user4] = User4
regions[user5] = User5
regions[user6] = User6
regions[content_bottom] = Bottom of content
regions[footer] = Footer
regions[page_bottom] = Page bottom
features[] = logo
features[] = favicon
features[] = name
features[] = slogan
features[] = mission
features[] = comment_user_picture
stylesheets[all][] = style.css
stylesheets[all][] = css/blue.css
stylesheets[print][] = print.css
; Information added by drupal.org packaging script on 2007-08-20
version = "6.x-1.x-dev"
core = "6.x"
project = "denver"
datestamp = "1111111111"
For the version info above, I stripped out the 5.x references and changed 6.x-1.0 to dev --> to make core version reflect my site's Drupal 6.x version.
Next I changed line 2 of page.tpl.php in order to get rid of those loading errors
from this:
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">to this:
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">Here's my hacks/ie.css, supposedly to take care of lightbox incompatibility.
/* #sizer {width:expression(document.body.clientWidth > 1280 ? "580px" : "100%" );} *//* #expander {height: 0;} */
.header {background-position: 10px 3px;}
#wrapper1,#wrapper2,.outer a,.outer,h2{height: 1%;}
.outer {word-wrap: break-word;}
.outer p {margin-right: -6px;}
#search .form-submit {margin-bottom: -1px;}
#lightbox {
width: expression(document.compatMode=='CSS1Compat'? document.documentElement.clientWidth+'px' : body.clientWidth+'px');
}
And lastly, js/suckerfish.js to please some versions of IE.
sfHover = function() {var linksReady = '';
var sfEls = '';
linksReady = document.getElementById("suckerfishmenu");
if (linksReady) {
sfEld = document.getElementById("suckerfishmenu").getElementsByTagName("LI");
if (sfEls) {
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
Sorry for the long post. Hope this helps.
Edwin
#10
Hi. Could anybody patch this and give a link to a download. I have no idea how to do this stuff - and it scares me.
thank you a lot for the work EdCazini and allimosavi.
t/y
Ray
#11
Fantastic hax for a fantastic theme! Thanks, although I had a problem when I left the comments in the info file! Removing them made everything happy again!
#12
Oooops... my bad, I just put them there to emphasize what I changed, not on my actual .info file though.
#13
Hi Ed,
Changing the code gave me a series of errors? If I were to upload a tar archive would you be able to look at it?\
I would greatly appreciate it.
Thanks...
-ROR
#14
@ROR: ok let's have a try, no guarantees though...
#15
"Changing the code gave me a series of errors? If I were to upload a tar archive would you be able to look at it?
I would greatly appreciate it."
If somebody were able to upload an zip/tar/gzip of the patched theme that would be great. It would really benefit new people who don't have much technical skill to be more comfortable with Drupal.
It would also eliminate future problems like these.
Best Regards!
-Ray Murphy
#16
OK, here's a zip of my customized Denver theme as explained above. As always, it's recommended that you do backups first, specially this theme's directory. Then, delete the entire Denver theme directory and extract this upload in it's place. Patch file upload forgone for the same reason of making it easy for Drupal newbies. I invoke the usual disclaimer of distributed codes.
Cheers.
#17
First off,
THANK YOU for porting Denver to version 6!
I have installed and tested, and all seems to work, EXCEPT Primary Links and Secondary Links.
I have applied the fix described at http://drupal.org/node/224872#comment-741465 , which brings back those links. However the graphical tabs are not included with the links.
If someone can figure out how to get the tabs to appear with the links I would appreciate it very much.
Also, I have added 4 new Block Regions:
1) user7, user8 and user9 to appear in a horizontal row in between the page Title and the page content, and;
2) Navigation to appear in the space where the Tabs (Primary Links) currently appear
In addition, I have added the following "Features" options to the .info file so that these can be checked/selected specifically for the Denver Theme (instead of having to set them in the Global Settings):
node_user_picture
search
primary_links
secondary_links
I include a .zip of the entire theme folder...
#18
Hello colorado and EdCazini.
Here is the latest "work" for this patccg.
Just would like to report a few things with these patches. Here are the issues:
"critical" FCKEditor bug
"minor" bug with Post Information
Cheers!
-ROR
#19
Hello, I seem not to experience the 2 bugs you mention with the codes I posted in #9 or #16.
Using Apache 2.2.8, mySQL 5.0.58, PHP 5.2.6 & D6.4 with FCKeditor 6.x-1.3-rc1 module & FCKeditor 2.6.3
I'll be upping to D6.6 & FCKeditor 6.x-1.3-rc3 & see what goes.
#20
As an addendum to my previous post, try following the suggestions given at http://drupal.fckeditor.net/tricks. The essence is not to use your current theme's css in FCKeditor. In mine I used FCKeditor default.
Hope this helps.
#21
To print tabs, e.g. for primary link, i change following code in page.tpl.php:
old:
<?php if (isset($primary_links)) : ?><?php print theme('menu_tree', menu_tree('primary-links')) ?><?php endif; ?></td>new:
<?php if (isset($primary_links)) : ?><?php print theme('links', $primary_links, array('id' => 'primary-links')) ?><?php endif; ?></td><?php endif; ?>#22
Thank you Udgin!
Now here is a .zip of a working Denver Theme for Drupal 6, until I CVS it.