Posted by nolageek on November 24, 2004 at 2:55pm
I've been trying to port over the Wordpress theme "Kubrick", does anyone have experience doing something like this? My attempt so far hasn't even shown up in the theme listing on my site. :(
Vincent
Comments
Theme Engine?
Which Drupal theme engine are you using? (e.g. xTemplate, PHPTemplate..)
Do you have a link to an example of a site running the WordPress theme?
[a.k.a. MegaGrunt]
------------------------------------------
Drupal Specialists: Consulting, Development & Training
Robert Castelo, CTO
Code Positive
London, United Kingdom
----
Wordpress theme
The Kubrik theme is a very well liked WP theme, would be excellent if it were ported to the Drupal system.
http://binarybonsai.com/kubrick/
That's the one. I see it's
That's the one. I see it's been ported to several other CMSs too. Could someone port it to Drupal?
Kubrick uses 2 different
Kubrick uses 2 different template for index page (with sidebar) and node page (without sidebar). It was accomplished with mod_rewrite. In Drupal it might be possible with the section.module in CVS, but I haven't try that out yet.
I will try converting the with-sidebar template to PHPTemplate.
with PHPTemplate
This is a first attempt using PHPTemplate. It is based on Kubrick 1.2.6
I haven't figured out how to do the comment styling yet. Kubrick is quite a complicated theme, if I missed anything, please help point them out.
The theme can be downloaded at http://ichris.ws/files/kubrick.tar.gz
To install, just uncompress the file in your themes directory.
wow
Very nice work! I'm using it at reelidentities.org/drupal (soon to be live site) I'll be reporting any bugs I see. I notice my footer message is left-justified, but that's probably my fault. Will check it out tomorrow.
Thanks! Are you still working on it?
VIncent
shoud be better now
I think it is 90-95% complete now. You can get the updated version at the same address in my post above.
For the curious, I note down the porting process at http://ichris.ws/kubrick .
If my attempt is up to par, could someone submit this to CVS? I don't have the permission.
I'd appreciate comments/suggestions. Hope this is useful.
Added
I have committed the theme to CVS. Please submit a project for that, so that it will show up in the downloads (it needs admin approval, but then will show up fine with downloads too). I have also tagged the theme for 4.5.
thank you
I have submitted the project.
and it appears to be
and it appears to be posted
http://drupal.org/node/13952
nice work.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
Good job
Thanks for the port, I had been thinking of doing the same thing too till I found your post yesterday. The only major problem with it is the overflow of any oversized tables into the sidebar. I had to do some extra changes to the stylesheet to make smaller font sizes uniform in all the tables. However, some tables, especially the ones in the admin section, would still encroach into the sidebar due to their size. Am thinking of either removing the "float" property, implement a z-index for the sidebar or use the overflow:auto positioning properties for the .navigation class.
http://www.ukssc.org.uk
Kubrick doesn't show up under themes
I just installed Drupal, and installed kubrick as well. However, the theme for kubrick does not show up under administer. Any thoughts?
missing phpTemplate engine
missing phpTemplate engine which is a seperate download.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
Probably just me :(
Yeah, I downloaded it...but can't figure out how to install it :)
I'll keep digging, thanks for the pointer
in the themes directory
in the themes directory there is one called engines
The default is xTemplate.
extract the contents of phpTemplate in a directory called phptemplate and there you are.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
Thats all you have to
Thats all you have to do?
cya,
Will
http://www.war59312.com/
Navigation Themes Not Working Under Kubrik Themes
I dont know if I can post this problem here, but since this is the only discussion available on kubrik I thought I can post here, please pardon me about that.
I understand the global config navigation links (pri & sec) are not available in Kubrik as stated in Readme. But in my case the Primary and Secondary Navigation links are not appearing when I mention it in the Kubrik template config. There the links are to be entered as text:link;text2:link2; I am entering the links as Home:http://www.indusnexus.com; in this format but no primary or secondary navigation link bar appears.
Please help.
Thanks in Advance
Santy
IndusNeXus.com : India - Social & Business Networking
Mobkarma - Software, Hardware & Web Tutorials Blog
yes
That is the intended behaviour. As the original Kubrick doesn't have these elements, and I don't trust my judgement in putting them on the layout, I have removed them completely. The primary & secondary links will not show up even if you toggle them on. The settings are there in the config page because I know not how to remove them. Sorry about the confusion.
See, for example, this and this on ways you can add them in manually.
Hi, thanks for the
Hi,
thanks for the feedback, but since I am very less knowledgeable about this , if you dont mind please inform where do i do changes to incorporate a navigation row below the header image, is it any one of the template files or directly the CSS.
thanks in advance
santy
http://www.indusnexus.com
Mobkarma - Software, Hardware & Web Tutorials Blog
Primary links not working
I just downloaded the Kubrick theme for my drupal website (http://www.my-kart.org/web/).
I am using 4.5.0 drupal.
My php version is 4.3.10 sitting on Apache 1.3.33 (Unix) for Linux.
mySQL is version 4.0.22-standard.
I cannot get the primary links to work... it is not activated by default so I included the following code piece on the page.tpl.php file. Unfortunately, I get the wrong links with double parameter calls (eg. index.php?q=?q=blog):
<?php if ($primary_links) : ?>
<ul id="main-nav">
<?php foreach ($primary_links as $link): ?>
<li><?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ($secondary_links) : ?>
<ul id="sub-nav">
<?php foreach ($secondary_links as $link): ?>
<li><?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Anybody has this problem or better yet, have a solution?
http://www.my-kart.org/
strange
If you just downloaded the theme, primary links should work out of the box. It was implemented like this:
<?php if (is_array($primary_links)) : ?><ul id="primarylink">
<?php foreach ($primary_links as $link): ?>
<li><?php print $link?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
What did you entered as the url for each primary link? If I remember correctly, PHPTemplate takes care of a bit of formatting and you only need to enter the part after "?q=", e.g. 'node/5', or 'blog'.
thanks... my blunder
chris. thanks for the tip. I overlooked the default settings in the theme configuration and have thus changed it. it works now. apologies for the run around.
Fazz
http://www.my-kart.org/
primary links added
After some consideration, I think primary links are important part of many drupal sites, so I added them to the theme. This is even though the original Kubrick does not have it. The styling is thus purely my judgement, but I think it fits pretty well with the rest of the page.
I have also ironed out a few small bugs. The updated version is not on drupal.org yet, please fetch them from links I have given above.
Chrisada, Great job on
Chrisada,
Great job on the port!
Like Santy, I also lack the knowledge about how to alter the primary links on kubrick. which files should we be looking in?
Is it as simple as adding a piece of code and the word "about" to create an about page or a "photos" to create a page dedicated to showing photos? Or do I have to have multiple index pages to do this.
God I am way out of my league here! :)
Thanks alot.
FrancisQ
TGR - a writer's space | mechanical i
no file editing needed
menu: administer -> theme
tab: configure
For PHPTemplate-based theme, it can be set in theme config page directly.
Far out dude! Thanks for
Far out dude!
Thanks for the pointer.
Will attempt to reason with it from now.
TGR - a writer's space | mechanical i
I committed the changes, and
I committed the changes, and it will be ready to download from drupal.org the next time themes are packaged (every 12 hours)
Moving the sidebar in Kubrick from right to left
Hi
I have for a couple of weeks been looking for a good PHPTemplate based theme for Drupal, and was delighted to find the nice Kubrick theme.
However, I would like to have the sidebar in the left side of the page instead of the current right position.
I have tried to look at the CSS, but can't find an easy way to do this.
Could anyone give me some hints on which changes I need to make? (Or preferably, a CSS file with the changes already made, if someone has already done this for their own site).
Thanks in advance
Nikolaj
Hey,First bug I have
Hey,
First bug I have found is that it kills the home page on first install.
So you must make the primary home url blank.
Though it should be:
?q=
Thanks,
Will
PS: Just noticed above someone said something about. Well its a bug buecause this a new install. Have not changed a single thing. IN this theme nor Drupal itself.
Update:
Just relized not only the front page but all of them. It is simply adding an extra ?q= to each of them. So if u remove ?q= from each then it works fine. Still front page being blank of course since all it is, is ?q=.
Update 2:
Just noticed:
This page is not Valid XHTML 1.0 Transitional!
:( Can you please fix.
Line 75, column 54: end tag for "ul" which is not finished
<div class="content"><div class="item-list"><ul></ul></div></div>Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
Line 83, column 54: end tag for "ul" which is not finished
<div class="content"><div class="item-list"><ul></ul></div></div>Thanks a ton,
Will
http://www.war59312.com/
Hey, Well found another
Hey,
Well found another one.
At the very botoom. You know the footer.
Well the RSS points to:
http://www.wars-realm.com/node/feed/
Which of course does not exist. So should it point to:
http://www.wars-realm.com/drupal/?q=aggregator
Or is this suppose to be something totally different?
Thanks,
Will
http://www.war59312.com/
Hey, Also I noticed these
Hey,
Also I noticed these graphical errors. Can you please try and fix.
Dont think you can miss them. ;)
Circled black just in case. :p
http://img133.exs.cx/img133/3564/bug14yg.png
http://img133.exs.cx/img133/6536/bug24xt.png
Thanks,
Will
http://www.war59312.com/
clean URL
When there is a link called "RSS" on a site, it usually points to RSS feed of that site. This text link has the same purpose as the orange XML button on your site. It is a different thing from feeds that you have aggregrated onto the site.
The link to site.com/node/feed/ will only work if you have 'clean URL' turned on. I really very recommend this. However, if you choose not to, the link should point to ?q=node/feed
clean URL will also solve all the link problems reported by you and a few others. The seeting is in administer -> settings
If your host allow it (have mod_rewrite enabled, that is) I think there is no reason not to use clean URL at all. :)
Will, this thread is really
Will, this thread is really not the best place for bug report. For that we have what is called 'issues', which you can file against modules or themes on drupal.org. Using issues helps keeping track of bugs easiers.
But in this case, I don't think it is a bug at all. I should have said in the readme file that it is recommended to turn on 'clean URL'. With that, you will have no problem with links and extra ?q=
The problem with ul without il is not the theme problem. You probably enabled some blocks which is empty (may be 'recent comment' or 'recent forum topic' block), and that can be expected to happen. When you start using your site, and when these blocks have content in it, it will validate.
Hey,Finally, thank you
Hey,
Finally, thank you so much!
Clean urls are on and working pefectly. I love my host. :)
Well on the RSS thing there is a little bug. ;)
See my site is this:
http://www.wars-realm.com/drupal/
So it should point to:
http://www.wars-realm.com/drupal/node/feed
But it just points to:
http://www.wars-realm.com/node/feed
So you just simply forgot the current directory. ;)
So were to change to correct url?
But ok yeah I will do that about bug reports then. I just love forums better. hehe
And yea that might be a good idea to add that to the read me.
Also i have not touched the blocks and oh my god when i enabled the smart urls there are now tons of errors. :( 86 of them. :(
Maybe its my posts lol. That i added? Guess u have to write them in xhtml as well? Damn only know html. :(
Yeap it is. lol It was line breaks in a post I added. hehe Yeap my fault.
Thanks for letting me know. hehe
Kinda sucks cause not like everyone will follow the rules.
Sweet, I am learning fast. Managed to fix it. Hehe :)
Thanks again,
Will
http://www.war59312.com/
Yes I would also like to do
Yes I would also like to do this.
Odd thought it would show up under hist post. Guess not.
Anyways I ment Moving the sidebar in Kubrick from right to left.
http://www.war59312.com/