This forum is for assistance with theme development.

Issue rewriting HTML in page.tpl.php with str_replace and preg_replace

Bit of a PHP problem that's cropped up. I'm trying to get drupal to highlight the current primary link (shown as tabs via CSS) and to do this with my design the 'class=active' must be in the LI element, not the A element.

It would appear something is going very wrong however, as my preg_replace seems to be setting the Home link LI (the first one it comes to) as 'class=active' no matter which primary link is clicked on...!

Could well be my php, here's the code:

In page.tpl.php:

Ack! Lost all of the block display code right before the client presentation - help please!

I have been working on getting the site ready for the client. One of the things that I've been working on is menus and links that are displayed on the left side to enable the client to administer the web site.

Suddenly all of the formatting has been lost in my left side blocks/menus.

When I view the page now I see:

link link link
link link link

Instead of
(img) link
(img) link
(img) link
(img) link

When I view the source, it's as if the images were never there.

secondary_nav and custom nav issues

Hello everyone. I am new to Drupal and so far i am really enjoying it. Thank you to everyone who made this a reality. I just started trying to build a theme and I am running into some walls. I decided to take a website I recently built for a client and convert it to Drupal.

Here is the original site for reference: http://www.weldaloy.com.

Here is the new Drupal version: http://www.brokenninja.com

Okay, on to the first question.

Tooltip

Tooltip.js is the NEXT GENERATION in Tooltips; using the Web 2.0 approach of doing a simple thing, and doing it well.

Anyone try to add this to drupal!! ?

http://tooltip.crtx.org/index.php?page=Demos

Reorder the create content page?

I'm working in an admin area of my web site. On this page of my web site: http://www.example.com/?q=node/add I see my menu items to create content on the left. Then in the body of the page I have

create content
Choose the appropriate item from the list:

How to move "Number of views" , "read more" and "add a comment" out of the generic $links call in node.tpl.php

I tried this method http://drupal.org/node/43888#comment-81687 and managed to get read more out of there, but could not get the others out so I can place them differently. Im not very good with PHP so if anyone can help me out I would greatly appreciate it.

Even suggesting a different method would be great as long as I can move those things around.

Thanks in advance.

Pages

Subscribe with RSS Subscribe to RSS - Theme development