Nicolas Tostin | 7 Oct 18:14

[views] build a list of users associated with a node (cck userreference)

Hi everybody,
I'm evaluating views 2 and the option to build views of users (it's
important to stay with this setting for the last part).
I couldn't find any way to retrieve the users referenced in a node (thanks
to CCK userreference module), there's no relationship available for "user
view" so I don't know how to restrics my users.

Here is the example I'd like to create.
- I build a "classroom" content which reference a teacher and many students.
- the teacher will create an "exam" content which give a result (A, B, C...)
to a student (user reference field: field_exam_student)
I'd like to restrict the field_exam_student to only student which are in the
same "classroom" as the teacher (to prevent the teacher capturing exam
result for other students).

Doing this in SQL in fairly trivial, but userreference doesn't have a "php
code" field for allowed values, so I'm stuck with using views to restrict my
field (user view) and haven't been able to make it.
Is there a way to create such a view ? Do I have to write a custom module to
make my field_exam_student available in a relationship ?

Thanks a lot for your answers. I hope I was clear enough.
Regards

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Vishakha Tambe | 7 Oct 13:07

Flash Header

Hello people,
    I want to add flash images/contents to my site but i'm not getting the proper module.

   I've installed flash_gallery, flash node, image, image_gallery, swf tools, but they are giving pagewise flash.
   I want to add flash to my header or just below the header horizontally.

  So, plz kindly suggest me the write module.

Regards,
     Vishakha
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Vishakha Tambe | 7 Oct 11:08

SiteMap module

Hello All,
   I want to create a sitemap page. I tried xmlsitemap module. But it is not what i want.

 I want to display the sitemap page in my site in the CONTENT section.

 I've tried footermap module, bt it displays the sitemap at the footer obviously.

GoogleSitemap module is also not as per my needs.

I want sitepage as follows : 
     
                                                     Header
                                                 Primary Links


Main Menu                             Site Map Page(Content)               RightSideBar
(Navigation)          Section1           Section2          Section3
                                    1.1               &nbsp ;       2.1                    3.1
                                    1.2                       2.2                    3.2         
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
pinky | 7 Oct 08:26

mysite module : user warning: error in your SQL syntax near '* FROM cache_content'

Hello,

i am getting a warning.

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM cache_content' at line 1 query: DELETE * FROM cache_content in /home/cmswebsi/public_html/webserver9/lstwtnew/includes/database.mysql.inc on line 172.

i found that it is appearing due to the line code in mysite.module

<?php
$data
[$item->position][$i]['output'] = module_invoke('mysite_type', $item->type .'_data', $item->type_id, $settings);
?>

if i place <at> operator, this warning gets disappear.

<?php
$data
[$item->position][$i]['output'] = <at> module_invoke('mysite_type', $item->type .'_data', $item->type_id, $settings);
?>

Please tell me what is the reason behind this and provide the solution(it's urgent :( ).

Thanks in advance,
sweetie

 

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Steve Edwards | 6 Oct 23:02

Problems displaying views tabs under page

I've created a new content type, and associated with that content type is a taxonomy vocabulary with two levels.  I would like to have a page that gives general information about the content, and then a tab for each top level term in the vocabulary.  On each tab, I would like to list the nodes for that top level term, and also display in the list the second level term that is assigned to the particular node.

I spent a few hours yesterday trying to get this to work using the Menu Tab functionality in Views.  I can get the three tabs to show up, but with a couple problems:

1) I can't get them to be displayed under a page that already exists.  According to the help on the Default Menu Tab page for the Parent Menu Item Type, "or to use the menu item that already exists at the specified URL. For example, if the URL for the default tab is 'tracker/all', then 'tracker' would already have to be a valid menu item to use this final choice."  So it my case, I have a page node with the url of mypage.  For the view tab, then , I would like to go to mysite.com/mypage and see the three tabs.  I set the URL of mypage/view1 and set the Parent Menu Item Type to "Already exists (don't create)".  I also have two other views set up with URLs of mypage/view2 and mypage/view3.  If I go to mysite.com/mypage, I get my static page just fine.  However, if I go to mysite.com/mypage/view1, I just get my three views, without the main parent page.  Is there a way to set my page and the tabs up this way?

