Drupal ThemesUser login |
DrupalWeird AHAH behaviourI'm building a multistep form with ahah, on the first step, when ahah is called from a button the ahah is working and the form progress to step two, on the step two when the final button is clicked then the ahah is working and reverting back to step one. the problem is after the new step one is build, the ahah button to get to new step two is broken and doing a full page refresh, but then when the page refreshed and come to step two, ahah is working again when we click the button to call another new step one. the form code :
$form['album'] = array( if (empty($form_state['storage']['step'])) { $form['album']['album_type'] = array( Categories: Drupal
Can someone tell me the best modules for a directory of vendors who pay a yearly charge for a display section?Before coming to Drupal... I need each Participant vendor to have right of access only to their own pre-formatted "division" so they can upload, say, a 300x300 jpg on the left and some max amount of intro text and / or logo on the right, plus a button linking to their own entire page on the same website where they have tools to set up display with more freedom as they wish, preferably drag and drop for their jpgs and auto-formatting text boxes easy for non-techies. So each vendor has his own css predefined-look table to add text and photo data to on a front page to keep a fairly uniform site appearance. Each new member's created table/division/whateverdrupalcallsit gets added to the existing scrolling "list" of others, auto-inserted alphabetically by the member-vendor's company name. This is for a website introducing independent perfumers' fragrance lines, so I need a deep-toned zen-like high-fashion look, not bloggish. Categories: Drupal
LimaBike.OrgHere's my new site http://www.limabike.org While it dosen't deviate from the original template that much, it does show how someone with limited web development experience can get a site up and running with Drupal Categories: Drupal
file_save() & hook_file_insert(): Intercept before file is saved to disk?Hi If I read the File API correctly, when a file_save() operation is requested, then a file is persisted to disk and then it file_save()'s associated hook_file_insert() & hook_file_update() implementations are called. Is this correct? If this is so, then can is possible to prevent file_save() operation writing to disk? Thanks Jeff in Seattle Categories: Drupal
page title for every node??Is there any module for page title for every node??? Thanks Categories: Drupal
Strange behaviour of node_saveSomething quite weird at node_save...(my own code will be for sure). I have a module which, amonbg others, means to manipulate its own nodes dinamically. Let's see next chunk function _ugmgr_add_camnode($camera, $create = FALSE) { The very fisrt time I use this function, my new node body it is created as expected but, when I recall it with update intentions ($create = FALSE), the UPDATE node_revisions SET nid = 25, uid = 1, title = 'Whatever' body = 'BODY will be=first desc', teaser = '', timestamp = 1276271512, format = 0 WHERE vid = 0 And my node and its unique revision both have nid = vid = 25; Why does the code issue a VID=0 ? Categories: Drupal
Xperts, please explain arrays inside arraysI've been reading alot on this site about module development, trying to teach myself how to develop modules (duh), and it is very confusing to me, it feels like topics either jump all over the place, or I'm missing some knowledge or skill that everyone else has, and I don't :( I've done the tutorial for "On This Day" example module, which is very simple. Now I'm trying to do some more advanced things, but I'm getting hung up on creating a default theme for a module. I'm having a problem understanding why data stored as arrays inside other arrays. This is probably a PHP knowledge question, not exactly a drupal question, but I am asking for help so I can understand Drupal better. in some example code from the Book Module: /** it first creates an array with the key 'book_navigation' and sets it's value as an array, and that array has another array inside of it ! why does it do this? Categories: Drupal
BlogSpot-like Blog archive blockHello all, I am looking for a Blogspot-like blog archive block for a new blog I am developing. I am aware of the archive view included with Views2, but that only gets me halfway there. Below is basically what I'm looking for:
Hopefully you get the idea. The archive view creates the archive links, but it does not create a collapsible hierarchy, nor put the posts in there. My personal blog (which is sorely outdated!) on Blogspot is here: http://crossward.blogspot.com and I am basically trying to mimic the functionality of the Blog Archive "block" on the right side. Any idears? Thanks! Categories: Drupal
How to rebuild menu cache in drupal6?I am writing a drupal 6, custom module, the page that I am calling in hook_menu is giving me a page not found error or it is displaying empty page without any content. Categories: Drupal
hook_file_download when files are not stored in {files}Drupals current file upload system is insufficient for what I need. Rather that writing a module that extends it (the current file upload system will still be utilized to some degree), I found it easier to write a module that creates an entirely new system that utilizes two new tables and allows for a versioning system and the ability to organize the files within a certain directory (www.example.com/documents for this example). Currently the system uploads, moves, deletes files and creates,moves,renames and deletes directories from within this structure. I have hit a problem with file downloads at the moment. hook_file_download seems to be what I am looking for, but I don't really understand the documentation or how it would work with files NOT stored in {files}. If someone could explain how hook_file_download should be implemented, or at least point me in the direction of a module that correctly implements it it would be most appreciated. Categories: Drupal
Adding an edit link (hover preferably) to profile picturesI am using imagecache profiles, author pane and panels on my site. Users are having a difficult time figuring out how to update their profile pictures. In a way to make it easier for them, I was hoping to add a link to the profile picture (on the "my account" page) that appears when they hover over the picture that sends them to the upload picture field on the edit profile page. Any ideas on how to do this? I'm not much of a programmer so I was hoping the community could help me out. I've searched all over for some way to do this but haven't had any luck. Thanks. Categories: Drupal
Simple form api module question, HELPI have build simple module form using form api to upload a txt document. here my code
function modulku_form() { function myform_submit($form, &$form_state) { Categories: Drupal
Simpletest: Custom cleanupI'm writing a test of a function that imports data about users from a .csv file. As usernames are randomly generated for testing, I'm dynamically writing this file based on the generated usernames before uploading it. Naturally, I'm removing it before the test is finished running, but if the test crashes for some reason, the file will be left. Is there a way to specify a custom cleanup routine when someone presses "Clean environment" on the testing page that will delete this .csv file, or something else I can do to cleanly handle this situation? Edit: I realized the best solution is probably to use php's "tempnam()" function to generate a filename in the /tmp folder to use. Categories: Drupal
Views - the best part of DrupalI think working on Drupal 'View' is the most best part. Categories: Drupal
How update profile field with ubercart actions?Hello. I made event registration and i use UC Node Checkout and ubercart to make possible registration fee. And i need to change value one of user profile field (profile_attendance value from 0 to 1) after customer make payment for special product. But i absolutelly new to php code for drupal. Can you help please to write this part of code, please? Thanks for you help. Categories: Drupal
Using 2 seperate date-filters in views doesn't give the right output.I've post this topic yeserday as a bug, but I don't know this is right. Because of my doubt i post it also in this forum. But when I search with this view, I see the wrong output, I see: everything in archive after 31-12-2008 even posted after 01-01-2008 and everything posted before 01-01-2010. I cannot use the filter with Date(node) and then select the 2 date-fields because they don't have the same dates Categories: Drupal
Drupal 7 Module Dev - Blocks don't show upHeyho, I'm starting to write a module for Drupal 7 according to the HOWTO here: http://drupal.org/node/206753, which is for drupal 6 though. I created the .info and the .module file exactly as explained in the HOWTO, except that added The module shows up in admin/modules and I can activate it. But then on admin/structure/block the block created from the module is not there? Also it is not shown in the DB in table blocks, where, I guess, it shoul go? Any help? .info .module (exactly as in the HOWTO) /** '. t("Displays links to nodes created on this date") .' Categories: Drupal
I need to strip out header and left navigation when calling a popup from a functionI created a module and in that module there is a function that opens up some fieldset in a new window. I want to strip the header and left navigtion that is being shown along with the body in the popup. How can i do this? Categories: Drupal
Multiple forms on page, submit with ajax?I'm trying to build a module wich allows for a page and all it's translations to show right next to eachother on a form for easy translating(instead of going page by page). However, I was thinking, what of instead of building my own forms, I just load the node edit/save forms next to eachother. This would require less code, however each form would have it's own submit function, wich takes you off the page and brings you back to wherever you came from.(Kind of like the Easy translator module, only with pages-translations being seperate nodes in this case.) Is it possible to execute the submit function through an ajax request? How much trouble will I be in since the form for each node uses the same kind of id's and such? Thoughts on this? Categories: Drupal
How can I upload images with my article at top ?I have seen so many sites, they upload their images with their articles at top. But, whenever I do this with my blog it also adds one more same image with different url, why? Categories: Drupal
|
Popular contentDrupal Showcasedrupal security feed |