This forum is for assistance with theme development.

PHP Snippet request - Forums

Hello

I want a PHP snippet which I can place in node or block which pulls Recent Forum topics in tabular form having following column

Topics | Posts | Views | Last post

Just like the original forum view.

2. A variation of above and good to have would be Active Forum topics in same Format.

3. If someone has the snippet to put Top forum posters in block in this format
Username (post count ) that would be good to have too.

How to take out the site-name

If have a logo that contains the company name and there is no need to show the site name. To explain what is happening, here is the modified code from page.tpl.php from the bluemarine theme; the h1 has been taken out:

<td id="logo">
      <a href="./" title="Home"><img src="<?php print $logo ?>" alt="Home" border="0" /></a>
      <div class='site-slogan'><?php print $site_slogan ?></div>
</td>

And here is the corresponding source in Firefox 1.5:

theme override of custom profile pages

I have an extra page of user detail thanks to the profile module. I would like to theme it, but I can't identify where an if this is possible. I've found plenty about theming the view page ?q=user/1/view, but nothing about theming an edit page like ?q=user/1/edit/blah. Scouring the code I come up short.

Templates Issues - Attempting to Convert Joomla/mambo template to Drupal

Hello,

I've just switched to Drupal from Joomla, and I'm trying to convert the Joomla waterandstone template for use on the new site.

It seems that everything in my site code is being ignored after the content is displayed, (the END HEADER tag)

If this helps, the url is http://test.localcarloan.com, but I imagine I may have to post the contents of my xtemplate.xtmpl file

only login box on the site's front page, how to do?

hi all,

I would like to have my drupal 4.6 site's frontpage contain only login box and
info on what the site is about, like on yahoo mail's (http://mail.yahoo.com/)

How to do that using phptemplate theme?

Cheers,
Enky

drupal_set_header doesn't affect getResponseHeader

Running RC2.

I'm building a theme to asynchronously fetch drupal content using XMLHttpRequest and friends. My theory is that by doing it at theme-level I can degrade gracefully. I have code that can filter a page by element and id to get the stuff i want to show. However, I have yet to find a way to have XMLHttpRequest.getResponseHeader() return anything other than text/html. I've tried things such as

- calling drupal_set_header on line 1 of my page template (drupal_set_header("Content-Type: application/xhtml+xml; charset=utf-8"); )

Pages

Subscribe with RSS Subscribe to RSS - Theme development