This forum is for assistance with theme development.

Altering installed theme by an url?

Hi

I have setup a server for showing various Portal and Forum templates and themes. It works by altering the portal/forum and showing them below the menu that resides at the top of the screen. I have on there Joomla, Xoops, SMF, Tiny Portal and miniBB so far. It will take ages to load all the themes etc until there is sufficient choice. I would like to add Drupal to it too as it is such a nice looking portal. If there is a theme changing module maybe I can work out how to alter the themes myself but failing that does anyone know how to alter the Drupal theme from an url?

custom menu block not working

hi

i'd like to create a custom menu block for "left/right" navigation. i searched around any tryed something, but i cannot get working what i need.

normaly the menu goes inside a block named "block-menu". i tryed to customize this into a "block-submenu.tpl.php". so i added a function to

[templates.php]

<?php
function phptemplate_menu_tree($pid = 1, $all = FALSE) {
    return _phptemplate_callback('block-submenu', array('pid' => $pid,'all' => $all));
}
?>

and created the file

[block-submenu.tpl.php]

print "block block-$block->module" " id=" print "block-$block->module-$block->delta"; ">
		$menu = menu_get_menu();
		$output = '';
		
		if (isset($menu['visible'][$pid]) && $menu['visible'][$pid]['children']) {
	
		foreach ($menu['visible'][$pid]['children'] as $mid) {
		  $style = (count($menu['visible'][$mid]['children']) ? (menu_in_active_trail($mid)  ? 'expanded' : 'collapsed') : 'leaf');
		  $output .= "<li class=\"$style\">";
		  $output .= theme('menu_item', $mid);
		  if ($all || menu_in_active_trail($mid)) {
		    $output .= theme('menu_tree', $mid);
		  }
		  $output .= "</li>\n";
		}
	
		if ($output != '') {
			$output  = "\n<ul class=\"menu\"><li id=\"title\">$block->subject</li>\n$output\n</ul>\n";
			}
		}
		print $output;

remove primary links

how can i remove primary links from top and below of my page:

see: http://www.myboards.org/home/index.php

Can I change the style of "h2.sifr-node-title a" in Fancy theme in drupal 4.7.2?

Hi, everybody!
I come from Viet Nam.

And this is the first time i try to use Drupal for my site. So i meet rather many problems.

This is one of them:
Can I change the style of "h2.sifr-node-title a" in Fancy theme? I want to use Time New Roman font for it and I also want to see it in Vietnamese correctly.

Who can help me?

I need emergently!

Thanks advance!

can't theme node type "poll" using node-poll.tpl.php

hi,

i have been using the node-type.tpl.php to theme several node types. for some reason though using node-poll.tpl.php or node-polls.tpl.php is not working. i am using drupal 4.7.2.

anyone else overcome this problem?

thanks in advance

cck: how feasible is it for cck to offer a field that is searchable on that field (index)?

I put this in as a feature request
http://drupal.org/node/77143

I would like to be able to search by specific fields. For example, in the field, "languages spoken" I'd like to find all users who speak Chinese. I don't want a general search of the site.

What is the possibility of getting this in cck in terms of whether it's technically possible? I am willing to put in some money. I have no idea how many hours this will take. I imagine it's quite difficult.

Pages

Subscribe with RSS Subscribe to RSS - Theme development