This forum is for assistance with theme development.

Who is friendly and interested in helping out a bit.

Hi all,

After a long time of testing and head-breaking, I made the switch to Drupal. I needed a new CMS for an ever growing project I started 2 years ago. Back in the beginning I started with PHP-nuke, not knowing of anything else. After three months I got hacked (or better cracked) so I made the easy switch to Postnuke. Only since last year I needed something better, something more stable.

The choice was hard, even when it was clear from the start that Drupal would make it in the final. I have tested more then 100 CMS systems, some good, some very bad. Eventually the podium was Mambo on 3 and Typo3 in second. Where Mambo comes in short for multiple site configuration and Typo3 in to much server demanding and complex.

Now that I made the choice of Drupal I was wondering. Are there here some friendly people that would like to help build or fine tune a worlds winner site. This for the worlds biggest and absolute number 1 women cycling site.

Of course you would get full credentials for your input. Which should count for something. Even if we are still rather small, we are growing every day without limits. The ladies cycling sport is a very underestimated sport, as well as not a full professional sport. Helping shape the future of cycling is our goal. And you can be part of that to. Even if you are not in to cycling, it does not matter. What should matter for you is expanding you referrals and credentials for future projects and prospects. Looking at the weather I can't ask for hard work, just tips and hints. I will do the hard work in this 30 degree hot weather.

Display roles of comment author

I would like to display the role of a comment author, using PHPTemplate. I figured out I can find the comment author's User ID with

$comment->uid;

But can't figure out how to get their role(s).

Theme question...

I'm working on a modified version of Blue Marine. Its still pretty simple, as I've only changed about 4-5 things.

One thing I'm wondering is if it would be better if I had a border right border and the left sidebar and a left border on the right sidebar. Or is it more natural w/out borders? Also, should there be a border on the bottom of the header and a border on the top of the footer or no?

Thanks

Link

Is there a variable for the path to "sites/domain.com"?

In a multi-site set up where there are many sites inside the sites folder. Is there site-specific variable for each one with the value of the path to that site's specific folder?

I want to provide special resources for each domain without having to hardcode the path everywhere. For example, I want each site to have its own mission.php located at /sites/example.com/mission.php so in my templates I can include the mission.

As it is now, I am having to code each domain's paths separately like:

How do I let users change layout from within a theme

I am building a theme in phptemplate.

I have found that by using 'display: none;' in style.css I can hide for example the right sidebar.

Now I want to be able to let users hide / show the right sidebar by pushing the sidebars left border.

How can I do that?

Do I need two stylesheets? If yes, how do I change between the two - from page.tpl.php?

If no, how do I change between two sidebar settings within one style.css?

Hope someone can help me.

Best Regards,
Lennart

PHPtemplate - Change display of secondary links

Hola !

i want to change the display the text of the secondary links from normal to

Link «

but there seem to be encoding problems, as the system makes « to «

according to the Rewriting Primary Links posting, i created a template.tpl.php with the following code

function _phptemplate_variables($hook, $vars) {
  if ($hook == 'page') {
    foreach (array('primary', 'secondary') as $type) {
      //Get the data to populate the textfields, if the variable is not an array .. try to parse the old-style link format.
      $value = variable_get('phptemplate_' . $type . '_links', ”);
      //Get the amount of links to show, possibly expanding if there are more links defined than the count specifies.
      $count = variable_get('phptemplate_' . $type . '_link_count', 5);
      $count = ($count > sizeof($value['link'])) ? $count : sizeof($value['link']);
      if (theme_get_setting('toggle_' . $type . '_links')) {
        for ($i =0; $i < $count; $i++) {
          unset($attributes);
          if (!empty($value['text'][$i])) {
            if (!empty($value['description'][$i])) {
              $attributes['title'] = $value['description'][$i];
            }
            if ($type == 'secondary') {
              $value['text'][$i] .= ' &laquo;';
            }
            $links[$type][] = l($value['text'][$i], $value['link'][$i], $attributes);
            $vars[$type . '_links'] = $links[$type];
          }
        }
      }
    }
    return $vars;
  }
}

is there a way to prevent drupal from converting the ampersand & to &amp ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development