There is mixed documentation that I am seeing and thus am confused.
db_query(
'UPDATE {db} SET principlename="%s", schoolname="%s", address1="%s", address2="%s", city="%s",
computerserialno="%s", state="%s", zipcode="%s", terminalid="%s", admin_first_name="%s", admin_last_name="%s",
admin_email="%s", admin_phone="%s" WHERE userid=...
The submit handler gets the same form values no matter what I put in the form. Why???????
function edit_schoolinfo_form() {
global $user;
$result = db_query("SELECT * FROM {db} where userid=%d", $user->uid);
$sas_school_info = db_fetch_array($result);
$form = array();
$form['school'] = array('#type' => 'fieldset', '#...
I am initializing a number of items via hook_menu (Drupal 6)
...
$items['webtv/block/%/playlist/edit/%'] = array(
...
'page arguments' => array('webtv_playlist_form', 2, 5),
...
);
$items['webtv/block/%/playlist/edit/%/filter/new'] = array(
...
'page arguments' => array('webtv_playlist_param_form', 2, 5),
...
);
$items['w...
hi i'm using drupal 6. In my user page i want to show latest activities related to user interest. interest means terms that user participated (forum topics, articles, polls..). Can any one know the best way to do it.
For ex : stackoverflow shows questions related user participated tags.
...
I'm trying to understand the difference between hook_node_type and hook_nodeapi
I've tried to use hook_node_type with the story node and a simple dsm but got nothing.
function mymod_node_story($op, $info){
dsm($info);
}
...
Hello,
I'm using Jquery for some draggable divs in Drupal, and it all works great. I just need to be able to close the div / box when it's not needed anymore. Here's my code:
<?php
drupal_add_js('
$(document).ready(function() {
$(".cc-drag").draggable({ stack: ".cc-drag", axis: "x" });
});
$(".cc_close").click(function () {
...
When accessing a Microsoft SQL Database from PHP using PDO_ODBC with the following code, I have an encoding issue. When outputed the text from the DB is garbled.
$dsn = "odbc:DRIVER={SQL Server};SERVER=$hostname;DATABASE=$database;charset=UTF-8";
$pdo = new PDO($dsn,$username,$password);
$sql = "SELECT text FROM atable";
$result = $PDO-...
I am creating a drupal cck field that allows you to create an audio recording and then display that recording immediately. However, I'm having difficulty storing the name of the uploaded file into the $element array, specifically in the #item subarray. How would one go about saving information in that array?
...
I am having a node reference.How can i get its excerpt content?
For getting title or body we use:-
print $entry->title;
print $entry->body;
How i can get the excerpt of that node.(i am using excerpt module)
...
Extract of (simplified, edited) wsdl created by Drupal, as follows:
...
I am having an issue with three older Drupal 6 sites that I can't seem to fix.
Whenever an admin uploads or edits a file, they get file permissions error. I tried setting the files folder to 777 -Rf. The problem seems to stem from the fact that files are getting created as apache instead of the virtualhost user (we use VirtualMin).
Af...
I am trying to use views to make pages that will show posts by users according to their username in the url.
Basically, the following url should display all posts by someuser: http://drupalsite/posts/someuser
I have been trying for a few hours now but I can't find a solution. Can anybody point me in the right direction?
...
I am looking to use an open source CMS/blog site like WordPress or Drupal. I need it to work with the ASP.NET Membership I already have running my current website and community site.
I am assuming I need to muck with (hand write) some cookies to pass back and forth. So how would/have you done it? I am looking for creative ideas on how ...
I want to allow the user to create 10 content nodes on a single page instead of clicking on "add a new node each" time. This is just to save the users time when he/she wants to create 80 nodes at one time.
Is there any such module which supports this functionality or will I need to write a module for my own?
Nitin
...
I have been running a WP site for a little over 6 months now and I'm beginning to run into WP limitations on post styles (yes, I know about WP3's post types).
I would like to completely change the site over to Drupal, but I'm worried about the Search Engine effects.
For instance: We have finally just put on many pages images on Google ...
Hello,
I have hired a programmer overseas to develop a Drupal website for me and he has done a very good job (the site is installed at his server). I payed him and he sent me the Drupal files and the database .sql file.
Here is what I have done so far:
1- I have created a database on my server named something different from the databa...
I have about pulled out my hair on this one! I am trying to get Colorbox to display the borders properly in IE7 (IE6 too, but I'll take IE7, at the least!).
You can see what I am seeing here. Click on a picture in the gallery or on the login link. Either way, colorbox is supposed to be appearing correctly. It works fine in FF, but the...
List -> l_user I have a List node that has a user-reference field (l_user).
Story -> s-user I then have Story nodes that also have a user-reference field (s_user).
There is no direct connection between List and Story.
I want to add a view to List that lists all the stories that reference the same user that list references. Basically ...
For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit handler as
$additional_args = array();
$form['#submit'][] = 'my_submit_handler'
I expect to submit handler as
function my_submit_handler($form, &$form_state, $additional_args){
...
I am using fancybox module for image display in drupal 6. and while changing the setting i got this error.
Fancybox requires jQuery 1.3+, found 1.2.6
and they are asking for packed version. and from Jquery v-1.3 there is no packed version available. Can anybody tell me how to solve it
...