I would like to additional instructions to a custom Drupal form, similar to hook_help, but at the bottom of the form. Is there a function or hook available for this?
I am working on a Drupal site with a few friends. Obviously we can Version control the code... but what do we do to keep each others databases in check?
I have managed to get all the theming into files (contemplate etc), but ideally my views settings, menu settings would be in line also... (Not worried about Content either way as we're just building the framework)
Any suggestions?
Hi,
i jus friend reference function so i pass the user id through url like below
www.example.com?fid=22
i need to set this as a session or cookie which access to all modules in drupal 6.
if i set session it return for tht particular module . set cookie is not workin at all.
$user-new_property works only on particular page where set if i move to another page no new_property in $user variable object list .
Thanxs in advance,
Gobi
Hi Guys,
Here is my problem. I have a site in drupal and some menu structure. When the URL address is application/android/all android menu item is highlighted. However, when the URL address is application/android/16 android menu item is not highlighted.
My question is how to make everything that starts with /application/android/ to have highlighted android menu item?
Cheers,
Mladjo
This is a really weird question and I apologize:
I've been asked if it's possible not to import our blog from Wordpress to Drupal but just keep it in Wordpress as an archive and re-direct our users say from hostname/blog/... to hostname/wordpress/... when a URL matches the Wordpress URL pattern.
I've never heard of anyone trying this and I'm wondering about pitfalls and whether or not it's even possible.
Thanks!
D
I have created one custom module in drupal.In that module i have a form for adding some products details.For adding image i have downloaded and enabled the image upload module.
But my problem is how i can integrate the file upload module in my custom form.
Thanks in advance.
What is the simplest way to get started with debugging and hit a specific line in a Drupal install?
Generally?
With Eclipse? (how difficult?)
On Windows, knowing and having access to Visual Studio (How Difficult with Visual Studio?)
(No Pay: Free or trial)
What is the best method for including a CSS or Javascript file for a specific node in Drupal 6.
I want to create a page on my site that has a little javascript application running, so the CSS and javascript is specific to that page and would not want to be included in other page loads at all.
hi,
is there any plugin for Drupal, replacing tags with small icons (see the picture below, the icons are actually small circles, and the different colors are automatically generated.
I need to replace the tags with the circles, for each node, and the starting view.
Furthermore, when the mouse move over the tags, the tag title should appear as pop-up
thanks
Does anyone know off hand what order Drupal executes it's _cron hooks? It is important for a certain custom module I am developing and can't seem to find any documentation on it on the web. Maybe I'm searching for the wrong thing!
Any help?
Jeff
I installed drupal-6.16.
I applied the patch from the post http://drupal.org/node/222926#comment-930745.
It works correctly in simple cases.
But for following code for counter is handled incorrectly:
<br><br>
Text
<br><br>
<!-- counter.1Gb.ua -->
<script language="javascript" type="text/javascript">
cgb_js="1.0"; cgb_r=""+Math.random()+"&r="+
escape(document.referrer)+"&pg="+
escape(window.location.href);
document.cookie="rqbct=1; path=/"; cgb_r+="&c="+
(document.cookie?"Y":"N");
</script><script language="javascript1.1" type="text/javascript">
cgb_js="1.1";cgb_r+="&j="+
(navigator.javaEnabled()?"Y":"N")</script>
<script language="javascript1.2" type="text/javascript">
cgb_js="1.2"; cgb_r+="&wh="+screen.width+
'x'+screen.height+"&px="+
(((navigator.appName.substring(0,3)=="Mic"))?
screen.colorDepth:screen.pixelDepth)</script>
<script language="javascript1.3" type="text/javascript">
cgb_js="1.3"</script>
<script language="javascript"
type="text/javascript">cgb_r+="&js="+cgb_js;
document.write("<a href='http://www.1Gb.ua?cnt=1416'>"+
"<img src='http://counter.1Gb.ua/cnt.aspx?"+
"u=1416&"+cgb_r+
"&' border=0 width=88 height=31 "+
"alt='1Gb.ua counter'><\/a>")</script>
<noscript><a href='http://www.1Gb.ua?cnt=1416'>
<img src="http://counter.1Gb.ua/cnt.aspx?u=1416"
border=0 width="88" height="31" alt="1Gb.ua counter"></a>
</noscript>
<!-- /counter.1Gb.ua -->
It modifies the string
"alt='1Gb.ua counter' /><\/a>")</a></script>
to
"alt='1Gb.ua counter' /><\/a>")</a></script>
Does anybody have this code working?
If so how this can be fixed?
Thanks a lot in advance!
im new on drupal and want to make a menu for a restaurant showing all the dishes with photos, prices and descriptions in categories (japanese food, chinese food etc).
i wonder if there are some great tutorials or modules for this?
i cant find any on the web.
thanks you
How can I order the nodes alphabetically in my Drupal back-end ?
I cannot sort the columns by clicking on the headers unfortunately. Should I hack the code or install any plugin ?
This is Drupal 6.x and am having a nightmare of a time to modify a simple drupal form. This is a module file.
function modulename_menu() {
$items = array();
$items['school/registration'] = array(
'title' = 'Registration Form',
'page callback' ='drupal_get_form',
'type' = MENU_CALLBACK
);
return $items;
}//end of the function
function modulename_school_form_alter(&$form, $form_state, $form_id)
{
// dsm($form_id);
if ($form_id == 'user_registration_form')
{
// modify the "#submit" form property by prepending another submit handler arra
$form['#submit'] = array_merge(
array('_modulename_registration_submit' = array()),
$form['#submit']
);
}
}
In a Drupal 6 module, the hook_form function is used to generate a create/edit form. How do I create different forms for create and edit instead of using the same form for both?
I've been reading about Drupal theming and preprocess functions and noticed they listed engineName_engine_preprocess & engineName_engine_preprocess_hook in the order of preprocess functions but I'm not entirely sure what the engine layer is? I understand about the core, includes, modules and themes.
Many thanks
I am trying to attach an 8M .wav file to a "story" in drupal. I can attach similar smaller files, but when i try this one and larger sizes i get in HTTP Error 0 message after a minute or to. I have checked all my max upload, Max Mem sizes they are set at well over 8M at 64M and 256M. Anyone else have this issue uploading files ever?
I have a node in Drupal with a few comments. Is there an easyish way to get the CID of every comment within the node? Also, is there a way to sort them by various parameters, chronology, karma of the comment etc. Thank you.
Hi Guys,
I'm trying to theme a modules output.
In particular i'm working on http://drupal.org/project/service_links
Any idea how that works?
Thanks in advance!
I have a drupal site where all the views and times associated with nodes are off by 1-hour.
-I checked the server time, and it is correct
-I checked that my admin user (uid 1) had a zero in the timezone offset
-Checked all CCK date fields in question to make sure there was no timezone handling
Yet still when the admin user views nodes, there is a 1-hour offset.
Is there some sort of system variable - or something else I haven't checked....?
This is a follow up to my previous question: http://stackoverflow.com/questions/1284476/where-does-drupal-store-node-body-content
Now, I tried adding values into node and node-revision, but still the node data is not showing. So, obviously more data is stored somewhere else. So basically, I want to know, which tables are affected when you create a new node?
I am working in drupal 6 And I want that in particaular menu it show only 3 item whenever new item is added earliest must be disable.And it show only latest 3 item like in news only it show only latest news and last one is removed.note: It does not apply on all menu.
please help me out.
hi,
can I order alphabetically the tags in my edit content pages ?
See screenshot here:
http://dl.dropbox.com/u/72686/tagsOrder.png
Currently the order is given by the Taxonomy Manager module (I installed in my Drupal).
I would like to know if I should use jQuery to order the tags in my back-end pages.
thanks
hi,
Drupal cannot create the "files" folder. I tried to upload a php script with mkdir("files",774) but I get a permissions error, so basically any php script is not able to create a folder on the server...
What do you suggest ? If I create the folder manually from ftp client and I assign 777 permission everything works perfectly, but it is not safe solution.