This forum is for assistance with theme development.

Including Flexinode-Field in PHP-Snippet

Hi folks,

currently I`m trying some things with phptemplates, flexinode and php-snipptes. During my experiments I was wondering if it would be possible to include a custom flexinode-field into a php-snippet. For example if that works it would be possible to put a snippet into a flexinode-n.tpl.php file and to leave a flexinode-field for a variable that can be changed each time a new flexinode is created. That can be useful when the snippet needs a taxonomy-id number which changes for each new node.

I`m tryting to do that with the following snippet, but since I`m not a php-programmer I can`t figure out how to put it inside the code:

unset ($output);
$listlength="999";
$charlength="0";
$taxo_id = */ place for the custom flexinodefield */ ;
$content_type = 'flexinode-4';
$result1 = pager_query("SELECT n.title, n.nid, n.teaser, n.uid, n.created, u.name FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN frightening_term_node ON n.nid = frightening_term_node.nid WHERE n.type = '$content_type' AND frightening_term_node.tid = $taxo_id AND n.status = 1 ORDER BY n.created DESC", $listlength);
while ($node = db_fetch_object($result1)) {
$output .= '<span class=capitalchenverdana>' . l($node->title, "node/$node->nid") . "</span><br>" . substr(strip_tags($node->teaser), 0, $charlength) ;
}
print $output;

I`ve already tried just to put in $node->flexinode_n (where n is the number of the field) into the code, but it just returns an error. I`m sure it has just something to do with the writing, but a PHP-noob like me would spend days for figuring that out. :P Maybe someone of you can help me out? That would be great!

Bluemarine sidebar link color

How do I change the color of the links in the left sidebar only of the Bluemarine theme? I have the links configured how I want them for the rest of the site but I'd like to change the color of the navigation links in the menu on the left side. Thanks.

Hiding the book navigation div?

Hi all,

I have a drupal site (4.7) comprised mainly of book pages. I'd like to suppress the book navigation that appears at the bottom of the node content -- the:

<div class = "book-navigation"> ... </div>

I've thought of:

adding top menu

So I'm putting together my drupal site. And want a menu navigation like drupal.org or any other variety of tabbed menus.

For this do I program a module (I'm thinking not) or alter the theme (i'm thinking so?)

any suggestions for making it dynamic and maybe highlighting what tab your under?

Thanks

Show BB and quote tags (filters) only on forum nodes

I have installed the quote module and I am planning to install bbcode for the forum.
When I enable the filters, there is no way for me to select that I only want them to work on the forums.
I removed the link hooks from the quote module and rewrote them in the theme for the forums, but it still shows up on help below the text box. It would be better if the whole filter would only work on the forum.
Ist there a way to restrict input formats or even filters to a certain node type?

deafult theme for unauthenticated users

I need to develop a site where users will be normal visitors when they access it online.
What I want is to set up a default theme for a normal visitor and have the standard blue
marine for the site administration.
Of course there will also be a web editor account for whom will enter news or other types
of posts for example.
I seem to be stuck because using drupal 4.7 I can only set themes for authenticated users
and administrator whereas I cannot configure a theme for a non-registered normal user.

Pages

Subscribe with RSS Subscribe to RSS - Theme development