2) On each tab, I would like to display the second level term that is assigned to each node in the field list (using Table view).  However, it seems that in Views, I can only display the top level term, not the second level term. 

Is it possible to do what I need to do with just Views, or will I need to do some custom coding?

Thanks.

Steve
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Edward Peters | 6 Oct 21:29

Capturing data before file download

I need to capture a visitor’s name and email address before allowing them to download a file, on a per-file basis, and without wanting them to register for the site. This is so that we can track exactly who is downloading certain files.

 

Does anyone know of a module(s) that can offer this – or have any ideas how this might be achieved?

 

Edward Peters

Oxford, UK

www.iofc.org

 

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]
Steve Kessler | 6 Oct 16:51

Re: block visibility based on role AND path

I am not using any PHP. 

In Show block for specific roles: I have anonymous user checked and then in
page specific viability settings I have Show on only the listed pages
selected and then I have the path content/contact-coredinated-movement for
the page listed. 

Thanks,
Steve

Steve Kessler 
Denver DataMan 
303-587-4428 
Sign up for the Denver DataMan Free eNewsletter

-----Original Message-----
From: Nick Young [mailto:nick_young <at> ncsu.edu] 
Sent: Monday, October 06, 2008 8:46 AM
To: Steve Kessler
Subject: Re: [support] block visibility based on role AND path

This looks like what i want to do.

What is the setting/php snippet that you are using to achieve this?

--Nick

........................................................................
Nick Young
Outreach, Communications & Consulting
Office of Information Technology
North Carolina State University
Box 7109, Raleigh 27695
Ph. 919.513.2716 | E-Mail: nick_young <at> ncsu.edu <mailto:nick_young <at> ncsu.edu>
........................................................................

