Hi friends,
I'm a drupal newbie...
When I define css and js at filename.info file, it takes effects for all pages. I have some particular css-js files for some particular pages, and I don't wanna slow site down by importing all these files for the pages actually no need these files.
How can I define js and css for particular pages?
A...
I'm needing to allow users of a site to add structured comments to nodes. Are there any stable modules out there for Drupal 6 that will enable me to do this? I'm thinking along the lines of being able to add CCK-like fields to the comment type. In an ideal situation the administrator would be able to alter/change the questions being aske...
I want to assign a specific menu in left sidebar block, based on the node type of the page currently being displayed. I think it should look something like this, but I am stuck.
function my_module_nodeapi(&$node, $op) {
switch ($op) {
case 'view':
if ($node->type == "large_reptiles")
{
//menu_set_active_menu_...
Hi, I've taken over an existing Drupal installation and have been asked to remove a single page from the site search results. I know about the lullabot tutorial through this question: http://stackoverflow.com/questions/1748837/hide-drupal-nodes-from-search, but that talks about excluding a class of content when I really just want to excl...
I want to override the theming of only one (custom) menu. I can do this with phptemplate_menu_tree() but - of course - it overrides the rendering of all menus.
I've tried returning FALSE (an obvious technique IMO) if the menu is not the specific one I want to override - but this doesn't cause the overridden theme function to be called.
...
Currently I have the homepage of a t-shirt site list a 4 column grid, each cell containing all the shirts on the website (using views). The client would like every few rows to display an ad (perhaps a random view/block item). Is this possible? I'm sure I will end up needing to set the grid display to something else but how could I progra...
Hi friends,
I'm a drupal newbie...
I created my blog post listing page with View. Everything is great...
but the post detail page is not like as I need. So I wanted to create that page as well with View Module, so I can control all content, etc... but how can I create that page? url changes according to post title. somehow I need to ...
I am currently exporting Drupal data to an external source (XML) programmatically. However, I want the data to run through the site's default Input Format (the filter that runs before user content is displayed on the website) before being written to file.
How do I programmatically apply a Drupal input filter? Is there a specific functio...
Hi,
First thing I would say is that I am a Drupal newbie. So, I would appreciate your answer in a detailed step by step process.
I am using Drupal 6 and location module. There are two main content types - user profile (using content profile module) and event content type. Both have one field for location.
Now, lets suppose in his pro...
After a successful Drupal install, I was trying to follow the security recommendations and reverted the settings.php file to 444 permissions (read, read, read). Then, all of a sudden, right after doing that, Drupal does not recognize the installation process was completed. It went back to the install screen. Worst of all. I did chmod ba...
I've got a service that interacts with plugins for different CMSs (Wordpress, Drupal, Blogger, Joomla, etc) I need my service to be able to publish a post to these various CMSs.
I could either create a URL endpoint in each of the plugins and have my service call that, then have the plugins create the post using internal CMS APIs...or......
I've moved from constant contact to Drupal Simplenews/Mimemail/SMTP. Previously the open rate was around 50% for constant contact, but now it's 4-5% for the same list via the mentioned setup. Mail is getting out from the server, but it's having an issue anyway.
Here's the setup:
-The e-mail list consists of approximately 80,000 address...
Hi friends,
I'm a newbie drupal...
I'm working on my first Drupal project. I need to make an events page for some conferences. I create event content type, and creating fields like date-place-title-etc with CCK. There are also speakers, can be up to 20. each speaker has photo-namesurname-position. same speaker can be added to more than...
With a single click this simple script will do a multi-logout of:
Moodle
Elgg
2 MyBB's and
(not) Drupal.
<?php
setcookie( 'Elgg', '', -3600, '/', '.domain.com', false, false);
setcookie( 'http_auth_ext_complete', '1', -3600, '/d/', '.domain.com', false, false);
// setcookie( 'http_auth_ext_complete', '1', -3600, '/d/', 'domain.c...
Hi friends,
I'm a drupal newbie...
I have different type of contents like News, Events, etc. and their content is different. News detail page has title-content text-date. but Events detail page has title-date-content text-location-speaker-etc. So I need different layout page for these different types. So, I enabled Drupal Themer to get...
Views slideshow for Dupal is amazing … there are no other words for it. I have used it on a few projects with little to no issues at all. However, the current project that I am working on isn't going as smoothly.
When the 'View style' is set to unformatted the preview returns the right amount of nodes but when slideshow is selected the ...
Hi guys,
I'm using imagecache_create_path() and getimagesize() to get the path of a imagecache-generated image and its dimensions. However, if it's the first time we access the page that image doesn't exist yet and imagecache_create_path doesn't generate it either.
Here's the code:
// we get the image path from a preset (always return...
Hi friends,
I'm a drupal newbie...
<?php print $node->field_date[0]['view']; ?>
I can get the custom created CCK fields' value and display in tpl.php files as above... that's fine.
my question is how can I get the Node reference fields' in-fields? for example, I have an event content type, and I have defined Node Reference for Locat...
I'm a little new to drupal but have been using things like devel module and theme developer to speed up the learning process.
My question, is it possible to theme an entire views BLOCK from a single views tpl.php page OR even a preprocess?
When I'm grabbing the $view object I can see results $node->result, it has all of the results, bu...
Guys and Gals,
Im getting this error
Internal zval's can't be arrays, objects or resources in Unknown on line 0
on a site that was built in drupal, it appears to be crashing httpd.exe
Faulting application httpd.exe, version 2.2.14.0, time stamp 0x4aeb9704, faulting module php5ts.dll, version 5.3.1.0, time stamp 0x4b06c41d, exception...