This forum is for assistance with theme development.

Does profile_load_profile not work anymore?

Have a sticky problemI can't work out.

the following used to work perfectly before for extracting and displaying a particular profile field in a block/node.tpl.php/php page...but it won't work for me with Drupal 4.6.6.

<?php global $user ;?>
<?php profile_load_profile($user->uid); ?>
<?php print $user->profile_companyname; ?>

Anyone any ideas? did a quick search to see if there were any notices about a change in how Drupal works.

Phil

Link Underline below images

I'm trying to get rid of the underline below links and images, using box_grey, and it has a { text-decoration: none; }
but there are still underlines, most annoyingly under the logo image in the header. Am i missing somthing? Thanks.

Theming comments

It's a cool feature to style admin comments in a different way that normal uses (like thinkvitamin.com does). If a user uploads a picture as part of their profile will that show up in forums or comments?

Also is there anyway to theme comments based on role or something?

I suppose if there isn't I could always edit the comment theme function in theme.inc (I'm guessing its there) to spit out that user's role as a class in the comment. Then I could make admin comments look different via css. What do you think?

costumizing a page template / accessing node fields

Hi, I'm having problems costumizing a page template. In particular it is a template use to display on a page
a single image node; I've put it in a file image.tpl.php.

The problem is that when, in the script, I call print $content , I get displayed: image, title, description.
Is there any way in which I can handle every field of the node separately within the template?

isnt the $content variable a structured variable?

I tried $content->title, $content->image, but I don't get anything.

Primary Links Disappeared after modifying page.tpl.php

I modified my template to display the primary links in the header section. It works great on my development system but after I upload the entire template with css templates to my site, they do not show up. I verified that all template files uploaded correctly. When viewing the rendered pages source, the primary links section is missing.

Can anyone help?

My code:

Help resolving Javascript conflicts

I have been trying to use some javascripts that use the window.onload event and apparently the script and some core drupal js are in conflict. I know that drupal's js files have the addLoadEvent(); function, but nevertheless my scripts do not work. I am sure it is a conflict between the two because the Admin > Settings menu does not work when I have the script installed, but it does when I remove the scripts. Moreover, the Nifty Corners script works outside the Admin > Settings. I tried including drupal.js and utilizing the addLoadEvent(); function.

Pages

Subscribe with RSS Subscribe to RSS - Theme development