Hi,

I run a user group for people who use Newtek's lightwave.
I am running drupal 5.1 and several modules. ONe in particular is the photoframe module.
The problem I'm having is I don't know how to change the css correctly.

The author has an example on his website, specifing to just include whatever part you want in div tags with the class name of the frames.

An example is

<div class="photoframe-quote quote-quote">
Hello, I have just installed the Photoframe module on my Drupal site...
</div>"

I added this into the node.tpl.php so it looks like this.

  <div class="photoframe-round-with-white-background">
  <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php if ($picture) {print $picture;}?>
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <div class="submitted"><?php print $submitted?></div>
    <div class="taxonomy"><?php print $terms?></div>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  </div>
 </div>

But for some reason, it still doesn't work. Any ideas. Also I have a hard time finding css ids and classes. I use firefox, with the dom developer, and the webdeveloper plugins (they are great time savers) The problem is I have no idea what php page is generating the css. I know about attaching css files. But if you look at my site in the gallery section. The site is using the ability theme. Where would I find the css to modify each of the 5 items there? In the template somewhere? I've been poking around? Should I be examining the actual image module instead and modiy that?

Thanks for your help... If i've been unclear in anything, feel free to email me. Thanks.

Antonio

Comments

basicmagic.net’s picture

subscribe

Drupal samurai for hire, based in Buffalo, New York, USA.
15+ years Drupal, 20+ years web.
http://basicmagic.net

cgdigitaltreats’s picture

Subscribe to what? Can you elaborate?
I should clarify, that I really have trouble finding what creates the div tags and things like that. I realized that when you use the firefox web developer add in plugin you can view css. This makes a new page with all the css from every style on the page. You simply do a search on that new page to find out if your css exists, and scroll up to find out which style page it's on.

The problem for me is I still don't know where the div tags etc get created. In the theme section? Still learning.

ANtonio

michelle’s picture

There is no way to track posts unless you respond to them. So people respond with just "subscribe" to get it in their tracker. Hopefully the issue addressing this will go through soon.

Michelle

--------------------------------------
See my Drupal articles and tutorials or come check out life in the Coulee Region.

cgdigitaltreats’s picture

Michelle, thanks for the fyi.

Still trying to identify my problem with the Photoframe Module.

I Think I'll install a fresh drupal install somewhere and then photoframe.
Then I can make sure it's not some other module conflict.

Can anyone tell me if the above code is the correct, in terms of the example?
Maybe I'm doing it incorrectly?

Antonio

shishira’s picture

Hi
think you will find firebug more usefull in tracking the css selectors and their locations. Usually in the specific modules folder you would find a css file for the class etc created by that module

good luck

shira

cgdigitaltreats’s picture

Hi,

It's so funny, you posted about firebug, and I just went to the lullabot site from the main page of drupal. 50 tips pod cast.
One was about the firebug. Just reviewing it now. It is actually even more helpful. Thanks for the tip.

Still having problems with the Photoframe. Hopefully I'll figure it out this weekend.

I'm also getting this error. ANyone know what might cause this.


    * warning: fopen(modules/photoframe/initialize.js) [function.fopen]: failed to open stream: Permission denied in /home/pojack1/public_html/nyclightwave/modules/photoframe/photoframe.module on line 158.
    * warning: fwrite(): supplied argument is not a valid stream resource in /home/pojack1/public_html/nyclightwave/modules/photoframe/photoframe.module on line 159.
    * warning: fclose(): supplied argument is not a valid stream resource in /home/pojack1/public_html/nyclightwave/modules/photoframe/photoframe.module on line 160.

Antonio

cgdigitaltreats’s picture

Wow,

This is weird. The photoframes showed up in the mac firefox, but not in windows pc, or firefox pc. Not sure why.
I had to just turn it off.

Antonio