This forum is for assistance with theme development.

How do I make a tab call a php function?

Hi,

Hmm, got my tabs (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm) set up. Happy as a clam. But then I realised I need a function to be executed when I activate a certain tab. Below is a short excerpt of my code. What I want is "myfunc()" to be executed when the TAB2 tab is displayed but as it is right now "myfunc()" is actually printed on the screen. Note though, I want the function to execute again every time the TAB2 tab i opened.

$tabs_section = <<< EOT

adding javascript to your theme + drupal_add_js

Im trying to add the apple quicktime js into my theme so i can embed quicktime videos
heres the code i have put in my template

drupal_add_js( 'sites/default/themes/noelclarke/scripts/quicktime.js');

At the moment the link to the js is hardcoded in, im sure theres a better way to do it

The problem is i keep getting the white screen of death after i submit a page with the quicktime javascipt in
Also get an error message saying - Cannot modify header information - headers already sent

Building Website

I am going to be designing a website. I want to be able to have drupal as my CMS, I have never designed for or around a CMS before.

How do I do it? Where do I start? All the good stuff....

Help building primary links on css code

Hi

I try many ways to build a primary menu links with nice menu at dynamic drive
http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/

The CSS

/*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */ /*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */ .glossymenu{ position: relative; padding: 0 0 0 34px; margin: 0 auto 0 auto; background: url(media/menur_bg.gif) repeat-x; /*tab background image path*/ height: 46px; list-style: none; } .glossymenu li{ float:left; } .glossymenu li a{ float: left; display: block; color:#000; text-decoration: none; font-family: sans-serif; font-size: 13px; font-weight: bold; padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/ height: 46px; line-height: 46px; text-align: center; cursor: pointer; } .glossymenu li a b{ float: left; display: block; padding: 0 24px 0 8px; /*Padding of menu items*/ } .glossymenu li.current a, .glossymenu li a:hover{ color: #fff; background: url(media/menur_hover_left.gif) no-repeat; /*left tab image path*/ background-position: left; } .glossymenu li.current a b, .glossymenu li a:hover b{ color: #fff; background: url(media/menur_hover_right.gif) no-repeat right top; /*right tab image path*/ }

Full text of nodes on the home page

Is it possible to show the full text of nodes on the home page rather than just the teaser? If so, how? I tried doing print_r($node) in node.tpl.php, but it doesn't seem to have it.

How do I get a 'Page' or 'Story' to stand alone?

How do I get the 'Page' or 'Story' not to be nested into the home page actually stand alone?

Pages

Subscribe with RSS Subscribe to RSS - Theme development