This forum is for assistance with theme development.

uploaded theme not showing in admin

anyone facing the same problem that can help me?

i have uploaded the theme under themes/newthemename but somehow it's not showing at the admin.

i have uploaded 5 new themes but only 1 showing. i have changed the CHMOD but still, it doesn't show.

appreciate help! thanks.

Overriding Comment Form Theme, Final presentation Steps...

Hi - I was able to override the _comment_form theme, and return all the form elements back to my new comment_form.tpl.php file.

So the last step... all I really want to do is format the labels, put a curved box around the comments form and use an image for the submit buttons (was a bit more than I could accomplish with just modifying the box.tpl theme). Now that I can see them... How do I go about rendering each of these form elements from my Theme?

Doing a print_r in my page renders the following giant nested array:

Array ( [#theme] => comment_form [#description] => [#submit] => Array ( [comment_form_submit] => Array ( [0] => comment_form [1] => Array ( [author] => gbear [subject] => [comment] => [format] => 1 [cid] => [pid] => [nid] => 67 [uid] => [preview] => Preview comment [form_token] => d26a594ecb1d4b64668be509074b282b [form_id] => comment_form ) ) ) [#validate] => Array ( [comment_form_validate] => Array ( ) ) [#token] => comment67 [#id] => comment_form [#type] => markup [_author] => Array ( [#type] => item [#title] => Your name [#value] => gbear [#tree] => [#parents] => Array ( [0] => _author ) [#weight] => 0 [#description] => [#attributes] => Array ( ) [#required] => ) [#parents] => Array ( ) [#tree] => [#required] => [#attributes] => Array ( ) [#method] => post [#action] => /comment/reply/67 [#redirect] => node/67 [author] => Array ( [#type] => value

Problems with creating template for home page

I am using the PHPTemplate Theme Engine.

On my general settings, I have "index.html" set to default front page.

In my page.tmp.php file, I have the following logic set:

Skin/Theme a node - or is it a block?

Hey all,

I'm a Movable Type guy trying his best not to chuck his computer out the window here. Doing custom "outside-the-box" themes in Drupal is giving me a complete headache! Please bear with me. I've thoroughly searched the forums and documentation, but just can't find an answer that makes sense to me.

I have a standard layout on a page. Various news titles/teasers on the left, and news "bits" on the right. I have my taxonomy set up, so I can use this php snippet to pull out the article categories I want to show:

http://drupal.org/node/31537

So for the news bits on the right, I have this:

$taxo_id_bits = "10"; /* comma seperated list */
$list_length_bits = 5;
$sql_bits = "SELECT * FROM {node} INNER JOIN {term_node} ON {node}.nid = {term_node}.nid WHERE {term_node}.tid in ($taxo_id_bits) ORDER BY {node}.created DESC LIMIT $list_length_bits";
$result_bits = db_query($sql_bits);
while ($anode_bits = db_fetch_object($result_bits)) {
$output_bits .= theme('node', $anode_bits, $teaser = FALSE, $page = FALSE);
}
print $output_bits;

It works, but I want to give them a special theme. I know how to override the node theme, but then my whole page looks like crap except for the news-bits. I am familiar with overrides using template.php - but don't know how to do it here. I have a working "node template" that I'd like to apply just to this news column, and seeing that the news column just appears on the home page, how can I do that?

How Do I Change OG's Group Page Appearance?

I'm trying to figure out how to change the appearance of the "groups" page that the Organic Groups module (OG) creates.

For now, I'd like to be able to show, using the river-of-news, only group-targeted book pages that are "sticky". Or even just group-targeted nodes of any sort that are "sticky". From looking at the OG code and documentation, it seems that I need to redefine this function in my phptemplate-based theme:

// if you want a totally different group home page, you may redefine this function in your theme
function theme_og_view(&$node, $teaser = FALSE, $page = FALSE) 

It looks as though I could use the call to this function to only return book pages:

// str_types is a list of types which should be selected. if not provided, we return all og nodes
// filtering for a given gid is done by passign a a special $arg to db_rewrite_sql()
function og_get_home_nodes_sql($str_types = NULL)

So, assuming my theme is named "column", my understanding is that I define a function named column_og_view() in my theme's template.php file? Or, do I need to name it: phptemplate_og_view() ? In this function, I can reproduce the code from theme_og_view() as a start, but do I need to use an include() statement or something else to access the og_get_home_nodes_sql() function or other functions in the OG module?

Problem downloading PHPTemplate

When I try to download PHPTemplate from what I assume is that theme engine's main page (http://drupal.org/project/phptemplate), the download link is actually a link to drupal.org.

So I went back to the engine's main page and clicked "View Older Releases." Downloaded PHPTemplate 4.6.0 from there. When I read the readme.txt, it says it's PHPTemplate 4.5.0.

Pages

Subscribe with RSS Subscribe to RSS - Theme development