Steve Kessler wrote:
> I will need to take this down latter today bit the block on this page
> http://www.coredinatedmovement.com/content/contact-coredinated-movement
> (conditions test) only appears if you are anonymous and you are on the
> specific page. Conditions built into Drupal are AND not OR.  
>
> Steve Kessler 
> Denver DataMan 
> 303-587-4428 
> Sign up for the Denver DataMan Free eNewsletter
>
>
> -----Original Message-----
> From: Nick Young [mailto:nick_young <at> ncsu.edu] 
> Sent: Monday, October 06, 2008 8:10 AM
> To: support <at> drupal.org
> Subject: Re: [support] block visibility based on role AND path
>
> The issue is that i need to check on the combination of conditions, 
> rather than just one.
>
> IE:
> I need the block to display only if BOTH conditions are met.
> I need the block to NOT display if none or only one condition is met.
>
> The built-in options only allow you to check for one type of condition 
> (path OR role).
>
> I need it to check for path AND role.
>
> --Nick
>
> ........................................................................
> Nick Young
> Outreach, Communications & Consulting
> Office of Information Technology
> North Carolina State University
> Box 7109, Raleigh 27695
> Ph. 919.513.2716 | E-Mail: nick_young <at> ncsu.edu
<mailto:nick_young <at> ncsu.edu>
> ........................................................................
>
>
>
> Steve Kessler wrote:
>   
>> Why does PHP need to be used. In the blocks settings you can determine 
>> visibility for a specific roles as well as specific paths.
>>
>>  
>>
>> For example you could say that only editors see an editing tool bar on 
>> all pages content/*
>>
>>  
>>
>> I may be missing what is going on here but this sounds similar than 
>> needing to do PHP.
>>
>>  
>>
>> Thanks,
>>
>> Steve
>>
>>  
>>
>> Steve Kessler
>>
>> *Denver DataMan *
>>
>> 303-587-4428
>>
>> Sign up for the Denver DataMan Free eNewsletter 
>> <http://www.denverdataman.com/content/enewsletter-signup>
>>
>>  
>>
>> *From:* bharani kumar [mailto:bharanikumariyerphp <at> gmail.com]
>> *Sent:* Monday, October 06, 2008 7:34 AM
>> *To:* support <at> drupal.org; nick_young <at> ncsu.edu
>> *Subject:* Re: [support] block visibility based on role AND path
>>
>>  
>>
>> May  this is clue,
>>
>> If you know  member id,  ,
>>
>> Go to block  configure
>>
>> select  " Show if the following PHP code returns |TRUE| (PHP-mode, 
>> experts only). "
>>
>> and write the code
>>
>> global $user
>>
>> $userid=$user->uid;
>> if($userid ==10 || $userid ==10  ){
>>     
>> return TRUE;
>>
>> }
>> else{
>>
>> return FALSE;
>> }
>>
>> On Mon, Oct 6, 2008 at 6:19 PM, Nick Young <nick_young <at> ncsu.edu 
>> <mailto:nick_young <at> ncsu.edu>> wrote:
>>
>> (Issue in Drupal 6)
>> I need a php snippet that allows me to display (or hide) a block based
>> on whether the user logged in is a member of a certain role, and that
>> they are browsing the site at a certain path. I am able to display a
>> block based on one of these things, but not both.
>>
>> IE:
>> I can display a block if the user is a member of a role.
>> I can display a block at a certain path (<site>/node/path/x)
>>
>> However, if i combine the two pieces of php code, then if one of them
>> returns true, the block shows. What i need is for it to check if the
>> path is TRUE, and then also check for the role membership. I have tested
>> the code externally to Drupal, to make sure the nested IF statements are
>> working properly, and they are. It's almost as if Drupal sees the first
>> TRUE, and then stops looking to see if there are multiple conditions to
>> check for as well.
>>
>> Any ideas? Thanks in advance.
>>
>> ........................................................................
>> Nick Young
>> Outreach, Communications & Consulting
>> Office of Information Technology
>> North Carolina State University
>> Box 7109, Raleigh 27695
>> Ph. 919.513.2716 | E-Mail: nick_young <at> ncsu.edu 
>> <mailto:nick_young <at> ncsu.edu> <mailto:nick_young <at> ncsu.edu 
>> <mailto:nick_young <at> ncsu.edu>>
>> ........................................................................
>>
>>
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>>  
>>
>>     
>
>   

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Kyle Gordon | 6 Oct 01:30

flickr photos from group

Hi all,

I'm wondering if it's at all possible to integrate Flickr group photos 
into Drupal 5? I have the Flickr module installed, and it seems to work 
well for photos from my personal account, but I'd like to use it to 
display photos from a group that I administer.

Any hints or suggestions would be greatly appreciated.

Regards

Kyle

-- 
Kyle Gordon - 2M1DIQ
Web: http://lodge.glasgownet.com
Jabber/Email/SIP: kyle <at> lodge.glasgownet.com

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Xavier Bestel | 4 Oct 18:34

[Drupal 5] can't edit users anymore

Hi,

since not long ago, I can't edit my users anymore.
When I try to edit an user, e.g. to go to:
http://example.com/user/2/edit
I'm redirected to:
wyciwyg://20/http://example.com/user/2/edit

(the "20" is increasing at each try)
it's an empty unthemed page with only a "disable rich-text" link (the
same that's present on the tinymce editor), which tries to load forever.

Any hint ?

Thanks,
	Xav

--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

luca capra | 4 Oct 18:29

Strange behavior of upload in drupal.js

Hi all,

I've got a multisite installation of drupal 5.10. In the main domain, 
when adding an item via upload form (or imagefield) the server  give me 
back an error keeping the animation running.

The #redirect-target has inside the json data but trought firebug I get 
a "data is null" referred to line 131 of drupal.js
This is caused I think by this line (about 56)

/response = (iframe.contentWindow || iframe.contentDocument || 
iframe).document.body.innerHTML;

/that say (from console.log)
"Permission denied to obtain the property Window.document"

This happens on various browsers and only in the main site (upload in 
subdomains works well). (maybe a theme related error?)

Did somebody ever had a similar problem ?

Cheers,
 Lu
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

luca capra | 4 Oct 14:09

Strange behavior of upload in drupal.js

Hi,

I've got a multisite installation of drupal 5.10. In the main domain, when adding content the upload module give me back an error keeping the animation running.

The #redirect-target has inside the json data but trought firebug I get a "data is null" referred to line 131 of drupal.js
This is caused I think by this line (about 56)

response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML;

If I try to see content with the console.log() command I get something like
"Permission denied to obtain the property Window.document"

This happens on various browsers and only in the main site (other upload in subdomains works well). (maybe a theme related error?)

Did somebody ever had a similar problem ?

Cheers,
 Lu
--

-- 
[ Drupal support list | http://lists.drupal.org/ ]

Gmane