This forum is for assistance with theme development.

PHP to call latest gallery images

I've tried implementing the code found at http://drupal.org/node/64269 and just get a blank screen. I've also tried a bunch of other things I found around here, but they were all for Drupal 4.x.x. How can I call, say, the five latest image posts from Gallery2?

This is the last thing I need for my site and it's driving me crazy!!

php code for in menu.inc to create a vertical text menu for side tabs...

Hi,

I am about to build a site where the secondary links will be in vertical tabs on the side. (Please excuse the layout at the moment)

http://www.epicit.com.au/testing/whs/index.php?q=node/2

I want to be able to create the menus dynamically as the user adds more content.

I have made the div width enough for the width of one character. If I create the menu name as such "S u b P a g e 1" with a spcae in between it doesnt recognise the extra spaces and the words are strung together as in example. If I place specila characters in the the menu title it is displayed literally ie   or %20% are displayed on screen like that.

I have looked at this code http://www.cssplay.co.uk/menus/vertical.html and wish to be able to parse the href link description so I can put a tag around each element ie.. Hi there would be <tag>H</tag><tag>i</tag><tag> </tag> <tag>T</tag><tag>h</tag><tag>e</tag><tag>r</tag><tag>e</tag> this way each character should sit below the other in the narrow width hopeflly including the spaces.

I can see where in menu.inc it creates the link, I am not so good at php and was wondering if anyone could direct me on how ot get that part of the array and parse/explode it and add those tags to it so it will display vertically and add spaces?

PHP code to display blog teasers

I've looked around everywhere but basically I just want the PHP code that displays the latest blog entry teasers like you'd see on the front page for use in a template. Thanks!

Themeing Drupal 6

I see the announcements for Drupal 6 and view the changelog and note some significant changes in the pipe for themes. (I believe even the word "drastic" is used in one place!)

Was hoping someone with some insider knowledge cd give us all some insight about what is coming down the line.

How about it? What are the themeing implications for Drupal 6?

TIA

Display the full content of sub-nodes (preferably with Contemplate)

Hi everyone,
I hope I'm not asking a question that has allready been adressed, I'm quite new to Drupal.
I would like to use Contemplate to display the content of all the sub-nodes of a page.
For instance, if I have an "about" page, and I wrote two sub-pages called "about me" and "about this page", I want the website to display the content of those two sub-pages.
I was thinking about building a loop that would go every sub-node of the current page, and displays the elements I want from the nodes ($node->title, $node->content['#children'], and so on).

ERROR MESSAGE - please help

I logged in today into my site and this error message was showing. How can I fix this???

user warning: Got error 28 from table handler query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = 'bluemarine' AND b.status = 1 AND (r.rid IN (2,3) OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in /home/lp_XXX/public_html/includes/database.mysql.inc on line 172.

Pages

Subscribe with RSS Subscribe to RSS - Theme development