hi,
I guess this is a simple css support request.
i have a custom theme where i've printed all the basic features from the default drigg_theme (inside page.tpl)
I managed to display the node karma inside the following blocks: "Best published items", "Best scoops" & "Best upcoming items". Right now they appear as simple numbers before the node title. But I can't display the yellow & grey background images that appear in the blocks of of drigg.org and fsdaily.com
I copied & pasted the css from drigg_theme's block.css into my own theme's style.css (and also brought in the necessary images) , but still nothing happens.
do I need to write any functions in tpl files ?
The installation guide was very detailed and helped me to adopt a different theme into drigg functionality. But nothing was said about those blocks.
please help
thank you!
Comments
Comment #1
mercmobily commentedHi,
Sorry I don't know anything about CSS and never will.
I am not entirely sure this is the right place for CSS help, it seems to be more about Drupal customisation than anything else...
I suggest you write on the Drupal forums, and ask them what's wrong with your CSS providing a working URL so that people can have a look.
Also, have you tried the Drigg forums?
Bye,
Merc.
Comment #2
drupalina commentedDrigg forums? where?
MercMobily, you said you don't know about css or php... but I thought you were the one who designed drigg. no?
Comment #3
silvanov commentedhttp://www.drigg-code.org/forum the drigg forums url.
Comment #4
mercmobily commentedHi,
Drupalina, I designed Drigg. That implied writing about 9000 lines of PHP code.
I know HTML 1.0. I designed absolutely everything without adding any CSS.
I then got two people to support me, writing the Javascript side of things (Jake, Anthony) and the CSS side of it (Alan).
I don't do CSS, and I have no desire to learn it :-D
Bye,
Merc.
Comment #5
sikjoy commentedHi Drupalina:
I have to agree with mercmobily that this isn't the place to ask customization questions. Having said that, I'll try to help you anyway.
You don't need to write any functions or touch the tpl files.
If you are using drigg.org as your model. You're going to need to edit your custom style sheet to include something like:
For the upcoming scoops block, provided you wrapped your number in a
<span class="score">tag, and:For the published scoops block.
In a nutshell: you need to set a background image for your
<span class="score">tag.I hope that helps.
--sicjoy
Comment #6
mercmobily commentedHi,
Thanks sicjoy...!
I am marking this as "fixed"... However, I really think we _have to_ mark questions like this as "won't fix" since we can't help everybody with CSS issues...
Merc.
Comment #7
drupalina commentedThanks sicjoy,
I tried a similar solution to yours long while ago, but for some strange reason it just didn't work... and only afterwards did I posted here.
Anyway, this is what I did:
1) I overwrote the block.tpl of my theme with block.tpl of the drigg theme
2) I inserted @import url("css/blocks.css"); at the _very_ top of my theme's style.css
3) created a "css" forlder in my theme and uploaded drigg-theme's block.css into it
dirty solution, yes... but it seems to have worked. (even though from the page loads I can see that the page loads and block loads have slowed down.
Comment #8
sikjoy commentedThe only thing "dirty" about your solution is that your theme may require functionality in the block.tpl that you replaced. It would be worth the time to try to merge the two template files together.
"at the _very_ top" Yep, they don't call it _cascading_ style sheets for nothing. Again, care should be taken that you don't override functionality that is needed by your original theme.
Good luck,
sicjoy
Comment #9
mercmobily commentedComment #10
NJ1018 commentedI suggest that you try Drigg Forum for help.
giltzy karma