Hey Everyone,
I am trying to display the advanced search a little differently than the drupal core shows it.
There is a function in node.module:
function node_form_alter(&$form, $form_state, $form_id)
which controls this.
I am trying to create a function in my template.php file called
function mytheme_form_alter(&$form, $form_state, $form_id)
But it does nothing. Drupal doesn't recognize it at all. I was under the impression that the hook system worked by creating a function with your theme name, then the core function's name, analogous to what I did above.
Drupal Themes
A hook not working? Am I missing something here?
Drupal ThemesNeed help to use a taxonomy term to occasionally exclude default style of a block
Drupal ThemesI really like the Analytic theme, as it suits almost all of the needs of the site I'm putting together. Given that I'm a relative newbie to writing code, that's a very good thing.
But I would like to tweak it just a little bit. The theme has a couple of regions ("Hot Spots") that are placed above the main content region (Theme sample page). I like this — a lot. Though I expect to use these regions for content that will require the default label style, I also would like the flexibility of placing a couple of ads in theses spots at times, and I'd prefer to not have labels appear atop advertisements.
CSS not showing?
Drupal ThemesGood evening!
What possible reasons could there be for CSS not showing on a theme I'm creating for Drupal 5? I'm extremely new to the whole theming development but gradually getting there. I've successfully created the page.tpl.php, it contains the required PHP code and the basics are shown nicely when i activate it as a theme. Style.css and the required images are also in the same folder as page.tpl.php but still no CSS, not even a background colour. I've cleared the cache and tried a few simple things but to no avail, I can see this been an extremely simple mistake but i enjoy the learning experience!
Just to add, I've been reading the Pro Drupal Development book (theming section), but must have made a mistake along the way. Any help is greatly appreciated.
Theme comment.tpl.php issue
Drupal ThemesI have found that all the themes I've come across have an annoying vulnerability (or at least that's how I see it.) where it allows users to post comments with the script tag thus making a minor annoyance... I host a blog using drupal and some users had caught wind of this "vulnerability" and started abusing it...
A friend of mine eFlare ( http://www.justlikeed.net/ ) had found a fix for the issue though...
Within comment.tpl.php in your theme folder, just replace
<?php print $content ?>
taxonimy theme issue
Drupal ThemesHello,
Can some one explain me how to solve the followinf problem:
I have created some custom themes that i would like to apply to different pages.
But the problem is that when i create a new page and select the required theme it does not apply the first time.
If i edit the page and then apply it it works.
I am using Drupal taxonomy module for this.
Please some one help.
Gaurav
Views list: adding index to field tpl
Drupal ThemesI'm trying to wire together a views list full of node titles and the viewscarousel (jCarousel) start position. By passing a start index to my viewscarousel view I can get my carousel to start from the current node instead of from the beginning each time.
Here's some background:
My view outputs an unordered list grouped by taxonomy term. Within each term is a list of node titles. I've modified the views field output via a tpl file so that I can link the node title to specific sections on my site. Heres some pseudo code/output of this view:
<h3>Taxonomy Term1</h3><ul><li><a href="path/to/someplace/nodetitle_foo"></li><li><a href="path/to/someplace/nodetitle_baz"></li>...etc</ul>
What I'd like to do is append an index after each node title like so:
<li><a href="path/to/someplace/nodetitle_foo/1"></li><li><a href="path/to/someplace/nodetitle_baz/2"></li>...etc
I'll then grab that index then call jcarousel({start:<?php print arg(2); ?>}); at document.ready.
Tabbed menus and dynamic logins
Drupal ThemesHi guys,
I'm new to drupal and I have two questions.
How do you create a two level tabbed menu system ( like in amatomu ). Can anyone direct me to a good article on how to do this?
How do you create a popup login form? In other words, when the user clicks the login button, I need to appear it in a lightbox kind of form over the page rather than going into a separate page. I tried the popup API. But it wasn't convincing enough plus it seemed to take a lot of time to render the overlaying form.
Thanks in advance.
How to make default menu state collapsed?
Drupal ThemesI have turned one of my vocabularies into a dhtml drowdown menu.
On the home page, it is expanded, on some others, it is collapsed.
I'd like for it to be collapsed by defualt on all pages.
I cannot find a way to change those settings.
Thanks.
Accessing drupal API in a jquery loaded php file
Drupal ThemesHi,
I really have troubles to access the drupal API when calling a php file with :
$('#res').load('sites/default/themes/acquia_marina/phpfile.php');
I call the function from a page node.
"phpfile.php" is like:
<?php print(drupal_get_path_alias($_GET['q'])); ?>
quizible.com theme
Drupal ThemesHi,
I'm new to Drupal and I wanna build a site similar to http://quizible.com/.
I couldn't find a theme similar to that inside the website, and it doesn't say which theme was used, nor is there a contact details page.
Does someone know which theme it was based on?
Or did they create their own theme?
Thanks!
Not enough space?
Drupal Themeshttp://wp1130551.wp169.webpack.hosteurope.de/Sites/Tests/test/drupal-6.8...
Look this website...
CSS File (important parts only):
/* Globale Einstellungen */
body {
background-color: #000000;
color: #FFFFFF;
font-family: Arial,"Trebuchet MS",Verdana;
font-size: 90%;
margin: 0;
padding: 0;
}
/* Seiteneinstellungen */
html to drupal theme?
Drupal ThemesHello, I was wondering if there is a way to convert my existing html template to a drupal template. My understanding is that all i need to do is add the css to the appropriate drupal folder and the new theme will be created? Or how does this work? I'm a bit experienced with drupal but not a lot. A Few detailed explanations would be great and ,much appreciated! thnx in advance! Todd H
custom node.tpl.php not recognizing Divs for Zen theme?
Drupal ThemesOk, this is FRUSTRATING!
I have a sub theme based on the Zen theme with a custom node.tpl.php. I am trying to ad a bit of adsense code to the upper left portion of all of my articles but not my teasers and I have had marginal success. For some reason no matter what I do my node.tpl.php file just doesn't seem to want to recognize my div class of "google_adsense" which I want to Float Left and be inserted in the article.
Please, can someone tell me what I am doing wrong? This was working fine in 5.x... this 6.x move is killing me.
the part of my layout.css file which is in the sub theme folder (just to double up I also put this in the layout-fixed.css in the main theme to no avail).
HTML Editors in Theme creation
Drupal ThemesI'm curious what tools folks use to create or edit drupal themes.
Horizontal Scroll module
Drupal ThemesAnyone know of a suitable module for use in D5 for scrolling thumbnails similar to this that uses jquery or other js for druopal?
http://www.flashjuggler.com/files/1025/index.html
Thanks
How to position an image banner in Garland theme?
Drupal ThemesHi,
If someone can help me with this. It has been a week and I am not able to figure out how to position an image banner in the blue menu block in the top of Garland theme. The image that I added seems to overlap the primary links. I want to make the image top cornered and centered vertically. Which is file should I alter the code?
Also is there a way I can add an image to the header block?
Please help!
Maria
print all my form variables in drupal 6?
Drupal ThemesI'm trying to customize some forms, but first I need to see what all the variables are. But I can't figure out how to print them. For some reason that I don't understand, the $form array just doesn't exist on my page, despite there being a node form on my page. I've tried a variety of things, but they all revolve around printing it in page.tpl.php (for the moment). I saw something in the themeing section about overriding $form values and such but it's for 5.x and doesn't seem to be what I'm looking for. Am I missing something here?
Theme tab not dispaly for my new theme
Drupal ThemesI am using tabs module to shown my form in a theme tabs format , it is working fine in garland,but it is not display the tab in purchased theme , tabs are in the correct places but it is invisible , when cursor move on that we can see the tabs
help me to solve the problem
i am using the following code
<?php$form = array(); $form['example1'] = array( '#type' => 'tabset', ); $form['example1']['tab1'] = array( '#type' => 'tabpage', '#title' => t('One'), '#content' => t('<iframe src ="/info.php" width ="700" style="border:0px solid #000000" height="750" ></iframe> '), ); $form['example1']['tab2'] = array( '#type' => 'tabpage', '#title' => t('Two'), '#content' => t('<iframe src ="?q=node/3" border ="0" width ="700" height="750" ></iframe>'), ); $form['example1']['tab3'] = array( '#type' => 'tabpage', '#title' => t('Three'), '#content' => t('<iframe height="600" width="600" style="border:0" src="http://drupal.org/taxonomy/term/3/0/Gic/a.php"> </iframe>'), ); return tabs_render($form);?>