Custom File Filter Upload
Hi : I am developing custom upload module. I want to allow users to upload xls and xslx files only. How can I restrict this using file_save_upload function. Thank you ...
Hi : I am developing custom upload module. I want to allow users to upload xls and xslx files only. How can I restrict this using file_save_upload function. Thank you ...
i am having an issue where hook_preprocess_page 's changes to &$variables is not being rendered, even though it is the last item under $theme_registry['page']['preprocess functions']. logging contents of $variables to a file show the contents changed, but contents appear unchanged on the site. flushed all cache on drupal, flushed all bro...
Is there a good way to export a set of nodes from one Drupal installation, including node revision history, and then to merge these into another Drupal installation, including revision history? I'm familiar with modules such as Node Export and Backup and Migrate... But Node Export doesn't preserve revision history, and Backup and Migra...
hi! i'm using WYSIWYG module to implement FCKeditor in drupal. If i want to add an image(upload from the user's system and not an url) in the content, how'd i do? i've Image, ImageCache modules installed. or do i need another module for this to be done? thanks. ...
I 'm using zen as the basic theme to make a new theme for my site. The problem is i want background images for header and footer that are not getting displayed until i specify a height and width for them.Moreover, the height and width specified in the CSS inside the #header and #footer have to match the exact dimension of the original im...
A client request: Create a block that will always display the titles of content items that are the result of a site-search for a specific predetermined term, such as "health". So in that particular case, the block will generate and display a listing of nodes that contain the word "health" within either the title or body. Ideally, the ...
I'm working in Drupal with jQuery. How do I insert a php $variable into a tag. $(document).ready(function(){ $("#comment-delete-<?php print $variable ?>").click(function(){ $("div.comment-<?php print $variable ?> span.body").replaceWith("new text"); }); }) or $(document).ready(function(){ $("#comment-delete-". $va...
Hi, I am a little stuck and need help. So it goes like this. I have a site where the count of comments on a particular article comes from comment module. the HTML tag on it is displayed which looks something this (<em>1</em>). I have recently upgraded my site 5 to 6. Everything else works fine apart from this. Please Help. Thanks!!! ...
Hi experts,, I have opened the database of drupal 7 and looked up in the tables node, node_revisions and node types and couldn't find where drupal stores the actual body of the node (content). any body have a clue? ...
I am new to Drupal and I am figuring out a set of steps for developing a Web Application. I planned: 1) Develop the application without any template or graphic effect. Just create your nodes, your views, integrate some plugins and so on. Goal: to have a website up and running from a functional point of view 2) Customize plugins: if som...
My file directories have not changed, but every time I move from local host to production, or just change the filename of a test site online, I loose the images. Example: I've mainly been using an online location for building and testing Drupal sites, but recently I forgot to stop the robots from indexing a test site. So as a quick fix...
In Drupal's page.tpl.php <?php foreach($node->og_groups as $test) {dpm($test);} ?> Gives me But when I do <?php foreach($node->og_groups as $test) {print($test);} ?> The value doesn't show up. this is kinda frustating.. Any help is appreciated. Cheers! ...
I'm struggling with some SQL/php syntax issues here. I'm trying to write two functions. The first will query a database and return an array of numbers that match specific criteria. The second will query a database and use the values from the first function to help select the data I'm looking for. Here's what I have of the first func...
Hi all, I have a Panel page, which I have given a path of: books/travel-books/%city/%country/%page. The help text underneath the field says "The URL path to get to this page. You may create named placeholders for variable parts of the path by using %name for required elements and !name for optional elements. For example: "node/%node/foo...
Three associates and I want to integrate our individual Drupal websites so that a user can move fairly seamlessly between them. We're all new at Drupal, so our planned approach avoids "doing it the right way" by combining modules and database tables. Rather, we plan on simply having each site's menu system include links to the other sit...
Hi, I am trying to include a Drupal form element in a table I am generating with theme_table/theme('table',..). Specifically, I am trying to include a submit button with an AHAH attached. Currently, I am just including as one cell in each row a call to drupal_render to render my dynamically generated AHAH element. The button renders ...
Is there an easily managed way we can assign a specific taxonomy term to a specific instance of a view? We're using the callouts module for Drupal, and it works great for nodes/pages we have in our site. But we have a handful of Views that are displaying as a page, but we cannot assign a specific taxonomy term to a specific instance of ...
I want to have something like node-type-form.tpl.php in my theme to control the layout of a few of my different content type node forms. I know that I should be able to put something in my template.php to accomplish this. ...
I have this fields in a view: Node: Nid Content: text1 Plain text Node: Title Node: Teaser (text1 is a CCK textfield). I want to output "Content: text1" as a title in link "Node: Title". For "Node: Title" I checked "Output this field as a link" and in "Alt text:" I have input pattern [field_text1_value]. In admin mode title...
I am using the Ad module for Drupal 6 (http://drupal.org/project/ad). I am wondering if I can make the ad changes automatically every 60 seconds even if the user doesn't refresh the page. ...