This forum is for assistance with theme development.

Comment anchor links issue

Hello,

Display medium vote on a custom flexinode theme

Hi,

I have a custom flexinode theme so I don't print the $content variable. How can I display medium vote on this page (theme)

I have try :

print theme('mediumvote_widget', 'node', $node->nid);

but it's not working. It's only printing vote(0).

What can I do?

Thank you

Nicholas

Connections theme and upgrading anxiety...

I'm running 4.6 with the Connections theme. If I upgrade to 4.7, will my theme explode, or crash, or otherwise make things awkward for me?

Thanks in advance.

Ross

Theme Search Results Page

I've developed a custom home page (page.tpl.php) with the standard search box on it. However, after doing the search, the home page is displayed again, but the URL indicates, for instance, "http://localhost/search/node/baby" (when searching for "baby"). How do I redirect it to a search results page, or how do I modify the current behavior?

Theming taxonomy module output

Hello!

I have drupal-based site, where my users can choose some products to buy (a little local Linux-cd shop). I've created menus which lead to static pages (Linux page and BSD page) where the apropriate goods are listed. Shopping is powered by e-commerce.

But now I have decided to make some automatization. I want something like that:

changing page template based on node type from within template.php

Hi folks,

I'm trying to serve a specific page template for all nodes that are forum posts.

As of right now, I've been twiddling in template.php to do similar work (serve different templates based on url arg()).
Here's the function I'm using. Note that I've bveen trying to grab the node type (if (arg(0) == 'node' && is_numeric(arg(1))) and then trying to load a page template based on that: elseif ($node->type == 'forum') {

I thought this was the proper way to do this, yet now I'm getting some mySQL errors:

warning: Invalid argument supplied for foreach() in /netops/www/drupal-4.6/modules/node.module on line 358.

warning: implode() [function.implode]: Bad arguments. in /netops/www/drupal-4.6/modules/node.module on line 363.

user error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
query: SELECT n.*, u.uid, u.name, u.picture, u.data FROM *****.node n  INNER JOIN *****.node_access na ON na.nid = n.nid INNER JOIN newmbc.users u ON u.uid = n.uid WHERE  (na.grant_view = 1 AND CONCAT(na.realm, na.gid) IN ('all0','simple_access0')) AND   in /*****/www/drupal-4.6/includes/database.mysql.inc on line 66.

Anyone have an idea what I'm doing wrong here? Thanks in advance!

Here's my function from template.php:

<?php

Pages

Subscribe with RSS Subscribe to RSS - Theme development