From cog.rusty at gmail.com Tue Jul 1 03:25:22 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Tue, 1 Jul 2008 06:25:22 +0300 Subject: [support] Different stylesheet based on path In-Reply-To: References: Message-ID: What do you mean wildcards? Do you mean checking only the first part of an aliased path? Probably yes. I just added an (untested) suggestion in that forum thread: http://drupal.org/node/271818#comment-902933 Not sure if you already tried the same thing and didn't work. On Tue, Jul 1, 2008 at 2:09 AM, Jody Cleveland wrote: > I will do that, thank you. > > I was able to get it to work for the front page, but I haven't been able to > get it working for any internal pages. Will that code work with wild cards > at all? > > > On 6/30/08 11:37 AM, "Cog Rusty" wrote: > >> I was aquainted with that technique in this forum discussion: >> >> http://drupal.org/node/271818 >> >> Maybe you could message the guy who finally seemed to succeed in doing that. >> >> >> >> On Mon, Jun 30, 2008 at 7:15 PM, Jody Cleveland >> wrote: >>> I just can't seem to get this to work... I've tried this: >>> >>> function salamander_preprocess_page(&$variables) { >>> $front_style = path_to_theme() .'/front-page.css'; >>> $path_style = path_to_theme() .'/path-'. arg(0) .'.css'; >>> >>> if (file_exists($front_style) && $variables['is_front']) { >>> $include_style = $front_style; >>> } >>> elseif (file_exists($path_style)) { >>> $include_style = $path_style; >>> } >>> >>> if (isset($include_style)) { >>> drupal_add_css($include_style, 'theme', 'all', FALSE); >>> $variables['styles'] = drupal_get_css(); >>> } >>> } >>> >>> Cleared the site cache, refreshed pages, and I don't see anything added to >>> the header. I'm guessing there should be something like: >>> >> href="/sites/beta.menashalibrary.org/themes/salamander/path-xxx.css" /> >>> >>> I also tried this: >>> >>> //explode() will split the given string with another string and put the >>> pieces into an array >>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>> >>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] => abc >>> [1] => def ) >>> >>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>> print $path_pieces[0]; >>> >>> And, when I view the source, I don't see anything containing node/xxx >>> >>> So, I'm really stumped. I am supposed to be adding these to template.php of >>> the theme I'm using, right? Basically, I want all page urls that are teens/* >>> to use the teens.css file I have in my theme. >>> >>> - jody >>> >>> >>> On 6/29/08 5:33 PM, "Cog Rusty" wrote: >>> >>>> For Drupal 6, see also this for how to add stylesheets to a theme's .info >>>> file >>>> >>>> http://drupal.org/node/171209 >>>> >>>> and this for a more versatile method for adding path-based stylesheets: >>>> >>>> http://drupal.org/node/225868 >>>> >>>> Note that arg() always returns the original drupal path (such as >>>> node/nn) and not the alias, so in some cased you may need to use >>>> drupal_get_path_alias($_GET['q']) and then split it. >>>> >>>> >>>> >>>> >>>> On Sun, Jun 29, 2008 at 9:15 PM, KOBA | Hans Rossel wrote: >>>>> I think you will always get "node" for arg(0) when the pages under /teens >>>>> are nodes. >>>>> So >>>>> switch (arg(0)) { >>>>> case 'teens': >>>>> will never happen. >>>>> It works for admin because those pages are no nodes. >>>>> >>>>> To get teens when the path alias is /teens you should use >>>>> >>>> //explode() will split the given string with another string and put the >>>>> pieces into an array >>>>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>>>> >>>>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] => >>>>> abc >>>>> [1] => def ) >>>>> >>>>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>>>> print $path_pieces[0]; >>>>> ?> >>>>> See http://drupal.org/node/227849. >>>>> >>>>> Good luck! >>>>> >>>>> Hans >>>>> www.koba.be >>>>> >>>>>> >>>>>> >>>>>> Still not working for me. I placed this at the top of my theme's >>>>>> template.php: >>>>>> >>>>>> switch (arg(0)) { >>>>>> case 'admin': >>>>>> drupal_add_css(path_to_theme() .'/admin.css', 'theme', 'all'); >>>>>> break; >>>>>> case 'teens': >>>>>> drupal_add_css(path_to_theme() .'/teens.css', 'theme', 'all'); >>>>>> break; >>>>>> } >>>>>> >>>>>> The url path I'm trying to change the css for is /teens and the css file >>>>>> I'm >>>>>> trying to use is teens.css. I've tried clearing the cache, but when I view >>>>>> the source of the teens page, there's no reference to teens.css. Is there >>>>>> something else I missed? Can I also use this with wildcards? (case >>>>>> 'teens/*' >>>>>> so that all pages within that area get that theme) >>>>>> >>>>>> Thank you so much for your time in helping me with this. >>>>>> >>>>>> - jody >>>>>> >>>>>> -- >>>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>> >>> >>> >>> -- >>> Jody Cleveland >>> >>> "It's because I take you so seriously that I can't bring myself to believe >>> in you." >>> - Julia Sweeney ~ Letting Go of God >>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> > > > -- > Jody Cleveland > > "It's because I take you so seriously that I can't bring myself to believe > in you." > - Julia Sweeney ~ Letting Go of God > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From killshot91 at comcast.net Tue Jul 1 03:29:42 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 30 Jun 2008 20:29:42 -0700 Subject: [support] Unable to sign in Message-ID: <4869A4A6.7050405@comcast.net> I was working on a site tonight, and when I went to do something on another page (I don't remember which one exactly) I was signed out, and got the Access Denied error. Then, when I tried to sign in, the user ID and password would just disappear as if I never signed in in the first place. I tried in FF, IE, and Opera, and got the same in all places. Has anybody seen this and know what causes it? I've had this happen on another Drupal site, but I'm not sure how I got past it. Thanks. Steve From bharanikumariyerphp at gmail.com Tue Jul 1 04:21:32 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 1 Jul 2008 09:51:32 +0530 Subject: [support] Unable to sign in In-Reply-To: <4869A4A6.7050405@comcast.net> References: <4869A4A6.7050405@comcast.net> Message-ID: <2240033d0806302121n60b52703t3c0c507008115880@mail.gmail.com> do these, 1.clear the browser cache On Tue, Jul 1, 2008 at 8:59 AM, Steve Edwards wrote: > I was working on a site tonight, and when I went to do something on another > page (I don't remember which one exactly) I was signed > out, and got the Access Denied error. Then, when I tried to sign in, the > user ID and password would just disappear as if I never > signed in in the first place. I tried in FF, IE, and Opera, and got the > same in all places. Has anybody seen this and know what > causes it? I've had this happen on another Drupal site, but I'm not sure > how I got past it. > > Thanks. > > Steve > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/ea8d8298/attachment.htm From killshot91 at comcast.net Tue Jul 1 04:44:48 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 30 Jun 2008 21:44:48 -0700 Subject: [support] Unable to sign in In-Reply-To: <2240033d0806302121n60b52703t3c0c507008115880@mail.gmail.com> References: <4869A4A6.7050405@comcast.net> <2240033d0806302121n60b52703t3c0c507008115880@mail.gmail.com> Message-ID: <4869B640.8060901@comcast.net> That was one of the first things I did. No effect. Steve bharani kumar wrote: > do these, > > 1.clear the browser cache > > > On Tue, Jul 1, 2008 at 8:59 AM, Steve Edwards > wrote: > > I was working on a site tonight, and when I went to do something on > another page (I don't remember which one exactly) I was signed > out, and got the Access Denied error. Then, when I tried to sign > in, the user ID and password would just disappear as if I never > signed in in the first place. I tried in FF, IE, and Opera, and got > the same in all places. Has anybody seen this and know what > causes it? I've had this happen on another Drupal site, but I'm not > sure how I got past it. > > Thanks. > > Steve > -- > [ Drupal support list | http://lists.drupal.org/ ] > > From cog.rusty at gmail.com Tue Jul 1 06:10:52 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Tue, 1 Jul 2008 09:10:52 +0300 Subject: [support] Unable to sign in In-Reply-To: <4869A4A6.7050405@comcast.net> References: <4869A4A6.7050405@comcast.net> Message-ID: On Tue, Jul 1, 2008 at 6:29 AM, Steve Edwards wrote: > I was working on a site tonight, and when I went to do something on another page (I don't remember which one exactly) I was signed > out, and got the Access Denied error. Then, when I tried to sign in, the user ID and password would just disappear as if I never > signed in in the first place. I tried in FF, IE, and Opera, and got the same in all places. Has anybody seen this and know what > causes it? I've had this happen on another Drupal site, but I'm not sure how I got past it. > > Thanks. > > Steve Many different things could have caused that, there is no single cause. First check the troubleshooting faq and specifically: http://drupal.org/node/77106 http://drupal.org/node/102114 What is your exact Drupal version? PHP version? Are you accessing your site with or without www. in front? Have you set a $base_url in settings.php or is it commented out? Find any cookies for your site in your browser. Is there only one or multiple? Examine them. Is their domain ".example.com" and their path just "/"? From marolijo at yahoo.es Tue Jul 1 06:53:39 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Tue, 1 Jul 2008 08:53:39 +0200 Subject: [support] Different ront page for each locale Message-ID: <652179.85108.bm@omp209.mail.re3.yahoo.com> How can I do that? I'm lookin' on front_page, i18n and others but can't find it. Thank's -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/80e41013/attachment-0001.htm From bharanikumariyerphp at gmail.com Tue Jul 1 08:06:37 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 1 Jul 2008 13:36:37 +0530 Subject: [support] Different ront page for each locale In-Reply-To: <652179.85108.bm@omp209.mail.re3.yahoo.com> References: <652179.85108.bm@omp209.mail.re3.yahoo.com> Message-ID: <2240033d0807010106i23703ad5vd4d794c2e48431e8@mail.gmail.com> clearly say ur querie On Tue, Jul 1, 2008 at 12:23 PM, marolijo - Pol Maresma wrote: > How can I do that? > I'm lookin' on front_page, i18n and others but can't find it. > > Thank's > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/7f8ff2ab/attachment.htm From marolijo at yahoo.es Tue Jul 1 08:22:44 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Tue, 1 Jul 2008 10:22:44 +0200 Subject: [support] Different ront page for each locale In-Reply-To: <2240033d0807010106i23703ad5vd4d794c2e48431e8@mail.gmail.com> Message-ID: <674464.16439.bm@omp204.mail.re3.yahoo.com> Sorry but I can't understand your answer, did you mean url query? is that a module? i can't find it. Now I'm using a PHP snippet to redirect the front page, but I prefer (if possible) no to change the url on front when I acces the /es /en /fr ... version, now it goes to /es/node/id... Thank's for all! _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de bharani kumar Enviado el: dimarts, 1 / juliol / 2008 10:07 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale clearly say ur querie On Tue, Jul 1, 2008 at 12:23 PM, marolijo - Pol Maresma wrote: How can I do that? I'm lookin' on front_page, i18n and others but can't find it. Thank's -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/584a4eed/attachment.htm From marolijo at yahoo.es Tue Jul 1 11:29:38 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Tue, 1 Jul 2008 13:29:38 +0200 Subject: [support] show secondary links on primary mouse over Message-ID: <487437.13840.bm@omp104.mail.re1.yahoo.com> I can't find a module that let me show a Secondary menu line when I pass over the primary links, without reload the page. Maybe some CSS can help? Something like this simple menu http://www.rosasensat.org/ Thank's a lot! Pol -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/67547ee3/attachment.htm From neil at esl-lounge.com Tue Jul 1 11:36:06 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Tue, 1 Jul 2008 12:36:06 +0100 Subject: [support] Inserting block into a page. Message-ID: <005901c8db6e$a741ec20$0301a8c0@Neil> I have found code to allow me to insert a block into a page: But I have a block I made in views which I don't know the number of. When I hover over Configur in the block admin, I just see this: http://www.mysite.com/admin/build/block/configure/views/LatestVideosBlock How would I insert this into another node? (Before anyone mentions it, I don't want to use another module) thanks Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/83a2cf0e/attachment.htm From info at koba.be Tue Jul 1 11:54:18 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Tue, 1 Jul 2008 13:54:18 +0200 Subject: [support] Inserting block into a page. In-Reply-To: <005901c8db6e$a741ec20$0301a8c0@Neil> References: <005901c8db6e$a741ec20$0301a8c0@Neil> Message-ID: <51a9b8330807010454m9ea8c0eo3028578a8c547691@mail.gmail.com> You can embed your view: Hans www.koba.be 2008/7/1 Neil: esl-lounge.com : > I have found code to allow me to insert a block into a page: > > $block = module_invoke('tagadelic', 'block', 'view', 6); > print $block['content']; > ?> > > But I have a block I made in views which I don't know the number of. When I > hover over Configur in the block admin, I just see this: > > http://www.mysite.com/admin/build/block/configure/views/LatestVideosBlock > > How would I insert this into another node? (Before anyone mentions it, I > don't want to use another module) > > thanks > > Neil > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/c20aa87e/attachment.htm From enboig at gmail.com Tue Jul 1 11:56:39 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Tue, 1 Jul 2008 13:56:39 +0200 Subject: [support] show secondary links on primary mouse over In-Reply-To: <487437.13840.bm@omp104.mail.re1.yahoo.com> References: <487437.13840.bm@omp104.mail.re1.yahoo.com> Message-ID: <45a29f450807010456j5035a1eelf32eb1e19e498a0a@mail.gmail.com> I don't know if dhtml menu module work with primary links; you could try it. On Tue, Jul 1, 2008 at 1:29 PM, marolijo - Pol Maresma wrote: > I can't find a module that let me show a Secondary menu line when I pass > over the primary links, without reload the page. > Maybe some CSS can help? > > Something like this simple menu > http://www.rosasensat.org/ > > Thank's a lot! > > Pol > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From info at koba.be Tue Jul 1 12:00:04 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Tue, 1 Jul 2008 14:00:04 +0200 Subject: [support] show secondary links on primary mouse over In-Reply-To: <45a29f450807010456j5035a1eelf32eb1e19e498a0a@mail.gmail.com> References: <487437.13840.bm@omp104.mail.re1.yahoo.com> <45a29f450807010456j5035a1eelf32eb1e19e498a0a@mail.gmail.com> Message-ID: <51a9b8330807010500u39e5c9d8gb1a49c606b4ebb6a@mail.gmail.com> http://drupal.org/project/simplemenu can do this, but check if IE6 displays it correctly because I had some issues with this before. Or you could yourself build the dropdown menu using suckerfish css. Hans www.koba.be 2008/7/1 Llu?s : > I don't know if dhtml menu module work with primary links; you could try > it. > > On Tue, Jul 1, 2008 at 1:29 PM, marolijo - Pol Maresma > wrote: > > I can't find a module that let me show a Secondary menu line when I pass > > over the primary links, without reload the page. > > Maybe some CSS can help? > > > > Something like this simple menu > > http://www.rosasensat.org/ > > > > Thank's a lot! > > > > Pol > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > > > -- > *La felicitat ha de ser compatible, compartible i cooperativa. > *Envellim quan els records superen les esperances. > *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/6229aceb/attachment-0001.htm From neil at esl-lounge.com Tue Jul 1 12:13:00 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Tue, 1 Jul 2008 13:13:00 +0100 Subject: [support] Inserting block into a page. References: <005901c8db6e$a741ec20$0301a8c0@Neil> <51a9b8330807010454m9ea8c0eo3028578a8c547691@mail.gmail.com> Message-ID: <007a01c8db73$cedb9c40$0301a8c0@Neil> Hans That seems to have ALMOST worked. The original block has 5 nodes per block/page whereas when I inserted it into the page, I got every single one showing....64 video nodes running down the page. Any idea why that would be? Neil ----- Original Message ----- From: KOBA | Hans Rossel To: support at drupal.org Sent: Tuesday, July 01, 2008 12:54 PM Subject: Re: [support] Inserting block into a page. You can embed your view: Hans www.koba.be 2008/7/1 Neil: esl-lounge.com : I have found code to allow me to insert a block into a page: But I have a block I made in views which I don't know the number of. When I hover over Configur in the block admin, I just see this: http://www.mysite.com/admin/build/block/configure/views/LatestVideosBlock How would I insert this into another node? (Before anyone mentions it, I don't want to use another module) thanks Neil -- [ Drupal support list | http://lists.drupal.org/ ] -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/10a03dc6/attachment.htm From marolijo at yahoo.es Tue Jul 1 12:15:48 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Tue, 1 Jul 2008 14:15:48 +0200 Subject: [support] show secondary links on primary mouse over In-Reply-To: <51a9b8330807010500u39e5c9d8gb1a49c606b4ebb6a@mail.gmail.com> Message-ID: <168647.33346.bm@omp202.mail.re3.yahoo.com> Thank's for all! I imagine I need to adjust CSS to show the sons
  • as blocks because I need to place this horizontally under the parent UL. see you! _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de KOBA | Hans Rossel Enviado el: dimarts, 1 / juliol / 2008 14:00 Para: support at drupal.org Asunto: Re: [support] show secondary links on primary mouse over http://drupal.org/project/simplemenu can do this, but check if IE6 displays it correctly because I had some issues with this before. Or you could yourself build the dropdown menu using suckerfish css. Hans www.koba.be 2008/7/1 Llu?s : I don't know if dhtml menu module work with primary links; you could try it. On Tue, Jul 1, 2008 at 1:29 PM, marolijo - Pol Maresma wrote: > I can't find a module that let me show a Secondary menu line when I pass > over the primary links, without reload the page. > Maybe some CSS can help? > > Something like this simple menu > http://www.rosasensat.org/ > > Thank's a lot! > > Pol > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. -- [ Drupal support list | http://lists.drupal.org/ ] -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/f080fb59/attachment.htm From info at koba.be Tue Jul 1 12:25:52 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Tue, 1 Jul 2008 14:25:52 +0200 Subject: [support] Inserting block into a page. In-Reply-To: <007a01c8db73$cedb9c40$0301a8c0@Neil> References: <005901c8db6e$a741ec20$0301a8c0@Neil> <51a9b8330807010454m9ea8c0eo3028578a8c547691@mail.gmail.com> <007a01c8db73$cedb9c40$0301a8c0@Neil> Message-ID: <51a9b8330807010525q6979af1fgc5dd24b7f7b8e4e9@mail.gmail.com> The last variable in the array is the numbers to be displayed. Just put it on 5 if you want to have 5 nodes. Hans www.koba.be 2008/7/1 Neil: esl-lounge.com : > Hans > > That seems to have ALMOST worked. The original block has 5 nodes per > block/page whereas when I inserted it into the page, I got every single one > showing....64 video nodes running down the page. Any idea why that would be? > > Neil > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/fb13b495/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 1 13:30:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 1 Jul 2008 19:00:28 +0530 Subject: [support] content edit form query Message-ID: <2240033d0807010630n921e771xcc1960fcd61b24f2@mail.gmail.com> Hi dears, In node which function perform the retrival operation, like Display the contents in to textarea, While in the content edit form which query perform this or which function perform this Any idea about that -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080701/5eeea4f2/attachment.htm From cleveland at winnefox.org Tue Jul 1 20:00:08 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Tue, 01 Jul 2008 15:00:08 -0500 Subject: [support] Different stylesheet based on path In-Reply-To: Message-ID: I actually ended up finding a completely different way of doing this, and it works great. The owner of the fabulous Sections module mentioned to me that the Garland theme that ships with Drupal actually kind of does this with the Minnelli theme. It's basically a folder inside of Garland that has a css file and an info file. You can also have a screenshot and logo file. But, this way, I can use the sections module to specify which theme based off the main that I want for various taxonomy. - jody On 6/30/08 10:25 PM, "Cog Rusty" wrote: > What do you mean wildcards? Do you mean checking only the first part > of an aliased path? Probably yes. I just added an (untested) > suggestion in that forum thread: > > http://drupal.org/node/271818#comment-902933 > > Not sure if you already tried the same thing and didn't work. > > > > On Tue, Jul 1, 2008 at 2:09 AM, Jody Cleveland wrote: >> I will do that, thank you. >> >> I was able to get it to work for the front page, but I haven't been able to >> get it working for any internal pages. Will that code work with wild cards >> at all? >> >> >> On 6/30/08 11:37 AM, "Cog Rusty" wrote: >> >>> I was aquainted with that technique in this forum discussion: >>> >>> http://drupal.org/node/271818 >>> >>> Maybe you could message the guy who finally seemed to succeed in doing that. >>> >>> >>> >>> On Mon, Jun 30, 2008 at 7:15 PM, Jody Cleveland >>> wrote: >>>> I just can't seem to get this to work... I've tried this: >>>> >>>> function salamander_preprocess_page(&$variables) { >>>> $front_style = path_to_theme() .'/front-page.css'; >>>> $path_style = path_to_theme() .'/path-'. arg(0) .'.css'; >>>> >>>> if (file_exists($front_style) && $variables['is_front']) { >>>> $include_style = $front_style; >>>> } >>>> elseif (file_exists($path_style)) { >>>> $include_style = $path_style; >>>> } >>>> >>>> if (isset($include_style)) { >>>> drupal_add_css($include_style, 'theme', 'all', FALSE); >>>> $variables['styles'] = drupal_get_css(); >>>> } >>>> } >>>> >>>> Cleared the site cache, refreshed pages, and I don't see anything added to >>>> the header. I'm guessing there should be something like: >>>> >>> href="/sites/beta.menashalibrary.org/themes/salamander/path-xxx.css" /> >>>> >>>> I also tried this: >>>> >>>> //explode() will split the given string with another string and put the >>>> pieces into an array >>>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>>> >>>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] => abc >>>> [1] => def ) >>>> >>>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>>> print $path_pieces[0]; >>>> >>>> And, when I view the source, I don't see anything containing node/xxx >>>> >>>> So, I'm really stumped. I am supposed to be adding these to template.php of >>>> the theme I'm using, right? Basically, I want all page urls that are >>>> teens/* >>>> to use the teens.css file I have in my theme. >>>> >>>> - jody >>>> >>>> >>>> On 6/29/08 5:33 PM, "Cog Rusty" wrote: >>>> >>>>> For Drupal 6, see also this for how to add stylesheets to a theme's .info >>>>> file >>>>> >>>>> http://drupal.org/node/171209 >>>>> >>>>> and this for a more versatile method for adding path-based stylesheets: >>>>> >>>>> http://drupal.org/node/225868 >>>>> >>>>> Note that arg() always returns the original drupal path (such as >>>>> node/nn) and not the alias, so in some cased you may need to use >>>>> drupal_get_path_alias($_GET['q']) and then split it. >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, Jun 29, 2008 at 9:15 PM, KOBA | Hans Rossel wrote: >>>>>> I think you will always get "node" for arg(0) when the pages under /teens >>>>>> are nodes. >>>>>> So >>>>>> switch (arg(0)) { >>>>>> case 'teens': >>>>>> will never happen. >>>>>> It works for admin because those pages are no nodes. >>>>>> >>>>>> To get teens when the path alias is /teens you should use >>>>>> >>>>> //explode() will split the given string with another string and put the >>>>>> pieces into an array >>>>>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>>>>> >>>>>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] => >>>>>> abc >>>>>> [1] => def ) >>>>>> >>>>>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>>>>> print $path_pieces[0]; >>>>>> ?> >>>>>> See http://drupal.org/node/227849. >>>>>> >>>>>> Good luck! >>>>>> >>>>>> Hans >>>>>> www.koba.be >>>>>> >>>>>>> >>>>>>> >>>>>>> Still not working for me. I placed this at the top of my theme's >>>>>>> template.php: >>>>>>> >>>>>>> switch (arg(0)) { >>>>>>> case 'admin': >>>>>>> drupal_add_css(path_to_theme() .'/admin.css', 'theme', 'all'); >>>>>>> break; >>>>>>> case 'teens': >>>>>>> drupal_add_css(path_to_theme() .'/teens.css', 'theme', 'all'); >>>>>>> break; >>>>>>> } >>>>>>> >>>>>>> The url path I'm trying to change the css for is /teens and the css file >>>>>>> I'm >>>>>>> trying to use is teens.css. I've tried clearing the cache, but when I >>>>>>> view >>>>>>> the source of the teens page, there's no reference to teens.css. Is >>>>>>> there >>>>>>> something else I missed? Can I also use this with wildcards? (case >>>>>>> 'teens/*' >>>>>>> so that all pages within that area get that theme) >>>>>>> >>>>>>> Thank you so much for your time in helping me with this. >>>>>>> >>>>>>> - jody >>>>>>> >>>>>>> -- >>>>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>>> >>>> >>>> >>>> -- >>>> Jody Cleveland >>>> >>>> "It's because I take you so seriously that I can't bring myself to believe >>>> in you." >>>> - Julia Sweeney ~ Letting Go of God >>>> >>>> -- >>>> [ Drupal support list | http://lists.drupal.org/ ] >>>> >> >> >> -- >> Jody Cleveland >> >> "It's because I take you so seriously that I can't bring myself to believe >> in you." >> - Julia Sweeney ~ Letting Go of God >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> -- Jody Cleveland "The invisible and the non-existent often look very much alike." - Julia Sweeney ~ Letting Go of God From net at twoedged.org Wed Jul 2 00:28:21 2008 From: net at twoedged.org (John Fletcher) Date: Wed, 2 Jul 2008 10:28:21 +1000 Subject: [support] Different ront page for each locale In-Reply-To: <674464.16439.bm@omp204.mail.re3.yahoo.com> References: <2240033d0807010106i23703ad5vd4d794c2e48431e8@mail.gmail.com> <674464.16439.bm@omp204.mail.re3.yahoo.com> Message-ID: <007601c8dbda$893ed910$9bbc8b30$@org> There are a few threads on drupal.org where this is discussed. Most people suggest to make the front page variable an i18n variable using the i18n module and then configure it differently for each language. However it depends on your drupal version - many people reported problems with i18n_variables in D6 so I'm not 100% sure that it will work. Which version are you using? Personally I'm just using the same path for each language and it sort of works. Like /front, fr/front, de/front. However I need a better solution as it is causing a few issues. Let us know what you come up with. Regards, Fletch From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Tuesday, 1 July 2008 6:23 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale Sorry but I can't understand your answer, did you mean url query? is that a module? i can't find it. Now I'm using a PHP snippet to redirect the front page, but I prefer (if possible) no to change the url on front when I acces the /es /en /fr ... version, now it goes to /es/node/id... Thank's for all! _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de bharani kumar Enviado el: dimarts, 1 / juliol / 2008 10:07 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale clearly say ur querie On Tue, Jul 1, 2008 at 12:23 PM, marolijo - Pol Maresma wrote: How can I do that? I'm lookin' on front_page, i18n and others but can't find it. Thank's -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080702/5304ce67/attachment.htm From info at koba.be Wed Jul 2 02:26:53 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Wed, 2 Jul 2008 04:26:53 +0200 Subject: [support] Different stylesheet based on path In-Reply-To: References: Message-ID: <51a9b8330807011926s7dbc9ea2i1c341b4069ed86c5@mail.gmail.com> Great you have found it. Themes like Minellii are called subthemes, which I proposed in the beginning of this thread as an option. Sorry for not having been clear enough. Hans 2008/7/1, Jody Cleveland : > I actually ended up finding a completely different way of doing this, and it > works great. > > The owner of the fabulous Sections module mentioned to me that the Garland > theme that ships with Drupal actually kind of does this with the Minnelli > theme. It's basically a folder inside of Garland that has a css file and an > info file. You can also have a screenshot and logo file. > > But, this way, I can use the sections module to specify which theme based > off the main that I want for various taxonomy. > > - jody > > > On 6/30/08 10:25 PM, "Cog Rusty" wrote: > >> What do you mean wildcards? Do you mean checking only the first part >> of an aliased path? Probably yes. I just added an (untested) >> suggestion in that forum thread: >> >> http://drupal.org/node/271818#comment-902933 >> >> Not sure if you already tried the same thing and didn't work. >> >> >> >> On Tue, Jul 1, 2008 at 2:09 AM, Jody Cleveland >> wrote: >>> I will do that, thank you. >>> >>> I was able to get it to work for the front page, but I haven't been able >>> to >>> get it working for any internal pages. Will that code work with wild >>> cards >>> at all? >>> >>> >>> On 6/30/08 11:37 AM, "Cog Rusty" wrote: >>> >>>> I was aquainted with that technique in this forum discussion: >>>> >>>> http://drupal.org/node/271818 >>>> >>>> Maybe you could message the guy who finally seemed to succeed in doing >>>> that. >>>> >>>> >>>> >>>> On Mon, Jun 30, 2008 at 7:15 PM, Jody Cleveland >>>> wrote: >>>>> I just can't seem to get this to work... I've tried this: >>>>> >>>>> function salamander_preprocess_page(&$variables) { >>>>> $front_style = path_to_theme() .'/front-page.css'; >>>>> $path_style = path_to_theme() .'/path-'. arg(0) .'.css'; >>>>> >>>>> if (file_exists($front_style) && $variables['is_front']) { >>>>> $include_style = $front_style; >>>>> } >>>>> elseif (file_exists($path_style)) { >>>>> $include_style = $path_style; >>>>> } >>>>> >>>>> if (isset($include_style)) { >>>>> drupal_add_css($include_style, 'theme', 'all', FALSE); >>>>> $variables['styles'] = drupal_get_css(); >>>>> } >>>>> } >>>>> >>>>> Cleared the site cache, refreshed pages, and I don't see anything added >>>>> to >>>>> the header. I'm guessing there should be something like: >>>>> >>>> href="/sites/beta.menashalibrary.org/themes/salamander/path-xxx.css" /> >>>>> >>>>> I also tried this: >>>>> >>>>> //explode() will split the given string with another string and put >>>>> the >>>>> pieces into an array >>>>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>>>> >>>>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] => >>>>> abc >>>>> [1] => def ) >>>>> >>>>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>>>> print $path_pieces[0]; >>>>> >>>>> And, when I view the source, I don't see anything containing node/xxx >>>>> >>>>> So, I'm really stumped. I am supposed to be adding these to >>>>> template.php of >>>>> the theme I'm using, right? Basically, I want all page urls that are >>>>> teens/* >>>>> to use the teens.css file I have in my theme. >>>>> >>>>> - jody >>>>> >>>>> >>>>> On 6/29/08 5:33 PM, "Cog Rusty" wrote: >>>>> >>>>>> For Drupal 6, see also this for how to add stylesheets to a theme's >>>>>> .info >>>>>> file >>>>>> >>>>>> http://drupal.org/node/171209 >>>>>> >>>>>> and this for a more versatile method for adding path-based >>>>>> stylesheets: >>>>>> >>>>>> http://drupal.org/node/225868 >>>>>> >>>>>> Note that arg() always returns the original drupal path (such as >>>>>> node/nn) and not the alias, so in some cased you may need to use >>>>>> drupal_get_path_alias($_GET['q']) and then split it. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Sun, Jun 29, 2008 at 9:15 PM, KOBA | Hans Rossel >>>>>> wrote: >>>>>>> I think you will always get "node" for arg(0) when the pages under >>>>>>> /teens >>>>>>> are nodes. >>>>>>> So >>>>>>> switch (arg(0)) { >>>>>>> case 'teens': >>>>>>> will never happen. >>>>>>> It works for admin because those pages are no nodes. >>>>>>> >>>>>>> To get teens when the path alias is /teens you should use >>>>>>> >>>>>> //explode() will split the given string with another string and put >>>>>>> the >>>>>>> pieces into an array >>>>>>> $path_pieces = explode('/', drupal_get_path_alias($_GET['q'])); >>>>>>> >>>>>>> //so if your path is /abc/def, $path_pieces is now like Array ( [0] >>>>>>> => >>>>>>> abc >>>>>>> [1] => def ) >>>>>>> >>>>>>> //Therefore, $path_pieces[0] prints 'abc' that you wanted >>>>>>> print $path_pieces[0]; >>>>>>> ?> >>>>>>> See http://drupal.org/node/227849. >>>>>>> >>>>>>> Good luck! >>>>>>> >>>>>>> Hans >>>>>>> www.koba.be >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Still not working for me. I placed this at the top of my theme's >>>>>>>> template.php: >>>>>>>> >>>>>>>> switch (arg(0)) { >>>>>>>> case 'admin': >>>>>>>> drupal_add_css(path_to_theme() .'/admin.css', 'theme', 'all'); >>>>>>>> break; >>>>>>>> case 'teens': >>>>>>>> drupal_add_css(path_to_theme() .'/teens.css', 'theme', 'all'); >>>>>>>> break; >>>>>>>> } >>>>>>>> >>>>>>>> The url path I'm trying to change the css for is /teens and the css >>>>>>>> file >>>>>>>> I'm >>>>>>>> trying to use is teens.css. I've tried clearing the cache, but when >>>>>>>> I >>>>>>>> view >>>>>>>> the source of the teens page, there's no reference to teens.css. Is >>>>>>>> there >>>>>>>> something else I missed? Can I also use this with wildcards? (case >>>>>>>> 'teens/*' >>>>>>>> so that all pages within that area get that theme) >>>>>>>> >>>>>>>> Thank you so much for your time in helping me with this. >>>>>>>> >>>>>>>> - jody >>>>>>>> >>>>>>>> -- >>>>>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>>>> >>>>> >>>>> >>>>> -- >>>>> Jody Cleveland >>>>> >>>>> "It's because I take you so seriously that I can't bring myself to >>>>> believe >>>>> in you." >>>>> - Julia Sweeney ~ Letting Go of God >>>>> >>>>> -- >>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>>> >>> >>> >>> -- >>> Jody Cleveland >>> >>> "It's because I take you so seriously that I can't bring myself to >>> believe >>> in you." >>> - Julia Sweeney ~ Letting Go of God >>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> > > > -- > Jody Cleveland > > "The invisible and the non-existent often look very much alike." > - Julia Sweeney ~ Letting Go of God > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be From marolijo at yahoo.es Wed Jul 2 07:57:51 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 2 Jul 2008 09:57:51 +0200 Subject: [support] Different ront page for each locale In-Reply-To: <007601c8dbda$893ed910$9bbc8b30$@org> Message-ID: <461235.88957.bm@omp110.mail.re3.yahoo.com> Thank's! I'm on 5.7 but I was thinkin' I can't assign the same url alias to diferent nodes, or maybe in diferent locales I can? How can I do that you are sayin'? Now I'm doing a PHP redirect but I costs an extra page load... Thank's! Pol _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de John Fletcher Enviado el: dimecres, 2 / juliol / 2008 02:28 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale There are a few threads on drupal.org where this is discussed. Most people suggest to make the front page variable an i18n variable using the i18n module and then configure it differently for each language. However it depends on your drupal version - many people reported problems with i18n_variables in D6 so I'm not 100% sure that it will work. Which version are you using? Personally I'm just using the same path for each language and it sort of works. Like /front, fr/front, de/front. However I need a better solution as it is causing a few issues. Let us know what you come up with. Regards, Fletch From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Tuesday, 1 July 2008 6:23 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale Sorry but I can't understand your answer, did you mean url query? is that a module? i can't find it. Now I'm using a PHP snippet to redirect the front page, but I prefer (if possible) no to change the url on front when I acces the /es /en /fr ... version, now it goes to /es/node/id... Thank's for all! _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de bharani kumar Enviado el: dimarts, 1 / juliol / 2008 10:07 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale clearly say ur querie On Tue, Jul 1, 2008 at 12:23 PM, marolijo - Pol Maresma wrote: How can I do that? I'm lookin' on front_page, i18n and others but can't find it. Thank's -- [ Drupal support list | http://lists.drupal.org/ ] __________ Informacisn de NOD32, revisisn 3233 (20080701) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080702/7f7f92f9/attachment-0001.htm From bharanikumariyerphp at gmail.com Wed Jul 2 17:09:42 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 2 Jul 2008 22:39:42 +0530 Subject: [support] drupal support class Message-ID: <2240033d0807021009t7dcd3473m5435770e754d702f@mail.gmail.com> Can u any one say, drupal support class concept......................................... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080702/de76c52e/attachment.htm From forums at absolutecross.com Wed Jul 2 19:38:20 2008 From: forums at absolutecross.com (Keyz) Date: Wed, 2 Jul 2008 12:38:20 -0700 (PDT) Subject: [support] drupal support class In-Reply-To: <2240033d0807021009t7dcd3473m5435770e754d702f@mail.gmail.com> References: <2240033d0807021009t7dcd3473m5435770e754d702f@mail.gmail.com> Message-ID: <18245181.post@talk.nabble.com> I'm not sure I understand what you mean... If you mean support class as in class for learning Drupal, then you could look into local Drupal user groups on http://groups.drupal.org Also there are "Drupal classes" offered by Lullabot in various locations throughout the world: http://www.lullabot.com - David bharani kumar wrote: > > Can u any one say, > > drupal support class concept......................................... > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- View this message in context: http://www.nabble.com/drupal-support-class-tp18242440p18245181.html Sent from the Drupal - Support mailing list archive at Nabble.com. From victorkane at gmail.com Wed Jul 2 19:55:04 2008 From: victorkane at gmail.com (Victor Kane) Date: Wed, 2 Jul 2008 16:55:04 -0300 Subject: [support] drupal support class In-Reply-To: <18245181.post@talk.nabble.com> References: <2240033d0807021009t7dcd3473m5435770e754d702f@mail.gmail.com> <18245181.post@talk.nabble.com> Message-ID: dojo dojo dojo... http://groups.drupal.org/drupal-dojo ! On Wed, Jul 2, 2008 at 4:38 PM, Keyz wrote: > > I'm not sure I understand what you mean... > If you mean support class as in class for learning Drupal, then you could > look into local Drupal user groups on http://groups.drupal.org > Also there are "Drupal classes" offered by Lullabot in various locations > throughout the world: http://www.lullabot.com > > - David > > > > bharani kumar wrote: > > > > Can u any one say, > > > > drupal support class concept......................................... > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > View this message in context: > http://www.nabble.com/drupal-support-class-tp18242440p18245181.html > Sent from the Drupal - Support mailing list archive at Nabble.com. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080702/513926ad/attachment.htm From net at twoedged.org Thu Jul 3 00:44:40 2008 From: net at twoedged.org (John Fletcher) Date: Thu, 3 Jul 2008 10:44:40 +1000 Subject: [support] Different ront page for each locale In-Reply-To: <461235.88957.bm@omp110.mail.re3.yahoo.com> References: <007601c8dbda$893ed910$9bbc8b30$@org> <461235.88957.bm@omp110.mail.re3.yahoo.com> Message-ID: <004a01c8dca5$fb860cc0$f2922640$@org> You can set exactly the same url alias in different locales. Drupal automatically prepends the language, eg. in Spanish you set "front" and drupal understands this as "es/front" therefore it's different from "front" in English. From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Wednesday, 2 July 2008 5:58 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale Thank's! I'm on 5.7 but I was thinkin' I can't assign the same url alias to diferent nodes, or maybe in diferent locales I can? How can I do that you are sayin'? Now I'm doing a PHP redirect but I costs an extra page load... Thank's! Pol -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080703/9705c5d9/attachment.htm From marolijo at yahoo.es Thu Jul 3 07:43:27 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 3 Jul 2008 09:43:27 +0200 Subject: [support] Different ront page for each locale In-Reply-To: <004a01c8dca5$fb860cc0$f2922640$@org> Message-ID: <568476.20819.bm@omp108.mail.re3.yahoo.com> thank's, very usefull! see you _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de John Fletcher Enviado el: dijous, 3 / juliol / 2008 02:45 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale You can set exactly the same url alias in different locales. Drupal automatically prepends the language, eg. in Spanish you set "front" and drupal understands this as "es/front" therefore it's different from "front" in English. From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Wednesday, 2 July 2008 5:58 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale Thank's! I'm on 5.7 but I was thinkin' I can't assign the same url alias to diferent nodes, or maybe in diferent locales I can? How can I do that you are sayin'? Now I'm doing a PHP redirect but I costs an extra page load... Thank's! Pol __________ Informacisn de NOD32, revisisn 3237 (20080702) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080703/d6aff20f/attachment.htm From marolijo at yahoo.es Thu Jul 3 07:50:08 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 3 Jul 2008 09:50:08 +0200 Subject: [support] automatically create related content type Message-ID: <457087.49318.bm@omp100.mail.re1.yahoo.com> Hello, I'm going to create a Drupal site based on an very, very old ASP web site. It's a radio station website, with programs, and news ans links related to this programs. Each program have a user and can create news/links (that content has a table relation to the program table automatically). How can I create this kind of relation on Drupal? Different content types and node relation? But how to relate automatically a user link/new to the program? Maybe I should use taxonomy? I was thinking on do this: attach 2 views on program content type templatre, to show related news and links. Thank's for all. Pol -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080703/5b9cb914/attachment-0001.htm From marolijo at yahoo.es Thu Jul 3 08:04:58 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 3 Jul 2008 10:04:58 +0200 Subject: [support] Different ront page for each locale In-Reply-To: <004a01c8dca5$fb860cc0$f2922640$@org> Message-ID: <701011.12970.bm@omp103.mail.re1.yahoo.com> I tried it but with i18n I can't assign the same url alias to node translations... I'm doing something wrong? thank's _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de John Fletcher Enviado el: dijous, 3 / juliol / 2008 02:45 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale You can set exactly the same url alias in different locales. Drupal automatically prepends the language, eg. in Spanish you set "front" and drupal understands this as "es/front" therefore it's different from "front" in English. From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Wednesday, 2 July 2008 5:58 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale Thank's! I'm on 5.7 but I was thinkin' I can't assign the same url alias to diferent nodes, or maybe in diferent locales I can? How can I do that you are sayin'? Now I'm doing a PHP redirect but I costs an extra page load... Thank's! Pol __________ Informacisn de NOD32, revisisn 3237 (20080702) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080703/0cf76667/attachment.htm From gmarshall at repconnection.com Thu Jul 3 21:38:08 2008 From: gmarshall at repconnection.com (Gregg Marshall) Date: Thu, 3 Jul 2008 15:38:08 -0600 Subject: [support] Trivial Question Message-ID: <14037A22789F41BEA104DCA2167DB775@desktop3> I know the answer is sitting in front of me, but I can't see it. I put a logo back on my site and now the title is showing up on a separate line. http://www.vendor-tech.com So what did I do wrong? Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080703/04e76391/attachment.htm From brettev at gmail.com Thu Jul 3 21:43:15 2008 From: brettev at gmail.com (Brett Evanson) Date: Thu, 3 Jul 2008 15:43:15 -0600 Subject: [support] Trivial Question In-Reply-To: <14037A22789F41BEA104DCA2167DB775@desktop3> References: <14037A22789F41BEA104DCA2167DB775@desktop3> Message-ID: <972255370807031443g747eaaaevfe422d16b19784b@mail.gmail.com> i think it might be because of the
    try removing that, so there aren't any opened divs between the image and the h1 Brett On Thu, Jul 3, 2008 at 3:38 PM, Gregg Marshall wrote: > I know the answer is sitting in front of me, but I can't see it. > > > > I put a logo back on my site and now the title is showing up on a separate > line. > > > > http://www.vendor-tech.com > > > > So what did I do wrong? > > > > Gregg > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Brett Evanson brettev at gmail.com 801-599-0584 From bharanikumariyerphp at gmail.com Fri Jul 4 05:21:29 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 4 Jul 2008 10:51:29 +0530 Subject: [support] update related Message-ID: <2240033d0807032221n40d624f4vcfd4dd99aa12c124@mail.gmail.com> Hi dear am having the more then 1000 records, I want to insert the <--break-->,in that 1000 record , in that there is field called body, which contain article, too big content in that , now i want to insert the <--break-->, after every 1075 character has meet, also Never broke the html tag...that is dont put the <--break--> between <<--break-->table>.. for this i written the code 0) { while($obj=mysql_fetch_object($rs)) { $body_chunksplit = $obj->body; $nid=$obj->nid; $body_chunksplit=str_replace("'", "\'", $body_chunksplit); $lrn = strlen($body_chunksplit); $length=$lrn*2; if(strlen($body_chunksplit) >= 4500) { $body_content=substr(chunk_split($body_chunksplit, 4500, "<--pagebreak-->"), 0, $length); //drupal_set_message(wordcount($body_content)); } else { $body_content=$body_chunksplit; } mysql_query("UPDATE node_revisions SET body='$body_content' where nid='$nid'") or die("could not"); } } ?> This is will not solved my total problem, Can any find the bug and solve it... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080704/c0c8994c/attachment.htm From victorkane at gmail.com Fri Jul 4 07:21:26 2008 From: victorkane at gmail.com (Victor Kane) Date: Fri, 4 Jul 2008 04:21:26 -0300 Subject: [support] update related In-Reply-To: <2240033d0807032221n40d624f4vcfd4dd99aa12c124@mail.gmail.com> References: <2240033d0807032221n40d624f4vcfd4dd99aa12c124@mail.gmail.com> Message-ID: In case you never came across a certain setting in Administer > Content Management > Post settings, you can regulate the default length of trimmed posts (assuming there is no (notice "!" as part of syntax of HTML comment) ). On Fri, Jul 4, 2008 at 2:21 AM, bharani kumar wrote: > Hi dear > > > am having the more then 1000 records, > > I want to insert the <--break-->,in that 1000 record , > > in that there is field called body, which contain article, too big content > in that , > now i want to insert the <--break-->, after every 1075 character has meet, > > > also Never broke the html tag...that is dont put the <--break--> > > between <<--break-->table>.. > > > for this i written the code > > > mysql_connect("localhost","root","admin"); > mysql_select_db("sample") or die("could not select the database"); > $sql = "select * from node_revisions"; > $rs = mysql_query($sql); > if(mysql_num_rows($rs)>0) > { > while($obj=mysql_fetch_object($rs)) > { > $body_chunksplit = $obj->body; > $nid=$obj->nid; > $body_chunksplit=str_replace("'", "\'", $body_chunksplit); > $lrn = strlen($body_chunksplit); > $length=$lrn*2; > > if(strlen($body_chunksplit) >= 4500) > { > $body_content=substr(chunk_split($body_chunksplit, 4500, > "<--pagebreak-->"), 0, $length); > //drupal_set_message(wordcount($body_content)); > } > else > { > $body_content=$body_chunksplit; > } > mysql_query("UPDATE node_revisions SET body='$body_content' where > nid='$nid'") or die("could not"); > } > > > } > > ?> > > This is will not solved my total problem, > > Can any find the bug and solve it... > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080704/87643d55/attachment-0001.htm From net at twoedged.org Fri Jul 4 09:03:31 2008 From: net at twoedged.org (John Fletcher) Date: Fri, 4 Jul 2008 19:03:31 +1000 Subject: [support] Different ront page for each locale In-Reply-To: <701011.12970.bm@omp103.mail.re1.yahoo.com> References: <004a01c8dca5$fb860cc0$f2922640$@org> <701011.12970.bm@omp103.mail.re1.yahoo.com> Message-ID: <001401c8ddb4$d5fb5810$81f20830$@org> What happens when you try to do it? From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Thursday, 3 July 2008 6:05 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale I tried it but with i18n I can't assign the same url alias to node translations... I'm doing something wrong? thank's -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080704/17b692a3/attachment.htm From bharanikumariyerphp at gmail.com Fri Jul 4 09:09:51 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 4 Jul 2008 14:39:51 +0530 Subject: [support] update related In-Reply-To: References: <2240033d0807032221n40d624f4vcfd4dd99aa12c124@mail.gmail.com> Message-ID: <2240033d0807040209q47ff0178r97cad34b2694b3fe@mail.gmail.com> its some example am saying ,,, am put this symbol <--pagebreak--> On Fri, Jul 4, 2008 at 12:51 PM, Victor Kane wrote: > In case you never came across a certain setting in Administer > Content > Management > Post settings, you can regulate the default length of trimmed > posts (assuming there is no (notice "!" as part of syntax of > HTML comment) ). > > On Fri, Jul 4, 2008 at 2:21 AM, bharani kumar < > bharanikumariyerphp at gmail.com> wrote: > >> Hi dear >> >> >> am having the more then 1000 records, >> >> I want to insert the <--break-->,in that 1000 record , >> >> in that there is field called body, which contain article, too big content >> in that , >> now i want to insert the <--break-->, after every 1075 character has meet, >> >> >> also Never broke the html tag...that is dont put the <--break--> >> >> between <<--break-->table>.. >> >> >> for this i written the code >> >> >> > mysql_connect("localhost","root","admin"); >> mysql_select_db("sample") or die("could not select the database"); >> $sql = "select * from node_revisions"; >> $rs = mysql_query($sql); >> if(mysql_num_rows($rs)>0) >> { >> while($obj=mysql_fetch_object($rs)) >> { >> $body_chunksplit = $obj->body; >> $nid=$obj->nid; >> $body_chunksplit=str_replace("'", "\'", $body_chunksplit); >> $lrn = strlen($body_chunksplit); >> $length=$lrn*2; >> >> if(strlen($body_chunksplit) >= 4500) >> { >> $body_content=substr(chunk_split($body_chunksplit, 4500, >> "<--pagebreak-->"), 0, $length); >> //drupal_set_message(wordcount($body_content)); >> } >> else >> { >> $body_content=$body_chunksplit; >> } >> mysql_query("UPDATE node_revisions SET body='$body_content' where >> nid='$nid'") or die("could not"); >> } >> >> >> } >> >> ?> >> >> This is will not solved my total problem, >> >> Can any find the bug and solve it... >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080704/109d4311/attachment.htm From marolijo at yahoo.es Fri Jul 4 12:12:07 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Fri, 4 Jul 2008 14:12:07 +0200 Subject: [support] Different ront page for each locale In-Reply-To: <001401c8ddb4$d5fb5810$81f20830$@org> Message-ID: <308274.93674.bm@omp206.mail.re3.yahoo.com> It says: La ruta ya se esta usando. It means "The path is already in use", or something like this... thank's! ________________________________ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de John Fletcher Enviado el: divendres, 4 / juliol / 2008 11:04 Para: support at drupal.org Asunto: Re: [support] Different ront page for each locale What happens when you try to do it? From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Thursday, 3 July 2008 6:05 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale I tried it but with i18n I can't assign the same url alias to node translations... I'm doing something wrong? thank's __________ Informacisn de NOD32, revisisn 3240 (20080704) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com From pierre.rineau at makina-corpus.com Fri Jul 4 13:21:03 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Fri, 04 Jul 2008 15:21:03 +0200 Subject: [support] file_create_url() breaks some sites Message-ID: <1215177663.28595.7.camel@localhost> Hi I have some probl?mes with the CCK image field module. This is not because of the module, but because of the core file_create_url() function. I explain: This give me an asbolute URL because of the use of $GLOBALS['url']. If we look at the url() function, we have a boolean parameter $absolute, which is default setted to FALSE. If false is selected, , the method use base_path() as base for the url, else it uses the global $base_url. Is this normal that drupal devs made the choice of always put absolute URL for files ? Is this a bug ? If not, why ? The problem for me is that I use drupals behind proxies (they are in a company LAN, using internal DNS which are not accessible from outside). When giving absolute pathes, the site give me, through the proxy an internal DNS which does not work. From mimlist at repconnection.com Fri Jul 4 14:09:49 2008 From: mimlist at repconnection.com (Gregg Marshall) Date: Fri, 4 Jul 2008 08:09:49 -0600 Subject: [support] Different in IE7, FireFox, Logged In, Logged Out? Message-ID: I'm running Drupal 5.7 with a modified Zen Basic theme. I got the problem solved of the logo and title on different lines by playing with the code, but now I'm getting a strange result. IE7 more/less works except the logo is low and the title is over-sized: FireFox 3 displays everything the way I expect when logged out: But when I log in, I get a shift I can't figure out: Any suggestions what I've done wrong??? Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080704/f09f6108/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 71247 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080704/f09f6108/attachment-0003.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 67334 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080704/f09f6108/attachment-0004.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 49461 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080704/f09f6108/attachment-0005.jpeg From matt at cabinetuk.com Fri Jul 4 14:43:30 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Fri, 4 Jul 2008 15:43:30 +0100 Subject: [support] file_create_url() breaks some sites In-Reply-To: <1215177663.28595.7.camel@localhost> References: <1215177663.28595.7.camel@localhost> Message-ID: In either case, PUBLIC or PRIVATE, the resulting url for a file should look something like: /path/to/filename Which should then use the same "http://server/" part as the rest of the site. urls, generally need to be absolute so that urls can be created that will work irrespective of the setting of "Clean URLs". eg: Clean URL off: drupal pages are at http://server/?q=drupal/path/page -> the path of these will *always* be "/" since thats the path that hosts the "index.php" file. Clean URL on: drupal pages are at http://server/drupal/path/page -> your browser thinks the path of the file is in a directory /drupal/path/ . You can see that the setting of clean urls can change whether a relative link will work or not. I think it's safe that url() defaults to making absolute urls that will work in both clean urls ON and OFF. It also sounds like you might have a local network problem. -Matt On 04/07/2008, at 2:21 PM, Pierre Rineau wrote: > Hi > > I have some probl?mes with the CCK image field module. This is not > because of the module, but because of the core file_create_url() > function. > > I explain: > > function file_create_url($path) { > // Strip file_directory_path from $path. We only include relative > paths in urls. > if (strpos($path, file_directory_path() . '/') === 0) { > $path = trim(substr($path, strlen(file_directory_path())), '\\/'); > } > switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) { > case FILE_DOWNLOADS_PUBLIC: > return $GLOBALS['base_url'] .'/'. file_directory_path() .'/'. > str_replace('\\', '/', $path); > case FILE_DOWNLOADS_PRIVATE: > return url('system/files/'. $path, NULL, NULL, TRUE); > } > } > ?> > > This give me an asbolute URL because of the use of $GLOBALS['url']. > > If we look at the url() function, we have a boolean parameter > $absolute, which is default setted to FALSE. > If false is selected, , the method use base_path() as base for the > url, else it uses the global $base_url. > > Is this normal that drupal devs made the choice of always put > absolute URL for files ? > Is this a bug ? > If not, why ? > > The problem for me is that I use drupals behind proxies (they are in > a company LAN, using internal DNS which > are not accessible from outside). When giving absolute pathes, the > site give me, through the proxy an internal > DNS which does not work. > > -- > [ Drupal support list | http://lists.drupal.org/ ] From pierre.rineau at makina-corpus.com Fri Jul 4 15:17:37 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Fri, 04 Jul 2008 17:17:37 +0200 Subject: [support] file_create_url() breaks some sites In-Reply-To: References: <1215177663.28595.7.camel@localhost> Message-ID: <1215184657.28595.31.camel@localhost> Thanks for you answer, but I think you did not answer my question. Maybe I did not formulate it correctly. When I say relative path, I mean path relative to server root (without domain name in it), not path without the preceding "/". Absolute URL is an URL with "http://server" and relative URL will be just "/". I speak of relative or absolute URL not relative or absolute PATH. On ven, 2008-07-04 at 15:43 +0100, Matt Connolly wrote: > In either case, PUBLIC or PRIVATE, the resulting url for a file should > look something like: > > /path/to/filename No suprises. > Which should then use the same "http://server/" part as the rest of > the site. > urls, generally need to be absolute so that urls can be created that > will work irrespective of the setting of "Clean URLs". eg: > > Clean URL off: > drupal pages are at http://server/?q=drupal/path/page -> the path of > these will *always* be "/" since thats the path that hosts the > "index.php" file. > > Clean URL on: > drupal pages are at http://server/drupal/path/page -> your browser > thinks the path of the file is in a directory /drupal/path/ . With clean URL, and absolute pathes: -- my file URL will be http://server/files/filename my path URL will be http://server/drupal/path/page clean URL, relative: -- file: /files/filename path: /drupal/path/page Without clean URL, absolute: -- file: http://server/files/filename path: http://server/index.php?q=drupal/path/page without, relative: -- file: /files/filename path: /index.php?q=drupal/path/page No difference, in all cases, apache will find the file to use. URL do not need to carry the "http://server" since in all cases, this string is exactly the same, clean URL or not. Apache (or another httpd) will know what to rewrite or not. The only case we could absolutely need absolute URLs will be in case our files are on another static server (eg: "http:/static-server"). So relative or absolute URLs, makes no difference at all wheither it's a file or a drupal page the user asked. Even better, if the file does not exists, he's got a clean 404 error. > You can see that the setting of clean urls can change whether a > relative link will work or not. > > I think it's safe that url() defaults to making absolute urls that > will work in both clean urls ON and OFF. Absolute or relative makes no difference here. URL default is FALSE (relative) anyway. Absolute is necessary only if you have to link content from another httpd on another box (or another virtual host). > > It also sounds like you might have a local network problem. This is not a problem, this a feature, we have a quite complex network, and linking files with Drupal is the only problem we ever had with CMSs (we don't only use Drupal). To finish, if we look to the default Apache rewrite rules that Drupal put in the .htaccess file, we have: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d These two lines have their importance. Apache here checks if path is not a real FS path neither a real file on FS. When we link a file, we will never add the index.php?q= except maybe for private files, when we have to do some checks with Drupal framework. But for public files, we? never need the index.php?q=, clean url or not, relative path or not. I really think this method should be able to generate relative pathes. If it can't, is there a workaround to do so ? > -Matt > > > > On 04/07/2008, at 2:21 PM, Pierre Rineau wrote: > > > Hi > > > > I have some probl?mes with the CCK image field module. This is not > > because of the module, but because of the core file_create_url() > > function. > > > > I explain: > > > > > function file_create_url($path) { > > // Strip file_directory_path from $path. We only include relative > > paths in urls. > > if (strpos($path, file_directory_path() . '/') === 0) { > > $path = trim(substr($path, strlen(file_directory_path())), '\\/'); > > } > > switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) { > > case FILE_DOWNLOADS_PUBLIC: > > return $GLOBALS['base_url'] .'/'. file_directory_path() .'/'. > > str_replace('\\', '/', $path); > > case FILE_DOWNLOADS_PRIVATE: > > return url('system/files/'. $path, NULL, NULL, TRUE); > > } > > } > > ?> > > > > This give me an asbolute URL because of the use of $GLOBALS['url']. > > > > If we look at the url() function, we have a boolean parameter > > $absolute, which is default setted to FALSE. > > If false is selected, , the method use base_path() as base for the > > url, else it uses the global $base_url. > > > > Is this normal that drupal devs made the choice of always put > > absolute URL for files ? > > Is this a bug ? > > If not, why ? > > > > The problem for me is that I use drupals behind proxies (they are in > > a company LAN, using internal DNS which > > are not accessible from outside). When giving absolute pathes, the > > site give me, through the proxy an internal > > DNS which does not work. > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > From pierre.rineau at makina-corpus.com Fri Jul 4 15:21:59 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Fri, 04 Jul 2008 17:21:59 +0200 Subject: [support] file_create_url() breaks some sites In-Reply-To: <1215184657.28595.31.camel@localhost> References: <1215177663.28595.7.camel@localhost> <1215184657.28595.31.camel@localhost> Message-ID: <1215184919.28595.33.camel@localhost> On ven, 2008-07-04 at 17:17 +0200, Pierre Rineau wrote: > Thanks for you answer, but I think you did not answer my question. Maybe > I did not formulate it correctly. > > When I say relative path, I mean path relative to server root (without > domain name in it), not path without the preceding "/". > > Absolute URL is an URL with "http://server" and relative URL will be > just "/". I speak of relative or absolute URL not relative or absolute > PATH. > > On ven, 2008-07-04 at 15:43 +0100, Matt Connolly wrote: > > In either case, PUBLIC or PRIVATE, the resulting url for a file should > > look something like: > > > > /path/to/filename > > No suprises. > > > Which should then use the same "http://server/" part as the rest of > > the site. > > urls, generally need to be absolute so that urls can be created that > > will work irrespective of the setting of "Clean URLs". eg: > > > > Clean URL off: > > drupal pages are at http://server/?q=drupal/path/page -> the path of > > these will *always* be "/" since thats the path that hosts the > > "index.php" file. > > > > Clean URL on: > > drupal pages are at http://server/drupal/path/page -> your browser > > thinks the path of the file is in a directory /drupal/path/ . > > With clean URL, and absolute pathes: > -- > my file URL will be http://server/files/filename > my path URL will be http://server/drupal/path/page > > clean URL, relative: > -- > file: /files/filename > path: /drupal/path/page > > Without clean URL, absolute: > -- > file: http://server/files/filename > path: http://server/index.php?q=drupal/path/page > > without, relative: > -- > file: /files/filename > path: /index.php?q=drupal/path/page > > No difference, in all cases, apache will find the file to use. URL do > not need to carry the "http://server" since in all cases, this string is > exactly the same, clean URL or not. Apache (or another httpd) will know > what to rewrite or not. The only case we could absolutely need absolute > URLs will be in case our files are on another static server (eg: > "http:/static-server"). > > So relative or absolute URLs, makes no difference at all wheither it's a > file or a drupal page the user asked. > > Even better, if the file does not exists, he's got a clean 404 error. > > > You can see that the setting of clean urls can change whether a > > relative link will work or not. > > > > I think it's safe that url() defaults to making absolute urls that > > will work in both clean urls ON and OFF. > > Absolute or relative makes no difference here. URL default is FALSE > (relative) anyway. > > Absolute is necessary only if you have to link content from another > httpd on another box (or another virtual host). > > > > > It also sounds like you might have a local network problem. > > This is not a problem, this a feature, we have a quite complex network, > and linking files with Drupal is the only problem we ever had with CMSs > (we don't only use Drupal). > > To finish, if we look to the default Apache rewrite rules that Drupal > put in the .htaccess file, we have: > > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > > These two lines have their importance. Apache here checks if path is not > a real FS path neither a real file on FS. > > When we link a file, we will never add the index.php?q= except maybe for > private files, when we have to do some checks with Drupal framework. > > But for public files, we? never need the index.php?q=, clean url or not, > relative path or not. > > I really think this method should be able to generate relative pathes. > If it can't, is there a workaround to do so ? ?I really think this method should be able to generate relative URL <= typo error, URL was the good word (makes no sens to say path here). if it can't, is there a workaround to do so ? > > -Matt > > > > > > > > On 04/07/2008, at 2:21 PM, Pierre Rineau wrote: > > > > > Hi > > > > > > I have some probl?mes with the CCK image field module. This is not > > > because of the module, but because of the core file_create_url() > > > function. > > > > > > I explain: > > > > > > > > function file_create_url($path) { > > > // Strip file_directory_path from $path. We only include relative > > > paths in urls. > > > if (strpos($path, file_directory_path() . '/') === 0) { > > > $path = trim(substr($path, strlen(file_directory_path())), '\\/'); > > > } > > > switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) { > > > case FILE_DOWNLOADS_PUBLIC: > > > return $GLOBALS['base_url'] .'/'. file_directory_path() .'/'. > > > str_replace('\\', '/', $path); > > > case FILE_DOWNLOADS_PRIVATE: > > > return url('system/files/'. $path, NULL, NULL, TRUE); > > > } > > > } > > > ?> > > > > > > This give me an asbolute URL because of the use of $GLOBALS['url']. > > > > > > If we look at the url() function, we have a boolean parameter > > > $absolute, which is default setted to FALSE. > > > If false is selected, , the method use base_path() as base for the > > > url, else it uses the global $base_url. > > > > > > Is this normal that drupal devs made the choice of always put > > > absolute URL for files ? > > > Is this a bug ? > > > If not, why ? > > > > > > The problem for me is that I use drupals behind proxies (they are in > > > a company LAN, using internal DNS which > > > are not accessible from outside). When giving absolute pathes, the > > > site give me, through the proxy an internal > > > DNS which does not work. > > > > > > -- > > > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] From edward.peters at uk.iofc.org Fri Jul 4 15:30:22 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Fri, 4 Jul 2008 16:30:22 +0100 Subject: [support] Views 2 field question Message-ID: <01ea01c8ddea$e0927700$a1b76500$@peters@uk.iofc.org> Is there any way to define a field in a table view which triggers a change to a value in the row of that table? For example, the Organic Groups list view has a 'join link' field which when clicked subscribes the user to that group. At present, if I want to change a value, I can have an 'edit' link which goes to the form, and then back to the view after saving the change. It would be neater to have a one-step action. Thanks Edward Peters Oxford, UK www.iofc.org From matt at cabinetuk.com Fri Jul 4 16:26:49 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Fri, 4 Jul 2008 17:26:49 +0100 Subject: [support] secondary local task menu Message-ID: <264EF972-F33F-41C8-B21D-5ECDE79DCCA8@cabinetuk.com> I'm having difficulties with secondary menus. Basically, I'd like to show some secondary local menus that don't relate to a primary local menu. I assume they can't. In which case, I'd be happy for the primary local menu to be shown *only* when the secondary menu is there, even if it is redundant. Let me explain in more detail: here are the pages I want: groups - lists groups on the site groups/add - add a new group to the site groups/list - default local task, alias for "groups" groups/view/% - view details for a specific group groups/view/%/list -default secondary local task, alias for "groups/ view/%" groups/view/%/edit - form for editing group groups/view/%/delete - form for deleting a group So, when I'm viewing a group (in any group/view/%[/%] page, I'd like to see the secondary local task menu. The only way I can achieve the secondary menu to appear is to make "groups/view/%" a primary local task, which doesn't make any since the "%" doesn't match anything in the path "groups", yet it still appears as a local task to that page. Another problem is that I get "groups/view/%" twice, in the primary local menu and in the secondary local menu thanks to the alias "groups/ view/%/list", which is needed to be the default task in the secondary local menu. Any ideas? -Matt From larry at garfieldtech.com Fri Jul 4 18:41:03 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Fri, 4 Jul 2008 13:41:03 -0500 Subject: [support] Views 2 field question In-Reply-To: <01ea01c8ddea$e0927700$a1b76500$@peters@uk.iofc.org> References: <01ea01c8ddea$e0927700$a1b76500$@peters@uk.iofc.org> Message-ID: <200807041341.03832.larry@garfieldtech.com> On Friday 04 July 2008 10:30:22 am Edward Peters wrote: > Is there any way to define a field in a table view which triggers a change > to a value in the row of that table? For example, the Organic Groups list > view has a 'join link' field which when clicked subscribes the user to that > group. At present, if I want to change a value, I can have an 'edit' link > which goes to the form, and then back to the view after saving the change. > It would be neater to have a one-step action. > > Thanks > > Edward Peters > Oxford, UK > www.iofc.org You don't want to have a link that triggers a data change. That's in violation of the HTTP spec as well as a security hole. :-) However, you could have a link that links to a confirmation page with a button, and the button triggers a change. That sounds like what you're doing already. It *may* be possible (I've not tried) to do some fanciness with the theming of a given "field" to render a single-button form, and that will be your join "link". (Style the button to look not like a button.) See the existing code for edit and delete links for a model and try to extrapolate from there. I'm not sure if this will work, but it may. -- Larry Garfield larry at garfieldtech.com From net at twoedged.org Sat Jul 5 00:55:46 2008 From: net at twoedged.org (John Fletcher) Date: Sat, 5 Jul 2008 10:55:46 +1000 Subject: [support] Different ront page for each locale In-Reply-To: <308274.93674.bm@omp206.mail.re3.yahoo.com> References: <001401c8ddb4$d5fb5810$81f20830$@org> <308274.93674.bm@omp206.mail.re3.yahoo.com> Message-ID: <001701c8de39$dcef46b0$96cdd410$@org> Yeah, sorry you are right. Mine does that too. However it still works. Not ideal... so I'm also probably going to investigate this when I have some time and try and find a better solution. -----Original Message----- From: marolijo - Pol Maresma [mailto:marolijo at yahoo.es] Sent: Friday, 4 July 2008 10:12 PM To: support at drupal.org Subject: Re: [support] Different ront page for each locale It says: La ruta ya se esta usando. It means "The path is already in use", or something like this... thank's! From net at twoedged.org Sun Jul 6 05:13:51 2008 From: net at twoedged.org (John Fletcher) Date: Sun, 6 Jul 2008 15:13:51 +1000 Subject: [support] Menu positioning Message-ID: <000001c8df27$155ffd30$401ff790$@org> Jonathan, Thanks a lot for the below tip. It's a month old now but finally I got around to doing it - and it worked! The only trick was that I had to store $_GET['q'] in a variable before changing the active item else it wouldn't change back correctly. I now wrote a bit of complicated code to get all the right secondary links menus appearing at the right time. The only further thing that would be great is to be able to set the desired menu items as "active" in primary and secondary links. I've seen a few people talking about how to do this on drupal.org but it inevitably involves regexp string matching... yuk... and there are different techniques anyway. Does anyone know the "best way" to do this in D6? By the way Jonathan, you appear to cryptographically sign your messages and I find that with MS lookOut (in digest mode - all messages come as attachments to one message) I can't read your messages. I had to go to the online list archive to read your response. Not sure if this is just an Outlook issue but anyway thought you should know. Regards, John John Fletcher wrote: > > Is there a way to instruct Drupal 6 to show a certain menu without > actually putting the node you are viewing into that menu? > > > > I'm using primary links as the source of secondary links and I'd like > to instruct Drupal that "this node I'm viewing is associated with this > menu item" so that the correct combination of primary and secondary > links is displayed. I can achieve this by just putting all the > relevant nodes as third-level menu items, but then I've got a LOT of > stuff in my menu (I've got about 700 nodes). > On the relevant pages, you can do the following to construct the menu for a different path (say, for example, node/7) in template.php (in your theme_preprocess_page() function). menu_set_active_item('node/7'); // build secondary links $vars['secondary_links'] = menu_secondary_links(); // reset active item menu_set_active_item($_GET['q']); Cheers, Jonathan -- Jonathan Hedstrom OpenSourcery http://opensourcery.com Technology for Good -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080706/b3f0f412/attachment.htm From roy at panix.com Sun Jul 6 22:37:27 2008 From: roy at panix.com (Roy Smith) Date: Sun, 6 Jul 2008 18:37:27 -0400 Subject: [support] Views not enabled after backup/restore? Message-ID: I'm running drupal 5.7 with the following optional modules enabled: calendar-5.x-1.7 cck-5.x-1.6-1. date-5.x-1.8 forms-5.x-1.x-dev nodeaccess-5.x-1.x-dev private_upload-5.x-1.0-beta6 quotes-5.x-1.1 sitecss-5.x-0.2 survey-5.x-1.x-dev views-5.x-1.6 weather-5.x-6.0 I did a backup of my site database and restored it to another site (to test the backup/restore process). When I went to my frontpage, I got "Page not found". To make a long story short, it looks like the views module didn't get re-enabled. I could get to the /admin page and under the Site Building heading, it didn't show views. When I went to /admin/build/modules and ran update.php, everything started to work again. Does this make sense? Should it be necessary to run update.php after a database restore? Roy Smith roy at panix.com From sudheer.s at binaryvibes.co.in Mon Jul 7 05:46:44 2008 From: sudheer.s at binaryvibes.co.in (Sudheer) Date: Mon, 07 Jul 2008 11:16:44 +0530 Subject: [support] Views not enabled after backup/restore? In-Reply-To: References: Message-ID: <4871ADC4.8060300@binaryvibes.co.in> Roy Smith wrote: > I'm running drupal 5.7 with the following optional modules enabled: > > calendar-5.x-1.7 > cck-5.x-1.6-1. > date-5.x-1.8 > forms-5.x-1.x-dev > nodeaccess-5.x-1.x-dev > private_upload-5.x-1.0-beta6 > quotes-5.x-1.1 > sitecss-5.x-0.2 > survey-5.x-1.x-dev > views-5.x-1.6 > weather-5.x-6.0 > > I did a backup of my site database and restored it to another site (to > test the backup/restore process). When I went to my frontpage, I got > "Page not found". To make a long story short, it looks like the views > module didn't get re-enabled. > > I could get to the /admin page and under the Site Building heading, it > didn't show views. When I went to /admin/build/modules and ran > update.php, everything started to work again. Does this make sense? > Should it be necessary to run update.php after a database restore? > > Roy Smith > roy at panix.com > > I think something is missing in your report. If the views module was not shown in admin/build/modules I suspect the files were not copied properly. It is not necessary to run update.php after a database restore unless you have upgraded the module files. -- With warm regards, Sudheer. S http://binaryvibes.co.in From enboig at gmail.com Mon Jul 7 09:12:21 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Mon, 7 Jul 2008 11:12:21 +0200 Subject: [support] problem with fckedito on multisite Message-ID: <45a29f450807070212s70a3cd3g17b6f1d0f4071eef@mail.gmail.com> I have created a new site in a multisite installation. On all previous installations fckeditor works without any problem, but on the last one it doesn't. Firebug isn't working right now, but I have found on firefox console the next error: Error: missing ] after element list Fitxer font: http://www.escoltesiguies.cat/conferencia_corea/node/add/page L?nia: 166, columna: 194 Codi font: oFCK_1.Config['ToolbarSets["Default"]'] = [oFCK_1.Config['EditorAreaCSS'] = "/conferencia_corea/themes/internacional_corea/style.css,/conferencia_corea/sites/all/modules/fckeditor/fckeditor.css"; This errors isn't happening in other sites. I tried changing the theme but it continues without working. Any hint? thanks -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From enboig at gmail.com Mon Jul 7 10:21:51 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Mon, 7 Jul 2008 12:21:51 +0200 Subject: [support] problem with fckedito on multisite In-Reply-To: <45a29f450807070212s70a3cd3g17b6f1d0f4071eef@mail.gmail.com> References: <45a29f450807070212s70a3cd3g17b6f1d0f4071eef@mail.gmail.com> Message-ID: <45a29f450807070321v37052175uc979cecf55f1f1be@mail.gmail.com> I solved this; I don't know where the problem resides, I configured fckfiles to use the youtube pluguin; after this I completely remove the fckeditor installation from drupal database (tables starting with fckeditor and the fckeditor register from table system). After doing this I installed/activated the fckeditor module and everything is working ok. On 7/7/08, Llu?s wrote: > I have created a new site in a multisite installation. On all previous > installations fckeditor works without any problem, but on the last one > it doesn't. Firebug isn't working right now, but I have found on > firefox console the next error: > > Error: missing ] after element list Fitxer font: > http://www.escoltesiguies.cat/conferencia_corea/node/add/page L?nia: > 166, columna: 194 Codi font: > oFCK_1.Config['ToolbarSets["Default"]'] = > [oFCK_1.Config['EditorAreaCSS'] = > "/conferencia_corea/themes/internacional_corea/style.css,/conferencia_corea/sites/all/modules/fckeditor/fckeditor.css"; > > This errors isn't happening in other sites. I tried changing the theme > but it continues without working. > > Any hint? > > thanks > > > -- > *La felicitat ha de ser compatible, compartible i cooperativa. > *Envellim quan els records superen les esperances. > *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From enboig at gmail.com Mon Jul 7 10:23:12 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Mon, 7 Jul 2008 12:23:12 +0200 Subject: [support] Views not enabled after backup/restore? In-Reply-To: <4871ADC4.8060300@binaryvibes.co.in> References: <4871ADC4.8060300@binaryvibes.co.in> Message-ID: <45a29f450807070323r18634140pf0a2dde598402265@mail.gmail.com> maybe a cache problem, try clearing cache. On 7/7/08, Sudheer wrote: > Roy Smith wrote: > > I'm running drupal 5.7 with the following optional modules enabled: > > > > calendar-5.x-1.7 > > cck-5.x-1.6-1. > > date-5.x-1.8 > > forms-5.x-1.x-dev > > nodeaccess-5.x-1.x-dev > > private_upload-5.x-1.0-beta6 > > quotes-5.x-1.1 > > sitecss-5.x-0.2 > > survey-5.x-1.x-dev > > views-5.x-1.6 > > weather-5.x-6.0 > > > > I did a backup of my site database and restored it to another site (to > > test the backup/restore process). When I went to my frontpage, I got > > "Page not found". To make a long story short, it looks like the views > > module didn't get re-enabled. > > > > I could get to the /admin page and under the Site Building heading, it > > didn't show views. When I went to /admin/build/modules and ran > > update.php, everything started to work again. Does this make sense? > > Should it be necessary to run update.php after a database restore? > > > > Roy Smith > > roy at panix.com > > > > > > I think something is missing in your report. If the views module was not > shown in admin/build/modules I suspect the files were not copied > properly. It is not necessary to run update.php after a database restore > unless you have upgraded the module files. > > > > -- > > With warm regards, > Sudheer. S > http://binaryvibes.co.in > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les esperances. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From hays at ohio.edu Mon Jul 7 13:06:14 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 7 Jul 2008 09:06:14 -0400 Subject: [support] Comment body not appearing in forum topics Message-ID: <316C58A3-5D22-41B0-BB50-09D87102257E@ohio.edu> I'm new to Drupal (using 6.2). Individual forum topic pages show only comment titles and authors--not nested comment bodies. I would like to have these pages follow the same general appearance as blog pages-- showing nested comments. Have I done something to disable nested comments in forums? Can I do something to activate it? [Permissions isn't the problem. I've tried both options for the j-query folding checkbox in Forums >> Settings. I'm embarrassed to ask something that is probably so obvious. But if someone can answer, I'd appreciate it. Steve From hays at ohio.edu Mon Jul 7 13:41:52 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 7 Jul 2008 09:41:52 -0400 Subject: [support] Generate automatic link to user's blog in profile Message-ID: I have added a field to Profile (profile_blog_name) that allows each user to name or rename his own blog. I have also hacked drupal_set_title() at blog>blog-pages.inc to use that new field content as the title that appears on the blog page. I then assembled a view that contains all active Profile blog-names-- that is, a directory of all user blogs on the site. Now I'd like to add a link for each blog to that page. I think the easiest way would be to add a hidden field to Profiles and automatically render it as a link at the time of user registration. So, when someone registers and becomes $uid #125, the field is automatically completed as $base_path/ blog/125 or perhaps it would need to be link. If I can get the value into Profiles, I assume I should be able to include it as a Views field and that it should propagate through the blog page just like other fields. I'm just an old classicist trying to implement this for my students-- not a programmer. Can someone please tell me whether this will work-- and how to programatically generate the link in Profiles? Many thanks in advance, Steve Hays -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080707/bdc5761e/attachment.htm From earnie at users.sourceforge.net Mon Jul 7 14:09:25 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 07 Jul 2008 10:09:25 -0400 Subject: [support] Generate automatic link to user's blog in profile In-Reply-To: References: Message-ID: <20080707100925.xxm6e9s5sv8ggock@mail.progw.org> Quoting Steve Hays : > I have added a field to Profile (profile_blog_name) that allows each > user to name or rename his own blog. I have also hacked > drupal_set_title() at blog>blog-pages.inc to use that new field > content as the title that appears on the blog page. > > I then assembled a view that contains all active Profile blog-names-- > that is, a directory of all user blogs on the site. Now I'd like to > add a link for each blog to that page. I think the easiest way would > be to add a hidden field to Profiles and automatically render it as > a link at the time of user registration. So, when someone registers > and becomes $uid #125, the field is automatically completed as > $base_path/ blog/125 or perhaps it would need to be ....>link. If I can get the value into Profiles, I assume I > should be able to include it as a Views field and that it should > propagate through the blog page just like other fields. > > I'm just an old classicist trying to implement this for my students-- > not a programmer. Can someone please tell me whether this will work-- > and how to programatically generate the link in Profiles? > > Many thanks in advance, > You might would rather take a look at the following contrib modules: http://drupal.org/project/me http://drupal.org/project/blog_addons http://drupal.org/project/bloginfo http://drupal.org/project/blogger HTH, Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From pgnet.trash at gmail.com Mon Jul 7 18:38:01 2008 From: pgnet.trash at gmail.com (PGNet) Date: Mon, 07 Jul 2008 11:38:01 -0700 Subject: [support] what's wrong with my .htaccess? inconsistent mod_rewrites Message-ID: I'm on a shared apache2 host. PHP runs under mod_fcgid. I've installed my own php5 binary which overrides use of the system's default, (php v5.2.6), ~/public_html/mydomain.com/cgi-bin/php5.cgi -v | grep cgi-fcgi PHP 5.2.7-dev (cgi-fcgi) (built: Jul 1 2008 09:14:51) I've installed Drupal in, ~/public_html/mydomain.com/apps/drupal i've copied a 'standard' phpinfo() file, cat info.php to, cp info.php ~/public_html/mydomain.com/info_webroot.php cp info.php ~/public_html/mydomain.com/apps/drupal/info_drupalroot.php @ nav to each of the following URLs, I see: (1) http://mydomain.com/info_webroot.php "PHP Version 5.2.7-dev" ... (2) http://mydomain.com/info_drupalroot.php "No input file specified." (3) http://mydomain.com/apps/drupal/info_drupalroot.php "PHP Version 5.2.7-dev" ... (4) http://mydomain.com/admin/reports/status/php "PHP Version 5.2.6" ... My goal is to have all four tests show the same, "PHP Version 5.2.7-dev" ... What's wrong with my .htaccess config? Details: .htaccess in webroot (~/public_html/mydomain.com/.htaccess) contains, Options +FollowSymLinks +ExecCGI -Indexes RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !^favicon.ico$ RewriteCond %{REQUEST_URI} !^/robots.txt$ RewriteCond %{ENV:REDIRECT_STATUS} !200 RewriteRule ^(.+\.php)$ /cgi-bin/dispatch.fcgi/$1 [L] AddHandler fcgid-script .fcg .fcgi .fpl #FCGIWrapper "/home/mydomain/public_html/cgi-bin/dispatch.fcgi -c/home/mydomain/conf/php5/php-cgi-fcgi.ini" .php FCGIWrapper "/home/pgnet/public_html/mydomain.com/cgi-bin/dispatch.fcgi -c/home/pgnet/etc/php5/mydomain.com/php-cgi-fcgi.ini" .php RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^$ apps/drupal/index.php [L] RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteCond %{DOCUMENT_ROOT}/apps/drupal%{REQUEST_URI} -f RewriteRule .* apps/drupal/$0 [L] RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* apps/drupal/index.php?q=$0 [QSA] where, cat /home/pgnet/public_html/mydomain.com/cgi-bin/dispatch.fcgi #!/bin/bash export PHPRC=/home/pgnet/etc/php5/mydomain.com export PHP_FCGI_CHILDREN=2 exec /home/pgnet/public_html/mydomain.com/cgi-bin/php5.cgi I changed Drupal's .htaccess (~/public_html/mydomain.com/apps/drupal/.htaccess) - + From hays at ohio.edu Mon Jul 7 20:16:34 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 7 Jul 2008 16:16:34 -0400 Subject: [support] Views: Index of Forum topics in D6. Message-ID: <58502610-D9ED-4665-A342-50687192D475@ohio.edu> ... drupal/forum produces a very nice list of all the forums on a site. So, this list might include Life at College (forum/11) Life in the Dorms (forum/12) Coursework (forum/13) Libraries (forum/14) etc. I want to use Views in D6 to produce an index of topics submitted to each forum such that if a visitor to the index page (listing all forum containers and forums) clicks on the forum "Life in the Dorms," the target page reveals a list of all forum topics in that particular forum. I have made 2 attempts in Views to produce this result: a) If I include the arg: "Taxonomy Term ID = $tid" (and check the box to reduce duplicates), I get a list that looks right initially, but it quickly develops duplicates as comments are submitted. So, for example, an original forum topic "Are dorms loud at night" quickly multiplies into 20 duplicates in the list as people comment on the original (presumably because all of them include the same taxonomy reference). b) If I omit the above arg, the results fail to filter by topic. So, indices for all forums are identical--with content all mixed up (library topics included in the dorms forum, etc.) I don't really want to use a Taxonomy arg at all, of course. That was just a work-around attempt (vainly hoping I could filter out duplicates). What I would really like to do is filter the forum topics by forum number (assuming there is such a thing). There must be some field that identifies the Forum to which a forum topic belongs ($fid ?) Can anyone be so kind as to tell me how to invoke this field/variable -- in Views if possible, or in php if need be? Thanks in advance. Steve Hays Ohio University Dep't of Classics and World Religions -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080707/73c9ea20/attachment.htm From denis.lafont at gmail.com Tue Jul 8 08:37:43 2008 From: denis.lafont at gmail.com (Denis Lafont-Trevisan) Date: Tue, 8 Jul 2008 10:37:43 +0200 Subject: [support] Panel 2 Beta 5 with dynamic Title Message-ID: <51182f4c0807080137o3b6668bif2cf5d8c56eb9900@mail.gmail.com> Hi, I can't manage to have the correctly set with a "panel page" with Panel2 Beta 5 (Drupal 5.7) . I would like to know if this is something I am not doing correctly or if it is an issue. Description (you can test on site: http://www.opensource-it.com ) : - I have a tag cloud generated from a free tagged category - I use taxonomy_redirect module to redirect when the user clicks on a term in the tag cloud - the redirection goes to a "panel page" (url set to : enterprise_software/open_source/% ) - I want to have the title of that panel set to the term of the category. I've tried several thing but can not find a way to do it. Please note that pathauto is activated, so I use the term name instead of the term ID in the panel2 "context" Any clue? Thanks, Denis -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080708/5b83d5d6/attachment-0001.htm From drupal.beginner at wechange.org Wed Jul 9 10:00:36 2008 From: drupal.beginner at wechange.org (augustin (beginner)) Date: Wed, 9 Jul 2008 18:00:36 +0800 Subject: [support] cvs diff: list unknown files with question mark Message-ID: <200807091800.36731.drupal.beginner@wechange.org> Hello, When developing using Drupal's CVS repository, if we do: cvs diff -up > new.patch at the top of the diff output, there are as many lines (starting with a question mark) as there are files in the local checkout that do not exist in the repository. Often, other patches would be listed: ? 1234.patch ? 98734.patch ? TODO.txt and then comes the diff output proper. I have a local cvs repository for my own development work. However, when I do cvs diff -up against my local repository, the unknown files are not listed as with Drupal's repository. There must be a configuration option somewhere, but I cannot find it. I've looked at the cvs official documentation, I've searched the web... but I cannot find the answer. I hope someone has the answer because it's a very useful feature. thanks, Augustin. From neil at esl-lounge.com Wed Jul 9 16:01:58 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Wed, 9 Jul 2008 17:01:58 +0100 Subject: [support] New members and unpublished content. Message-ID: <12b601c8e1dd$1e895d80$4101a8c0@Neil> I use a mini-module I found here: http://drupal.org/node/153462 to allow most of my members to skip moderation and have all content posted immediately. the problem is that new users' content does go into moderation and they then get confused about not seeing it and recreate it all again. For example: 1. new user adds a comment to a forum post. There is a message on pressing Submit which says it's gone into moderation. 2. new user creates a video/photo page and attaches it to a OG group. They go to the group and see that their attached page isn't there, so they re-create it. Is there a way of lessening this problem? What do some of you do about dealing with the user experience side of unpublished content. I have a big User Guide in which I mention all of this, but I still find my new users frantically looking for content they've just made and then remaking it when they can't track it down. Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080709/3334afcf/attachment.htm From jhedstrom at opensourcery.com Wed Jul 9 16:29:59 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Wed, 09 Jul 2008 09:29:59 -0700 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <200807091800.36731.drupal.beginner@wechange.org> References: <200807091800.36731.drupal.beginner@wechange.org> Message-ID: <4874E787.5060007@opensourcery.com> augustin (beginner) wrote: > Hello, > > When developing using Drupal's CVS repository, if we do: > cvs diff -up > new.patch > at the top of the diff output, there are as many lines (starting with a > question mark) as there are files in the local checkout that do not exist in > the repository. > Often, other patches would be listed: > > ? 1234.patch > ? 98734.patch > ? TODO.txt > > and then comes the diff output proper. Those are simply files that the CVS repository doesn't know about. They shouldn't cause any problems with the patch, but you can always edit them out if you want. Cheers, Jonathan -- Jonathan Hedstrom OpenSourcery http://opensourcery.com Technology for Good -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://lists.drupal.org/pipermail/support/attachments/20080709/3e221452/attachment.pgp From cog.rusty at gmail.com Wed Jul 9 23:41:00 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Thu, 10 Jul 2008 02:41:00 +0300 Subject: [support] New members and unpublished content. In-Reply-To: <12b601c8e1dd$1e895d80$4101a8c0@Neil> References: <12b601c8e1dd$1e895d80$4101a8c0@Neil> Message-ID: <a08ea0280807091641l19a0b539nf899cd15eb6bc7e9@mail.gmail.com> There is no moderation in Drupal 5 and Drupal 6. (There was in Drupal 4.7 and earlier but it was removed because it was poorly implemented.) Do you mean that you have set up your node types to be "Unpublished" by default? Or are you using some contributed module for moderation? You may find something useful here: http://drupal.org/node/165315 http://drupal.org/project/modr8 http://drupal.org/project/og_user_roles On Wed, Jul 9, 2008 at 7:01 PM, Neil: esl-lounge.com <neil at esl-lounge.com> wrote: > I use a mini-module I found here: http://drupal.org/node/153462 > > to allow most of my members to skip moderation and have all content posted > immediately. > > the problem is that new users' content does go into moderation and they then > get confused about not seeing it and recreate it all again. For example: > > 1. new user adds a comment to a forum post. There is a message on pressing > Submit which says it's gone into moderation. > > 2. new user creates a video/photo page and attaches it to a OG group. They > go to the group and see that their attached page isn't there, so they > re-create it. > > Is there a way of lessening this problem? What do some of you do about > dealing with the user experience side of unpublished content. I have a big > User Guide in which I mention all of this, but I still find my new users > frantically looking for content they've just made and then remaking it when > they can't track it down. > > Neil > -- > [ Drupal support list | http://lists.drupal.org/ ] > From bill at funnymonkey.com Wed Jul 9 23:50:14 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Wed, 09 Jul 2008 16:50:14 -0700 Subject: [support] New members and unpublished content. In-Reply-To: <12b601c8e1dd$1e895d80$4101a8c0@Neil> References: <12b601c8e1dd$1e895d80$4101a8c0@Neil> Message-ID: <48754EB6.8050005@funnymonkey.com> You can use the workflow and actions modules to display a message to users onscreen when they have created a piece of content that goes into the moderation queue. Neil: esl-lounge.com wrote: > I use a mini-module I found here: http://drupal.org/node/153462 > > to allow most of my members to skip moderation and have all content posted immediately. > > the problem is that new users' content does go into moderation and they then get confused about not seeing it and recreate it all again. For example: > > 1. new user adds a comment to a forum post. There is a message on pressing Submit which says it's gone into moderation. > > 2. new user creates a video/photo page and attaches it to a OG group. They go to the group and see that their attached page isn't there, so they re-create it. > > Is there a way of lessening this problem? What do some of you do about dealing with the user experience side of unpublished content. I have a big User Guide in which I mention all of this, but I still find my new users frantically looking for content they've just made and then remaking it when they can't track it down. > > Neil > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From drupal.beginner at wechange.org Thu Jul 10 00:41:02 2008 From: drupal.beginner at wechange.org (augustin (beginner)) Date: Thu, 10 Jul 2008 08:41:02 +0800 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <4874E787.5060007@opensourcery.com> References: <200807091800.36731.drupal.beginner@wechange.org> <4874E787.5060007@opensourcery.com> Message-ID: <200807100841.02783.drupal.beginner@wechange.org> On Thursday 10 July 2008 00:29:59 Jonathan Hedstrom wrote: > > ? 1234.patch > > ? 98734.patch > > ? TODO.txt > > > > and then comes the diff output proper. > > Those are simply files that the CVS repository doesn't know about. They > shouldn't cause any problems with the patch, but you can always edit > them out if you want. I know that. I still would like to have them listed. It is useful to know which new files we have that we forgot to add (cvs add file) or which file we have that we don't intend to commit. So, the question remains: how can I configure CVS so that those files are listed at the top of the patch, just like they are with Drupal CVS? Thanks, Augustin. From sean at practicalweb.co.uk Thu Jul 10 08:13:48 2008 From: sean at practicalweb.co.uk (Sean Burlington) Date: Thu, 10 Jul 2008 09:13:48 +0100 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <200807100841.02783.drupal.beginner@wechange.org> References: <200807091800.36731.drupal.beginner@wechange.org> <4874E787.5060007@opensourcery.com> <200807100841.02783.drupal.beginner@wechange.org> Message-ID: <4875C4BC.9040206@practicalweb.co.uk> augustin (beginner) wrote: > On Thursday 10 July 2008 00:29:59 Jonathan Hedstrom wrote: >>> ? 1234.patch >>> ? 98734.patch >>> ? TODO.txt > > So, the question remains: how can I configure CVS so that those files are > listed at the top of the patch, just like they are with Drupal CVS? > Hi Augustin, I've never known CVS not to do that ... but perhaps if you could tell us a little about your setup it might help us help you .. Windows/Mac/Linux ? Which version of cvs do you have? Are you sure these files are neither in cvs - nor been cvsignore'd ?? -- Sean Burlington www.practicalweb.co.uk From earnie at users.sourceforge.net Thu Jul 10 12:06:40 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 10 Jul 2008 08:06:40 -0400 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <200807100841.02783.drupal.beginner@wechange.org> References: <200807091800.36731.drupal.beginner@wechange.org> <4874E787.5060007@opensourcery.com> <200807100841.02783.drupal.beginner@wechange.org> Message-ID: <20080710080640.2ol7wmldtzhk4ss0@mail.progw.org> Quoting "augustin (beginner)" <drupal.beginner at wechange.org>: > On Thursday 10 July 2008 00:29:59 Jonathan Hedstrom wrote: >> > ? 1234.patch >> > ? 98734.patch >> > ? TODO.txt >> > >> > and then comes the diff output proper. >> >> Those are simply files that the CVS repository doesn't know about. They >> shouldn't cause any problems with the patch, but you can always edit >> them out if you want. > > > I know that. I still would like to have them listed. It is useful to know > which new files we have that we forgot to add (cvs add file) or which file we > have that we don't intend to commit. > > So, the question remains: how can I configure CVS so that those files are > listed at the top of the patch, just like they are with Drupal CVS? > Your CVS is controlled by the files in CVSROOT which can be checked out and committed for changes; if you have appropriate karma to these files. Your working directory can also have a .cvsignore file that can cause these files to be ignored. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From neil at esl-lounge.com Thu Jul 10 15:25:15 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Thu, 10 Jul 2008 16:25:15 +0100 Subject: [support] upgrading to 5.8. One question. Message-ID: <004901c8e2a1$27c43040$4101a8c0@Neil> the upgrade.txt that comes with 5.8 mentions the following: 4. Disable contributed modules and switch to a core theme (Bluemarine or Garland). I seem to recall I had problems way back around 5.3 doing this. I disabled CCK I think it was and tables such as content_type_XYZ in my db were eliminated, together with the content in them. Am I remembering correctly? So this is keeping me from disabling any contributed modules until I'm sure about this as I don't want to lose data. does this ring a bell with anyone? Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080710/189f568c/attachment-0001.htm From fredthejonester at gmail.com Thu Jul 10 15:34:59 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 10 Jul 2008 17:34:59 +0200 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <004901c8e2a1$27c43040$4101a8c0@Neil> References: <004901c8e2a1$27c43040$4101a8c0@Neil> Message-ID: <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> > I seem to recall I had problems way back around 5.3 doing this. I disabled > CCK I think it was and tables such as content_type_XYZ in my db were > eliminated, together with the content in them. Am I remembering correctly? Can't say if it's correct or not, but I don't actually change themes nor disable mods when I do a 'minor' update of core Drupal. It may be risky, but I have never had a problem. But yes, disabling some modules will IIRC remove tables and therefore data. Either way, always do the whole process on a spare site, or at the very least, backup your files and DB first. :) Good luck From earnie at users.sourceforge.net Thu Jul 10 16:20:20 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 10 Jul 2008 12:20:20 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> Message-ID: <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> Quoting Fred Jones <fredthejonester at gmail.com>: >> I seem to recall I had problems way back around 5.3 doing this. I disabled >> CCK I think it was and tables such as content_type_XYZ in my db were >> eliminated, together with the content in them. Am I remembering correctly? > > Can't say if it's correct or not, but I don't actually change themes > nor disable mods when I do a 'minor' update of core Drupal. It may be > risky, but I have never had a problem. But yes, disabling some modules > will IIRC remove tables and therefore data. > In D5 at least disabling modules does not remove tables. You have to use the Uninstall function for that and the module has to provide the hook. > Either way, always do the whole process on a spare site, or at the > very least, backup your files and DB first. :) > Yes, always do a backup before changing your environment. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From simone.dalmaso at juvox.it Thu Jul 10 16:27:58 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Thu, 10 Jul 2008 18:27:58 +0200 Subject: [support] upgrading to 5.8. One question. References: <004901c8e2a1$27c43040$4101a8c0@Neil><177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> Message-ID: <F6533B65267442C8B7E50DDA5ECBF32B@shtututu> there are only some modules that can lose association with taxonomy, for example if you are using simplenews, if you deactivate the module, you should associate the newsletter type of content with the right category in taxonomy in order to work properly. anyway, be careful if you have patched some core module, for example to suppress some menu voices, don't forget to re-patch it when you have updated your system. From simone.dalmaso at juvox.it Thu Jul 10 17:18:36 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Thu, 10 Jul 2008 19:18:36 +0200 Subject: [support] re-assigning vocabulary to nodes, are there modules? Message-ID: <39B394949B6047CEBA0E564D8C5A51B5@shtututu> Hi, I have about 200 nodes that I assigned to a vocabulary. Now, I realized that I must create another vocabulary and pick some nodes from the old vocabulary and copy to the new. I could open each node, edit that, use the free-tagging and things should be ok, anyway it requires time! Is there a browser of node that shows also the vocabulary and allows me to assign a node to that vocabulary without open and edit the node? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080710/55c0d540/attachment.htm From rich at freestylesystems.co.uk Thu Jul 10 17:25:12 2008 From: rich at freestylesystems.co.uk (Richard Burford) Date: Thu, 10 Jul 2008 18:25:12 +0100 Subject: [support] re-assigning vocabulary to nodes, are there modules? In-Reply-To: <39B394949B6047CEBA0E564D8C5A51B5@shtututu> References: <39B394949B6047CEBA0E564D8C5A51B5@shtututu> Message-ID: <C8E19C69-4714-48AB-9BB2-9E7E7BAC9498@freestylesystems.co.uk> I've used Taxonomy Multi Editor [1] before and it works great. [1] http://drupal.org/project/taxonomy_multi_edit psynaptic http://freestylesystems.co.uk http://api.freestylesystems.co.uk On 10 Jul 2008, at 18:18, Simone Dal Maso wrote: > Hi, > I have about 200 nodes that I assigned to a vocabulary. > Now, I realized that I must create another vocabulary and pick some > nodes from the old vocabulary and copy to the new. > I could open each node, edit that, use the free-tagging and things > should be ok, anyway it requires time! Is there a browser of node > that shows also the vocabulary and allows me to assign a node to > that vocabulary without open and edit the node? > Thanks! > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2437 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080710/7901fc6f/attachment.bin From fredthejonester at gmail.com Thu Jul 10 19:04:20 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 10 Jul 2008 21:04:20 +0200 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> Message-ID: <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> > In D5 at least disabling modules does not remove tables. You have to > use the Uninstall function for that and the module has to provide the > hook. Disabling modules anyhow can certainly lose data. Even without uninstalling. I disabled the Ads module on a site once, I believe, and data was lost which we were forced to restore (what we could) from backups. Fred From mail at webthatworks.it Thu Jul 10 20:55:13 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Thu, 10 Jul 2008 22:55:13 +0200 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <004901c8e2a1$27c43040$4101a8c0@Neil> References: <004901c8e2a1$27c43040$4101a8c0@Neil> Message-ID: <20080710225513.40042183@dawn.webthatworks.it> On Thu, 10 Jul 2008 16:25:15 +0100 "Neil: esl-lounge.com" <neil at esl-lounge.com> wrote: > the upgrade.txt that comes with 5.8 mentions the following: > > 4. Disable contributed modules and switch to a core theme > (Bluemarine or Garland). > > I seem to recall I had problems way back around 5.3 doing this. I > disabled CCK I think it was and tables such as content_type_XYZ in > my db were eliminated, together with the content in them. Am I > remembering correctly? > > So this is keeping me from disabling any contributed modules until > I'm sure about this as I don't want to lose data. > > does this ring a bell with anyone? Giving a look to the patch in spite of just copying the new version over the old one makes much easier to decide how to upgrade. When DB schema changes are involved it may be worth to make the site inaccessible for a while during the update. The websites I'm babysitting with the modules I'm using didn't have any problem from 5.7->5.8. I just had to revert a couple of changes I did on core to live better with postgresql and sessions, but that's not terrible if you've your site under any rcs. -- Ivan Sergio Borgonovo http://www.webthatworks.it From shai at content2zero.com Thu Jul 10 22:19:04 2008 From: shai at content2zero.com (Shai Gluskin) Date: Thu, 10 Jul 2008 18:19:04 -0400 Subject: [support] Node Teaser Available to Views List Message-ID: <9f68efb70807101519y404374f2ob67b807383305c00@mail.gmail.com> I'd like to create a view with node: title and node: teaser content in a list view -- not in teaser view. Is it hardwired into Views that Node:teaser content is not available for inserting in list view? Am I missing something? I'm using Views 1.6 on a Drupal 5.7 install. Thanks, Shai -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080710/fe2c7de6/attachment-0001.htm From armin at easynet.co.uk Thu Jul 10 23:28:41 2008 From: armin at easynet.co.uk (Armin Medosch) Date: Fri, 11 Jul 2008 00:28:41 +0100 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> Message-ID: <1215732521.6556.164.camel@armin-laptop> On Thu, 2008-07-10 at 21:04 +0200, Fred Jones wrote: > > In D5 at least disabling modules does not remove tables. You have to > > use the Uninstall function for that and the module has to provide the > > hook. > > Disabling modules anyhow can certainly lose data. Even without > uninstalling. I disabled the Ads module on a site once, I believe, and > data was lost which we were forced to restore (what we could) from > backups. I had a similar experience. tables had to be restored by hand in mysql. the key is to make a backup of the database and all the important files in the drupal directory in the webroot path, then make the upgrade on a testsite, and then, if everything works, copy it back to the working site. I must add that I am not an authoritative voice, just a simple user, but thats how it worked for me last time after having gone through a botched upgrade. If you create a test site for the upgrade process first, make the upgrade work there, you can do it without the disabling of modules which can be tricky. once it works on the test site you can copy the whole thing back. probably there are other ways, but it worked for me without the disabling business good luck armin > Fred From earnie at users.sourceforge.net Thu Jul 10 23:45:51 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 10 Jul 2008 19:45:51 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> Message-ID: <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> Quoting Fred Jones <fredthejonester at gmail.com>: >> In D5 at least disabling modules does not remove tables. You have to >> use the Uninstall function for that and the module has to provide the >> hook. > > Disabling modules anyhow can certainly lose data. Even without > uninstalling. I disabled the Ads module on a site once, I believe, and > data was lost which we were forced to restore (what we could) from > backups. > If it does the module is broken and needs a bug report issued. I've not found this case. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From net at twoedged.org Fri Jul 11 06:23:46 2008 From: net at twoedged.org (John Fletcher) Date: Fri, 11 Jul 2008 16:23:46 +1000 Subject: [support] Remove inline class from node links Message-ID: <005f01c8e31e$ae205e20$0a611a60$@org> I have a problem with the links at the bottom of a node ("add new comment" etc. - I'm not sure if these links have a certain name). When the last bit of content in a node is floated, the links wrap up around the floated elements instead of being "cleared" and staying below the node content. I noticed that the ul containing the links has the classes "links" and "inline". If I manually remove the "inline" class then the links behave as desired. Where does the class "inline" get added to this list of links and what is the best way to remove it on all nodes? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080711/730ecf14/attachment.htm From jeremiedaoust at gmail.com Fri Jul 11 15:32:22 2008 From: jeremiedaoust at gmail.com (=?ISO-8859-1?Q?J=E9r=E9mie_D'Aoust?=) Date: Fri, 11 Jul 2008 11:32:22 -0400 Subject: [support] Remove inline class from node links In-Reply-To: <005f01c8e31e$ae205e20$0a611a60$@org> References: <005f01c8e31e$ae205e20$0a611a60$@org> Message-ID: <8e783a900807110832w566a17cfg559a7b586987c46f@mail.gmail.com> Hello John, in Drupal 6 the inline value is applied to the "ul.links.inline" style rule located in "drupal/modules/system/system-menus.css". To get rid of the behavior of the links wrapping around the content you can try adding <br style="clear:both;"> as the last line of the content class inside the node.tpl.php file. For example: <div class="content"> <?php print $content; ?> <br style="clear:both;"> <!-- Insert br style rule here --> <div> <?php if ($links): ?> <div class="links"> ... 2008/7/11 John Fletcher <net at twoedged.org>: > I have a problem with the links at the bottom of a node ("add new comment" > etc. ? I'm not sure if these links have a certain name). > > > > When the last bit of content in a node is floated, the links wrap up around > the floated elements instead of being "cleared" and staying below the node > content. I noticed that the ul containing the links has the classes "links" > and "inline". If I manually remove the "inline" class then the links behave > as desired. > > > > Where does the class "inline" get added to this list of links and what is > the best way to remove it on all nodes? > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From ateke.groups at gmail.com Fri Jul 11 17:51:56 2008 From: ateke.groups at gmail.com (Abdullah Teke) Date: Fri, 11 Jul 2008 20:51:56 +0300 Subject: [support] (Firefox2 + kubuntu + admire-gray theme) problem Message-ID: <c33ccd070807111051w6e0507c4t95eca68905287c02@mail.gmail.com> Hello; i changed my web site from wordpress to drupal 5.7 with admire-gray theme. And i tested my web site with some of browsers ( firefox3+winXP, firefox2+winXP,safari+winXP, opera+winXP, IE7+winXP,firefox3+kubuntu, opera+kubuntu, konqueror+kubuntu ). I didnt see any problem working my web site with these. And i use firefox3 with kubuntu normally. Two days ago one of my friend said to me that my web site didnt work properly. i asked him what he used for browse. He said me he browsed with firefox2 on ubuntu. And then i installed firefox 2 on to the my kubuntu. Then i saw the problem. i attached two snapshot. One of them shows the my web page in konqueror, and the other is shown with firefox2. i didnt have any chance to try with other linux box. Is there any body who can tell the reason of this. Thanks.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080711/0c0f1319/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot1.png Type: image/png Size: 238054 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080711/0c0f1319/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot2.png Type: image/png Size: 212311 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080711/0c0f1319/attachment-0003.png From net at twoedged.org Sat Jul 12 01:56:04 2008 From: net at twoedged.org (John Fletcher) Date: Sat, 12 Jul 2008 11:56:04 +1000 Subject: [support] Remove inline class from node links In-Reply-To: <8e783a900807110832w566a17cfg559a7b586987c46f@mail.gmail.com> References: <005f01c8e31e$ae205e20$0a611a60$@org> <8e783a900807110832w566a17cfg559a7b586987c46f@mail.gmail.com> Message-ID: <001101c8e3c2$728a0e70$579e2b50$@org> Thanks Jeremy, That is certainly a valid idea, and if I don't come up with anything else I will have to do that. I have about 8 content type templates and I could put that into each of them. However that seems a little bit "hacky". Is there not a "better way" - removing the class from the <ul>? When I asked where the "inline" class comes from I meant: which piece of code adds the "inline" class so that it prints <ul class="links inline"> instead of <ul class="links">? I know theme_links does this but it just prints the arguments that it is given... how does it get those arguments...? Thanks, John -----Original Message----- From: J?r?mie D'Aoust [mailto:jeremiedaoust at gmail.com] Hello John, in Drupal 6 the inline value is applied to the "ul.links.inline" style rule located in "drupal/modules/system/system-menus.css". To get rid of the behavior of the links wrapping around the content you can try adding <br style="clear:both;"> as the last line of the content class inside the node.tpl.php file. From torelad at gmail.com Sat Jul 12 06:21:34 2008 From: torelad at gmail.com (Dale McGladdery) Date: Fri, 11 Jul 2008 23:21:34 -0700 Subject: [support] Remove inline class from node links In-Reply-To: <001101c8e3c2$728a0e70$579e2b50$@org> References: <005f01c8e31e$ae205e20$0a611a60$@org> <8e783a900807110832w566a17cfg559a7b586987c46f@mail.gmail.com> <001101c8e3c2$728a0e70$579e2b50$@org> Message-ID: <e79091920807112321k62e8d1c9jeb971b5c3bae378f@mail.gmail.com> On Fri, Jul 11, 2008 at 6:56 PM, John Fletcher <net at twoedged.org> wrote: [snip] > However that seems a little bit "hacky". Is there not a "better way" - > removing the class from the <ul>? When I asked where the "inline" class > comes from I meant: which piece of code adds the "inline" class so that it > prints <ul class="links inline"> instead of <ul class="links">? I know > theme_links does this but it just prints the arguments that it is given... > how does it get those arguments...? If I'm following you correctly, and I'm not sure I am, you're wanting to know where the value of the $links variable is assigned for node templates. If I'm wrong, ignore the rest of this! :-) In Drupal 5 the $links variable is assigned a value in phptemplate.engine (/themes/engines/phptemplate/phptemplate.engine), in the phptemplate_node function: $variables = array( [snip] 'links' => $node->links ? theme('links', $node->links, array('class' => 'links inline')) : '', [snip] ); You can override this value for all template files in the _phptemplate_variables function of your theme's template.php file with something like (I haven't tested this): function _phptemplate_variables($hook, $vars = array()) { switch ($hook) { case 'node': $vars['links'] = $vars['node']->links ? theme('links', $vars['node']->links, array('class' => 'links')) : '' break; } return $vars; } Some additional info: http://drupal.org/node/16383 http://www.group42.ca/take_control_your_phptemplate_variables From torelad at gmail.com Sat Jul 12 07:07:43 2008 From: torelad at gmail.com (Dale McGladdery) Date: Sat, 12 Jul 2008 00:07:43 -0700 Subject: [support] Node Teaser Available to Views List In-Reply-To: <9f68efb70807101519y404374f2ob67b807383305c00@mail.gmail.com> References: <9f68efb70807101519y404374f2ob67b807383305c00@mail.gmail.com> Message-ID: <e79091920807120007v4be1e9bahceb47c7a976b4248@mail.gmail.com> On Thu, Jul 10, 2008 at 3:19 PM, Shai Gluskin <shai at content2zero.com> wrote: > I'd like to create a view with node: title and node: teaser content in a > list view -- not in teaser view. Is it hardwired into Views that Node:teaser > content is not available for inserting in list view? > > Am I missing something? > > I'm using Views 1.6 on a Drupal 5.7 install. In your fields list add the field Node: Body. In the handler column you'll have the option of "Full Text" (default) or "Teaser". Selecting "Teaser" should give you what you want. From freemail168 at gmail.com Sat Jul 12 19:53:37 2008 From: freemail168 at gmail.com (tom lee) Date: Sat, 12 Jul 2008 12:53:37 -0700 Subject: [support] druapl issue? Message-ID: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> Hello, I got the following error in my application. warning: file_get_contents(http://abc.mywebsite.com/?prt=test) [function.file-get-contents]: failed to open stream: Connection refused in /var/www/html/includes/common.inc(1352) : eval()'d code on line 22. here is content in common.inc near the line 1352: function drupal_eval($code) { ob_start(); print eval('?>'. $code); //line 1352 here $output = ob_get_contents(); ob_end_clean(); return $output; } from my web server linux box, wget http://abc.mywebsite.com/?prt=test doesn't work before, connection refused. I later get it works. However, I still keep getting the same error. I tried to replace the line print eval('?>'. $code); with teh following code. /* print eval('?>'. $code); */ $code = str_replace('<'.'?php','<'.'?',$code); eval('?'.'>'.trim($code).'<'.'?'); and then restart apache web server, and even tried to reboot computer. still the same error message generated, though the line 1352 is a comment line now. I wonder if there is cache or precomiled code in drupal causing this problem? Thanks. From drupal.beginner at wechange.org Sat Jul 12 22:56:53 2008 From: drupal.beginner at wechange.org (augustin (beginner)) Date: Sun, 13 Jul 2008 06:56:53 +0800 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <4875C4BC.9040206@practicalweb.co.uk> References: <200807091800.36731.drupal.beginner@wechange.org> <200807100841.02783.drupal.beginner@wechange.org> <4875C4BC.9040206@practicalweb.co.uk> Message-ID: <200807130656.53948.drupal.beginner@wechange.org> On Thursday 10 July 2008 16:13:48 Sean Burlington wrote: > ? ? I've never known CVS not to do that ... > > but perhaps if you could tell us a little about your setup it might help > us help you .. > > Windows/Mac/Linux ? > > Which version of cvs do you have? > > Are you sure these files are neither in cvs - nor been cvsignore'd ?? Thanks Sean and Earnie for your follow ups. I am using the latest version of Kubuntu (2008.4) $ cvs -v Concurrent Versions System (CVS) 1.12.13 (client/server) though the repository itself (also on my local computer) is a bit older (~2 years old). It was set up using an older version of Mandriva. Maybe I can compare the default configuration files of a fresh Ubuntu cvs install with what I have now... It's a long shot but I don't have anything better right now. Only the repository is older, though. I have recently reinstalled the OS, so the configuration files server site are the default ones for a new Ubuntu, and the user is a new one, too, so the configuration file in the user's home directory would be a recent default, too. Still, I'll check them... No, the files are not being cvsignored. It's my own repository and I've never used that feature. I can create a new file right now (vi test.txt) and it will not show up in the diff. As to CVS not known to do that... my research on the web has convinced me that my situation is not common, but not unique either. Whenever I read a manual or a tutorial somewhere, the author assumes that those files will be shown with a question mark in front of them. However, I came across a long thread started by someone who asked exactly the same question. Unfortunately, the thread went off a tangent and the guy never received an answer... Even though you might not have the answer, I appreciate that you tried to help out (including Jonathan, earlier). Thanks. Blessings, Augustin. From cog.rusty at gmail.com Sun Jul 13 03:41:03 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Sun, 13 Jul 2008 06:41:03 +0300 Subject: [support] druapl issue? In-Reply-To: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> Message-ID: <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> I don't think there is anything wrong with function drupal_eval(). It just tries to run some php code which you have written in a post or in a block and fails. The error is in line 22 of your own code, apparently a call to file_get_contents(http://abc.mywebsite.com/?prt=test). What is your PHP version? One thing you could try is to add allow_url_fopen = true and allow_url_include = true in php.ini, but I smell a security risk in allowing remote includes. On Sat, Jul 12, 2008 at 10:53 PM, tom lee <freemail168 at gmail.com> wrote: > Hello, > > I got the following error in my application. > > warning: file_get_contents(http://abc.mywebsite.com/?prt=test) > [function.file-get-contents]: failed to open stream: Connection > refused in /var/www/html/includes/common.inc(1352) : eval()'d code on > line 22. > > here is content in common.inc near the line 1352: > > function drupal_eval($code) { > ob_start(); > print eval('?>'. $code); //line 1352 here > $output = ob_get_contents(); > ob_end_clean(); > return $output; > } > > from my web server linux box, > wget http://abc.mywebsite.com/?prt=test doesn't work before, connection refused. > I later get it works. However, I still keep getting the same error. > > I tried to replace the line print eval('?>'. $code); > with teh following code. > /* print eval('?>'. $code); */ > $code = str_replace('<'.'?php','<'.'?',$code); > eval('?'.'>'.trim($code).'<'.'?'); > > and then restart apache web server, and even tried to reboot computer. > still the same error message generated, though the line 1352 is a > comment line now. > > I wonder if there is cache or precomiled code in drupal causing this problem? > > Thanks. > -- > [ Drupal support list | http://lists.drupal.org/ ] > From freemail168 at gmail.com Sun Jul 13 03:55:31 2008 From: freemail168 at gmail.com (tom lee) Date: Sat, 12 Jul 2008 20:55:31 -0700 Subject: [support] druapl issue? In-Reply-To: <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> Message-ID: <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> On Sat, Jul 12, 2008 at 8:41 PM, Cog Rusty <cog.rusty at gmail.com> wrote: > I don't think there is anything wrong with function drupal_eval(). right, I commented out the full function function drupal_eval($code) { ob_start(); print eval('?>'. $code); // line 1352 $output = ob_get_contents(); ob_end_clean(); return $output; } I still get the same error. it looks th line 1352 in /var/www/html/includes/common.inc is incorrectly reported. >It > just tries to run some php code which you have written in a post or in > a block and fails. The error is in line 22 of your own code, > apparently a call to > file_get_contents(http://abc.mywebsite.com/?prt=test). for the following error. warning: file_get_contents(http://abc.mywebsite.com/?prt=test) [function.file-get-contents]: failed to open stream: Connection refused in /var/www/html/includes/common.inc(1352) : eval()'d code on line 22. which file does "line 22" refer to? > > What is your PHP version? > apache version 2.2.8, php 5.2.6. > One thing you could try is to add allow_url_fopen = true and it is there already. > allow_url_include = true in php.ini, I tried to turn it on and reloaded httpd, but I get the same error. Thanks. tom From cog.rusty at gmail.com Sun Jul 13 05:37:34 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Sun, 13 Jul 2008 08:37:34 +0300 Subject: [support] druapl issue? In-Reply-To: <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> Message-ID: <a08ea0280807122237i7c295e28i86ac910c8f6023f8@mail.gmail.com> On Sun, Jul 13, 2008 at 6:55 AM, tom lee <freemail168 at gmail.com> wrote: > On Sat, Jul 12, 2008 at 8:41 PM, Cog Rusty <cog.rusty at gmail.com> wrote: >> I don't think there is anything wrong with function drupal_eval(). > > right, I commented out the full function > > function drupal_eval($code) { > ob_start(); > print eval('?>'. $code); // line 1352 > $output = ob_get_contents(); > ob_end_clean(); > return $output; > } > > I still get the same error. it looks th line 1352 in > /var/www/html/includes/common.inc is incorrectly reported. If you really have commented out the print eval() line and if there is nothing wrong with the line which is now 1352, then I can't explain it. Maybe some weird caching problem. But I don't believe that there is anything wrong with the print eval() line. I would put it back. It just chokes while trying to execute some bad php code which comes from elsewhere,. >>It >> just tries to run some php code which you have written in a post or in >> a block and fails. The error is in line 22 of your own code, >> apparently a call to >> file_get_contents(http://abc.mywebsite.com/?prt=test). > > for the following error. > warning: file_get_contents(http://abc.mywebsite.com/?prt=test) > [function.file-get-contents]: failed to open stream: Connection > refused in /var/www/html/includes/common.inc(1352) : eval()'d code on > line 22. > > which file does "line 22" refer to? It does not necessarily refer to any file. It may refer to line 22 of a file or of some php code in a page or in a block. Check for any code of yours containing a file_get_contents(http://abc.mywebsite.com/?prt=test) statement. >> >> What is your PHP version? >> > > apache version 2.2.8, php 5.2.6. > >> One thing you could try is to add allow_url_fopen = true and > > it is there already. > >> allow_url_include = true in php.ini, > > I tried to turn it on and reloaded httpd, but I get the same error. Hmm... If you find where the file_get_contents(http://abc.mywebsite.com/?prt=test) statement. is, try to replace it with the URL of a real file to see what happens. > Thanks. > > tom > -- > [ Drupal support list | http://lists.drupal.org/ ] > From freemail168 at gmail.com Sun Jul 13 14:12:17 2008 From: freemail168 at gmail.com (tom lee) Date: Sun, 13 Jul 2008 07:12:17 -0700 Subject: [support] druapl issue? In-Reply-To: <a08ea0280807122237i7c295e28i86ac910c8f6023f8@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> <a08ea0280807122237i7c295e28i86ac910c8f6023f8@mail.gmail.com> Message-ID: <63bd33a10807130712l4c35001bta2687846628605a3@mail.gmail.com> On Sat, Jul 12, 2008 at 10:37 PM, Cog Rusty <cog.rusty at gmail.com> wrote: > Hmm... If you find where the > file_get_contents(http://abc.mywebsite.com/?prt=test) statement. is, > try to replace it with the URL of a real file to see what happens. Here is the function call containing file_get_conents: any suggestions about how to replace them with a URL? function drupal_build_css_cache($types, $filename) { $data = ''; // Create the css/ within the files folder. $csspath = file_create_path('css'); file_check_directory($csspath, FILE_CREATE_DIRECTORY); if (!file_exists($csspath .'/'. $filename)) { // Build aggregate CSS file. foreach ($types as $type) { foreach ($type as $file => $cache) { if ($cache) { $contents = file_get_contents($file); // Remove multiple charset declarations for standards compliance (and fixing Safari problems) $contents = preg_replace('/^@charset\s+[\'"](\S*)\b[\'"];/i', '', $contents); // Return the path to where this CSS file originated from, stripping off the name of the file at the end of the path. $path = base_path() . substr($file, 0, strrpos($file, '/')) .'/'; // Wraps all @import arguments in url(). $contents = preg_replace('/@import\s+(?!url)[\'"]?(\S*)\b[\'"]?/i', '@import url("\1")', $contents); // Fix all paths within this CSS file, ignoring absolute paths. $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', 'url(\1'. $path . '\2', $contents); } } } // @import rules must proceed any other style, so we move those to the top. $regexp = '/@import[^;]+;/i'; preg_match_all($regexp, $data, $matches); $data = preg_replace($regexp, '', $data); $data = implode('', $matches[0]) . $data; // Perform some safe CSS optimizations. $data = preg_replace('< \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses. /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks. [\n\r] # Remove line breaks. >x', '\1', $data); // Create the CSS file. file_save_data($data, $csspath .'/'. $filename, FILE_EXISTS_REPLACE); } return $csspath .'/'. $filename; } there is another file containing: $data = file_get_contents('php://input'); I think it is not related to this problem. Thanks. tom From earnie at users.sourceforge.net Sun Jul 13 15:16:32 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Sun, 13 Jul 2008 11:16:32 -0400 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <200807130656.53948.drupal.beginner@wechange.org> References: <200807091800.36731.drupal.beginner@wechange.org> <200807100841.02783.drupal.beginner@wechange.org> <4875C4BC.9040206@practicalweb.co.uk> <200807130656.53948.drupal.beginner@wechange.org> Message-ID: <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> Quoting "augustin (beginner)" <drupal.beginner at wechange.org>: > On Thursday 10 July 2008 16:13:48 Sean Burlington wrote: >> I've never known CVS not to do that ... >> >> but perhaps if you could tell us a little about your setup it might help >> us help you .. >> >> Windows/Mac/Linux ? >> >> Which version of cvs do you have? >> >> Are you sure these files are neither in cvs - nor been cvsignore'd ?? > > Thanks Sean and Earnie for your follow ups. > > I am using the latest version of Kubuntu (2008.4) > > $ cvs -v > Concurrent Versions System (CVS) 1.12.13 (client/server) > What about an aliased cvs command? What is the output of ``alias cvs''? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From victorkane at gmail.com Sun Jul 13 15:27:07 2008 From: victorkane at gmail.com (Victor Kane) Date: Sun, 13 Jul 2008 12:27:07 -0300 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> References: <200807091800.36731.drupal.beginner@wechange.org> <200807100841.02783.drupal.beginner@wechange.org> <4875C4BC.9040206@practicalweb.co.uk> <200807130656.53948.drupal.beginner@wechange.org> <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> Message-ID: <ff176450807130827r281dd3f2j56a1e6c397f6f710@mail.gmail.com> or some kind of global CVSIGNORE thingie? On Sun, Jul 13, 2008 at 12:16 PM, Earnie Boyd <earnie at users.sourceforge.net> wrote: > Quoting "augustin (beginner)" <drupal.beginner at wechange.org>: > > > On Thursday 10 July 2008 16:13:48 Sean Burlington wrote: > >> I've never known CVS not to do that ... > >> > >> but perhaps if you could tell us a little about your setup it might help > >> us help you .. > >> > >> Windows/Mac/Linux ? > >> > >> Which version of cvs do you have? > >> > >> Are you sure these files are neither in cvs - nor been cvsignore'd ?? > > > > Thanks Sean and Earnie for your follow ups. > > > > I am using the latest version of Kubuntu (2008.4) > > > > $ cvs -v > > Concurrent Versions System (CVS) 1.12.13 (client/server) > > > > What about an aliased cvs command? > > What is the output of ``alias cvs''? > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080713/c87156d3/attachment.htm From earnie at users.sourceforge.net Sun Jul 13 18:04:27 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Sun, 13 Jul 2008 14:04:27 -0400 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> References: <200807091800.36731.drupal.beginner@wechange.org> <200807100841.02783.drupal.beginner@wechange.org> <4875C4BC.9040206@practicalweb.co.uk> <200807130656.53948.drupal.beginner@wechange.org> <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> Message-ID: <20080713140427.80kyz62i9s84k80k@mail.progw.org> Quoting Earnie Boyd <earnie at users.sourceforge.net>: > Quoting "augustin (beginner)" <drupal.beginner at wechange.org>: > >> On Thursday 10 July 2008 16:13:48 Sean Burlington wrote: >>> I've never known CVS not to do that ... >>> >>> but perhaps if you could tell us a little about your setup it might help >>> us help you .. >>> >>> Windows/Mac/Linux ? >>> >>> Which version of cvs do you have? >>> >>> Are you sure these files are neither in cvs - nor been cvsignore'd ?? >> >> Thanks Sean and Earnie for your follow ups. >> >> I am using the latest version of Kubuntu (2008.4) >> >> $ cvs -v >> Concurrent Versions System (CVS) 1.12.13 (client/server) >> > > What about an aliased cvs command? > > What is the output of ``alias cvs''? > And does ``cvs -f diff'' help? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From drupal.beginner at wechange.org Sun Jul 13 23:06:00 2008 From: drupal.beginner at wechange.org (augustin (beginner)) Date: Mon, 14 Jul 2008 07:06:00 +0800 Subject: [support] cvs diff: list unknown files with question mark In-Reply-To: <ff176450807130827r281dd3f2j56a1e6c397f6f710@mail.gmail.com> References: <200807091800.36731.drupal.beginner@wechange.org> <20080713111632.tu2rzeg6ob40wk44@mail.progw.org> <ff176450807130827r281dd3f2j56a1e6c397f6f710@mail.gmail.com> Message-ID: <200807140706.00953.drupal.beginner@wechange.org> Hi, Thanks again. $ echo $CVSIGNORE returns nothing. I checked in the CVSROOT directory, and couldn't find any setting related to diff output: I grepped for diff, ignore, IGNORE, etc. but no positive result. $ alias cvs bash: alias: cvs: not found $ alias alias la='ls -A' alias ll='ls -l' alias ls='ls --color=auto' (cool. I didn't know alias. I learned something. thanks). $ which cvs /usr/bin/cvs $ cvs -f diff -up returns the same patch as without -f. I think I'll take this up to the official cvs mailing list. Hopefully it's still active enough that someone will be able to help me. Thanks for trying. :) Blessins, Augustin. From cog.rusty at gmail.com Mon Jul 14 02:19:04 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Mon, 14 Jul 2008 05:19:04 +0300 Subject: [support] druapl issue? In-Reply-To: <63bd33a10807130712l4c35001bta2687846628605a3@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> <a08ea0280807122237i7c295e28i86ac910c8f6023f8@mail.gmail.com> <63bd33a10807130712l4c35001bta2687846628605a3@mail.gmail.com> Message-ID: <a08ea0280807131919j395e231fx8d9aa7001077e5c1@mail.gmail.com> On Sun, Jul 13, 2008 at 5:12 PM, tom lee <freemail168 at gmail.com> wrote: > On Sat, Jul 12, 2008 at 10:37 PM, Cog Rusty <cog.rusty at gmail.com> wrote: > >> Hmm... If you find where the >> file_get_contents(http://abc.mywebsite.com/?prt=test) statement. is, >> try to replace it with the URL of a real file to see what happens. > > Here is the function call containing file_get_conents: > any suggestions about how to replace them with a URL? Probably this is not the problem either. How could this code produce file_get_contents(http://abc.mywebsite.com/?prt=test) on "line 22"? > function drupal_build_css_cache($types, $filename) { > $data = ''; > > // Create the css/ within the files folder. > $csspath = file_create_path('css'); > file_check_directory($csspath, FILE_CREATE_DIRECTORY); > > if (!file_exists($csspath .'/'. $filename)) { > // Build aggregate CSS file. > foreach ($types as $type) { > foreach ($type as $file => $cache) { > if ($cache) { > $contents = file_get_contents($file); > // Remove multiple charset declarations for standards > compliance (and fixing Safari problems) > $contents = > preg_replace('/^@charset\s+[\'"](\S*)\b[\'"];/i', '', $contents); > // Return the path to where this CSS file originated from, > stripping off the name of the file at the end of the path. > $path = base_path() . substr($file, 0, strrpos($file, '/')) .'/'; > // Wraps all @import arguments in url(). > $contents = > preg_replace('/@import\s+(?!url)[\'"]?(\S*)\b[\'"]?/i', '@import > url("\1")', $contents); > // Fix all paths within this CSS file, ignoring absolute paths. > $data .= preg_replace('/url\(([\'"]?)(?![a-z]+:)/i', > 'url(\1'. $path . '\2', $contents); > } > } > } > > // @import rules must proceed any other style, so we move those to the top. > $regexp = '/@import[^;]+;/i'; > preg_match_all($regexp, $data, $matches); > $data = preg_replace($regexp, '', $data); > $data = implode('', $matches[0]) . $data; > > // Perform some safe CSS optimizations. > $data = preg_replace('< > \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around > separators, but keep space around parentheses. > /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks. > [\n\r] # Remove line breaks. > >x', '\1', $data); > > // Create the CSS file. > file_save_data($data, $csspath .'/'. $filename, FILE_EXISTS_REPLACE); > } > return $csspath .'/'. $filename; > } > > there is another file containing: > $data = file_get_contents('php://input'); > > I think it is not related to this problem. > > Thanks. > > tom > -- > [ Drupal support list | http://lists.drupal.org/ ] > From freemail168 at gmail.com Mon Jul 14 04:19:52 2008 From: freemail168 at gmail.com (tom lee) Date: Sun, 13 Jul 2008 21:19:52 -0700 Subject: [support] druapl issue? In-Reply-To: <a08ea0280807131919j395e231fx8d9aa7001077e5c1@mail.gmail.com> References: <63bd33a10807121253l37c709ddk55016195adf7fd47@mail.gmail.com> <a08ea0280807122041k5222d175l7829075cd94f5aea@mail.gmail.com> <63bd33a10807122055r7b180dcalf8456d8181439503@mail.gmail.com> <a08ea0280807122237i7c295e28i86ac910c8f6023f8@mail.gmail.com> <63bd33a10807130712l4c35001bta2687846628605a3@mail.gmail.com> <a08ea0280807131919j395e231fx8d9aa7001077e5c1@mail.gmail.com> Message-ID: <63bd33a10807132119q7b7af80byc7a2b081ed3d78f@mail.gmail.com> On Sun, Jul 13, 2008 at 7:19 PM, Cog Rusty <cog.rusty at gmail.com> wrote: > > > Probably this is not the problem either. How could this code produce > file_get_contents(http://abc.mywebsite.com/?prt=test) on "line 22"? > here is the complete error message: warning: file_get_contents(http://abc.mywebsite.com/?prt=test) [function.file-get-contents]: failed to open stream: Connection refused in /var/www/html/includes/common.inc(1352) : eval()'d code on line 22. no idea what file line 22 refers to. I believe I find the related code for file_get_contents() function contemplate_get_file($node_type, $field) { $files = contemplate_available_files(); if (isset($files['node-'. $node_type .'-'. $field .'.tpl'])) { $file = $files['node-'. $node_type .'-'. $field .'.tpl']; } elseif (isset($files['node-'. $node_type .'.tpl'])) { $file = $files['node-'. $node_type .'.tpl']; } elseif (isset($files['node.tpl'])) { $file = $files['node.tpl']; } if ($file) { $file->contents = file_get_contents($file->filename); $return = $file; } else { $return = FALSE; } return $return; } is there a way to replace file_get_contents() to find more in detail? thanks. tom From fredthejonester at gmail.com Mon Jul 14 09:12:37 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 14 Jul 2008 11:12:37 +0200 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> Message-ID: <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> >> Disabling modules anyhow can certainly lose data. Even without >> uninstalling. I disabled the Ads module on a site once, I believe, and >> data was lost which we were forced to restore (what we could) from >> backups. >> > If it does the module is broken and needs a bug report issued. I've > not found this case. I believe I made a mistake. The case where I lost data I think was actually that I uninstalled a module. You are correct, because simply disabling module does run any code, so how could any data be lost? It indeed should be the case that disabling modules will NOT lose any data. My mistake for saying otherwise. Fred From earnie at users.sourceforge.net Mon Jul 14 11:52:42 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 14 Jul 2008 07:52:42 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> Message-ID: <20080714075242.1g8aza6n3prgowso@mail.progw.org> Quoting Fred Jones <fredthejonester at gmail.com>: >>> Disabling modules anyhow can certainly lose data. Even without >>> uninstalling. I disabled the Ads module on a site once, I believe, and >>> data was lost which we were forced to restore (what we could) from >>> backups. >>> >> If it does the module is broken and needs a bug report issued. I've >> not found this case. > > I believe I made a mistake. The case where I lost data I think was > actually that I uninstalled a module. > Thanks for the honesty. Yes uninstalling the module should remove the table and any associated variable table settings. But that depends on the coding in the module, it isn't Drupal automatic. > You are correct, because simply disabling module does run any code, so > how could any data be lost? > > It indeed should be the case that disabling modules will NOT lose any data. > I'm glad that we agree. > My mistake for saying otherwise. > As long as mistakes such as these are confirmed as mistakes then no harm has been done. I'm glad to here that what you had said wasn't true. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From mak.gnu at gmail.com Mon Jul 14 16:32:21 2008 From: mak.gnu at gmail.com (mukesh yadav) Date: Mon, 14 Jul 2008 22:02:21 +0530 Subject: [support] how do i show data in tabular form. Message-ID: <fff148880807140932j7ced04d5ta8d9e14dcbc90ec0@mail.gmail.com> hi, I'm noob to drupal. I'm trying to upgrade a site. though i have manged to do most of things. but when I copy paste the content of the site from original to drupal. the data does not show in a proper manner. I do have installed TinyMCE. when i paste in body it shows as i want but after submiting the form the formate changes. this means that tinyMCE is not doing his job. How do I paste Data as it is. it looks. (The data is in some Text and some are in table.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/8825ceea/attachment.htm From bharanikumariyerphp at gmail.com Mon Jul 14 16:41:27 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 14 Jul 2008 22:11:27 +0530 Subject: [support] how to assign the block to menu Message-ID: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> Hi dears How to assign the block to menu, Thanks Regards B.S.Bharani -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/a8327ee6/attachment.htm From mak.gnu at gmail.com Mon Jul 14 16:44:30 2008 From: mak.gnu at gmail.com (mukesh yadav) Date: Mon, 14 Jul 2008 22:14:30 +0530 Subject: [support] how to assign the block to menu In-Reply-To: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> References: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> Message-ID: <fff148880807140944h7e653300xa4e620e0f12e0e5b@mail.gmail.com> On Mon, Jul 14, 2008 at 10:11 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Hi dears > > How to assign the block to menu, > hi I'm not sure but you can assign the block to the menu if you are using a views. you get a option in views to assign to block. > > > Thanks > > Regards > > B.S.Bharani > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/03577378/attachment.htm From hays at ohio.edu Mon Jul 14 16:53:32 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 14 Jul 2008 12:53:32 -0400 Subject: [support] how to assign the block to menu In-Reply-To: <fff148880807140944h7e653300xa4e620e0f12e0e5b@mail.gmail.com> References: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> <fff148880807140944h7e653300xa4e620e0f12e0e5b@mail.gmail.com> Message-ID: <BA98374E-59DB-4D28-A6F9-F801955240E7@ohio.edu> I think you can assign even a views-generated block to menus. After you have created the block, go to admin > site building > menus. Select Navigation Menus. See if your block appears there. Click edit, and reassign it to whatever menu you prefer. Good luck, Steve Hays On Jul 14, 2008, at 12:44 PM, mukesh yadav wrote: > > > On Mon, Jul 14, 2008 at 10:11 PM, bharani kumar <bharanikumariyerphp at gmail.com > > wrote: > Hi dears > > How to assign the block to menu, > > hi I'm not sure but you can assign the block to the menu if you are > using a views. you get a option in views to assign to block. > > > Thanks > > Regards > > B.S.Bharani > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/93b7dfa3/attachment.htm From drupal at lourdas.name Mon Jul 14 16:35:18 2008 From: drupal at lourdas.name (Vasileios Lourdas) Date: Mon, 14 Jul 2008 19:35:18 +0300 Subject: [support] how do i show data in tabular form. In-Reply-To: <fff148880807140932j7ced04d5ta8d9e14dcbc90ec0@mail.gmail.com> References: <fff148880807140932j7ced04d5ta8d9e14dcbc90ec0@mail.gmail.com> Message-ID: <200807141935.18469.drupal@lourdas.name> On Monday 14 July 2008 19:32:21 mukesh yadav wrote: > hi, > I'm noob to drupal. I'm trying to upgrade a site. though i have manged to > do most of things. but when I copy paste the content of the site from > original to drupal. the data does not show in a proper manner. I do have > installed TinyMCE. when i paste in body it shows as i want but after > submiting the form the formate changes. this means that tinyMCE is not > doing his job. How do I paste Data as it is. it looks. (The data is in some > Text and some are in table.) Edit the node, choose the Full HTML input format and save. This should do the trick. -- # Vasileios Lourdas, # Informatics Engineer, Thessaloniki (Greece) # http://www.lourdas.name From bharanikumariyerphp at gmail.com Mon Jul 14 17:24:32 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 14 Jul 2008 22:54:32 +0530 Subject: [support] how to assign the block to menu In-Reply-To: <BA98374E-59DB-4D28-A6F9-F801955240E7@ohio.edu> References: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> <fff148880807140944h7e653300xa4e620e0f12e0e5b@mail.gmail.com> <BA98374E-59DB-4D28-A6F9-F801955240E7@ohio.edu> Message-ID: <2240033d0807141024i487220e7tbcc6d882bb55945d@mail.gmail.com> can u plz guid me... or send thread for that related with steps On Mon, Jul 14, 2008 at 10:23 PM, Steve Hays <hays at ohio.edu> wrote: > I think you can assign even a views-generated block to menus. > After you have created the block, go to admin > site building > menus. > Select Navigation Menus. See if your block appears there. Click edit, and > reassign it to whatever menu you prefer. > > Good luck, > > Steve Hays > > On Jul 14, 2008, at 12:44 PM, mukesh yadav wrote: > > > > On Mon, Jul 14, 2008 at 10:11 PM, bharani kumar < > bharanikumariyerphp at gmail.com> wrote: > >> Hi dears >> >> How to assign the block to menu, >> > > hi I'm not sure but you can assign the block to the menu if you are using a > views. you get a option in views to assign to block. > >> >> >> Thanks >> >> Regards >> >> B.S.Bharani >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/0d4127c1/attachment.htm From hays at ohio.edu Mon Jul 14 17:31:22 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 14 Jul 2008 13:31:22 -0400 Subject: [support] how to assign the block to menu In-Reply-To: <2240033d0807141024i487220e7tbcc6d882bb55945d@mail.gmail.com> References: <2240033d0807140941j25117f9ekdf03a3450ad58dbb@mail.gmail.com> <fff148880807140944h7e653300xa4e620e0f12e0e5b@mail.gmail.com> <BA98374E-59DB-4D28-A6F9-F801955240E7@ohio.edu> <2240033d0807141024i487220e7tbcc6d882bb55945d@mail.gmail.com> Message-ID: <E908C107-8CAE-4A63-B26E-BD593B6B2427@ohio.edu> Let's walk through it step by step. Have you created the block in Views? If so, what is its name (see the top of the Views screen)? Steve On Jul 14, 2008, at 1:24 PM, bharani kumar wrote: > can u plz guid me... > > > or send thread for that related with steps > > On Mon, Jul 14, 2008 at 10:23 PM, Steve Hays <hays at ohio.edu> wrote: > I think you can assign even a views-generated block to menus. > > After you have created the block, go to admin > site building > > menus. Select Navigation Menus. See if your block appears there. > Click edit, and reassign it to whatever menu you prefer. > > Good luck, > > Steve Hays > > On Jul 14, 2008, at 12:44 PM, mukesh yadav wrote: > >> >> >> On Mon, Jul 14, 2008 at 10:11 PM, bharani kumar <bharanikumariyerphp at gmail.com >> > wrote: >> Hi dears >> >> How to assign the block to menu, >> >> hi I'm not sure but you can assign the block to the menu if you are >> using a views. you get a option in views to assign to block. >> >> >> Thanks >> >> Regards >> >> B.S.Bharani >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/29943a75/attachment-0001.htm From bharanikumariyerphp at gmail.com Mon Jul 14 17:54:59 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 14 Jul 2008 23:24:59 +0530 Subject: [support] How bring the event search box and event calendar in to block Message-ID: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> Hi dears i am display the all events, in this block i want to add the search and event calendar into the custom block.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/d33d80cc/attachment.htm From bchoc at t4tcolorado.org Mon Jul 14 18:00:03 2008 From: bchoc at t4tcolorado.org (Brian Choc) Date: Mon, 14 Jul 2008 12:00:03 -0600 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> Message-ID: <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> I found that disabling modules during minor upgrades causes data loss consistently under specific circumstances, during earlier updates (e.g. 5.2, 5.3). I observed that any module-supplied node type would drop all the data in any assigned CCK fields when disabling & upgrading. For example, if one had a simplenews node with an "editor" cck field attached to it, one would lose all "editor" information. However, the basic simplenews node data would be kept, as would any cck fields attached to standard nodes. Only the combo of cck + module-supplied-node-type seemed to cause problems. Fortunately, I make backups before upgrading and restored each time and did the upgrade without disabling modules and it worked fine. After 5.5, I think, I gave up attempting to disable modules and have had no problems since. Brian On Mon, Jul 14, 2008 at 3:12 AM, Fred Jones <fredthejonester at gmail.com> wrote: > >> Disabling modules anyhow can certainly lose data. Even without > >> uninstalling. I disabled the Ads module on a site once, I believe, and > >> data was lost which we were forced to restore (what we could) from > >> backups. > >> > > If it does the module is broken and needs a bug report issued. I've > > not found this case. > > I believe I made a mistake. The case where I lost data I think was > actually that I uninstalled a module. > > You are correct, because simply disabling module does run any code, so > how could any data be lost? > > It indeed should be the case that disabling modules will NOT lose any data. > > My mistake for saying otherwise. > > Fred > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Brian Choc Technology Manager Teaming for Technology Colorado 2505 18th St. Denver, CO 80211 P: 303.561.2377, F: 303.455.6462 http://www.t4tcolorado.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/afc7c7fb/attachment.htm From hays at ohio.edu Mon Jul 14 18:08:33 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 14 Jul 2008 14:08:33 -0400 Subject: [support] How bring the event search box and event calendar in to block In-Reply-To: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> References: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> Message-ID: <6E3C8282-5E7A-4476-974B-F7570DCC9D56@ohio.edu> I do not understand. Are you in the Views module? Or are you in the Events ("all events"?) module. I know nothing about the Events module. If you are in Views, there should be a title at the top of the page that says, "Edit view <the title of your view>." On the left hand side of the page you should see "Defaults" and perhaps "Block" "Page" In the middle of the page should be many configurable settings. Is that where you are? Steve On Jul 14, 2008, at 1:54 PM, bharani kumar wrote: > Hi dears > > > i am display the all events, > > in this block i want to add the search and event calendar into the > custom block.. > -- > [ Drupal support list | http://lists.drupal.org/ ] From bharanikumariyerphp at gmail.com Mon Jul 14 18:18:11 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 14 Jul 2008 23:48:11 +0530 Subject: [support] How bring the event search box and event calendar in to block In-Reply-To: <6E3C8282-5E7A-4476-974B-F7570DCC9D56@ohio.edu> References: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> <6E3C8282-5E7A-4476-974B-F7570DCC9D56@ohio.edu> Message-ID: <2240033d0807141118k1c6e112alb40321e80d55481b@mail.gmail.com> hi hays thanks for reply... Dear i did the custom block that custom block perform like displaying all events title, now i want to add search and evet date picker in to this event block...... like example am saying assum if we want to add the five star into block then we print the syntax fivestar_widget_form($node) like this manner any syntax there , for display the event search and event date picker thanks On Mon, Jul 14, 2008 at 11:38 PM, Steve Hays <hays at ohio.edu> wrote: > I do not understand. Are you in the Views module? Or are you in the > Events ("all events"?) module. > I know nothing about the Events module. > > If you are in Views, there should be a title at the top of the page > that says, "Edit view <the title of your view>." > On the left hand side of the page you should see > > "Defaults" > and perhaps > "Block" > "Page" > > In the middle of the page should be many configurable settings. > > Is that where you are? > > > Steve > On Jul 14, 2008, at 1:54 PM, bharani kumar wrote: > > > Hi dears > > > > > > i am display the all events, > > > > in this block i want to add the search and event calendar into the > > custom block.. > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/3bf26152/attachment.htm From hays at ohio.edu Mon Jul 14 18:27:52 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 14 Jul 2008 14:27:52 -0400 Subject: [support] How bring the event search box and event calendar in to block In-Reply-To: <2240033d0807141118k1c6e112alb40321e80d55481b@mail.gmail.com> References: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> <6E3C8282-5E7A-4476-974B-F7570DCC9D56@ohio.edu> <2240033d0807141118k1c6e112alb40321e80d55481b@mail.gmail.com> Message-ID: <1703015E-63CF-4020-B6F8-A777FC771216@ohio.edu> bharani, I'm very sorry, but I do not know how to do this. I'm not a programmer. I misunderstood your first question and thought you were asking something that could be done without programming. I apologize. Steve On Jul 14, 2008, at 2:18 PM, bharani kumar wrote: > hi hays > > thanks for reply... > > Dear i did the custom block that custom block perform like > displaying all events title, > > > now i want to add search and evet date picker in to this event > block...... > > > like example am saying > > > assum if we want to add the five star into block then we print the > > syntax > > fivestar_widget_form($node) > > like this manner any syntax there , for display the event search and > event date picker > > thanks > > On Mon, Jul 14, 2008 at 11:38 PM, Steve Hays <hays at ohio.edu> wrote: > I do not understand. Are you in the Views module? Or are you in the > Events ("all events"?) module. > I know nothing about the Events module. > > If you are in Views, there should be a title at the top of the page > that says, "Edit view <the title of your view>." > On the left hand side of the page you should see > > "Defaults" > and perhaps > "Block" > "Page" > > In the middle of the page should be many configurable settings. > > Is that where you are? > > > Steve > On Jul 14, 2008, at 1:54 PM, bharani kumar wrote: > > > Hi dears > > > > > > i am display the all events, > > > > in this block i want to add the search and event calendar into the > > custom block.. > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/1fdab537/attachment.htm From neil at esl-lounge.com Mon Jul 14 18:34:31 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Mon, 14 Jul 2008 19:34:31 +0100 Subject: [support] upgrading to 5.8. One question. References: <004901c8e2a1$27c43040$4101a8c0@Neil><177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com><20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org><177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com><20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org><177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> Message-ID: <006201c8e5e0$4279e960$7104840a@Neil> Yes, that was my recollection from a few months ago. It was definitely CCK related (which, I believe doesn't have a uninstall function: very few modules seem to) and I certainly lost data from merely disactivating, not uninstalling. Needless to say, I learnt my lesson and won't be doing the same again. Neil ----- Original Message ----- From: Brian Choc To: support at drupal.org Sent: Monday, July 14, 2008 7:00 PM Subject: Re: [support] upgrading to 5.8. One question. I found that disabling modules during minor upgrades causes data loss consistently under specific circumstances, during earlier updates (e.g. 5.2, 5.3). I observed that any module-supplied node type would drop all the data in any assigned CCK fields when disabling & upgrading. For example, if one had a simplenews node with an "editor" cck field attached to it, one would lose all "editor" information. However, the basic simplenews node data would be kept, as would any cck fields attached to standard nodes. Only the combo of cck + module-supplied-node-type seemed to cause problems. Fortunately, I make backups before upgrading and restored each time and did the upgrade without disabling modules and it worked fine. After 5.5, I think, I gave up attempting to disable modules and have had no problems since. Brian On Mon, Jul 14, 2008 at 3:12 AM, Fred Jones <fredthejonester at gmail.com> wrote: >> Disabling modules anyhow can certainly lose data. Even without >> uninstalling. I disabled the Ads module on a site once, I believe, and >> data was lost which we were forced to restore (what we could) from >> backups. >> > If it does the module is broken and needs a bug report issued. I've > not found this case. I believe I made a mistake. The case where I lost data I think was actually that I uninstalled a module. You are correct, because simply disabling module does run any code, so how could any data be lost? It indeed should be the case that disabling modules will NOT lose any data. My mistake for saying otherwise. Fred -- [ Drupal support list | http://lists.drupal.org/ ] -- Brian Choc Technology Manager Teaming for Technology Colorado 2505 18th St. Denver, CO 80211 P: 303.561.2377, F: 303.455.6462 http://www.t4tcolorado.org ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080714/3a593304/attachment-0001.htm From earnie at users.sourceforge.net Mon Jul 14 20:35:46 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 14 Jul 2008 16:35:46 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> Message-ID: <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> Quoting Brian Choc <bchoc at t4tcolorado.org>: > I found that disabling modules during minor upgrades causes data loss > consistently under specific circumstances, during earlier updates (e.g. 5.2, > 5.3). I observed that any module-supplied node type would drop all the data > in any assigned CCK fields when disabling & upgrading. For example, if one > had a simplenews node with an "editor" cck field attached to it, one would > lose all "editor" information. However, the basic simplenews node data > would be kept, as would any cck fields attached to standard nodes. Only the > combo of cck + module-supplied-node-type seemed to cause problems. > So what you're indicating is that modules implementing hook_node_info will loose the node_type row and thusly the nodes of that type. This would then be a critical bug in the core base system. Or perhaps your incident is related to only one of the CCK fields modules and then the critical bug would lie with that module. Disabling a module should not under any circumstance cause data to be removed. That said, I do not disable modules either when upgrading from Drupal version 5.x to Drupal version 5.y. However, that isn't the documented method and the documented method needs to work. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From info at koba.be Mon Jul 14 21:14:50 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Mon, 14 Jul 2008 23:14:50 +0200 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> Message-ID: <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> Interesting discussion. I also never disable modules when upgrading. I have never lost data when I disabled them originally, but as far as I remember some configurations of CCK were lost. But that was in the early days of cck and Drupal 4.7. Since then I never disabled modules and never had problems (always with backup ready). Its also quite annoying when you have more modules uploaded than enabled to have to write down which modules are needed for each installation. it could be good to hear from somebody who always does it right and disables all modules before upgrading that it has never caused problems, just to add some counterweight to this thread. Hans www.koba.be 2008/7/14, Earnie Boyd <earnie at users.sourceforge.net>: > Quoting Brian Choc <bchoc at t4tcolorado.org>: > >> I found that disabling modules during minor upgrades causes data loss >> consistently under specific circumstances, during earlier updates (e.g. >> 5.2, >> 5.3). I observed that any module-supplied node type would drop all the >> data >> in any assigned CCK fields when disabling & upgrading. For example, if >> one >> had a simplenews node with an "editor" cck field attached to it, one would >> lose all "editor" information. However, the basic simplenews node data >> would be kept, as would any cck fields attached to standard nodes. Only >> the >> combo of cck + module-supplied-node-type seemed to cause problems. >> > > So what you're indicating is that modules implementing hook_node_info > will loose the node_type row and thusly the nodes of that type. This > would then be a critical bug in the core base system. Or perhaps your > incident is related to only one of the CCK fields modules and then the > critical bug would lie with that module. Disabling a module should not > under any circumstance cause data to be removed. > > That said, I do not disable modules either when upgrading from Drupal > version 5.x to Drupal version 5.y. However, that isn't the documented > method and the documented method needs to work. > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Hans Rossel KOBA Webdevelopment Kerkstraat 228 9050 Gent 09-334.52.60 0472-79.32.16 www.koba.be info at koba.be From bharanikumariyerphp at gmail.com Tue Jul 15 04:30:35 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 15 Jul 2008 10:00:35 +0530 Subject: [support] How bring the event search box and event calendar in to block In-Reply-To: <1703015E-63CF-4020-B6F8-A777FC771216@ohio.edu> References: <2240033d0807141054w1e88c7b1y72a91aec66062482@mail.gmail.com> <6E3C8282-5E7A-4476-974B-F7570DCC9D56@ohio.edu> <2240033d0807141118k1c6e112alb40321e80d55481b@mail.gmail.com> <1703015E-63CF-4020-B6F8-A777FC771216@ohio.edu> Message-ID: <2240033d0807142130p7d40e19bv5e2329186e9856e2@mail.gmail.com> its ok On Mon, Jul 14, 2008 at 11:57 PM, Steve Hays <hays at ohio.edu> wrote: > bharani, > I'm very sorry, but I do not know how to do this. I'm not a programmer. > > I misunderstood your first question and thought you were asking something > that could be done without programming. > > I apologize. > > > Steve > > > On Jul 14, 2008, at 2:18 PM, bharani kumar wrote: > > hi hays > > thanks for reply... > > Dear i did the custom block that custom block perform like displaying all > events title, > > > now i want to add search and evet date picker in to this event block...... > > > like example am saying > > > assum if we want to add the five star into block then we print the > > syntax > > fivestar_widget_form($node) > > like this manner any syntax there , for display the event search and event > date picker > > thanks > > On Mon, Jul 14, 2008 at 11:38 PM, Steve Hays <hays at ohio.edu> wrote: > >> I do not understand. Are you in the Views module? Or are you in the >> Events ("all events"?) module. >> I know nothing about the Events module. >> >> If you are in Views, there should be a title at the top of the page >> that says, "Edit view <the title of your view>." >> On the left hand side of the page you should see >> >> "Defaults" >> and perhaps >> "Block" >> "Page" >> >> In the middle of the page should be many configurable settings. >> >> Is that where you are? >> >> >> Steve >> On Jul 14, 2008, at 1:54 PM, bharani kumar wrote: >> >> > Hi dears >> > >> > >> > i am display the all events, >> > >> > in this block i want to add the search and event calendar into the >> > custom block.. >> > -- >> > [ Drupal support list | http://lists.drupal.org/ ] >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/8d81b981/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 15 07:34:33 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 15 Jul 2008 13:04:33 +0530 Subject: [support] insert calendar Message-ID: <2240033d0807150034t72ec6afak9e6e4471584a10a8@mail.gmail.com> This is syntax for $block['content'] .= drupal_get_form('search_block_form'); any thing like this for rendar calendar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/e0949118/attachment.htm From neil at esl-lounge.com Tue Jul 15 08:51:23 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Tue, 15 Jul 2008 09:51:23 +0100 Subject: [support] upgrading to 5.8. One question. References: <004901c8e2a1$27c43040$4101a8c0@Neil><177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com><20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org><177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com><20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org><177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com><507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com><20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> Message-ID: <005201c8e657$f7fd6060$7104840a@Neil> I will do some testing too on a test site. I began this thread because I'd read in the upgrade.txt in 5.8 that "officially", you should disactivated all contributed modules before upgrading and I raised an eyebrow, remembering I'd had some issues with CCK by disactivating it and having content_type_X tables disappear. It is possible I'm remembering badly but I've heard CCK mentioned by others in this thread and seeing as it's almost a core module in itself, it's vital we track this problem down, should it exist. Neil ----- Original Message ----- From: "KOBA | Hans Rossel" <info at koba.be> To: <support at drupal.org> Sent: Monday, July 14, 2008 10:14 PM Subject: Re: [support] upgrading to 5.8. One question. > Interesting discussion. > > I also never disable modules when upgrading. I have never lost data > when I disabled them originally, but as far as I remember some > configurations of CCK were lost. But that was in the early days of cck > and Drupal 4.7. Since then I never disabled modules and never had > problems (always with backup ready). Its also quite annoying when you > have more modules uploaded than enabled to have to write down which > modules are needed for each installation. > > it could be good to hear from somebody who always does it right and > disables all modules before upgrading that it has never caused > problems, just to add some counterweight to this thread. > > Hans > www.koba.be > > 2008/7/14, Earnie Boyd <earnie at users.sourceforge.net>: >> Quoting Brian Choc <bchoc at t4tcolorado.org>: >> >>> I found that disabling modules during minor upgrades causes data loss >>> consistently under specific circumstances, during earlier updates (e.g. >>> 5.2, >>> 5.3). I observed that any module-supplied node type would drop all the >>> data >>> in any assigned CCK fields when disabling & upgrading. For example, if >>> one >>> had a simplenews node with an "editor" cck field attached to it, one >>> would >>> lose all "editor" information. However, the basic simplenews node data >>> would be kept, as would any cck fields attached to standard nodes. Only >>> the >>> combo of cck + module-supplied-node-type seemed to cause problems. >>> >> >> So what you're indicating is that modules implementing hook_node_info >> will loose the node_type row and thusly the nodes of that type. This >> would then be a critical bug in the core base system. Or perhaps your >> incident is related to only one of the CCK fields modules and then the >> critical bug would lie with that module. Disabling a module should not >> under any circumstance cause data to be removed. >> >> That said, I do not disable modules either when upgrading from Drupal >> version 5.x to Drupal version 5.y. However, that isn't the documented >> method and the documented method needs to work. >> >> Earnie -- http://for-my-kids.com/ >> -- http://give-me-an-offer.com/ >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > -- > Hans Rossel > KOBA Webdevelopment > Kerkstraat 228 > 9050 Gent > 09-334.52.60 > 0472-79.32.16 > www.koba.be > info at koba.be > -- > [ Drupal support list | http://lists.drupal.org/ ] > From victorkane at gmail.com Tue Jul 15 10:08:53 2008 From: victorkane at gmail.com (Victor Kane) Date: Tue, 15 Jul 2008 07:08:53 -0300 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> Message-ID: <ff176450807150308h41b86d72n70381cac17b3f769@mail.gmail.com> I think it's better to distinguish between release upgrades, security upgrades and module upgrades (upgrades for individual modules). On the big upgrade (release upgrade) from 4.7 to 5.x, of course, the best practice was to disable all modules, basically due to the objective of making sure the upgrade to a new release was working, and also because modules had to be completely rewritten for the new release. Also, the idea was to enable each contributed module one by one, in order to know what when wrong, if it did, and when it went wrong: specifically with which module lay the problem. And doing a database dump each time, you can always go back to a working scenario. If you leave all modules enabled in a release upgrade you are almost definitely going to have problems and worse, you are not going to know where the problems come from. Imagine someone upgrading from Drupal 5.x to Drupal 6.x; this is a migration, not an upgrade. Many things are going to have to be pinpointed and taken care of. With security releases, I do not disable modules and have never had any problem. On 4.7.x to 5.x see my article at http://awebfactory.com.ar/node/223 (based on webchick's video from Lullabot) Victor Kane http://awebfactory.com.ar On Mon, Jul 14, 2008 at 6:14 PM, KOBA | Hans Rossel <info at koba.be> wrote: > Interesting discussion. > > I also never disable modules when upgrading. I have never lost data > when I disabled them originally, but as far as I remember some > configurations of CCK were lost. But that was in the early days of cck > and Drupal 4.7. Since then I never disabled modules and never had > problems (always with backup ready). Its also quite annoying when you > have more modules uploaded than enabled to have to write down which > modules are needed for each installation. > > it could be good to hear from somebody who always does it right and > disables all modules before upgrading that it has never caused > problems, just to add some counterweight to this thread. > > Hans > www.koba.be > > 2008/7/14, Earnie Boyd <earnie at users.sourceforge.net>: > > Quoting Brian Choc <bchoc at t4tcolorado.org>: > > > >> I found that disabling modules during minor upgrades causes data loss > >> consistently under specific circumstances, during earlier updates (e.g. > >> 5.2, > >> 5.3). I observed that any module-supplied node type would drop all the > >> data > >> in any assigned CCK fields when disabling & upgrading. For example, if > >> one > >> had a simplenews node with an "editor" cck field attached to it, one > would > >> lose all "editor" information. However, the basic simplenews node data > >> would be kept, as would any cck fields attached to standard nodes. Only > >> the > >> combo of cck + module-supplied-node-type seemed to cause problems. > >> > > > > So what you're indicating is that modules implementing hook_node_info > > will loose the node_type row and thusly the nodes of that type. This > > would then be a critical bug in the core base system. Or perhaps your > > incident is related to only one of the CCK fields modules and then the > > critical bug would lie with that module. Disabling a module should not > > under any circumstance cause data to be removed. > > > > That said, I do not disable modules either when upgrading from Drupal > > version 5.x to Drupal version 5.y. However, that isn't the documented > > method and the documented method needs to work. > > > > Earnie -- http://for-my-kids.com/ > > -- http://give-me-an-offer.com/ > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > > -- > Hans Rossel > KOBA Webdevelopment > Kerkstraat 228 > 9050 Gent > 09-334.52.60 > 0472-79.32.16 > www.koba.be > info at koba.be > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/d8c3c264/attachment-0001.htm From earnie at users.sourceforge.net Tue Jul 15 11:51:47 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 15 Jul 2008 07:51:47 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <005201c8e657$f7fd6060$7104840a@Neil> References: <004901c8e2a1$27c43040$4101a8c0@Neil><177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com><20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org><177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com><20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org><177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com><507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com><20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> <005201c8e657$f7fd6060$7104840a@Neil> Message-ID: <20080715075147.6w8wqpqdl2tk4osw@mail.progw.org> Quoting "Neil: esl-lounge.com" <neil at esl-lounge.com>: > I will do some testing too on a test site. I began this thread because I'd > read in the upgrade.txt in 5.8 that "officially", you should disactivated > all contributed modules before upgrading and I raised an eyebrow, > remembering I'd had some issues with CCK by disactivating it and having > content_type_X tables disappear. > > It is possible I'm remembering badly but I've heard CCK mentioned by others > in this thread and seeing as it's almost a core module in itself, it's vital > we track this problem down, should it exist. > Especially since CCK fields are moving to core for D7[1]. Thanks Neil, it would be good to know where this bad behavior exists. http://drupal.org/node/265604 Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Tue Jul 15 12:02:57 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 15 Jul 2008 08:02:57 -0400 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <ff176450807150308h41b86d72n70381cac17b3f769@mail.gmail.com> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <177c0a10807100834w28517a08if7ed87ef96c673d2@mail.gmail.com> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> <ff176450807150308h41b86d72n70381cac17b3f769@mail.gmail.com> Message-ID: <20080715080257.k28s2v7iycgk48g4@mail.progw.org> Quoting Victor Kane <victorkane at gmail.com>: > > Imagine someone upgrading from Drupal 5.x to Drupal 6.x; this is a > migration, not an upgrade. Many things are going to have to be pinpointed > and taken care of. > If the "best path" of disabling modules loses data regardless of migration or upgrade it is still an issue that needs resolved. So far, CCK fields is the only problem reported in this thread. Disabling modules is not supposed to cause the loss of data; that is the job of the uninstall process where it warns about the loss. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From victorkane at gmail.com Tue Jul 15 12:28:00 2008 From: victorkane at gmail.com (Victor Kane) Date: Tue, 15 Jul 2008 09:28:00 -0300 Subject: [support] upgrading to 5.8. One question. In-Reply-To: <20080715080257.k28s2v7iycgk48g4@mail.progw.org> References: <004901c8e2a1$27c43040$4101a8c0@Neil> <20080710122020.j9ssnuzuy1sgg4c4@mail.progw.org> <177c0a10807101204p52e93b92q36bd249a116b7114@mail.gmail.com> <20080710194551.0lxx2h9j4bh8g8sw@mail.progw.org> <177c0a10807140212i724e7e3ay83ca79e0683ac9a0@mail.gmail.com> <507b282e0807141100x67f3946eg8d4c147f4b1b551@mail.gmail.com> <20080714163546.2v4x7n1u16sgo0kk@mail.progw.org> <51a9b8330807141414h485ef7bvf35088e73cd3bdf5@mail.gmail.com> <ff176450807150308h41b86d72n70381cac17b3f769@mail.gmail.com> <20080715080257.k28s2v7iycgk48g4@mail.progw.org> Message-ID: <ff176450807150528u5a765afar5cbf11441e4eaf05@mail.gmail.com> On Tue, Jul 15, 2008 at 9:02 AM, Earnie Boyd <earnie at users.sourceforge.net> wrote: > Quoting Victor Kane <victorkane at gmail.com>: > > > > > Imagine someone upgrading from Drupal 5.x to Drupal 6.x; this is a > > migration, not an upgrade. Many things are going to have to be pinpointed > > and taken care of. > > > > If the "best path" of disabling modules loses data regardless of > migration or upgrade it is still an issue that needs resolved. So far, > CCK fields is the only problem reported in this thread. Disabling > modules is not supposed to cause the loss of data; that is the job of > the uninstall process where it warns about the loss. Absolutely, this is a priority. > > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/8dc1c75a/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 15 16:41:44 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 15 Jul 2008 22:11:44 +0530 Subject: [support] search not working Message-ID: <2240033d0807150941h51cbd03em11add8f04b15391c@mail.gmail.com> Hi Dears I added the search box into my custom block, When i enter the keyword into search box , the search reult not displayed, but another advanced search box will be displayed, But this advanced search is working, Any idea to solve the search problem... thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/e17f234f/attachment.htm From shai at content2zero.com Tue Jul 15 22:12:11 2008 From: shai at content2zero.com (Shai Gluskin) Date: Tue, 15 Jul 2008 18:12:11 -0400 Subject: [support] Getting A View to "ORDER BY RAND ()" Message-ID: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> I have a need for Views to "ORDER BY RAND ()" The use-case is that I want to pull in the teaser of a particular content-type for one node only onto the home page. I want it to randomly select the node it displays. Everything is easy except the random part. The home page is a panel page. I've built a view, filtered on content-type, set the number of nodes to display at "1" -- successfully pulled it into the panel. I thought the way to do this would be to set a sort criteria. But I see only "ascending" and "descending" -- I don't see "random" as a choice. Any ideas? I'm using Drupal 5.8, Views 1.6 and Panels 2 Beta Thanks, Shai -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/eb9b800e/attachment.htm From tapocol at gmail.com Tue Jul 15 22:16:59 2008 From: tapocol at gmail.com (Craig Jackson) Date: Tue, 15 Jul 2008 16:16:59 -0600 Subject: [support] Getting A View to "ORDER BY RAND ()" In-Reply-To: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> References: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> Message-ID: <60cae1c50807151516j4ce0e005h9334e95e3dc628bf@mail.gmail.com> Under Sort Criteria, select Random as the field. Craig On Tue, Jul 15, 2008 at 4:12 PM, Shai Gluskin <shai at content2zero.com> wrote: > I have a need for Views to "ORDER BY RAND ()" > > The use-case is that I want to pull in the teaser of a particular > content-type for one node only onto the home page. I want it to randomly > select the node it displays. > > Everything is easy except the random part. The home page is a panel page. > I've built a view, filtered on content-type, set the number of nodes to > display at "1" -- successfully pulled it into the panel. > > I thought the way to do this would be to set a sort criteria. But I see only > "ascending" and "descending" -- I don't see "random" as a choice. > > Any ideas? > > I'm using Drupal 5.8, Views 1.6 and Panels 2 Beta > > Thanks, > > Shai > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From pkim at reachlocal.com Tue Jul 15 22:15:08 2008 From: pkim at reachlocal.com (Paul Kim) Date: Tue, 15 Jul 2008 15:15:08 -0700 Subject: [support] Getting A View to "ORDER BY RAND ()" In-Reply-To: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> References: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> Message-ID: <487D216C.2010902@reachlocal.com> There IS a sort criteria called "Random" in the drop-down list. You're probably not looking closely enough. Shai Gluskin wrote: > I have a need for Views to "ORDER BY RAND ()" > > The use-case is that I want to pull in the teaser of a particular > content-type for one node only onto the home page. I want it to > randomly select the node it displays. > > Everything is easy except the random part. The home page is a panel > page. I've built a view, filtered on content-type, set the number of > nodes to display at "1" -- successfully pulled it into the panel. > > I thought the way to do this would be to set a sort criteria. But I > see only "ascending" and "descending" -- I don't see "random" as a choice. > > Any ideas? > > I'm using Drupal 5.8, Views 1.6 and Panels 2 Beta > > Thanks, > > Shai From bchoc at t4tcolorado.org Tue Jul 15 22:15:37 2008 From: bchoc at t4tcolorado.org (Brian Choc) Date: Tue, 15 Jul 2008 16:15:37 -0600 Subject: [support] Getting A View to "ORDER BY RAND ()" In-Reply-To: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> References: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> Message-ID: <007601c8e6c8$5c2f98d0$148eca70$@org> Add the criteria "Random" (it's listed as a field) . does that do what you're looking to do? Brian From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Shai Gluskin Sent: Tuesday, July 15, 2008 4:12 PM To: support at drupal.org Subject: [support] Getting A View to "ORDER BY RAND ()" I have a need for Views to "ORDER BY RAND ()" The use-case is that I want to pull in the teaser of a particular content-type for one node only onto the home page. I want it to randomly select the node it displays. Everything is easy except the random part. The home page is a panel page. I've built a view, filtered on content-type, set the number of nodes to display at "1" -- successfully pulled it into the panel. I thought the way to do this would be to set a sort criteria. But I see only "ascending" and "descending" -- I don't see "random" as a choice. Any ideas? I'm using Drupal 5.8, Views 1.6 and Panels 2 Beta Thanks, Shai -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/eab6c377/attachment-0001.htm From shai at content2zero.com Tue Jul 15 22:43:13 2008 From: shai at content2zero.com (Shai Gluskin) Date: Tue, 15 Jul 2008 18:43:13 -0400 Subject: [support] Getting A View to "ORDER BY RAND ()" In-Reply-To: <007601c8e6c8$5c2f98d0$148eca70$@org> References: <9f68efb70807151512t3f28124eq5901505dbe363088@mail.gmail.com> <007601c8e6c8$5c2f98d0$148eca70$@org> Message-ID: <9f68efb70807151543s1df5bd43y7fb06cd6754237f1@mail.gmail.com> Thanks Brian, Paul, and Craig, Duhh. Okay, now I see it. I thought I'd have to chose the field and then expected random to be in the drop-down that has ascending/descending. But it's not that way, so my eyes missed it. Thanks much, this is perfect. Shai On Tue, Jul 15, 2008 at 6:15 PM, Brian Choc <bchoc at t4tcolorado.org> wrote: > Add the criteria "Random" (it's listed as a field) ? does that do what > you're looking to do? > > > > Brian > > > > > > *From:* support-bounces at drupal.org [mailto:support-bounces at drupal.org] *On > Behalf Of *Shai Gluskin > *Sent:* Tuesday, July 15, 2008 4:12 PM > *To:* support at drupal.org > *Subject:* [support] Getting A View to "ORDER BY RAND ()" > > > > I have a need for Views to "ORDER BY RAND ()" > > The use-case is that I want to pull in the teaser of a particular > content-type for one node only onto the home page. I want it to randomly > select the node it displays. > > Everything is easy except the random part. The home page is a panel page. > I've built a view, filtered on content-type, set the number of nodes to > display at "1" -- successfully pulled it into the panel. > > I thought the way to do this would be to set a sort criteria. But I see > only "ascending" and "descending" -- I don't see "random" as a choice. > > Any ideas? > > I'm using Drupal 5.8, Views 1.6 and Panels 2 Beta > > Thanks, > > Shai > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/ca620b9e/attachment.htm From drupalnut at gmail.com Wed Jul 16 02:31:34 2008 From: drupalnut at gmail.com (Jack Tuhman) Date: Tue, 15 Jul 2008 22:31:34 -0400 Subject: [support] separate page for comments Message-ID: <f401c82a0807151931h5ebd0f61t2597cd132bbe1b42@mail.gmail.com> Hi list, Is there an easy way to move all the comments to another page. Almost like having 2 pages for nodes, one with comments one without. I would love to be able to do this entirely or almost entirely in the theme. I might be able to do it with a hook_comment, but that has a large overhead, that I would rather not have. Thanks for the help, Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/76691914/attachment.htm From greg at t2media.com Wed Jul 16 04:48:35 2008 From: greg at t2media.com (Greg Holsclaw) Date: Tue, 15 Jul 2008 21:48:35 -0700 Subject: [support] separate page for comments In-Reply-To: <f401c82a0807151931h5ebd0f61t2597cd132bbe1b42@mail.gmail.com> References: <f401c82a0807151931h5ebd0f61t2597cd132bbe1b42@mail.gmail.com> Message-ID: <000c01c8e6ff$3553ea40$9ffbbec0$@com> Sorry, the link is: http://drupal.org/project/talk. -Greg From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Jack Tuhman Sent: Tuesday, July 15, 2008 7:32 PM To: support at drupal.org Subject: [support] separate page for comments Hi list, Is there an easy way to move all the comments to another page. Almost like having 2 pages for nodes, one with comments one without. I would love to be able to do this entirely or almost entirely in the theme. I might be able to do it with a hook_comment, but that has a large overhead, that I would rather not have. Thanks for the help, Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/47276f6e/attachment.htm From greg at t2media.com Wed Jul 16 04:48:10 2008 From: greg at t2media.com (Greg Holsclaw) Date: Tue, 15 Jul 2008 21:48:10 -0700 Subject: [support] separate page for comments In-Reply-To: <f401c82a0807151931h5ebd0f61t2597cd132bbe1b42@mail.gmail.com> References: <f401c82a0807151931h5ebd0f61t2597cd132bbe1b42@mail.gmail.com> Message-ID: <000701c8e6ff$26ec79e0$74c56da0$@com> The Talk module might be what you want. It places all the comments on a separate page like Wikipedia. From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Jack Tuhman Sent: Tuesday, July 15, 2008 7:32 PM To: support at drupal.org Subject: [support] separate page for comments Hi list, Is there an easy way to move all the comments to another page. Almost like having 2 pages for nodes, one with comments one without. I would love to be able to do this entirely or almost entirely in the theme. I might be able to do it with a hook_comment, but that has a large overhead, that I would rather not have. Thanks for the help, Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080715/a3aefa97/attachment.htm From marolijo at yahoo.es Wed Jul 16 08:03:55 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 16 Jul 2008 10:03:55 +0200 Subject: [support] clean reinstall of fckeditor Message-ID: <151001.79296.bm@omp108.mail.re3.yahoo.com> Hello, my fckeditor is not working (it appears nothing, neither normal textare neither fckeditor). I tried to deactivate/activate de module again. I tried delete the fckeditor tables. But still not working. Any idea of how to do a clean install? thank's -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080716/2abb903d/attachment.htm From mail at webthatworks.it Wed Jul 16 08:23:59 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Wed, 16 Jul 2008 10:23:59 +0200 Subject: [support] clean reinstall of fckeditor In-Reply-To: <151001.79296.bm@omp108.mail.re3.yahoo.com> References: <151001.79296.bm@omp108.mail.re3.yahoo.com> Message-ID: <20080716102359.230917be@dawn.webthatworks.it> On Wed, 16 Jul 2008 10:03:55 +0200 "marolijo - Pol Maresma" <marolijo at yahoo.es> wrote: > Hello, my fckeditor is not working (it appears nothing, neither > normal textare neither fckeditor). > I tried to deactivate/activate de module again. > I tried delete the fckeditor tables. > > But still not working. I had similar problems due to: 1) cache 2) file permissions clean your browser cache and check file permissions of the fckeditor dir -- Ivan Sergio Borgonovo http://www.webthatworks.it From marolijo at yahoo.es Wed Jul 16 09:40:32 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 16 Jul 2008 11:40:32 +0200 Subject: [support] clean reinstall of fckeditor In-Reply-To: <20080716102359.230917be@dawn.webthatworks.it> Message-ID: <848224.58457.bm@omp107.mail.re1.yahoo.com> I tried it but nothing... Where on the database can I delete the module references? Will it work? Thank's -----Mensaje original----- De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de Ivan Sergio Borgonovo Enviado el: dimecres, 16 / juliol / 2008 10:24 Para: support at drupal.org Asunto: Re: [support] clean reinstall of fckeditor On Wed, 16 Jul 2008 10:03:55 +0200 "marolijo - Pol Maresma" <marolijo at yahoo.es> wrote: > Hello, my fckeditor is not working (it appears nothing, neither normal > textare neither fckeditor). > I tried to deactivate/activate de module again. > I tried delete the fckeditor tables. > > But still not working. I had similar problems due to: 1) cache 2) file permissions clean your browser cache and check file permissions of the fckeditor dir -- Ivan Sergio Borgonovo http://www.webthatworks.it -- [ Drupal support list | http://lists.drupal.org/ ] __________ Informacisn de NOD32, revisisn 3270 (20080715) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com From mail at webthatworks.it Wed Jul 16 09:59:14 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Wed, 16 Jul 2008 11:59:14 +0200 Subject: [support] clean reinstall of fckeditor In-Reply-To: <848224.58457.bm@omp107.mail.re1.yahoo.com> References: <20080716102359.230917be@dawn.webthatworks.it> <848224.58457.bm@omp107.mail.re1.yahoo.com> Message-ID: <20080716115914.23e40a5b@dawn.webthatworks.it> On Wed, 16 Jul 2008 11:40:32 +0200 "marolijo - Pol Maresma" <marolijo at yahoo.es> wrote: > I tried it but nothing... > > Where on the database can I delete the module references? Will it > work? backup the DB, give a look to the .install file, disable the module, uninstall it and manually do everything that .install suggest you to do to completely wipe fckeditor from your drupal. Check if any drupal variable are set too. Did I write: backup your DB? ;) -- Ivan Sergio Borgonovo http://www.webthatworks.it From earnie at users.sourceforge.net Wed Jul 16 11:22:19 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 16 Jul 2008 07:22:19 -0400 Subject: [support] clean reinstall of fckeditor In-Reply-To: <20080716115914.23e40a5b@dawn.webthatworks.it> References: <20080716102359.230917be@dawn.webthatworks.it> <848224.58457.bm@omp107.mail.re1.yahoo.com> <20080716115914.23e40a5b@dawn.webthatworks.it> Message-ID: <20080716072219.ki7mwi7txnfkkco4@mail.progw.org> Quoting Ivan Sergio Borgonovo <mail at webthatworks.it>: > On Wed, 16 Jul 2008 11:40:32 +0200 > "marolijo - Pol Maresma" <marolijo at yahoo.es> wrote: > >> I tried it but nothing... >> >> Where on the database can I delete the module references? Will it >> work? > > backup the DB, give a look to the .install file, disable the module, > uninstall it and manually do everything that .install suggest you to > do to completely wipe fckeditor from your drupal. > > Check if any drupal variable are set too. > > Did I write: backup your DB? ;) > The fckeditor_uninstall only drops the database tables. Looks like all of the variables in the variable table begin with fckeditor_ so a sql query can clean that up easily. However, all of the variable_get operations are within the fckeditor_install and should then not be stored in the database. The only value a variable set in the variable table for fckeditor is during installation of fckeditor. You have no chance of editing any of the values in a formal Drupal settings page. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From drupal-support at robuustdesign.nl Wed Jul 16 10:12:28 2008 From: drupal-support at robuustdesign.nl (Stefan Nagtegaal) Date: Wed, 16 Jul 2008 12:12:28 +0200 Subject: [support] Quickly administering posts in theme Message-ID: <2D4CDCD2-513B-4F8D-A6A0-D28A7646260C@robuustdesign.nl> Hello list! :-) It's been a while since I targeted this list as a source of help, but at the moment I'm completely lost.. I'll give you some background information as what I would like to do: I think I made the ultimate Blogging theme for drupal - as you probably all think offcourse ;-) - but now, I want to have links/ buttons to immediatly administer the viewed post. So I can delete/ unpublish/edit it. Offcourse those links/buttons should only be available when the user has the right permissions. Otherwise, they should be hidden or not displayed at all. Now, the questions are; - How should I implement that inside my theme? Or should I write a special module for that, bundled with the theme? - Perhaps there is a theme which does this already and I'm not aware of? The approach taken should be as clean as possible. Hope you guys can help me out! Yours sincerely, Stefan Nagtegaal From earnie at users.sourceforge.net Wed Jul 16 11:32:26 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 16 Jul 2008 07:32:26 -0400 Subject: [support] clean reinstall of fckeditor In-Reply-To: <151001.79296.bm@omp108.mail.re3.yahoo.com> References: <151001.79296.bm@omp108.mail.re3.yahoo.com> Message-ID: <20080716073226.2bleztbwmrk0k8w0@mail.progw.org> Quoting marolijo - Pol Maresma <marolijo at yahoo.es>: > Hello, my fckeditor is not working (it appears nothing, neither normal > textare neither fckeditor). > I tried to deactivate/activate de module again. > I tried delete the fckeditor tables. > > But still not working. > > Any idea of how to do a clean install? > Was it working and then stopped? Do you have memory_limit set high enough? I don't think a "clean install" will help, unless you modified the code. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From enboig at gmail.com Wed Jul 16 12:41:18 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Wed, 16 Jul 2008 14:41:18 +0200 Subject: [support] IMCE not showing Message-ID: <45a29f450807160541j24cca1ecv61f5d1782c52dbcb@mail.gmail.com> I was having some problems with IMCE and FCKEDITOR so I upgraded both and now when I try to upload a image, the IMCE pop-windows don't show the "browse server" button. I tried removing all the tables of fckeditor, all {variables} with imce and fck, and the modules reference in {system}; but after reinstalling I see imce configuration is preserved. Where is the IMCE configuration saved? -- *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les il?lusions. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From enboig at gmail.com Wed Jul 16 12:56:17 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Wed, 16 Jul 2008 14:56:17 +0200 Subject: [support] IMCE not showing In-Reply-To: <45a29f450807160541j24cca1ecv61f5d1782c52dbcb@mail.gmail.com> References: <45a29f450807160541j24cca1ecv61f5d1782c52dbcb@mail.gmail.com> Message-ID: <45a29f450807160556i23886581oaa3dc84939d7e488@mail.gmail.com> following http://drupal.org/node/254718 and adding LinkBrowser= true; ImageBrowser= true; FlashBrowser= true; LinkBrowserURL= '/?q=imce/browse'; ImageBrowserURL= '/?q=imce/browse'; FlashBrowserURL= '/?q=imce/browse'; seems to have solved the problem On Wed, Jul 16, 2008 at 2:41 PM, Llu?s <enboig at gmail.com> wrote: > I was having some problems with IMCE and FCKEDITOR so I upgraded both > and now when I try to upload a image, the IMCE pop-windows don't show > the "browse server" button. I tried removing all the tables of > fckeditor, all {variables} with imce and fck, and the modules > reference in {system}; but after reinstalling I see imce configuration > is preserved. Where is the IMCE configuration saved? > > -- > *La vida ?s com una moneda, la pots gastar en el que vulguis per? > nom?s una vegada. > *La felicitat ha de ser compatible, compartible i cooperativa. > *Envellim quan els records superen les il?lusions. > *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. > *Abans d'imprimir aquest missatge, pensa en el medi ambient. > -- *La vida ?s com una moneda, la pots gastar en el que vulguis per? nom?s una vegada. *La felicitat ha de ser compatible, compartible i cooperativa. *Envellim quan els records superen les il?lusions. *Als llocs desconeguts nom?s s'hi arriba per camins desconeguts. *Abans d'imprimir aquest missatge, pensa en el medi ambient. From bill at funnymonkey.com Wed Jul 16 13:45:29 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Wed, 16 Jul 2008 06:45:29 -0700 Subject: [support] Quickly administering posts in theme In-Reply-To: <2D4CDCD2-513B-4F8D-A6A0-D28A7646260C@robuustdesign.nl> References: <2D4CDCD2-513B-4F8D-A6A0-D28A7646260C@robuustdesign.nl> Message-ID: <487DFB79.1050302@funnymonkey.com> IIRC, the Zen theme does something similar with editing blocks -- maybe you could borrow something from there? Cheers, Bill Stefan Nagtegaal wrote: > Hello list! :-) > > It's been a while since I targeted this list as a source of help, but > at the moment I'm completely lost.. > > I'll give you some background information as what I would like to do: > I think I made the ultimate Blogging theme for drupal - as you > probably all think offcourse ;-) - but now, I want to have links/ > buttons to immediatly administer the viewed post. So I can delete/ > unpublish/edit it. > > Offcourse those links/buttons should only be available when the user > has the right permissions. Otherwise, they should be hidden or not > displayed at all. > > Now, the questions are; > - How should I implement that inside my theme? Or should I write a > special module for that, bundled with the theme? > - Perhaps there is a theme which does this already and I'm not aware of? > > The approach taken should be as clean as possible. > > Hope you guys can help me out! > > > Yours sincerely, > > > > Stefan Nagtegaal > > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From geniekids at gmail.com Thu Jul 17 08:57:38 2008 From: geniekids at gmail.com (Ratnesh - Geniekids) Date: Thu, 17 Jul 2008 14:27:38 +0530 Subject: [support] how to get filtered userlist in cck field Message-ID: <c7465f8a0807170157h3b370234j9d7846f0a9470714@mail.gmail.com> Hi I am struggling with something which i guess is simple - but could not find a straight solution - hence this post. This is my scenario (i run a institute): 1. I have a CCK content type in which the faculty enters the observation of each student 2. Each student's (drupal) role is defined by the program he is sighned up for say progA, progB and ProgC 3. Further within each program (or role) each child is in a different class or group - for this i have created a profile field called student_group - say groupX and GroupY so what i want is that when faculty want to enter observation they should be able to "choose" the student's name first filter by program name - say choose progA, then filter the list by group name - say, GroupX so they get user list (of students) only in ProgA & GroupX and select the right name to enter observations. Once they enter the observation - the student sees his observations (using views) How do i get the userlist filtered by these two levels - first by role and then by student_group. realise also that one student could be in more than one program (through within a program only in one group). Which means that in the user profile two roles are selected for such a student. thanks in advance to help me set this up. -- Ratnesh Mathur 91-80-25202510, 91-98450-45833 www.geniekids.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080717/c41bb1c9/attachment-0001.htm From bharanikumariyerphp at gmail.com Thu Jul 17 11:28:11 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 17 Jul 2008 16:58:11 +0530 Subject: [support] how to create the textbox Message-ID: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> Hi dears How to create the textbox, I am writing custom block, So i want one text box, one submit button, for search operation.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080717/85379d7d/attachment.htm From bharanikumariyerphp at gmail.com Thu Jul 17 15:18:17 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 17 Jul 2008 20:48:17 +0530 Subject: [support] problem in display content with tree Message-ID: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> Hi How to display the contents , in the manner of root and child, like root as category and its child as sub category, Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080717/fcc8cf0f/attachment.htm From earnie at users.sourceforge.net Thu Jul 17 15:39:34 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 17 Jul 2008 11:39:34 -0400 Subject: [support] problem in display content with tree In-Reply-To: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> Message-ID: <20080717113934.ynpu61fv099ck8s4@mail.progw.org> Quoting bharani kumar <bharanikumariyerphp at gmail.com>: > Hi > > > How to display the contents , in the manner of root and child, > > like root as category > > and its child as sub category, > The Node Relativity[1] module will do this. [1] http://drupal.org/project/relativity Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From mike at mikeyp.net Thu Jul 17 16:04:14 2008 From: mike at mikeyp.net (Michael Prasuhn) Date: Thu, 17 Jul 2008 09:04:14 -0700 Subject: [support] problem in display content with tree In-Reply-To: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> Message-ID: <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> Also, depending on your needs, the Book module in core may work as well. -Mike On Jul 17, 2008, at 8:18 AM, bharani kumar wrote: > Hi > > > How to display the contents , in the manner of root and child, > > like root as category > > and its child as sub category, > > > Thanks > -- > [ Drupal support list | http://lists.drupal.org/ ] __________________ Michael Prasuhn mike at mikeyp.net http://mikeyp.net 503.488.5433 714.356.0168 cell 949.200.7670 fax From bharanikumariyerphp at gmail.com Thu Jul 17 17:03:04 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 17 Jul 2008 22:33:04 +0530 Subject: [support] problem in display content with tree In-Reply-To: <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> Message-ID: <2240033d0807171003h580ae415s975d303eebec1b66@mail.gmail.com> Hi dear, i my task image is attaheced, Is it possible with that relativity module or book module... or any idea, plz reply.... On Thu, Jul 17, 2008 at 9:34 PM, Michael Prasuhn <mike at mikeyp.net> wrote: > Also, depending on your needs, the Book module in core may work as well. > > -Mike > > > On Jul 17, 2008, at 8:18 AM, bharani kumar wrote: > > > Hi > > > > > > How to display the contents , in the manner of root and child, > > > > like root as category > > > > and its child as sub category, > > > > > > Thanks > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > __________________ > Michael Prasuhn > mike at mikeyp.net > http://mikeyp.net > 503.488.5433 > 714.356.0168 cell > 949.200.7670 fax > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080717/67cdba20/attachment.htm From pec.sumit at gmail.com Thu Jul 17 18:02:53 2008 From: pec.sumit at gmail.com (sumit kataria) Date: Thu, 17 Jul 2008 23:32:53 +0530 Subject: [support] how to create the textbox In-Reply-To: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> References: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> Message-ID: <c06bda470807171102ka246ee5x35fe9cab970e4c2f@mail.gmail.com> HI you can use formAPI to create a text box (more specifications on api.drupal.org) your form function will go like this - $form['example_textbox'] = array( '#title' => t('my first textbox'), '#description' => t(), '#type' = 'textbox', ); $form['MySubmit'] = array( '#type' => submit, ); and in corresponding submit function use $form_state['values']['examle_textbox'] to get text string !! On Thu, Jul 17, 2008 at 4:58 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Hi dears > > > How to create the textbox, > > I am writing custom block, > > So i want one text box, one submit button, > > for search operation.. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Warm Regards sumit kataria cell 91-9888546343 www.sumitk.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080717/f25f2411/attachment.htm From pkim at reachlocal.com Thu Jul 17 19:53:08 2008 From: pkim at reachlocal.com (Paul Kim) Date: Thu, 17 Jul 2008 12:53:08 -0700 Subject: [support] MENU_CALLBACK still inserting menu item Message-ID: <487FA324.8070907@reachlocal.com> Hello, I have a hook_menu implementation that I want to refer to a function callback to a specific URL with 'type" => MENU_CALLBACK, but it is still putting it in the main nav menu bar. What am I doing wrong? $items[] = array( 'path' => 'user/'. arg(1) .'/profile', 'title' => 'Profile', 'callback' => 'node_page_edit', 'callback arguments' => array($node), 'type' => MENU_CALLBACK, 'access' => $access, ); Thanks in advance! From pkim at reachlocal.com Thu Jul 17 20:16:26 2008 From: pkim at reachlocal.com (Paul Kim) Date: Thu, 17 Jul 2008 13:16:26 -0700 Subject: [support] MENU_CALLBACK still inserting menu item In-Reply-To: <487FA324.8070907@reachlocal.com> References: <487FA324.8070907@reachlocal.com> Message-ID: <487FA89A.6030507@reachlocal.com> Nevermind, I found another array element that was setting this to MENU_NORMAL_ITEM. Paul Kim wrote: > Hello, > > I have a hook_menu implementation that I want to refer to a function > callback to a specific URL with 'type" => MENU_CALLBACK, but it is still > putting it in the main nav menu bar. What am I doing wrong? > > $items[] = array( > 'path' => 'user/'. arg(1) .'/profile', > 'title' => 'Profile', > 'callback' => 'node_page_edit', > 'callback arguments' => array($node), > 'type' => MENU_CALLBACK, > 'access' => $access, > ); > > Thanks in advance! > From drupal-support at robuustdesign.nl Wed Jul 16 10:12:28 2008 From: drupal-support at robuustdesign.nl (Stefan Nagtegaal) Date: Wed, 16 Jul 2008 12:12:28 +0200 Subject: [support] Quickly administering posts in theme Message-ID: <2D4CDCD2-513B-4F8D-A6A0-D28A7646260C@robuustdesign.nl> Hello list! :-) It's been a while since I targeted this list as a source of help, but at the moment I'm completely lost.. I'll give you some background information as what I would like to do: I think I made the ultimate Blogging theme for drupal - as you probably all think offcourse ;-) - but now, I want to have links/ buttons to immediatly administer the viewed post. So I can delete/ unpublish/edit it. Offcourse those links/buttons should only be available when the user has the right permissions. Otherwise, they should be hidden or not displayed at all. Now, the questions are; - How should I implement that inside my theme? Or should I write a special module for that, bundled with the theme? - Perhaps there is a theme which does this already and I'm not aware of? The approach taken should be as clean as possible. Hope you guys can help me out! Yours sincerely, Stefan Nagtegaal From bharanikumariyerphp at gmail.com Fri Jul 18 05:53:13 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 18 Jul 2008 11:23:13 +0530 Subject: [support] problem in display content with tree In-Reply-To: <2240033d0807171003h580ae415s975d303eebec1b66@mail.gmail.com> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> <2240033d0807171003h580ae415s975d303eebec1b66@mail.gmail.com> Message-ID: <2240033d0807172253o391f56d4w3973539b5f195f42@mail.gmail.com> is there any module act like, Show taxonomy and its sub category as tree manner, Here i attached the pciture image, Thanks Regards On Thu, Jul 17, 2008 at 10:33 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Hi dear, > > i my task image is attaheced, > > Is it possible with that relativity module or book module... > > or any idea, > > plz reply.... > > > On Thu, Jul 17, 2008 at 9:34 PM, Michael Prasuhn <mike at mikeyp.net> wrote: > >> Also, depending on your needs, the Book module in core may work as well. >> >> -Mike >> >> >> On Jul 17, 2008, at 8:18 AM, bharani kumar wrote: >> >> > Hi >> > >> > >> > How to display the contents , in the manner of root and child, >> > >> > like root as category >> > >> > and its child as sub category, >> > >> > >> > Thanks >> > -- >> > [ Drupal support list | http://lists.drupal.org/ ] >> >> __________________ >> Michael Prasuhn >> mike at mikeyp.net >> http://mikeyp.net >> 503.488.5433 >> 714.356.0168 cell >> 949.200.7670 fax >> >> >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080718/d096ffb7/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: taxonomy.JPG Type: image/jpeg Size: 25932 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080718/d096ffb7/attachment-0001.jpeg From killshot91 at comcast.net Fri Jul 18 05:57:32 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Thu, 17 Jul 2008 22:57:32 -0700 Subject: [support] problem in display content with tree In-Reply-To: <2240033d0807172253o391f56d4w3973539b5f195f42@mail.gmail.com> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> <2240033d0807171003h580ae415s975d303eebec1b66@mail.gmail.com> <2240033d0807172253o391f56d4w3973539b5f195f42@mail.gmail.com> Message-ID: <488030CC.7070202@comcast.net> There is the Taxonomy Menu module (http://drupal.org/project/taxonomy_menu). I've tried it and it's okay. I'm in the process of writing my own module that will do more of what you want, as well as display nodes under those categories. My idea is to create the menu and then use nice_menus to create the drop down effect. Steve bharani kumar wrote: > is there any module act like, > > Show taxonomy and its sub category as tree manner, > > Here i attached the pciture image, > > > Thanks > Regards > > > On Thu, Jul 17, 2008 at 10:33 PM, bharani kumar > <bharanikumariyerphp at gmail.com <mailto:bharanikumariyerphp at gmail.com>> > wrote: > > Hi dear, > > i my task image is attaheced, > > Is it possible with that relativity module or book module... > > or any idea, > > plz reply.... > > > On Thu, Jul 17, 2008 at 9:34 PM, Michael Prasuhn <mike at mikeyp.net > <mailto:mike at mikeyp.net>> wrote: > > Also, depending on your needs, the Book module in core may work > as well. > > -Mike > > > On Jul 17, 2008, at 8:18 AM, bharani kumar wrote: > > > Hi > > > > > > How to display the contents , in the manner of root and child, > > > > like root as category > > > > and its child as sub category, > > > > > > Thanks > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > __________________ > Michael Prasuhn > mike at mikeyp.net <mailto:mike at mikeyp.net> > http://mikeyp.net > 503.488.5433 > 714.356.0168 cell > 949.200.7670 fax > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > > ------------------------------------------------------------------------ > From matt at cabinetuk.com Fri Jul 18 06:41:07 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Fri, 18 Jul 2008 07:41:07 +0100 Subject: [support] MENU_CALLBACK still inserting menu item In-Reply-To: <487FA324.8070907@reachlocal.com> References: <487FA324.8070907@reachlocal.com> Message-ID: <BD89519B-F263-4BB6-8DE2-8665DB7A12B8@cabinetuk.com> What version of Drupal are you using? hook_menu is quite different in D5 and D6. -Matt On 17/07/2008, at 8:53 PM, Paul Kim wrote: > Hello, > > I have a hook_menu implementation that I want to refer to a function > callback to a specific URL with 'type" => MENU_CALLBACK, but it is > still > putting it in the main nav menu bar. What am I doing wrong? > > $items[] = array( > 'path' => 'user/'. arg(1) .'/profile', > 'title' => 'Profile', > 'callback' => 'node_page_edit', > 'callback arguments' => array($node), > 'type' => MENU_CALLBACK, > 'access' => $access, > ); > > Thanks in advance! > -- > [ Drupal support list | http://lists.drupal.org/ ] From bharanikumariyerphp at gmail.com Fri Jul 18 08:31:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 18 Jul 2008 14:01:28 +0530 Subject: [support] problem in display content with tree In-Reply-To: <488030CC.7070202@comcast.net> References: <2240033d0807170818p1af4beb4ve3e8cee1bc7e332@mail.gmail.com> <06232DF2-DB91-46F1-A717-F1F766255099@mikeyp.net> <2240033d0807171003h580ae415s975d303eebec1b66@mail.gmail.com> <2240033d0807172253o391f56d4w3973539b5f195f42@mail.gmail.com> <488030CC.7070202@comcast.net> Message-ID: <2240033d0807180131u4cbb512w894570465f7af3a@mail.gmail.com> its fine, But we want to bring the display ,to the content region, Presently it is getting displayed in the left region(ie in navigation), Can u tell how bring that in to content region, thanks in advance On Fri, Jul 18, 2008 at 11:27 AM, Steve Edwards <killshot91 at comcast.net> wrote: > There is the Taxonomy Menu module (http://drupal.org/project/taxonomy_menu). > I've tried it and it's okay. I'm in the process of > writing my own module that will do more of what you want, as well as > display nodes under those categories. My idea is to create > the menu and then use nice_menus to create the drop down effect. > > Steve > > bharani kumar wrote: > > is there any module act like, > > > > Show taxonomy and its sub category as tree manner, > > > > Here i attached the pciture image, > > > > > > Thanks > > Regards > > > > > > On Thu, Jul 17, 2008 at 10:33 PM, bharani kumar > > <bharanikumariyerphp at gmail.com <mailto:bharanikumariyerphp at gmail.com>> > > wrote: > > > > Hi dear, > > > > i my task image is attaheced, > > > > Is it possible with that relativity module or book module... > > > > or any idea, > > > > plz reply.... > > > > > > On Thu, Jul 17, 2008 at 9:34 PM, Michael Prasuhn <mike at mikeyp.net > > <mailto:mike at mikeyp.net>> wrote: > > > > Also, depending on your needs, the Book module in core may work > > as well. > > > > -Mike > > > > > > On Jul 17, 2008, at 8:18 AM, bharani kumar wrote: > > > > > Hi > > > > > > > > > How to display the contents , in the manner of root and child, > > > > > > like root as category > > > > > > and its child as sub category, > > > > > > > > > Thanks > > > -- > > > [ Drupal support list | http://lists.drupal.org/ ] > > > > __________________ > > Michael Prasuhn > > mike at mikeyp.net <mailto:mike at mikeyp.net> > > http://mikeyp.net > > 503.488.5433 > > 714.356.0168 cell > > 949.200.7670 fax > > > > > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > > > > > > > ------------------------------------------------------------------------ > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080718/c585efce/attachment.htm From bharanikumariyerphp at gmail.com Fri Jul 18 16:38:40 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 18 Jul 2008 22:08:40 +0530 Subject: [support] how to create the textbox In-Reply-To: <c06bda470807171102ka246ee5x35fe9cab970e4c2f@mail.gmail.com> References: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> <c06bda470807171102ka246ee5x35fe9cab970e4c2f@mail.gmail.com> Message-ID: <2240033d0807180938v144c9a8cg6dcb8e889c542d7d@mail.gmail.com> Hi dear thanks for response, where i write the post response operation and all, that is like >>> where i write the query and where i execute the that query and all thanks regards On Thu, Jul 17, 2008 at 11:32 PM, sumit kataria <pec.sumit at gmail.com> wrote: > HI > you can use formAPI to create a text box (more specifications on > api.drupal.org) > > your form function will go like this - > $form['example_textbox'] = array( > '#title' => t('my first textbox'), > '#description' => t(), > '#type' = 'textbox', > ); > $form['MySubmit'] = array( > '#type' => submit, > ); > and in corresponding submit function use > $form_state['values']['examle_textbox'] to get text string !! > On Thu, Jul 17, 2008 at 4:58 PM, bharani kumar < > bharanikumariyerphp at gmail.com> wrote: > >> Hi dears >> >> >> How to create the textbox, >> >> I am writing custom block, >> >> So i want one text box, one submit button, >> >> for search operation.. >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > > -- > Warm Regards > sumit kataria > cell 91-9888546343 > www.sumitk.net > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080718/7c255f8a/attachment.htm From pkim at reachlocal.com Fri Jul 18 16:46:36 2008 From: pkim at reachlocal.com (Paul Kim) Date: Fri, 18 Jul 2008 09:46:36 -0700 Subject: [support] how to create the textbox In-Reply-To: <2240033d0807180938v144c9a8cg6dcb8e889c542d7d@mail.gmail.com> References: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> <c06bda470807171102ka246ee5x35fe9cab970e4c2f@mail.gmail.com> <2240033d0807180938v144c9a8cg6dcb8e889c542d7d@mail.gmail.com> Message-ID: <4880C8EC.1010608@reachlocal.com> bharani, You don't have to call us "dear" or "dears". That is a term of endearment and not necessarily appropriate in this context. Just saying "Hi" or "Hello" is fine. What kind of search are you doing? Are you using Views to filter on a list of nodes? If so, you may just want to use the Views Filter Block module which will create the necessary block of the exposed filters of a view for you. Otherwise, you'll need to create a function that will process the form, validate it, and return your desired search results. api.drupal.org and the drupal.org site are both very helpful to this end. Paul bharani kumar wrote: > Hi dear > > thanks for response, > > where i write the post response operation > > and all, > > that is like >>> > > where i write the query and where i execute the that query and all > > > thanks > regards > > On Thu, Jul 17, 2008 at 11:32 PM, sumit kataria <pec.sumit at gmail.com > <mailto:pec.sumit at gmail.com>> wrote: > > HI > you can use formAPI to create a text box (more specifications on > api.drupal.org <http://api.drupal.org>) > > your form function will go like this - > $form['example_textbox'] = array( > '#title' => t('my first textbox'), > '#description' => t(), > '#type' = 'textbox', > ); > $form['MySubmit'] = array( > '#type' => submit, > ); > and in corresponding submit function use > $form_state['values']['examle_textbox'] to get text string !! > On Thu, Jul 17, 2008 at 4:58 PM, bharani kumar > <bharanikumariyerphp at gmail.com > <mailto:bharanikumariyerphp at gmail.com>> wrote: > > Hi dears > > > How to create the textbox, > > I am writing custom block, > > So i want one text box, one submit button, > > for search operation.. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > > -- > Warm Regards > sumit kataria > cell 91-9888546343 > www.sumitk.net <http://www.sumitk.net> > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > From bharanikumariyerphp at gmail.com Fri Jul 18 17:13:30 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 18 Jul 2008 22:43:30 +0530 Subject: [support] how to create the textbox In-Reply-To: <4880C8EC.1010608@reachlocal.com> References: <2240033d0807170428x6a4a565dxdcff7dead36ff977@mail.gmail.com> <c06bda470807171102ka246ee5x35fe9cab970e4c2f@mail.gmail.com> <2240033d0807180938v144c9a8cg6dcb8e889c542d7d@mail.gmail.com> <4880C8EC.1010608@reachlocal.com> Message-ID: <2240033d0807181013x100150fdp69d19b92a933c49e@mail.gmail.com> Hi am working in web site upgradation, My database not suport the view, so there is chance to use the view module So that,am creating custom search, that search for only single content type, Here am writing search code for event block, so my search only for event article,title display, Is there any module solve my problem, send that link thanks On Fri, Jul 18, 2008 at 10:16 PM, Paul Kim <pkim at reachlocal.com> wrote: > bharani, > > You don't have to call us "dear" or "dears". That is a term of > endearment and not necessarily appropriate in this context. Just saying > "Hi" or "Hello" is fine. > > What kind of search are you doing? Are you using Views to filter on a > list of nodes? If so, you may just want to use the Views Filter Block > module which will create the necessary block of the exposed filters of a > view for you. > > Otherwise, you'll need to create a function that will process the form, > validate it, and return your desired search results. api.drupal.org and > the drupal.org site are both very helpful to this end. > > Paul > > bharani kumar wrote: > > Hi dear > > > > thanks for response, > > > > where i write the post response operation > > > > and all, > > > > that is like >>> > > > > where i write the query and where i execute the that query and all > > > > > > thanks > > regards > > > > On Thu, Jul 17, 2008 at 11:32 PM, sumit kataria <pec.sumit at gmail.com > > <mailto:pec.sumit at gmail.com>> wrote: > > > > HI > > you can use formAPI to create a text box (more specifications on > > api.drupal.org <http://api.drupal.org>) > > > > your form function will go like this - > > $form['example_textbox'] = array( > > '#title' => t('my first textbox'), > > '#description' => t(), > > '#type' = 'textbox', > > ); > > $form['MySubmit'] = array( > > '#type' => submit, > > ); > > and in corresponding submit function use > > $form_state['values']['examle_textbox'] to get text string !! > > On Thu, Jul 17, 2008 at 4:58 PM, bharani kumar > > <bharanikumariyerphp at gmail.com > > <mailto:bharanikumariyerphp at gmail.com>> wrote: > > > > Hi dears > > > > > > How to create the textbox, > > > > I am writing custom block, > > > > So i want one text box, one submit button, > > > > for search operation.. > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > > > > > > > -- > > Warm Regards > > sumit kataria > > cell 91-9888546343 > > www.sumitk.net <http://www.sumitk.net> > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080718/b715557c/attachment-0001.htm From bharanikumariyerphp at gmail.com Sat Jul 19 10:52:23 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sat, 19 Jul 2008 16:22:23 +0530 Subject: [support] Disable the sub menu Message-ID: <2240033d0807190352k22f26a45h6e247e2f4a74f6fe@mail.gmail.com> Hi How to disable the submenu, That is when i click the create content, i dont want to show the content type in child or sub menu,, just display the contenttype in the content regions afetr use click the Create content Any idea for this -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080719/bec84156/attachment.htm From amont at 5net.hu Sat Jul 19 17:03:33 2008 From: amont at 5net.hu (=?ISO-8859-1?Q?=C1mon_Tam=E1s?=) Date: Sat, 19 Jul 2008 19:03:33 +0200 Subject: [support] Disable the sub menu In-Reply-To: <2240033d0807190352k22f26a45h6e247e2f4a74f6fe@mail.gmail.com> References: <2240033d0807190352k22f26a45h6e247e2f4a74f6fe@mail.gmail.com> Message-ID: <48821E65.2070703@5net.hu> Hello, You can make a new menu item with this and disable the Create content menu item. bharani kumar ?rta: > Hi > > How to disable the submenu, > > That is when i click the create content, i dont want to show the > content type in child or sub menu,, > > just display the contenttype in the content regions afetr use click > the Create content > > > Any idea for this ?mon Tam?s Sitefejleszto" ?s programoz? -- 5NET Informatikai Kft. 1062 Budapest, Aradi utca 38. A 3/11 telefon: (1) 461-0205 | fax: (1) 461-0206 e-mail: amont at 5net.hu | web: http://www.5net.hu From bharanikumariyerphp at gmail.com Sat Jul 19 17:12:27 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sat, 19 Jul 2008 22:42:27 +0530 Subject: [support] Disable the sub menu In-Reply-To: <48821E65.2070703@5net.hu> References: <2240033d0807190352k22f26a45h6e247e2f4a74f6fe@mail.gmail.com> <48821E65.2070703@5net.hu> Message-ID: <2240033d0807191012r7f3da750he54f68c7d1eb06a6@mail.gmail.com> Fine but if u create the new conent type then, setting will be changed, u note that... On Sat, Jul 19, 2008 at 10:33 PM, ?mon Tam?s <amont at 5net.hu> wrote: > Hello, > > You can make a new menu item with this and disable the Create content > menu item. > > bharani kumar ?rta: > > Hi > > > > How to disable the submenu, > > > > That is when i click the create content, i dont want to show the > > content type in child or sub menu,, > > > > just display the contenttype in the content regions afetr use click > > the Create content > > > > > > Any idea for this > > > ?mon Tam?s > Sitefejleszto" ?s programoz? > -- > 5NET Informatikai Kft. > 1062 Budapest, Aradi utca 38. A 3/11 > telefon: (1) 461-0205 | fax: (1) 461-0206 > e-mail: amont at 5net.hu | web: http://www.5net.hu > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080719/0c0c3a95/attachment.htm From killshot91 at comcast.net Sun Jul 20 06:19:40 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sat, 19 Jul 2008 23:19:40 -0700 Subject: [support] Disappearing .htaccess File Message-ID: <4882D8FC.7080502@comcast.net> I've been working on a customer site on my server, and I uploaded it to the client server today. The front page displayed fine, but when I click on any links, I get page not found errors. I'm using clean URLs on my server (like I do on every project), and I noticed that the .htaccess file was missing. I uploaded it twice, but when I go to another folder and come back, it's gone, as if I never uploaded it in the first place. I asked the client about it, and they know of nothing that would do that. Has anybody seen this before, or know how to fix it? Thanks. Steve From philip at philipnet.com Sun Jul 20 07:04:32 2008 From: philip at philipnet.com (philip at philipnet.com) Date: Sun, 20 Jul 2008 07:04:32 +0000 Subject: [support] Disappearing .htaccess File In-Reply-To: <4882D8FC.7080502@comcast.net> References: <4882D8FC.7080502@comcast.net> Message-ID: <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> Quoting "Steve Edwards" <killshot91 at comcast.net>: > I've been working on a customer site on my server, and I uploaded it > to the client server today. The front page displayed fine, > but when I click on any links, I get page not found errors. I'm > using clean URLs on my server (like I do on every project), and I > noticed that the .htaccess file was missing. I uploaded it twice, > but when I go to another folder and come back, it's gone, as if > I never uploaded it in the first place. I asked the client about > it, and they know of nothing that would do that. Has anybody > seen this before, or know how to fix it? Hey Steve, Under UNIX/Linux any file that starts with a '.' is considered a hidden file - i.e. a file that's not normally shown when you list the contents of a directory. There should be an option on your FTP client to show hidden files. Note that even if hidden, the .htaccess file still exists and should take effect. However it sounds like it doesn't. Can you examine/modify the Apache configuration so that .htaccess file take effect? Something like: <Directory "/location/on/remote/server/to/drupal/installation"> Options All AllowOverride All </Directory> in the Apache configuration should work. Regards. Philipnet. -- http://www.philipnet.com/ http://windowsadvice.com/blogs/philipnet/ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From killshot91 at comcast.net Sun Jul 20 07:23:52 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sun, 20 Jul 2008 00:23:52 -0700 Subject: [support] Disappearing .htaccess File In-Reply-To: <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> References: <4882D8FC.7080502@comcast.net> <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> Message-ID: <4882E808.2040507@comcast.net> I'm using FileZilla, and I can see the .htaccess file just fine on my own server. I can upload and download to and from that server and see the file (and also on other servers) without a problem. The reason I don't think it is there is because none of my links work. I'm using clean URLs and the home page shows fine, but every link I click on gives the "URL /xxxxx not found on this server" error message. I can't access the .conf file. My FTP access puts me in the Drupal root, which is a subdomain. I tried modifying Base_Rewrite, but that does no good since the .htaccess isn't even there in the first place. Steve philip at philipnet.com wrote: > Quoting "Steve Edwards" <killshot91 at comcast.net>: > >> I've been working on a customer site on my server, and I uploaded it >> to the client server today. The front page displayed fine, >> but when I click on any links, I get page not found errors. I'm >> using clean URLs on my server (like I do on every project), and I >> noticed that the .htaccess file was missing. I uploaded it twice, >> but when I go to another folder and come back, it's gone, as if >> I never uploaded it in the first place. I asked the client about >> it, and they know of nothing that would do that. Has anybody >> seen this before, or know how to fix it? > > Hey Steve, > > Under UNIX/Linux any file that starts with a '.' is considered a > hidden file - i.e. a file that's not normally shown when you list the > contents of a directory. > > There should be an option on your FTP client to show hidden files. > > Note that even if hidden, the .htaccess file still exists and should > take effect. However it sounds like it doesn't. Can you examine/modify > the Apache configuration so that .htaccess file take effect? > Something like: > > <Directory "/location/on/remote/server/to/drupal/installation"> > Options All > AllowOverride All > </Directory> > > in the Apache configuration should work. > > Regards. > > Philipnet. From bill at funnymonkey.com Sun Jul 20 07:37:24 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Sun, 20 Jul 2008 00:37:24 -0700 Subject: [support] Disappearing .htaccess File In-Reply-To: <4882E808.2040507@comcast.net> References: <4882D8FC.7080502@comcast.net> <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> <4882E808.2040507@comcast.net> Message-ID: <4882EB34.7000807@funnymonkey.com> Can you bring a vanilla drupal install with clean urls live in a different directory on this server? This would be one way to determine whether this is a server config issue, or something related to your specific site. Steve Edwards wrote: > I'm using FileZilla, and I can see the .htaccess file just fine on my own server. I can upload and download to and from that > server and see the file (and also on other servers) without a problem. > > The reason I don't think it is there is because none of my links work. I'm using clean URLs and the home page shows fine, but > every link I click on gives the "URL /xxxxx not found on this server" error message. > > I can't access the .conf file. My FTP access puts me in the Drupal root, which is a subdomain. I tried modifying Base_Rewrite, > but that does no good since the .htaccess isn't even there in the first place. > > Steve > > philip at philipnet.com wrote: > >> Quoting "Steve Edwards" <killshot91 at comcast.net>: >> >> >>> I've been working on a customer site on my server, and I uploaded it >>> to the client server today. The front page displayed fine, >>> but when I click on any links, I get page not found errors. I'm >>> using clean URLs on my server (like I do on every project), and I >>> noticed that the .htaccess file was missing. I uploaded it twice, >>> but when I go to another folder and come back, it's gone, as if >>> I never uploaded it in the first place. I asked the client about >>> it, and they know of nothing that would do that. Has anybody >>> seen this before, or know how to fix it? >>> >> Hey Steve, >> >> Under UNIX/Linux any file that starts with a '.' is considered a >> hidden file - i.e. a file that's not normally shown when you list the >> contents of a directory. >> >> There should be an option on your FTP client to show hidden files. >> >> Note that even if hidden, the .htaccess file still exists and should >> take effect. However it sounds like it doesn't. Can you examine/modify >> the Apache configuration so that .htaccess file take effect? >> Something like: >> >> <Directory "/location/on/remote/server/to/drupal/installation"> >> Options All >> AllowOverride All >> </Directory> >> >> in the Apache configuration should work. >> >> Regards. >> >> Philipnet. >> -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From philip at philipnet.com Sun Jul 20 07:41:51 2008 From: philip at philipnet.com (philip at philipnet.com) Date: Sun, 20 Jul 2008 07:41:51 +0000 Subject: [support] Disappearing .htaccess File In-Reply-To: <4882E808.2040507@comcast.net> References: <4882D8FC.7080502@comcast.net> <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> <4882E808.2040507@comcast.net> Message-ID: <20080720074151.138973hgc0qlqi8s@illyria.philipnet.com> Hi Steve, If it's not your client, then it's the server. I've used hosting companies before where they won't show the .htaccess file (or any file starting with '.') in a directory listing. In those cases the companies have recommended keeping a local copy of the .htaccess or .htpasswd file(s) in case you ever need to amend them. And what about the Apache configuration? Can you confirm that that allows .htaccess files to override the settings? Because of a performance hit when using .htaccess files some hosts don't allow .htaccess files. Regards. Philipnet. Quoting "Steve Edwards" <killshot91 at comcast.net>: > I'm using FileZilla, and I can see the .htaccess file just fine on > my own server. I can upload and download to and from that > server and see the file (and also on other servers) without a problem. > > The reason I don't think it is there is because none of my links > work. I'm using clean URLs and the home page shows fine, but > every link I click on gives the "URL /xxxxx not found on this > server" error message. > > I can't access the .conf file. My FTP access puts me in the Drupal > root, which is a subdomain. I tried modifying Base_Rewrite, > but that does no good since the .htaccess isn't even there in the > first place. > > Steve > > philip at philipnet.com wrote: >> Quoting "Steve Edwards" <killshot91 at comcast.net>: >> >>> I've been working on a customer site on my server, and I uploaded it >>> to the client server today. The front page displayed fine, >>> but when I click on any links, I get page not found errors. I'm >>> using clean URLs on my server (like I do on every project), and I >>> noticed that the .htaccess file was missing. I uploaded it twice, >>> but when I go to another folder and come back, it's gone, as if >>> I never uploaded it in the first place. I asked the client about >>> it, and they know of nothing that would do that. Has anybody >>> seen this before, or know how to fix it? >> >> Hey Steve, >> >> Under UNIX/Linux any file that starts with a '.' is considered a >> hidden file - i.e. a file that's not normally shown when you list the >> contents of a directory. >> >> There should be an option on your FTP client to show hidden files. >> >> Note that even if hidden, the .htaccess file still exists and should >> take effect. However it sounds like it doesn't. Can you examine/modify >> the Apache configuration so that .htaccess file take effect? >> Something like: >> >> <Directory "/location/on/remote/server/to/drupal/installation"> >> Options All >> AllowOverride All >> </Directory> >> >> in the Apache configuration should work. >> >> Regards. >> >> Philipnet. > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- http://www.philipnet.com/ http://windowsadvice.com/blogs/philipnet/ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From bharanikumariyerphp at gmail.com Sun Jul 20 11:09:56 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 20 Jul 2008 16:39:56 +0530 Subject: [support] tree problem Message-ID: <2240033d0807200409o38d167c4r4315a7875a4d3f6c@mail.gmail.com> HI categories and its sub categories display is possbile with out using view, am not using VIEW module like +vegitable -onion -ladies finger +fruit -orange -apple -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080720/546df33d/attachment.htm From bharanikumariyerphp at gmail.com Sun Jul 20 14:11:59 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 20 Jul 2008 19:41:59 +0530 Subject: [support] blank page output Message-ID: <2240033d0807200711r2b6daf15id1e364243ccef8ac@mail.gmail.com> this is code output is blank page <?php function sample_menu(){ $content[] = array( 'title' => t('Taxonomy'), 'path' => 'sample', 'callback' => 'display', 'access' => user_access('authenticated user') ); return $content; } function display(){ $vid = 3; $sql = db_rewrite_sql("SELECT n.nid, d.tid, d.name, n.title, n.created FROM {term_data} d INNER JOIN {term_node} t on t.tid = d.tid LEFT JOIN {node} n on t.nid = n.nid WHERE d.vid = %d AND n.type = 'page' ORDER BY d.name ASC, n.created DESC", 'n', 'nid'); // Eliminate the DISTINCT that db_rewrite_sql() inserted. $sql = str_replace('DISTINCT(n.nid)', 'n.nid', $sql); $result = db_query($sql, $vid); echo "This is result".$result."<br>"; $last = ''; echo $last."<br>"; while ($data = db_fetch_object($result)) { echo "hi this data".$data; $month = format_date($data->created, 'custom', 'm/Y'); // e.g., 3/2007 echo $month; if ($last == $data->name) { $output .= '<li>' . l($data->title, "node/$data->nid") . " ($month)</li>"; } else { if ($last) { $output .= '</ul>'; } $last = $data->name; $output .= '<h3>' . check_plain($data->name) . '</h3>'; $output .= '<ul>'; $output .= '<li>' . l($data->title, "node/$data->nid") . " ($month)</li>"; } } $output .= '</ul>'; return $output; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080720/7854539b/attachment.htm From drupal at lourdas.name Sun Jul 20 14:16:04 2008 From: drupal at lourdas.name (Vasileios Lourdas) Date: Sun, 20 Jul 2008 17:16:04 +0300 Subject: [support] blank page output In-Reply-To: <2240033d0807200711r2b6daf15id1e364243ccef8ac@mail.gmail.com> References: <2240033d0807200711r2b6daf15id1e364243ccef8ac@mail.gmail.com> Message-ID: <200807201716.04356.drupal@lourdas.name> Hi, You should probably remove the display() function declaration and move its body outside it. So, you will have something like function sample_menu(){ ..... } $vid = 3; .... return $output; What's the point of sample_menu() ? -- # Vasileios Lourdas, # Informatics Engineer, Thessaloniki (Greece) # http://www.lourdas.name From bharanikumariyerphp at gmail.com Sun Jul 20 15:41:07 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 20 Jul 2008 21:11:07 +0530 Subject: [support] blank page output In-Reply-To: <200807201716.04356.drupal@lourdas.name> References: <2240033d0807200711r2b6daf15id1e364243ccef8ac@mail.gmail.com> <200807201716.04356.drupal@lourdas.name> Message-ID: <2240033d0807200841m720ccbb6mf89402ff6076f5d3@mail.gmail.com> Here sample_menu is the function, This sample_menu for navigation.. On Sun, Jul 20, 2008 at 7:46 PM, Vasileios Lourdas <drupal at lourdas.name> wrote: > Hi, > > You should probably remove the display() function declaration and move its > body outside it. So, you will have something like > > function sample_menu(){ > ..... > } > > $vid = 3; > .... > return $output; > > What's the point of sample_menu() ? > -- > # Vasileios Lourdas, > # Informatics Engineer, Thessaloniki (Greece) > # http://www.lourdas.name > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080720/028e41d3/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: taxonomy_menu.JPG Type: image/jpeg Size: 112965 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080720/028e41d3/attachment-0001.jpeg From bharanikumariyerphp at gmail.com Sun Jul 20 15:50:32 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 20 Jul 2008 21:20:32 +0530 Subject: [support] blank page output In-Reply-To: <2240033d0807200841m720ccbb6mf89402ff6076f5d3@mail.gmail.com> References: <2240033d0807200711r2b6daf15id1e364243ccef8ac@mail.gmail.com> <200807201716.04356.drupal@lourdas.name> <2240033d0807200841m720ccbb6mf89402ff6076f5d3@mail.gmail.com> Message-ID: <2240033d0807200850j740d6ad4oab67a0c3ae649e6@mail.gmail.com> what i try here is.. without using view module, display taxonomy +fruits -apple -orange +vegitable -ladies finger -onion chk the attached document,, On Sun, Jul 20, 2008 at 9:11 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Here > > > sample_menu is the function, > > This sample_menu for navigation.. > > On Sun, Jul 20, 2008 at 7:46 PM, Vasileios Lourdas <drupal at lourdas.name> > wrote: > >> Hi, >> >> You should probably remove the display() function declaration and move its >> body outside it. So, you will have something like >> >> function sample_menu(){ >> ..... >> } >> >> $vid = 3; >> .... >> return $output; >> >> What's the point of sample_menu() ? >> -- >> # Vasileios Lourdas, >> # Informatics Engineer, Thessaloniki (Greece) >> # http://www.lourdas.name >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080720/52018d9f/attachment.htm From killshot91 at comcast.net Sun Jul 20 23:11:02 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sun, 20 Jul 2008 16:11:02 -0700 Subject: [support] Disappearing .htaccess File In-Reply-To: <20080720074151.138973hgc0qlqi8s@illyria.philipnet.com> References: <4882D8FC.7080502@comcast.net> <20080720070432.25741pbhfjj6e1z4@illyria.philipnet.com> <4882E808.2040507@comcast.net> <20080720074151.138973hgc0qlqi8s@illyria.philipnet.com> Message-ID: <4883C606.1050708@comcast.net> OK, it's a collocated box, and I got root access to it. Where do I find the Apache config files? I've been poking around and haven't found them yet. Steve philip at philipnet.com wrote: > Hi Steve, > > If it's not your client, then it's the server. > I've used hosting companies before where they won't show the .htaccess > file (or any file starting with '.') in a directory listing. In those > cases the companies have recommended keeping a local copy of the > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > And what about the Apache configuration? > Can you confirm that that allows .htaccess files to override the settings? > Because of a performance hit when using .htaccess files some hosts > don't allow .htaccess files. > > Regards. > > Philipnet. > > Quoting "Steve Edwards" <killshot91 at comcast.net>: > >> I'm using FileZilla, and I can see the .htaccess file just fine on >> my own server. I can upload and download to and from that >> server and see the file (and also on other servers) without a problem. >> >> The reason I don't think it is there is because none of my links >> work. I'm using clean URLs and the home page shows fine, but >> every link I click on gives the "URL /xxxxx not found on this >> server" error message. >> >> I can't access the .conf file. My FTP access puts me in the Drupal >> root, which is a subdomain. I tried modifying Base_Rewrite, >> but that does no good since the .htaccess isn't even there in the >> first place. >> >> Steve >> >> philip at philipnet.com wrote: >>> Quoting "Steve Edwards" <killshot91 at comcast.net>: >>> >>>> I've been working on a customer site on my server, and I uploaded it >>>> to the client server today. The front page displayed fine, >>>> but when I click on any links, I get page not found errors. I'm >>>> using clean URLs on my server (like I do on every project), and I >>>> noticed that the .htaccess file was missing. I uploaded it twice, >>>> but when I go to another folder and come back, it's gone, as if >>>> I never uploaded it in the first place. I asked the client about >>>> it, and they know of nothing that would do that. Has anybody >>>> seen this before, or know how to fix it? >>> Hey Steve, >>> >>> Under UNIX/Linux any file that starts with a '.' is considered a >>> hidden file - i.e. a file that's not normally shown when you list the >>> contents of a directory. >>> >>> There should be an option on your FTP client to show hidden files. >>> >>> Note that even if hidden, the .htaccess file still exists and should >>> take effect. However it sounds like it doesn't. Can you examine/modify >>> the Apache configuration so that .htaccess file take effect? >>> Something like: >>> >>> <Directory "/location/on/remote/server/to/drupal/installation"> >>> Options All >>> AllowOverride All >>> </Directory> >>> >>> in the Apache configuration should work. >>> >>> Regards. >>> >>> Philipnet. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > From killshot91 at comcast.net Sun Jul 20 23:25:30 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sun, 20 Jul 2008 16:25:30 -0700 Subject: [support] [Fwd: Re: Disappearing .htaccess File] Message-ID: <4883C96A.2090108@comcast.net> I found the files (/etc/httpd), so I'm looking in it. Here's what I noticed: # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> So it looks like .htaccess files are allowed, but they just can't be seen even by things like FileZilla (the comments just say web clients). Correct? However, the root for my site is /home/myname. I'm assuming that means that I have to add another directive for my directory like this: <Directory "/home/myname"> AllowOverride All </Directory> Is that correct? Will I need to restart Apache after making these changes? Thanks. Steve -------- Original Message -------- Subject: Re: [support] Disappearing .htaccess File Date: Sun, 20 Jul 2008 16:11:02 -0700 From: Steve Edwards <killshot91 at comcast.net> To: support at drupal.org References: <4882D8FC.7080502 at comcast.net> <20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com> <4882E808.2040507 at comcast.net> <20080720074151.138973hgc0qlqi8s at illyria.philipnet.com> OK, it's a collocated box, and I got root access to it. Where do I find the Apache config files? I've been poking around and haven't found them yet. Steve philip at philipnet.com wrote: > Hi Steve, > > If it's not your client, then it's the server. > I've used hosting companies before where they won't show the .htaccess > file (or any file starting with '.') in a directory listing. In those > cases the companies have recommended keeping a local copy of the > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > And what about the Apache configuration? > Can you confirm that that allows .htaccess files to override the settings? > Because of a performance hit when using .htaccess files some hosts > don't allow .htaccess files. > > Regards. > > Philipnet. > > Quoting "Steve Edwards" <killshot91 at comcast.net>: > >> I'm using FileZilla, and I can see the .htaccess file just fine on >> my own server. I can upload and download to and from that >> server and see the file (and also on other servers) without a problem. >> >> The reason I don't think it is there is because none of my links >> work. I'm using clean URLs and the home page shows fine, but >> every link I click on gives the "URL /xxxxx not found on this >> server" error message. >> >> I can't access the .conf file. My FTP access puts me in the Drupal >> root, which is a subdomain. I tried modifying Base_Rewrite, >> but that does no good since the .htaccess isn't even there in the >> first place. >> >> Steve >> >> philip at philipnet.com wrote: >>> Quoting "Steve Edwards" <killshot91 at comcast.net>: >>> >>>> I've been working on a customer site on my server, and I uploaded it >>>> to the client server today. The front page displayed fine, >>>> but when I click on any links, I get page not found errors. I'm >>>> using clean URLs on my server (like I do on every project), and I >>>> noticed that the .htaccess file was missing. I uploaded it twice, >>>> but when I go to another folder and come back, it's gone, as if >>>> I never uploaded it in the first place. I asked the client about >>>> it, and they know of nothing that would do that. Has anybody >>>> seen this before, or know how to fix it? >>> Hey Steve, >>> >>> Under UNIX/Linux any file that starts with a '.' is considered a >>> hidden file - i.e. a file that's not normally shown when you list the >>> contents of a directory. >>> >>> There should be an option on your FTP client to show hidden files. >>> >>> Note that even if hidden, the .htaccess file still exists and should >>> take effect. However it sounds like it doesn't. Can you examine/modify >>> the Apache configuration so that .htaccess file take effect? >>> Something like: >>> >>> <Directory "/location/on/remote/server/to/drupal/installation"> >>> Options All >>> AllowOverride All >>> </Directory> >>> >>> in the Apache configuration should work. >>> >>> Regards. >>> >>> Philipnet. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > From killshot91 at comcast.net Mon Jul 21 00:20:13 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sun, 20 Jul 2008 17:20:13 -0700 Subject: [support] [Fwd: Re: Disappearing .htaccess File] In-Reply-To: <0692680293B7F6D534528EAC@ritz.innovate.net> References: <4883C96A.2090108@comcast.net> <0692680293B7F6D534528EAC@ritz.innovate.net> Message-ID: <4883D63D.8090401@comcast.net> OK, but that doesn't necessarily mean that it won't be read if the AllowOverride directive is properly set for my directory, right? It just means that it can't be viewed? Steve lists-drupal wrote: > This means that apache won't *serve* .ht* files to anyone: > > # The following lines prevent .htaccess and .htpasswd files from > # being viewed by Web clients. > > There are serious security reasons for this. [if i can find the file > i can read it, and any/all of its potentially secret contents. can > make for happy hacking.] > > If you view your document root with something that doesn't use > apache, e.g., direct filesystem viewing - e.g., from a shell, ftp, > etc., you'll be able to see the file (assuming things are configured, > or you give the appropriate commands to, view "dot" files on a unix > filesystem). > > I would only change or override that apache directive if I really > knew what I was doing, and then only by putting appropriate security > constraints on it (e.g., make it only visible from localhost or some > other specific IPnumber that I have full control over). > > > - Rick > > ------------ Original Message ------------ >> Date: Sunday, July 20, 2008 04:25:30 PM -0700 >> From: Steve Edwards <killshot91 at comcast.net> >> To: support at drupal.org >> Subject: [support] [Fwd: Re: Disappearing .htaccess File] >> >> I found the files (/etc/httpd), so I'm looking in it. Here's what >> I noticed: >> >> # >> # AccessFileName: The name of the file to look for in each directory >> # for additional configuration directives. See also the >> # AllowOverride directive. >> # >> AccessFileName .htaccess >> >> # >> # The following lines prevent .htaccess and .htpasswd files from >> # being viewed by Web clients. >> # >> <Files ~ "^\.ht"> >> Order allow,deny >> Deny from all >> </Files> >> >> So it looks like .htaccess files are allowed, but they just can't >> be seen even by things like FileZilla (the comments just say web >> clients). Correct? >> >> However, the root for my site is /home/myname. I'm assuming that >> means that I have to add another directive for my directory like >> this: >> >> <Directory "/home/myname"> >> AllowOverride All >> </Directory> >> >> >> Is that correct? >> >> Will I need to restart Apache after making these changes? >> >> Thanks. >> >> Steve >> > ------------ End Original Message ------------ > > > From killshot91 at comcast.net Mon Jul 21 04:21:12 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Sun, 20 Jul 2008 21:21:12 -0700 Subject: [support] [Fwd: Re: Disappearing .htaccess File] Message-ID: <48840EB8.7050501@comcast.net> That saga continues... I've been trying for a couple hours now to get my clean URLs to work by modifying httpd.conf, but nothing seems to work. I added the following to the httpd.conf file <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] </IfModule> and reloaded, but I still get "The requested URL /xxxxx was not found on this server." for every link I try to go to. I can get to each page using the non-clean URLs. I also tried adding to this <VirtualHost *:80> ServerName cms-qa.goosenetworks.com DocumentRoot /var/www/html/gn-qa </VirtualHost> to get this: <VirtualHost *:80> ServerName cms-qa.goosenetworks.com DocumentRoot /var/www/html/gn-qa <Directory /var/www/html/gn-qa> AllowOverride All </Directory> </VirtualHost> Now /var/www/html/gn-qa maps to /home/myname. Is /home/myname what needs to go in <Directory>? Also, Do I need quotes around the directory path/name? Thanks. Steve (just about to pull out what's left of his hair). -------- Original Message -------- Subject: Re: [support] Disappearing .htaccess File Date: Sun, 20 Jul 2008 16:11:02 -0700 From: Steve Edwards <killshot91 at comcast.net> To: support at drupal.org References: <4882D8FC.7080502 at comcast.net> <20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com> <4882E808.2040507 at comcast.net> <20080720074151.138973hgc0qlqi8s at illyria.philipnet.com> OK, it's a collocated box, and I got root access to it. Where do I find the Apache config files? I've been poking around and haven't found them yet. Steve philip at philipnet.com wrote: > Hi Steve, > > If it's not your client, then it's the server. > I've used hosting companies before where they won't show the .htaccess > file (or any file starting with '.') in a directory listing. In those > cases the companies have recommended keeping a local copy of the > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > And what about the Apache configuration? > Can you confirm that that allows .htaccess files to override the settings? > Because of a performance hit when using .htaccess files some hosts > don't allow .htaccess files. > > Regards. > > Philipnet. > > Quoting "Steve Edwards" <killshot91 at comcast.net>: > >> I'm using FileZilla, and I can see the .htaccess file just fine on >> my own server. I can upload and download to and from that >> server and see the file (and also on other servers) without a problem. >> >> The reason I don't think it is there is because none of my links >> work. I'm using clean URLs and the home page shows fine, but >> every link I click on gives the "URL /xxxxx not found on this >> server" error message. >> >> I can't access the .conf file. My FTP access puts me in the Drupal >> root, which is a subdomain. I tried modifying Base_Rewrite, >> but that does no good since the .htaccess isn't even there in the >> first place. >> >> Steve >> >> philip at philipnet.com wrote: >>> Quoting "Steve Edwards" <killshot91 at comcast.net>: >>> >>>> I've been working on a customer site on my server, and I uploaded it >>>> to the client server today. The front page displayed fine, >>>> but when I click on any links, I get page not found errors. I'm >>>> using clean URLs on my server (like I do on every project), and I >>>> noticed that the .htaccess file was missing. I uploaded it twice, >>>> but when I go to another folder and come back, it's gone, as if >>>> I never uploaded it in the first place. I asked the client about >>>> it, and they know of nothing that would do that. Has anybody >>>> seen this before, or know how to fix it? >>> Hey Steve, >>> >>> Under UNIX/Linux any file that starts with a '.' is considered a >>> hidden file - i.e. a file that's not normally shown when you list the >>> contents of a directory. >>> >>> There should be an option on your FTP client to show hidden files. >>> >>> Note that even if hidden, the .htaccess file still exists and should >>> take effect. However it sounds like it doesn't. Can you examine/modify >>> the Apache configuration so that .htaccess file take effect? >>> Something like: >>> >>> <Directory "/location/on/remote/server/to/drupal/installation"> >>> Options All >>> AllowOverride All >>> </Directory> >>> >>> in the Apache configuration should work. >>> >>> Regards. >>> >>> Philipnet. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > From pdow at dowsoftware.com Mon Jul 21 05:15:06 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Sun, 20 Jul 2008 22:15:06 -0700 Subject: [support] Drupal 5 works with FF not IE Message-ID: <48841B5A.5070803@dowsoftware.com> Please bear in mind that I'm a newbie with Linux. I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5. When using FireFox 3.0, the site works as expected. When using Internet Explorer 7, login fails, redisplaying the login page with the message: Access denied You are not authorized to access this page. When I use the Drupal administration to look at the Drupal logs, I see the following for the Firefox login: Details Type user Date Sunday, July 20, 2008 - 19:35 User peter <http://71.254.147.252:5080/drupal5/?q=user/2> Location http://www.cardenasdow.us/drupal5/?destination=node Referrer http://71.254.147.252:5080/drupal5/ Message Session opened for /peter/. Severity notice Hostname 71.254.147.252 And for the Internet Explorer login: Details Type user Date Sunday, July 20, 2008 - 19:36 User peter <http://71.254.147.252:5080/drupal5/?q=user/2> Location http://www.cardenasdow.us/drupal5/?destination=node Referrer http://71.254.147.252:5080/drupal5/?q=node Message Session opened for /peter/. Severity notice Hostname 71.254.147.252 The only difference (other than the time) is the "Referrer" link. I read up on Clean URLs, but cannot seem to get them working correctly. I have the Apache Rewrite module loaded, and in the .htaccess file I have: RewriteEngine on Options All RewriteCond %{HTTP_HOST} ^cardenasdow\.us$ [NC] RewriteRule ^(.*)$ http://www.cardenasdow.us/$1 [L,R=301] RewriteBase /drupal5 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] I used the Drupal module administration to load the Path module. A lot of the posts I've read about this are on the confusing side because it is unclear where the file they're telling me to modify actually is. It's also not apparent where things get installed. Here's what I think I know of my directory structure: Apache is in /etc/apache2. It has the following subdirectories: conf.d mods-available mods-enabled sites-available sites-enabled Drupal is in /etc/drupal/5 with subdirectories profiles default sites default My website documents are in /var/www. Drupal documents are in /var/www/drupal5. I've tried clearing cache tables (cache, cache_filters, cache_menu, cache_page) in the drupal database to no avail. How do I get this to work for IE7? *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080720/34374e9a/attachment-0001.htm From fredthejonester at gmail.com Mon Jul 21 07:24:23 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 21 Jul 2008 09:24:23 +0200 Subject: [support] Drupal 5 works with FF not IE In-Reply-To: <48841B5A.5070803@dowsoftware.com> References: <48841B5A.5070803@dowsoftware.com> Message-ID: <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> When I browse to http://www.cardenasdow.us/drupal5 on FF2 or IE6 on Win 2K or FF3, IE7, or Safari Beta on Windows Vista, it works every time. Are you running IE7 on Xubuntu or on Windows? Because on Linux, IE7 is only a beta. HTH. From victorkane at gmail.com Mon Jul 21 08:45:07 2008 From: victorkane at gmail.com (Victor Kane) Date: Mon, 21 Jul 2008 05:45:07 -0300 Subject: [support] [Fwd: Re: Disappearing .htaccess File] In-Reply-To: <48840EB8.7050501@comcast.net> References: <48840EB8.7050501@comcast.net> Message-ID: <ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com> First off, please go to the Drupal Handbook and read the section on Clean URLs: http://drupal.org/node/15365 "Take a deep breath" and read the introductory howto article, and carry that out, and then only if necessary, any special case articles you feel might help. Apart from that (the most important), on the basis of what you are saying here, you just need to make a VirtualHost entry for each document root, not for subdirectories. The document root is the top-most directory where something like index.html or index.php can be invoked. If I make a directory: /home/myproject/html, where I am thinking of placing a Drupal virtual host for a project (so I would have /home/myproject/html/index.php), the following works for me: <VirtualHost *> ServerName myproject.example.com DocumentRoot /home/myproject/html <Directory "/home/myproject/html"> Options Indexes FollowSymLinks MultiViews AllowOverride All </Directory> </VirtualHost> Then, we assume that the url myproject.example.com either has an A entry in your DNS zone configuration (configured subdomain) or temporarily exists in the /etc/hosts file of your client. What is your DNS setup? What exactly do you mean when you say "/var/www/html/gn-qa maps to /home/myname"? On Mon, Jul 21, 2008 at 1:21 AM, Steve Edwards <killshot91 at comcast.net> wrote: In the example you give, /var/www/html/gn-qa would need to be the document root (i.e. index.php would work there). Also, you say it is colocation; so, did you install and enable the Apache mod_rewrite module? That is necessary for clean URLs, as seen in the Drupal Handbook Documentation page. Victor Kane http://awebfactory.com.ar That saga continues... > > I've been trying for a couple hours now to get my clean URLs to work by > modifying httpd.conf, but nothing seems to work. I added > the following to the httpd.conf file > > <IfModule mod_rewrite.c> > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] > </IfModule> > > and reloaded, but I still get "The requested URL /xxxxx was not found on > this server." for every link I try to go to. I can get > to each page using the non-clean URLs. > > I also tried adding to this > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > DocumentRoot /var/www/html/gn-qa > </VirtualHost> > > to get this: > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > DocumentRoot /var/www/html/gn-qa > <Directory /var/www/html/gn-qa> > AllowOverride All > </Directory> > </VirtualHost> > > Now /var/www/html/gn-qa maps to /home/myname. Is /home/myname what needs > to go in <Directory>? Also, Do I need quotes around the > directory path/name? > > Thanks. > > Steve (just about to pull out what's left of his hair). > > > -------- Original Message -------- > Subject: Re: [support] Disappearing .htaccess File > Date: Sun, 20 Jul 2008 16:11:02 -0700 > From: Steve Edwards <killshot91 at comcast.net> > To: support at drupal.org > References: <4882D8FC.7080502 at comcast.net> < > 20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com> < > 4882E808.2040507 at comcast.net> > <20080720074151.138973hgc0qlqi8s at illyria.philipnet.com> > > OK, it's a collocated box, and I got root access to it. Where do I find > the Apache config files? I've been poking around and > haven't found them yet. > > Steve > > philip at philipnet.com wrote: > > Hi Steve, > > > > If it's not your client, then it's the server. > > I've used hosting companies before where they won't show the .htaccess > > file (or any file starting with '.') in a directory listing. In those > > cases the companies have recommended keeping a local copy of the > > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > > > And what about the Apache configuration? > > Can you confirm that that allows .htaccess files to override the > settings? > > Because of a performance hit when using .htaccess files some hosts > > don't allow .htaccess files. > > > > Regards. > > > > Philipnet. > > > > Quoting "Steve Edwards" <killshot91 at comcast.net>: > > > >> I'm using FileZilla, and I can see the .htaccess file just fine on > >> my own server. I can upload and download to and from that > >> server and see the file (and also on other servers) without a problem. > >> > >> The reason I don't think it is there is because none of my links > >> work. I'm using clean URLs and the home page shows fine, but > >> every link I click on gives the "URL /xxxxx not found on this > >> server" error message. > >> > >> I can't access the .conf file. My FTP access puts me in the Drupal > >> root, which is a subdomain. I tried modifying Base_Rewrite, > >> but that does no good since the .htaccess isn't even there in the > >> first place. > >> > >> Steve > >> > >> philip at philipnet.com wrote: > >>> Quoting "Steve Edwards" <killshot91 at comcast.net>: > >>> > >>>> I've been working on a customer site on my server, and I uploaded it > >>>> to the client server today. The front page displayed fine, > >>>> but when I click on any links, I get page not found errors. I'm > >>>> using clean URLs on my server (like I do on every project), and I > >>>> noticed that the .htaccess file was missing. I uploaded it twice, > >>>> but when I go to another folder and come back, it's gone, as if > >>>> I never uploaded it in the first place. I asked the client about > >>>> it, and they know of nothing that would do that. Has anybody > >>>> seen this before, or know how to fix it? > >>> Hey Steve, > >>> > >>> Under UNIX/Linux any file that starts with a '.' is considered a > >>> hidden file - i.e. a file that's not normally shown when you list the > >>> contents of a directory. > >>> > >>> There should be an option on your FTP client to show hidden files. > >>> > >>> Note that even if hidden, the .htaccess file still exists and should > >>> take effect. However it sounds like it doesn't. Can you examine/modify > >>> the Apache configuration so that .htaccess file take effect? > >>> Something like: > >>> > >>> <Directory "/location/on/remote/server/to/drupal/installation"> > >>> Options All > >>> AllowOverride All > >>> </Directory> > >>> > >>> in the Apache configuration should work. > >>> > >>> Regards. > >>> > >>> Philipnet. > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > >> > > > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/c903a70f/attachment.htm From victorkane at gmail.com Mon Jul 21 09:01:07 2008 From: victorkane at gmail.com (Victor Kane) Date: Mon, 21 Jul 2008 06:01:07 -0300 Subject: [support] Drupal 5 works with FF not IE In-Reply-To: <48841B5A.5070803@dowsoftware.com> References: <48841B5A.5070803@dowsoftware.com> Message-ID: <ff176450807210201lb5cc860se09b2c39ac7a2c41@mail.gmail.com> What version of Drupal is installed? Follow the general instructions at http://drupal.org/node/15365 and then the instructions on the specific Ubuntu page (http://drupal.org/node/134439). Victor Kane http://awebfactory.com.ar On Mon, Jul 21, 2008 at 2:15 AM, Peter Dow (DSS) <pdow at dowsoftware.com> wrote: > Please bear in mind that I'm a newbie with Linux. > > I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5. > > When using FireFox 3.0, the site works as expected. > > When using Internet Explorer 7, login fails, redisplaying the login page > with the message: > Access denied You are not authorized to access this page. > > When I use the Drupal administration to look at the Drupal logs, I see the > following for the Firefox login: > > Details Type user Date Sunday, July 20, 2008 - 19:35 User peter<http://71.254.147.252:5080/drupal5/?q=user/2> > Location http://www.cardenasdow.us/drupal5/?destination=node Referrer > http://71.254.147.252:5080/drupal5/ Message Session opened for *peter*. > Severity notice Hostname 71.254.147.252 > > And for the Internet Explorer login: > > Details Type user Date Sunday, July 20, 2008 - 19:36 User peter<http://71.254.147.252:5080/drupal5/?q=user/2> > Location http://www.cardenasdow.us/drupal5/?destination=node Referrer > http://71.254.147.252:5080/drupal5/?q=node Message Session opened for * > peter*. Severity notice Hostname 71.254.147.252 > The only difference (other than the time) is the "Referrer" link. I read > up on Clean URLs, but cannot seem to get them working correctly. I have the > Apache Rewrite module loaded, and in the .htaccess file I have: > > RewriteEngine on > Options All > RewriteCond %{HTTP_HOST} ^cardenasdow\.us$ [NC] > RewriteRule ^(.*)$ http://www.cardenasdow.us/$1 [L,R=301] > RewriteBase /drupal5 > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] > > I used the Drupal module administration to load the Path module. > > > A lot of the posts I've read about this are on the confusing side because > it is unclear where the file they're telling me to modify actually is. It's > also not apparent where things get installed. Here's what I think I know of > my directory structure: > > Apache is in /etc/apache2. It has the following subdirectories: > > conf.d > mods-available > mods-enabled > sites-available > sites-enabled > > Drupal is in /etc/drupal/5 with subdirectories > > profiles > default > > sites > default > > My website documents are in /var/www. > > Drupal documents are in /var/www/drupal5. > > > I've tried clearing cache tables (cache, cache_filters, cache_menu, > cache_page) in the drupal database to no avail. > > How do I get this to work for IE7? > > *Peter Dow* * > Dow Software Services, Inc. > 909 793-9050 > pdow at dowsoftware.com * > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/808586ac/attachment-0001.htm From pubmb.bco at pt.lu Mon Jul 21 10:41:43 2008 From: pubmb.bco at pt.lu (Bruno Costacurta) Date: Mon, 21 Jul 2008 12:41:43 +0200 Subject: [support] Newbie : how to load more than one picture in a Page ? Message-ID: <200807211241.43156.pubmb.bco@pt.lu> Hello, I can only import on picture in my Page. How to import more than one ? Via a Gallery ? I'm simply trying to create a first Page with some pictures as a Drupal learn curve. Thanks for any help. Bye, Bruno From pdow at dowsoftware.com Mon Jul 21 13:40:05 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Mon, 21 Jul 2008 06:40:05 -0700 Subject: [support] Drupal 5 works with FF not IE In-Reply-To: <ff176450807210201lb5cc860se09b2c39ac7a2c41@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <ff176450807210201lb5cc860se09b2c39ac7a2c41@mail.gmail.com> Message-ID: <488491B5.3070709@dowsoftware.com> Drupal 5. Good tip about a2enmod -- I'd copied it from mods-available to mods-enabled. Re your 2nd link (134439), I'm pretty much "Method 2: virtual hosts" and "Option A", although I only have the one site. I've done everything it said and still no joy -- I still get the "Not Found The requested URL /drupal5/admin/settings/clean-urls was not found on this server." I don't know if it's related, but I use no-ip.com for DNS. It's set up to do a "port 80 redirect", meaning a URL like "www.cardenasdow.us" actually goes to "www.cardenasdow.us:5080" (in my case). My router forwards the 5080 to 80 on the Drupal server. Victor Kane wrote: > > What version of Drupal is installed? > > Follow the general instructions at http://drupal.org/node/15365 and > then the instructions on the specific Ubuntu page > (http://drupal.org/node/134439). > > Victor Kane > http://awebfactory.com.ar > From bharanikumariyerphp at gmail.com Mon Jul 21 13:39:06 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 21 Jul 2008 19:09:06 +0530 Subject: [support] need search engine Message-ID: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com> Hello need custom search engine for search particular content type , is there module will do myfavour -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/cdbc0511/attachment.htm From pdow at dowsoftware.com Mon Jul 21 13:10:26 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Mon, 21 Jul 2008 06:10:26 -0700 Subject: [support] Drupal 5 works with FF not IE In-Reply-To: <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> Message-ID: <48848AC2.9040208@dowsoftware.com> Hi Fred, Now that I'm a little more awake, I should've mentioned that getting to the login page is no problem for FF or IE. The problem is that after entering a valid userid and password, IE gets the Access Denied message. Thanks for checking though. *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / Fred Jones wrote: > When I browse to > > http://www.cardenasdow.us/drupal5 > > on FF2 or IE6 on Win 2K or FF3, IE7, or Safari Beta on Windows Vista, > it works every time. > > Are you running IE7 on Xubuntu or on Windows? Because on Linux, IE7 is > only a beta. > > HTH. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/e246af0b/attachment.htm From hays at ohio.edu Mon Jul 21 14:05:55 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 10:05:55 -0400 Subject: [support] A simple question from a beginner In-Reply-To: <48848AC2.9040208@dowsoftware.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> Message-ID: <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> I have included the Site Title and Slogan in a header background image that occupies the header of my site. Can someone please tell me how to code (and where to put it) a link so that a click anywhere in the header takes the user to the front page? I would have no problem with this if it were simple HTML, but the compartmentalized PhP structure of Drupal has me pretty confused. Thanks in advance, Steve Hays Classics Ohio University From bharanikumariyerphp at gmail.com Mon Jul 21 14:14:13 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 21 Jul 2008 19:44:13 +0530 Subject: [support] A simple question from a beginner In-Reply-To: <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> Message-ID: <2240033d0807210714u6a24a052r110b7e671b4111ff@mail.gmail.com> do one thing, tell me in simple manner not an paragraph, i guide u, also u have any bitmap for ur expected output, send to me, i tell u.. On Mon, Jul 21, 2008 at 7:35 PM, Steve Hays <hays at ohio.edu> wrote: > I have included the Site Title and Slogan in a header background image > that occupies the header of my site. Can someone please tell me how > to code (and where to put it) a link so that a click anywhere in the > header takes the user to the front page? I would have no problem with > this if it were simple HTML, but the compartmentalized PhP structure > of Drupal has me pretty confused. > > Thanks in advance, > > Steve Hays > Classics > Ohio University > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/e6e4fdfa/attachment.htm From shai at content2zero.com Mon Jul 21 14:16:47 2008 From: shai at content2zero.com (Shai Gluskin) Date: Mon, 21 Jul 2008 10:16:47 -0400 Subject: [support] A simple question from a beginner In-Reply-To: <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> Message-ID: <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> Hi Steve, Sounds like you must have edited the page.tpl.page for the theme you are using in order to get the header image you wanted. Is that correct? That's where the html goes as well. Why don't you post that snippet of the code and then I or someone can post back with the simple snippet you'll need to get that to be a hyperlink. But you could try on your own as well --, just make sure that the php part is "off" near where you have the header image, and put in the html. <?php turns php on and ?> turns it off. Html happily goes outside of those tags. Shai So then you just go inside the theme folder for the theme you are using and go to page. On Mon, Jul 21, 2008 at 10:05 AM, Steve Hays <hays at ohio.edu> wrote: > I have included the Site Title and Slogan in a header background image > that occupies the header of my site. Can someone please tell me how > to code (and where to put it) a link so that a click anywhere in the > header takes the user to the front page? I would have no problem with > this if it were simple HTML, but the compartmentalized PhP structure > of Drupal has me pretty confused. > > Thanks in advance, > > Steve Hays > Classics > Ohio University > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/18fcc02b/attachment.htm From cxjohnson at gmail.com Mon Jul 21 14:17:57 2008 From: cxjohnson at gmail.com (Chris Johnson) Date: Mon, 21 Jul 2008 09:17:57 -0500 Subject: [support] need search engine In-Reply-To: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com> References: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com> Message-ID: <9ea8d6030807210717r6ad5920erd53b5023fc2258cc@mail.gmail.com> You might try the apachesolr module at http://drupal.org/project/apachesolr . On Mon, Jul 21, 2008 at 8:39 AM, bharani kumar <bharanikumariyerphp at gmail.com> wrote: > Hello > > > need custom search engine for search particular content type , > > is there module will do myfavour > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From bharanikumariyerphp at gmail.com Mon Jul 21 14:21:26 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 21 Jul 2008 19:51:26 +0530 Subject: [support] need search engine In-Reply-To: <9ea8d6030807210717r6ad5920erd53b5023fc2258cc@mail.gmail.com> References: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com> <9ea8d6030807210717r6ad5920erd53b5023fc2258cc@mail.gmail.com> Message-ID: <2240033d0807210721t3c246e4pe64209cebd6eb85@mail.gmail.com> can u refer other,,bcoz this is alpha, i can not use this for my production... any alternate.. On Mon, Jul 21, 2008 at 7:47 PM, Chris Johnson <cxjohnson at gmail.com> wrote: > You might try the apachesolr module at > http://drupal.org/project/apachesolr . > > On Mon, Jul 21, 2008 at 8:39 AM, bharani kumar > <bharanikumariyerphp at gmail.com> wrote: > > Hello > > > > > > need custom search engine for search particular content type , > > > > is there module will do myfavour > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/741a2f91/attachment-0001.htm From hays at ohio.edu Mon Jul 21 14:27:49 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 10:27:49 -0400 Subject: [support] A simple question from a beginner In-Reply-To: <2240033d0807210714u6a24a052r110b7e671b4111ff@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <2240033d0807210714u6a24a052r110b7e671b4111ff@mail.gmail.com> Message-ID: <F7534826-90CA-461B-BE11-23BD5E892141@ohio.edu> I will try. HTML output: <div id = "header"> </header> (no text content) On .css #header {background: } is an image. Where can I place Drupal l() function to make header a link? Does that make sense? Thanks. Steve On Jul 21, 2008, at 10:14 AM, bharani kumar wrote: > do one thing, > > tell me in simple manner not an paragraph, > > i guide u, > > also u have any bitmap for ur expected output, send to me, > > i tell u.. > > > > On Mon, Jul 21, 2008 at 7:35 PM, Steve Hays <hays at ohio.edu> wrote: > I have included the Site Title and Slogan in a header background image > that occupies the header of my site. Can someone please tell me how > to code (and where to put it) a link so that a click anywhere in the > header takes the user to the front page? I would have no problem with > this if it were simple HTML, but the compartmentalized PhP structure > of Drupal has me pretty confused. > > Thanks in advance, > > Steve Hays > Classics > Ohio University > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/81140b3e/attachment.htm From killshot91 at comcast.net Mon Jul 21 14:41:19 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 21 Jul 2008 07:41:19 -0700 Subject: [support] [Fwd: Re: Disappearing .htaccess File] In-Reply-To: <ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com> References: <48840EB8.7050501@comcast.net> <ff176450807210145k7f4d2c9bl4498cbd6fd57d29a@mail.gmail.com> Message-ID: <4884A00F.7000706@comcast.net> I read that page and many others, and I think took so many deep breaths last night that I almost hyperventilated.... But, I finally got it to work. I added a <Directory> section in my VirtualHost. I think my problem was that I didn't have quotes around the directory name. Once I did that, it worked. Thanks. Steve Victor Kane wrote: > First off, please go to the Drupal Handbook and read the section on > Clean URLs: http://drupal.org/node/15365 > > "Take a deep breath" and read the introductory howto article, and > carry that out, and then only if necessary, any special case articles > you feel might help. > > Apart from that (the most important), on the basis of what you are > saying here, you just need to make a VirtualHost entry for each > document root, not for subdirectories. > > The document root is the top-most directory where something like > index.html or index.php can be invoked. > > If I make a directory: /home/myproject/html, where I am thinking of > placing a Drupal virtual host for a project (so I would have > /home/myproject/html/index.php), the following works for me: > > <VirtualHost *> > ServerName myproject.example.com <http://myproject.example.com> > DocumentRoot /home/myproject/html > <Directory "/home/myproject/html"> > Options Indexes FollowSymLinks MultiViews > AllowOverride All > </Directory> > </VirtualHost> > > Then, we assume that the url myproject.example.com > <http://myproject.example.com> either has an A entry in your DNS zone > configuration (configured subdomain) or temporarily exists in the > /etc/hosts file of your client. > > What is your DNS setup? What exactly do you mean when you say > "/var/www/html/gn-qa maps to /home/myname"? > > On Mon, Jul 21, 2008 at 1:21 AM, Steve Edwards <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>> wrote: > > In the example you give, /var/www/html/gn-qa would need to be the > document root (i.e. index.php would work there). > > Also, you say it is colocation; so, did you install and enable the > Apache mod_rewrite module? That is necessary for clean URLs, as seen > in the Drupal Handbook Documentation page. > > Victor Kane > http://awebfactory.com.ar > > That saga continues... > > I've been trying for a couple hours now to get my clean URLs to > work by modifying httpd.conf, but nothing seems to work. I added > the following to the httpd.conf file > > <IfModule mod_rewrite.c> > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] > </IfModule> > > and reloaded, but I still get "The requested URL /xxxxx was not > found on this server." for every link I try to go to. I can get > to each page using the non-clean URLs. > > I also tried adding to this > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > <http://cms-qa.goosenetworks.com> > DocumentRoot /var/www/html/gn-qa > </VirtualHost> > > to get this: > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > <http://cms-qa.goosenetworks.com> > DocumentRoot /var/www/html/gn-qa > <Directory /var/www/html/gn-qa> > AllowOverride All > </Directory> > </VirtualHost> > > Now /var/www/html/gn-qa maps to /home/myname. Is /home/myname > what needs to go in <Directory>? Also, Do I need quotes around the > directory path/name? > > Thanks. > > Steve (just about to pull out what's left of his hair). > > > -------- Original Message -------- > Subject: Re: [support] Disappearing .htaccess File > Date: Sun, 20 Jul 2008 16:11:02 -0700 > From: Steve Edwards <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>> > To: support at drupal.org <mailto:support at drupal.org> > References: <4882D8FC.7080502 at comcast.net > <mailto:4882D8FC.7080502 at comcast.net>> > <20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com > <mailto:20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com>> > <4882E808.2040507 at comcast.net <mailto:4882E808.2040507 at comcast.net>> > <20080720074151.138973hgc0qlqi8s at illyria.philipnet.com > <mailto:20080720074151.138973hgc0qlqi8s at illyria.philipnet.com>> > > OK, it's a collocated box, and I got root access to it. Where do > I find the Apache config files? I've been poking around and > haven't found them yet. > > Steve > > philip at philipnet.com <mailto:philip at philipnet.com> wrote: > > Hi Steve, > > > > If it's not your client, then it's the server. > > I've used hosting companies before where they won't show the > .htaccess > > file (or any file starting with '.') in a directory listing. In > those > > cases the companies have recommended keeping a local copy of the > > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > > > And what about the Apache configuration? > > Can you confirm that that allows .htaccess files to override the > settings? > > Because of a performance hit when using .htaccess files some hosts > > don't allow .htaccess files. > > > > Regards. > > > > Philipnet. > > > > Quoting "Steve Edwards" <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>>: > > > >> I'm using FileZilla, and I can see the .htaccess file just fine on > >> my own server. I can upload and download to and from that > >> server and see the file (and also on other servers) without a > problem. > >> > >> The reason I don't think it is there is because none of my links > >> work. I'm using clean URLs and the home page shows fine, but > >> every link I click on gives the "URL /xxxxx not found on this > >> server" error message. > >> > >> I can't access the .conf file. My FTP access puts me in the Drupal > >> root, which is a subdomain. I tried modifying Base_Rewrite, > >> but that does no good since the .htaccess isn't even there in the > >> first place. > >> > >> Steve > >> > >> philip at philipnet.com <mailto:philip at philipnet.com> wrote: > >>> Quoting "Steve Edwards" <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>>: > >>> > >>>> I've been working on a customer site on my server, and I > uploaded it > >>>> to the client server today. The front page displayed fine, > >>>> but when I click on any links, I get page not found errors. I'm > >>>> using clean URLs on my server (like I do on every project), and I > >>>> noticed that the .htaccess file was missing. I uploaded it > twice, > >>>> but when I go to another folder and come back, it's gone, as if > >>>> I never uploaded it in the first place. I asked the client about > >>>> it, and they know of nothing that would do that. Has anybody > >>>> seen this before, or know how to fix it? > >>> Hey Steve, > >>> > >>> Under UNIX/Linux any file that starts with a '.' is considered a > >>> hidden file - i.e. a file that's not normally shown when you > list the > >>> contents of a directory. > >>> > >>> There should be an option on your FTP client to show hidden files. > >>> > >>> Note that even if hidden, the .htaccess file still exists and > should > >>> take effect. However it sounds like it doesn't. Can you > examine/modify > >>> the Apache configuration so that .htaccess file take effect? > >>> Something like: > >>> > >>> <Directory "/location/on/remote/server/to/drupal/installation"> > >>> Options All > >>> AllowOverride All > >>> </Directory> > >>> > >>> in the Apache configuration should work. > >>> > >>> Regards. > >>> > >>> Philipnet. > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > >> > > > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/76fdef44/attachment.htm From hays at ohio.edu Mon Jul 21 14:42:06 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 10:42:06 -0400 Subject: [support] A simple question from a beginner In-Reply-To: <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> Message-ID: <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> Shai, I did not edit the page.tpl. Instead, I disabled the title and slogan in the theme configuration. Then in .css I replaced the header background image with my new image. The result is that the HTML output of the header on all pages is blank <div id = "header"> </div> What you said, though, enabled me to figure it out. I simply needed to set the a href statement around the whole header div, and it worked. By the way, I simply set it as <a href = "home">, which works on local host. I hope this won't cause problems after upload? I.e., I don't need to use the Drupal l() function to maintain proper internal links? Thanks for the pointer. Now that I see it, I feel pretty stupid for needing to bother people with this. Steve On Jul 21, 2008, at 10:16 AM, Shai Gluskin wrote: > Hi Steve, > > Sounds like you must have edited the page.tpl.page for the theme you > are using in order to get the header image you wanted. Is that > correct? That's where the html goes as well. > > Why don't you post that snippet of the code and then I or someone > can post back with the simple snippet you'll need to get that to be > a hyperlink. > > But you could try on your own as well --, just make sure that the > php part is "off" near where you have the header image, and put in > the html. <?php turns php on and ?> turns it off. Html happily goes > outside of those tags. > > Shai > > So then you just go inside the theme folder for the theme you are > using and go to page. > > On Mon, Jul 21, 2008 at 10:05 AM, Steve Hays <hays at ohio.edu> wrote: > I have included the Site Title and Slogan in a header background image > that occupies the header of my site. Can someone please tell me how > to code (and where to put it) a link so that a click anywhere in the > header takes the user to the front page? I would have no problem with > this if it were simple HTML, but the compartmentalized PhP structure > of Drupal has me pretty confused. > > Thanks in advance, > > Steve Hays > Classics > Ohio University > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/26aef14e/attachment-0001.htm From shai at content2zero.com Mon Jul 21 15:01:50 2008 From: shai at content2zero.com (Shai Gluskin) Date: Mon, 21 Jul 2008 11:01:50 -0400 Subject: [support] A simple question from a beginner In-Reply-To: <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> Message-ID: <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> Steve, Do NOT feel stupid. We've all been there and continue to be there in many ways. It's way more efficient in use of the world's resources (which includes your brain power) for you to ask and get quick help -- it took me three minutes to write that email, than for you to bang your head, potentially for hours. People have helped me so many times and I'm sure you will help others -- or already have. No knowledge in Drupal is "comprehensive" -- you don't have to be a "ninja" or anything special to answer a question that you know the answer to. Regarding your situation. Congratulations on figuring it out. Indeed, no need to use the Drupal l() function. Regarding the href-- there are different opinions on this, and sometimes it depends on whether you have a multi-site or not. But my strong preference for any single installation site is for all href's to pages inside the site to be "root relative." All references should start with a forward slash after the first quotes. In this case I would no need to provide any specific page path since it is the default home page. Here is how I would do the href: <a href="/"> best, Shai On Mon, Jul 21, 2008 at 10:42 AM, Steve Hays <hays at ohio.edu> wrote: > Shai, > > I did not edit the page.tpl. Instead, I disabled the title and slogan in > the theme configuration. Then in .css I replaced the header background > image with my new image. > > The result is that the HTML output of the header on all pages is blank <div > id = "header"> </div> > > What you said, though, enabled me to figure it out. I simply needed to set > the a href statement around the whole header div, and it worked. > > By the way, I simply set it as <a href = "home">, which works on local > host. I hope this won't cause problems after upload? I.e., I don't need to > use the Drupal l() function to maintain proper internal links? > > Thanks for the pointer. Now that I see it, I feel pretty stupid for > needing to bother people with this. > > Steve > > > On Jul 21, 2008, at 10:16 AM, Shai Gluskin wrote: > > Hi Steve, > > Sounds like you must have edited the page.tpl.page for the theme you are > using in order to get the header image you wanted. Is that correct? That's > where the html goes as well. > > Why don't you post that snippet of the code and then I or someone can post > back with the simple snippet you'll need to get that to be a hyperlink. > > But you could try on your own as well --, just make sure that the php part > is "off" near where you have the header image, and put in the html. <?php > turns php on and ?> turns it off. Html happily goes outside of those tags. > > Shai > > So then you just go inside the theme folder for the theme you are using and > go to page. > > On Mon, Jul 21, 2008 at 10:05 AM, Steve Hays <hays at ohio.edu> wrote: > >> I have included the Site Title and Slogan in a header background image >> that occupies the header of my site. Can someone please tell me how >> to code (and where to put it) a link so that a click anywhere in the >> header takes the user to the front page? I would have no problem with >> this if it were simple HTML, but the compartmentalized PhP structure >> of Drupal has me pretty confused. >> >> Thanks in advance, >> >> Steve Hays >> Classics >> Ohio University >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/63e448b2/attachment.htm From shyamala at netlinkindia.com Mon Jul 21 15:44:15 2008 From: shyamala at netlinkindia.com (Shyamala Rajaram) Date: Mon, 21 Jul 2008 21:14:15 +0530 Subject: [support] need search engine References: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com><9ea8d6030807210717r6ad5920erd53b5023fc2258cc@mail.gmail.com> <2240033d0807210721t3c246e4pe64209cebd6eb85@mail.gmail.com> Message-ID: <017b01c8eb48$b440afd0$3663a8c0@netlinkindia.local> Try Views fast search! http://drupal.org/project/views_fastsearch Shyamala ----- Original Message ----- From: bharani kumar To: support at drupal.org Sent: Monday, July 21, 2008 7:51 PM Subject: Re: [support] need search engine can u refer other,,bcoz this is alpha, i can not use this for my production... any alternate.. On Mon, Jul 21, 2008 at 7:47 PM, Chris Johnson <cxjohnson at gmail.com> wrote: You might try the apachesolr module at http://drupal.org/project/apachesolr . On Mon, Jul 21, 2008 at 8:39 AM, bharani kumar <bharanikumariyerphp at gmail.com> wrote: > Hello > > > need custom search engine for search particular content type , > > is there module will do myfavour > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- [ Drupal support list | http://lists.drupal.org/ ] ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/6692d5d0/attachment.htm From bharanikumariyerphp at gmail.com Mon Jul 21 15:45:11 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 21 Jul 2008 21:15:11 +0530 Subject: [support] How to use """node_quick_find"" module Message-ID: <2240033d0807210845m3ab15469nb436556d013d7a33@mail.gmail.com> Hi Am using the "Node Quick Find" module, I dont know exactly how to use this module, Can any one tell how to use this module,, i use this module in the event block only, I want to search only event related contents, this is my motivation.. Any great help , -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/b8a0ae1d/attachment.htm From bharanikumariyerphp at gmail.com Mon Jul 21 15:48:49 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 21 Jul 2008 21:18:49 +0530 Subject: [support] need search engine In-Reply-To: <017b01c8eb48$b440afd0$3663a8c0@netlinkindia.local> References: <2240033d0807210639u39d2d43saf6068c5d44252ad@mail.gmail.com> <9ea8d6030807210717r6ad5920erd53b5023fc2258cc@mail.gmail.com> <2240033d0807210721t3c246e4pe64209cebd6eb85@mail.gmail.com> <017b01c8eb48$b440afd0$3663a8c0@netlinkindia.local> Message-ID: <2240033d0807210848u12e2da4dq6288450ae7d04847@mail.gmail.com> my database not support the VIEW, Dont know Y, So i am using the node_quick_find module, If u have idea how to use this, Plz share with me, I enabled this module, I set as content region in the block, i configure , there i selected search for only EVENT, But its not searvhing anything, If i unchecked , then the search is working fine.. Any great idea On Mon, Jul 21, 2008 at 9:14 PM, Shyamala Rajaram <shyamala at netlinkindia.com> wrote: > Try Views fast search! > > http://drupal.org/project/views_fastsearch > > Shyamala > > ----- Original Message ----- > *From:* bharani kumar <bharanikumariyerphp at gmail.com> > *To:* support at drupal.org > *Sent:* Monday, July 21, 2008 7:51 PM > *Subject:* Re: [support] need search engine > > can u refer other,,bcoz this is alpha, i can not use this for my > production... > > > any alternate.. > > On Mon, Jul 21, 2008 at 7:47 PM, Chris Johnson <cxjohnson at gmail.com> > wrote: > >> You might try the apachesolr module at >> http://drupal.org/project/apachesolr . >> >> On Mon, Jul 21, 2008 at 8:39 AM, bharani kumar >> <bharanikumariyerphp at gmail.com> wrote: >> > Hello >> > >> > >> > need custom search engine for search particular content type , >> > >> > is there module will do myfavour >> > >> > -- >> > [ Drupal support list | http://lists.drupal.org/ ] >> > >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > ------------------------------ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/f937d816/attachment.htm From hays at ohio.edu Mon Jul 21 16:03:13 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 12:03:13 -0400 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> Message-ID: <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> Shai, Many thanks both for your help and your kindness. Since you urge me not to knock my head against the wall too long, here's a problem I have probably spent 10 hours on and not produced a reasonable solution to--just a hacked work-around. I want my students to be able to develop individual blogs. I have developed (via Views in Drupal 6.3) a page that lists all Member Blogs. I have added a blog_name field to the Profiles page, and obviously I would like that name to be linked to the individual blog. The blog's default url is (of course) blogs/$uid. I have constructed a blog_url field in Profile so I can pull it along with the blog_name in Views. But that makes for an ugly page display: My_Blog http:// etc. What I would like, of course is to use the $account_blog_url variable in an a href statement so the url address is invisible to the user, but I don't know how to get Views or Profiles to produce such a link. Any ideas? Thanks again, Steve On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: > Steve, > > Do NOT feel stupid. We've all been there and continue to be there in > many ways. > > It's way more efficient in use of the world's resources (which > includes your brain power) for you to ask and get quick help -- it > took me three minutes to write that email, than for you to bang your > head, potentially for hours. People have helped me so many times and > I'm sure you will help others -- or already have. No knowledge in > Drupal is "comprehensive" -- you don't have to be a "ninja" or > anything special to answer a question that you know the answer to. > > Regarding your situation. Congratulations on figuring it out. > > Indeed, no need to use the Drupal l() function. > > Regarding the href-- there are different opinions on this, and > sometimes it depends on whether you have a multi-site or not. But my > strong preference for any single installation site is for all href's > to pages inside the site to be "root relative." All references > should start with a forward slash after the first quotes. In this > case I would no need to provide any specific page path since it is > the default home page. Here is how I would do the href: > > <a href="/"> > > best, > > Shai > From killshot91 at comcast.net Mon Jul 21 16:14:10 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 21 Jul 2008 09:14:10 -0700 Subject: [support] [Fwd: Re: [Fwd: Re: Disappearing .htaccess File]] Message-ID: <4884B5D2.5010804@comcast.net> Aaaaaand, as soon as I send this, I see it isn't working. I go to my site, and I see the Gnu Public License text. I remove the lines I had entered, and I can get to the front page, and I'm back to where I started. Here is the <VirtualHost> for my domain: <VirtualHost *:80> ServerName cms-qa.goosenetworks.com DocumentRoot /var/www/html/gn-qa </VirtualHost> and here's how I modified it: <VirtualHost *:80> ServerName cms-qa.goosenetworks.com DocumentRoot /var/www/html/gn-qa <Directory "var/www/html/gn-qa"> AllowOverride All </Directory> </VirtualHost> There is a DNS setting for cms-qa.goosenetworks.com. What I meant by "/var/www/html/gn-qa maps to /home/myname" is that if I navigate to /var/www/html/gn-qa, in something like WinSCP, it takes me right to /home/500lb, which is my Drupal file root. Whenever I add these lines, my links work for a refresh or two, but then all of a sudden I see the Gnu text. Sorry, I've never needed to mess with all this, so it's a bit new to me, and it doesn't help that I'm already under a time crunch. Thanks. Steve -------- Original Message -------- Subject: Re: [support] [Fwd: Re: Disappearing .htaccess File] Date: Mon, 21 Jul 2008 07:41:19 -0700 From: Steve Edwards <killshot91 at comcast.net> To: support at drupal.org References: <48840EB8.7050501 at comcast.net> <ff176450807210145k7f4d2c9bl4498cbd6fd57d29a at mail.gmail.com> I read that page and many others, and I think took so many deep breaths last night that I almost hyperventilated.... But, I finally got it to work. I added a <Directory> section in my VirtualHost. I think my problem was that I didn't have quotes around the directory name. Once I did that, it worked. Thanks. Steve Victor Kane wrote: > First off, please go to the Drupal Handbook and read the section on > Clean URLs: http://drupal.org/node/15365 > > "Take a deep breath" and read the introductory howto article, and > carry that out, and then only if necessary, any special case articles > you feel might help. > > Apart from that (the most important), on the basis of what you are > saying here, you just need to make a VirtualHost entry for each > document root, not for subdirectories. > > The document root is the top-most directory where something like > index.html or index.php can be invoked. > > If I make a directory: /home/myproject/html, where I am thinking of > placing a Drupal virtual host for a project (so I would have > /home/myproject/html/index.php), the following works for me: > > <VirtualHost *> > ServerName myproject.example.com <http://myproject.example.com> > DocumentRoot /home/myproject/html > <Directory "/home/myproject/html"> > Options Indexes FollowSymLinks MultiViews > AllowOverride All > </Directory> > </VirtualHost> > > Then, we assume that the url myproject.example.com > <http://myproject.example.com> either has an A entry in your DNS zone > configuration (configured subdomain) or temporarily exists in the > /etc/hosts file of your client. > > What is your DNS setup? What exactly do you mean when you say > "/var/www/html/gn-qa maps to /home/myname"? > > On Mon, Jul 21, 2008 at 1:21 AM, Steve Edwards <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>> wrote: > > In the example you give, /var/www/html/gn-qa would need to be the > document root (i.e. index.php would work there). > > Also, you say it is colocation; so, did you install and enable the > Apache mod_rewrite module? That is necessary for clean URLs, as seen > in the Drupal Handbook Documentation page. > > Victor Kane > http://awebfactory.com.ar > > That saga continues... > > I've been trying for a couple hours now to get my clean URLs to > work by modifying httpd.conf, but nothing seems to work. I added > the following to the httpd.conf file > > <IfModule mod_rewrite.c> > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] > </IfModule> > > and reloaded, but I still get "The requested URL /xxxxx was not > found on this server." for every link I try to go to. I can get > to each page using the non-clean URLs. > > I also tried adding to this > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > <http://cms-qa.goosenetworks.com> > DocumentRoot /var/www/html/gn-qa > </VirtualHost> > > to get this: > > <VirtualHost *:80> > ServerName cms-qa.goosenetworks.com > <http://cms-qa.goosenetworks.com> > DocumentRoot /var/www/html/gn-qa > <Directory /var/www/html/gn-qa> > AllowOverride All > </Directory> > </VirtualHost> > > Now /var/www/html/gn-qa maps to /home/myname. Is /home/myname > what needs to go in <Directory>? Also, Do I need quotes around the > directory path/name? > > Thanks. > > Steve (just about to pull out what's left of his hair). > > > -------- Original Message -------- > Subject: Re: [support] Disappearing .htaccess File > Date: Sun, 20 Jul 2008 16:11:02 -0700 > From: Steve Edwards <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>> > To: support at drupal.org <mailto:support at drupal.org> > References: <4882D8FC.7080502 at comcast.net > <mailto:4882D8FC.7080502 at comcast.net>> > <20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com > <mailto:20080720070432.25741pbhfjj6e1z4 at illyria.philipnet.com>> > <4882E808.2040507 at comcast.net <mailto:4882E808.2040507 at comcast.net>> > <20080720074151.138973hgc0qlqi8s at illyria.philipnet.com > <mailto:20080720074151.138973hgc0qlqi8s at illyria.philipnet.com>> > > OK, it's a collocated box, and I got root access to it. Where do > I find the Apache config files? I've been poking around and > haven't found them yet. > > Steve > > philip at philipnet.com <mailto:philip at philipnet.com> wrote: > > Hi Steve, > > > > If it's not your client, then it's the server. > > I've used hosting companies before where they won't show the > .htaccess > > file (or any file starting with '.') in a directory listing. In > those > > cases the companies have recommended keeping a local copy of the > > .htaccess or .htpasswd file(s) in case you ever need to amend them. > > > > And what about the Apache configuration? > > Can you confirm that that allows .htaccess files to override the > settings? > > Because of a performance hit when using .htaccess files some hosts > > don't allow .htaccess files. > > > > Regards. > > > > Philipnet. > > > > Quoting "Steve Edwards" <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>>: > > > >> I'm using FileZilla, and I can see the .htaccess file just fine on > >> my own server. I can upload and download to and from that > >> server and see the file (and also on other servers) without a > problem. > >> > >> The reason I don't think it is there is because none of my links > >> work. I'm using clean URLs and the home page shows fine, but > >> every link I click on gives the "URL /xxxxx not found on this > >> server" error message. > >> > >> I can't access the .conf file. My FTP access puts me in the Drupal > >> root, which is a subdomain. I tried modifying Base_Rewrite, > >> but that does no good since the .htaccess isn't even there in the > >> first place. > >> > >> Steve > >> > >> philip at philipnet.com <mailto:philip at philipnet.com> wrote: > >>> Quoting "Steve Edwards" <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>>: > >>> > >>>> I've been working on a customer site on my server, and I > uploaded it > >>>> to the client server today. The front page displayed fine, > >>>> but when I click on any links, I get page not found errors. I'm > >>>> using clean URLs on my server (like I do on every project), and I > >>>> noticed that the .htaccess file was missing. I uploaded it > twice, > >>>> but when I go to another folder and come back, it's gone, as if > >>>> I never uploaded it in the first place. I asked the client about > >>>> it, and they know of nothing that would do that. Has anybody > >>>> seen this before, or know how to fix it? > >>> Hey Steve, > >>> > >>> Under UNIX/Linux any file that starts with a '.' is considered a > >>> hidden file - i.e. a file that's not normally shown when you > list the > >>> contents of a directory. > >>> > >>> There should be an option on your FTP client to show hidden files. > >>> > >>> Note that even if hidden, the .htaccess file still exists and > should > >>> take effect. However it sounds like it doesn't. Can you > examine/modify > >>> the Apache configuration so that .htaccess file take effect? > >>> Something like: > >>> > >>> <Directory "/location/on/remote/server/to/drupal/installation"> > >>> Options All > >>> AllowOverride All > >>> </Directory> > >>> > >>> in the Apache configuration should work. > >>> > >>> Regards. > >>> > >>> Philipnet. > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > >> > > > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/159890ac/attachment.htm From shai at content2zero.com Mon Jul 21 16:40:12 2008 From: shai at content2zero.com (Shai Gluskin) Date: Mon, 21 Jul 2008 12:40:12 -0400 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> Message-ID: <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> Hi Steve, Looks like this module does what you want: http://drupal.org/project/blogger However, it is for D5. Check the issue queue and see what the time line for D6 is. There might be a solution using views. You shouldn't need profile module at all for this, if I understand your needs. A custom snippet might do the trick if the blogger module isn't going to be ready soon for D6. In general, I think your approach you are taking is more complicated than it needs to be. As an aside... Drupal 6 is really awesome... but it's having a long ramp up time for many good reasons. In general, for someone seeking support, ease of use and is a "beginner" - I recommend D5 at this moment in time. Sounds like you may be pretty far in and it isn't worth starting over. Shai On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: > Shai, > > Many thanks both for your help and your kindness. > > Since you urge me not to knock my head against the wall too long, > here's a problem I have probably spent 10 hours on and not produced a > reasonable solution to--just a hacked work-around. > > I want my students to be able to develop individual blogs. I have > developed (via Views in Drupal 6.3) a page that lists all Member > Blogs. I have added a blog_name field to the Profiles page, and > obviously I would like that name to be linked to the individual blog. > The blog's default url is (of course) blogs/$uid. I have constructed > a blog_url field in Profile so I can pull it along with the blog_name > in Views. > > But that makes for an ugly page display: My_Blog http:// etc. > > What I would like, of course is to use the $account_blog_url variable > in an a href statement so the url address is invisible to the user, > but I don't know how to get Views or Profiles to produce such a link. > > Any ideas? > > Thanks again, > > Steve > > > On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: > > > Steve, > > > > Do NOT feel stupid. We've all been there and continue to be there in > > many ways. > > > > It's way more efficient in use of the world's resources (which > > includes your brain power) for you to ask and get quick help -- it > > took me three minutes to write that email, than for you to bang your > > head, potentially for hours. People have helped me so many times and > > I'm sure you will help others -- or already have. No knowledge in > > Drupal is "comprehensive" -- you don't have to be a "ninja" or > > anything special to answer a question that you know the answer to. > > > > Regarding your situation. Congratulations on figuring it out. > > > > Indeed, no need to use the Drupal l() function. > > > > Regarding the href-- there are different opinions on this, and > > sometimes it depends on whether you have a multi-site or not. But my > > strong preference for any single installation site is for all href's > > to pages inside the site to be "root relative." All references > > should start with a forward slash after the first quotes. In this > > case I would no need to provide any specific page path since it is > > the default home page. Here is how I would do the href: > > > > <a href="/"> > > > > best, > > > > Shai > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/de961f7a/attachment-0001.htm From bill at funnymonkey.com Mon Jul 21 16:40:26 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Mon, 21 Jul 2008 09:40:26 -0700 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> Message-ID: <4884BBFA.5000108@funnymonkey.com> Hello, Steve, First, I'd like to echo what Shai said -- ask away, as we have all been there. Second, re your specific situation, would it work to filter your blog based on username? If so, create a Views argument that filters based on username -- and, you can specify the title of the page with the argument setting -- and, you could set a header for the entire view. Ping back if this is insufficient detail -- Cheers, Bill Steve Hays wrote: > Shai, > > Many thanks both for your help and your kindness. > > Since you urge me not to knock my head against the wall too long, > here's a problem I have probably spent 10 hours on and not produced a > reasonable solution to--just a hacked work-around. > > I want my students to be able to develop individual blogs. I have > developed (via Views in Drupal 6.3) a page that lists all Member > Blogs. I have added a blog_name field to the Profiles page, and > obviously I would like that name to be linked to the individual blog. > The blog's default url is (of course) blogs/$uid. I have constructed > a blog_url field in Profile so I can pull it along with the blog_name > in Views. > > But that makes for an ugly page display: My_Blog http:// etc. > > What I would like, of course is to use the $account_blog_url variable > in an a href statement so the url address is invisible to the user, > but I don't know how to get Views or Profiles to produce such a link. > > Any ideas? > > Thanks again, > > Steve > > > On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: > > >> Steve, >> >> Do NOT feel stupid. We've all been there and continue to be there in >> many ways. >> >> It's way more efficient in use of the world's resources (which >> includes your brain power) for you to ask and get quick help -- it >> took me three minutes to write that email, than for you to bang your >> head, potentially for hours. People have helped me so many times and >> I'm sure you will help others -- or already have. No knowledge in >> Drupal is "comprehensive" -- you don't have to be a "ninja" or >> anything special to answer a question that you know the answer to. >> >> Regarding your situation. Congratulations on figuring it out. >> >> Indeed, no need to use the Drupal l() function. >> >> Regarding the href-- there are different opinions on this, and >> sometimes it depends on whether you have a multi-site or not. But my >> strong preference for any single installation site is for all href's >> to pages inside the site to be "root relative." All references >> should start with a forward slash after the first quotes. In this >> case I would no need to provide any specific page path since it is >> the default home page. Here is how I would do the href: >> >> <a href="/"> >> >> best, >> >> Shai >> >> > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From shai at content2zero.com Mon Jul 21 16:41:07 2008 From: shai at content2zero.com (Shai Gluskin) Date: Mon, 21 Jul 2008 12:41:07 -0400 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> Message-ID: <9f68efb70807210941j300b475evc6f62fa8e8a423ed@mail.gmail.com> Steve, one more thing... To be clear, the blogger module doesn't replace the blog module, it provides some extra functionality for it. Shai On Mon, Jul 21, 2008 at 12:40 PM, Shai Gluskin <shai at content2zero.com> wrote: > Hi Steve, > > Looks like this module does what you want: > > http://drupal.org/project/blogger > > However, it is for D5. Check the issue queue and see what the time line for > D6 is. > > There might be a solution using views. You shouldn't need profile module at > all for this, if I understand your needs. A custom snippet might do the > trick if the blogger module isn't going to be ready soon for D6. In general, > I think your approach you are taking is more complicated than it needs to > be. > > As an aside... Drupal 6 is really awesome... but it's having a long ramp up > time for many good reasons. In general, for someone seeking support, ease of > use and is a "beginner" - I recommend D5 at this moment in time. Sounds like > you may be pretty far in and it isn't worth starting over. > > Shai > > > On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: > >> Shai, >> >> Many thanks both for your help and your kindness. >> >> Since you urge me not to knock my head against the wall too long, >> here's a problem I have probably spent 10 hours on and not produced a >> reasonable solution to--just a hacked work-around. >> >> I want my students to be able to develop individual blogs. I have >> developed (via Views in Drupal 6.3) a page that lists all Member >> Blogs. I have added a blog_name field to the Profiles page, and >> obviously I would like that name to be linked to the individual blog. >> The blog's default url is (of course) blogs/$uid. I have constructed >> a blog_url field in Profile so I can pull it along with the blog_name >> in Views. >> >> But that makes for an ugly page display: My_Blog http:// etc. >> >> What I would like, of course is to use the $account_blog_url variable >> in an a href statement so the url address is invisible to the user, >> but I don't know how to get Views or Profiles to produce such a link. >> >> Any ideas? >> >> Thanks again, >> >> Steve >> >> >> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: >> >> > Steve, >> > >> > Do NOT feel stupid. We've all been there and continue to be there in >> > many ways. >> > >> > It's way more efficient in use of the world's resources (which >> > includes your brain power) for you to ask and get quick help -- it >> > took me three minutes to write that email, than for you to bang your >> > head, potentially for hours. People have helped me so many times and >> > I'm sure you will help others -- or already have. No knowledge in >> > Drupal is "comprehensive" -- you don't have to be a "ninja" or >> > anything special to answer a question that you know the answer to. >> > >> > Regarding your situation. Congratulations on figuring it out. >> > >> > Indeed, no need to use the Drupal l() function. >> > >> > Regarding the href-- there are different opinions on this, and >> > sometimes it depends on whether you have a multi-site or not. But my >> > strong preference for any single installation site is for all href's >> > to pages inside the site to be "root relative." All references >> > should start with a forward slash after the first quotes. In this >> > case I would no need to provide any specific page path since it is >> > the default home page. Here is how I would do the href: >> > >> > <a href="/"> >> > >> > best, >> > >> > Shai >> > >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/149ee8d5/attachment.htm From bill at funnymonkey.com Mon Jul 21 16:45:15 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Mon, 21 Jul 2008 09:45:15 -0700 Subject: [support] OT -- was: Re: Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> Message-ID: <4884BD1B.7090809@funnymonkey.com> Shai Gluskin wrote: > <snip good stuff> > As an aside... Drupal 6 is really awesome... but it's having a long ramp up > time for many good reasons. In general, for someone seeking support, ease of > use and is a "beginner" - I recommend D5 at this moment in time. Sounds like > you may be pretty far in and it isn't worth starting over. > Three or four weeks ago I would have agreed with this. However, having spent some quality time recently with Views2, CCK, Date, Calendar, and OG, I'd say that the time of D6 has arrived. These modules have been working incredibly well in the testing we have been doing. Views2 is phenomenal -- it was pretty amazing in the D5 version, but the D6 version is an amazing leap forward -- and, IMO, easier for a newcomer to use, especially with the Advanced Help module installed. My .02 Cheers, Bill > Shai > > On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: > > >> Shai, >> >> Many thanks both for your help and your kindness. >> >> Since you urge me not to knock my head against the wall too long, >> here's a problem I have probably spent 10 hours on and not produced a >> reasonable solution to--just a hacked work-around. >> >> I want my students to be able to develop individual blogs. I have >> developed (via Views in Drupal 6.3) a page that lists all Member >> Blogs. I have added a blog_name field to the Profiles page, and >> obviously I would like that name to be linked to the individual blog. >> The blog's default url is (of course) blogs/$uid. I have constructed >> a blog_url field in Profile so I can pull it along with the blog_name >> in Views. >> >> But that makes for an ugly page display: My_Blog http:// etc. >> >> What I would like, of course is to use the $account_blog_url variable >> in an a href statement so the url address is invisible to the user, >> but I don't know how to get Views or Profiles to produce such a link. >> >> Any ideas? >> >> Thanks again, >> >> Steve >> >> >> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: >> >> >>> Steve, >>> >>> Do NOT feel stupid. We've all been there and continue to be there in >>> many ways. >>> >>> It's way more efficient in use of the world's resources (which >>> includes your brain power) for you to ask and get quick help -- it >>> took me three minutes to write that email, than for you to bang your >>> head, potentially for hours. People have helped me so many times and >>> I'm sure you will help others -- or already have. No knowledge in >>> Drupal is "comprehensive" -- you don't have to be a "ninja" or >>> anything special to answer a question that you know the answer to. >>> >>> Regarding your situation. Congratulations on figuring it out. >>> >>> Indeed, no need to use the Drupal l() function. >>> >>> Regarding the href-- there are different opinions on this, and >>> sometimes it depends on whether you have a multi-site or not. But my >>> strong preference for any single installation site is for all href's >>> to pages inside the site to be "root relative." All references >>> should start with a forward slash after the first quotes. In this >>> case I would no need to provide any specific page path since it is >>> the default home page. Here is how I would do the href: >>> >>> <a href="/"> >>> >>> best, >>> >>> Shai >>> >>> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From shai at content2zero.com Mon Jul 21 16:46:48 2008 From: shai at content2zero.com (Shai Gluskin) Date: Mon, 21 Jul 2008 12:46:48 -0400 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <9f68efb70807210941j300b475evc6f62fa8e8a423ed@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> <9f68efb70807210941j300b475evc6f62fa8e8a423ed@mail.gmail.com> Message-ID: <9f68efb70807210946g21a3dd6dh32573ae28a92e07a@mail.gmail.com> I like Bill's approach. If you haven't wrapped your brain around Views arguments... here is a great page in the drupal manuel to help: http://drupal.org/node/54455 This also serves as an example for my point about D6 -- that manual page is for D5 and Views 1. I'm not familiar with the new Views. Arguments are certainly there, and hopefully they are easier to use. The basic idea of arguments is the same. But there isn't a new drupal manual page (yet) for instructions in using arguments for Views 2. good luck, Shai On Mon, Jul 21, 2008 at 12:41 PM, Shai Gluskin <shai at content2zero.com> wrote: > Steve, one more thing... > > To be clear, the blogger module doesn't replace the blog module, it > provides some extra functionality for it. > > Shai > > > On Mon, Jul 21, 2008 at 12:40 PM, Shai Gluskin <shai at content2zero.com> > wrote: > >> Hi Steve, >> >> Looks like this module does what you want: >> >> http://drupal.org/project/blogger >> >> However, it is for D5. Check the issue queue and see what the time line >> for D6 is. >> >> There might be a solution using views. You shouldn't need profile module >> at all for this, if I understand your needs. A custom snippet might do the >> trick if the blogger module isn't going to be ready soon for D6. In general, >> I think your approach you are taking is more complicated than it needs to >> be. >> >> As an aside... Drupal 6 is really awesome... but it's having a long ramp >> up time for many good reasons. In general, for someone seeking support, ease >> of use and is a "beginner" - I recommend D5 at this moment in time. Sounds >> like you may be pretty far in and it isn't worth starting over. >> >> Shai >> >> >> On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: >> >>> Shai, >>> >>> Many thanks both for your help and your kindness. >>> >>> Since you urge me not to knock my head against the wall too long, >>> here's a problem I have probably spent 10 hours on and not produced a >>> reasonable solution to--just a hacked work-around. >>> >>> I want my students to be able to develop individual blogs. I have >>> developed (via Views in Drupal 6.3) a page that lists all Member >>> Blogs. I have added a blog_name field to the Profiles page, and >>> obviously I would like that name to be linked to the individual blog. >>> The blog's default url is (of course) blogs/$uid. I have constructed >>> a blog_url field in Profile so I can pull it along with the blog_name >>> in Views. >>> >>> But that makes for an ugly page display: My_Blog http:// etc. >>> >>> What I would like, of course is to use the $account_blog_url variable >>> in an a href statement so the url address is invisible to the user, >>> but I don't know how to get Views or Profiles to produce such a link. >>> >>> Any ideas? >>> >>> Thanks again, >>> >>> Steve >>> >>> >>> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: >>> >>> > Steve, >>> > >>> > Do NOT feel stupid. We've all been there and continue to be there in >>> > many ways. >>> > >>> > It's way more efficient in use of the world's resources (which >>> > includes your brain power) for you to ask and get quick help -- it >>> > took me three minutes to write that email, than for you to bang your >>> > head, potentially for hours. People have helped me so many times and >>> > I'm sure you will help others -- or already have. No knowledge in >>> > Drupal is "comprehensive" -- you don't have to be a "ninja" or >>> > anything special to answer a question that you know the answer to. >>> > >>> > Regarding your situation. Congratulations on figuring it out. >>> > >>> > Indeed, no need to use the Drupal l() function. >>> > >>> > Regarding the href-- there are different opinions on this, and >>> > sometimes it depends on whether you have a multi-site or not. But my >>> > strong preference for any single installation site is for all href's >>> > to pages inside the site to be "root relative." All references >>> > should start with a forward slash after the first quotes. In this >>> > case I would no need to provide any specific page path since it is >>> > the default home page. Here is how I would do the href: >>> > >>> > <a href="/"> >>> > >>> > best, >>> > >>> > Shai >>> > >>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/531d902f/attachment-0001.htm From victorkane at gmail.com Mon Jul 21 16:48:05 2008 From: victorkane at gmail.com (Victor Kane) Date: Mon, 21 Jul 2008 13:48:05 -0300 Subject: [support] OT -- was: Re: Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <4884BD1B.7090809@funnymonkey.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> <4884BD1B.7090809@funnymonkey.com> Message-ID: <ff176450807210948l5625e2c8q74e7eaff7e9d9085@mail.gmail.com> Hi Bill, That sure sounds like good news! I am sort of embarked in the same thing... Did you test upgrading Views 1 views to Views 2? Victor On Mon, Jul 21, 2008 at 1:45 PM, Bill Fitzgerald <bill at funnymonkey.com> wrote: > Shai Gluskin wrote: > > <snip good stuff> > > As an aside... Drupal 6 is really awesome... but it's having a long ramp > up > > time for many good reasons. In general, for someone seeking support, ease > of > > use and is a "beginner" - I recommend D5 at this moment in time. Sounds > like > > you may be pretty far in and it isn't worth starting over. > > > Three or four weeks ago I would have agreed with this. However, having > spent some quality time recently with Views2, CCK, Date, Calendar, and > OG, I'd say that the time of D6 has arrived. These modules have been > working incredibly well in the testing we have been doing. > > Views2 is phenomenal -- it was pretty amazing in the D5 version, but the > D6 version is an amazing leap forward -- and, IMO, easier for a newcomer > to use, especially with the Advanced Help module installed. > > My .02 > > Cheers, > > Bill > > Shai > > > > On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: > > > > > >> Shai, > >> > >> Many thanks both for your help and your kindness. > >> > >> Since you urge me not to knock my head against the wall too long, > >> here's a problem I have probably spent 10 hours on and not produced a > >> reasonable solution to--just a hacked work-around. > >> > >> I want my students to be able to develop individual blogs. I have > >> developed (via Views in Drupal 6.3) a page that lists all Member > >> Blogs. I have added a blog_name field to the Profiles page, and > >> obviously I would like that name to be linked to the individual blog. > >> The blog's default url is (of course) blogs/$uid. I have constructed > >> a blog_url field in Profile so I can pull it along with the blog_name > >> in Views. > >> > >> But that makes for an ugly page display: My_Blog http:// etc. > >> > >> What I would like, of course is to use the $account_blog_url variable > >> in an a href statement so the url address is invisible to the user, > >> but I don't know how to get Views or Profiles to produce such a link. > >> > >> Any ideas? > >> > >> Thanks again, > >> > >> Steve > >> > >> > >> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: > >> > >> > >>> Steve, > >>> > >>> Do NOT feel stupid. We've all been there and continue to be there in > >>> many ways. > >>> > >>> It's way more efficient in use of the world's resources (which > >>> includes your brain power) for you to ask and get quick help -- it > >>> took me three minutes to write that email, than for you to bang your > >>> head, potentially for hours. People have helped me so many times and > >>> I'm sure you will help others -- or already have. No knowledge in > >>> Drupal is "comprehensive" -- you don't have to be a "ninja" or > >>> anything special to answer a question that you know the answer to. > >>> > >>> Regarding your situation. Congratulations on figuring it out. > >>> > >>> Indeed, no need to use the Drupal l() function. > >>> > >>> Regarding the href-- there are different opinions on this, and > >>> sometimes it depends on whether you have a multi-site or not. But my > >>> strong preference for any single installation site is for all href's > >>> to pages inside the site to be "root relative." All references > >>> should start with a forward slash after the first quotes. In this > >>> case I would no need to provide any specific page path since it is > >>> the default home page. Here is how I would do the href: > >>> > >>> <a href="/"> > >>> > >>> best, > >>> > >>> Shai > >>> > >>> > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > >> > >> > > > > > > > -- > > Bill Fitzgerald > http://funnymonkey.com > FunnyMonkey -- Tools for Teachers > ph. 503 897 7160 > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/1edb9452/attachment.htm From fredthejonester at gmail.com Mon Jul 21 16:55:59 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 21 Jul 2008 18:55:59 +0200 Subject: [support] Drupal 5 works with FF not IE In-Reply-To: <48848AC2.9040208@dowsoftware.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> Message-ID: <177c0a10807210955r13b25065la824b72a989e05dd@mail.gmail.com> > Didn't know they had IE7 for Linux. Thanks for checking. Sure: http://www.tatanka.com.br/ies4linux/page/Beta > Now that I'm a little more awake, I should've mentioned that getting to the > login page is no problem for FF or IE. The problem is that after entering a > valid userid and password, IE gets the Access Denied message. Beyond my expertise at this point... Fred From bill at funnymonkey.com Mon Jul 21 17:07:53 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Mon, 21 Jul 2008 10:07:53 -0700 Subject: [support] New title: Upgrading CCK and Views, Was: Re: OT -- was: Re: Well In-Reply-To: <ff176450807210948l5625e2c8q74e7eaff7e9d9085@mail.gmail.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> <4884BD1B.7090809@funnymonkey.com> <ff176450807210948l5625e2c8q74e7eaff7e9d9085@mail.gmail.com> Message-ID: <4884C269.2040408@funnymonkey.com> Hello, Victor, I have not tested the upgrade path, in large part because for our use cases upgrading from D5 to D6 will involve upgrading cck node types, and fields -- and the actual views are predicated on those fields -- so without the fields upgrading cleanly, the views upgrade is a less pressing concern. I suspect that when we start upgrading from D5 to D6, we'll use update.php for CCK, but not for views, as I'd rather rebuild the views cleanly in D6. Will it take longer? Maybe, but it'll also run more smoothly, and we'll have the peace of mind of knowing that the views are clean. I'd love to hear from anyone who has embarked on the scripted upgrade from D5 to D6. Cheers, Bill Victor Kane wrote: > Hi Bill, > > That sure sounds like good news! I am sort of embarked in the same thing... > > Did you test upgrading Views 1 views to Views 2? > > Victor > > On Mon, Jul 21, 2008 at 1:45 PM, Bill Fitzgerald <bill at funnymonkey.com> > wrote: > > >> Shai Gluskin wrote: >> >>> <snip good stuff> >>> As an aside... Drupal 6 is really awesome... but it's having a long ramp >>> >> up >> >>> time for many good reasons. In general, for someone seeking support, ease >>> >> of >> >>> use and is a "beginner" - I recommend D5 at this moment in time. Sounds >>> >> like >> >>> you may be pretty far in and it isn't worth starting over. >>> >>> >> Three or four weeks ago I would have agreed with this. However, having >> spent some quality time recently with Views2, CCK, Date, Calendar, and >> OG, I'd say that the time of D6 has arrived. These modules have been >> working incredibly well in the testing we have been doing. >> >> Views2 is phenomenal -- it was pretty amazing in the D5 version, but the >> D6 version is an amazing leap forward -- and, IMO, easier for a newcomer >> to use, especially with the Advanced Help module installed. >> >> My .02 >> >> Cheers, >> >> Bill >> >>> Shai >>> >>> On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: >>> >>> >>> >>>> Shai, >>>> >>>> Many thanks both for your help and your kindness. >>>> >>>> Since you urge me not to knock my head against the wall too long, >>>> here's a problem I have probably spent 10 hours on and not produced a >>>> reasonable solution to--just a hacked work-around. >>>> >>>> I want my students to be able to develop individual blogs. I have >>>> developed (via Views in Drupal 6.3) a page that lists all Member >>>> Blogs. I have added a blog_name field to the Profiles page, and >>>> obviously I would like that name to be linked to the individual blog. >>>> The blog's default url is (of course) blogs/$uid. I have constructed >>>> a blog_url field in Profile so I can pull it along with the blog_name >>>> in Views. >>>> >>>> But that makes for an ugly page display: My_Blog http:// etc. >>>> >>>> What I would like, of course is to use the $account_blog_url variable >>>> in an a href statement so the url address is invisible to the user, >>>> but I don't know how to get Views or Profiles to produce such a link. >>>> >>>> Any ideas? >>>> >>>> Thanks again, >>>> >>>> Steve >>>> >>>> >>>> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: >>>> >>>> >>>> >>>>> Steve, >>>>> >>>>> Do NOT feel stupid. We've all been there and continue to be there in >>>>> many ways. >>>>> >>>>> It's way more efficient in use of the world's resources (which >>>>> includes your brain power) for you to ask and get quick help -- it >>>>> took me three minutes to write that email, than for you to bang your >>>>> head, potentially for hours. People have helped me so many times and >>>>> I'm sure you will help others -- or already have. No knowledge in >>>>> Drupal is "comprehensive" -- you don't have to be a "ninja" or >>>>> anything special to answer a question that you know the answer to. >>>>> >>>>> Regarding your situation. Congratulations on figuring it out. >>>>> >>>>> Indeed, no need to use the Drupal l() function. >>>>> >>>>> Regarding the href-- there are different opinions on this, and >>>>> sometimes it depends on whether you have a multi-site or not. But my >>>>> strong preference for any single installation site is for all href's >>>>> to pages inside the site to be "root relative." All references >>>>> should start with a forward slash after the first quotes. In this >>>>> case I would no need to provide any specific page path since it is >>>>> the default home page. Here is how I would do the href: >>>>> >>>>> <a href="/"> >>>>> >>>>> best, >>>>> >>>>> Shai >>>>> >>>>> >>>>> >>>> -- >>>> [ Drupal support list | http://lists.drupal.org/ ] >>>> >>>> >>>> >>> >> -- >> >> Bill Fitzgerald >> http://funnymonkey.com >> FunnyMonkey -- Tools for Teachers >> ph. 503 897 7160 >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From victorkane at gmail.com Mon Jul 21 17:11:04 2008 From: victorkane at gmail.com (Victor Kane) Date: Mon, 21 Jul 2008 14:11:04 -0300 Subject: [support] New title: Upgrading CCK and Views, Was: Re: OT -- was: Re: Well In-Reply-To: <4884C269.2040408@funnymonkey.com> References: <48841B5A.5070803@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <9f68efb70807210940r7d421141m265acbbeb91e9191@mail.gmail.com> <4884BD1B.7090809@funnymonkey.com> <ff176450807210948l5625e2c8q74e7eaff7e9d9085@mail.gmail.com> <4884C269.2040408@funnymonkey.com> Message-ID: <ff176450807211011oeb9e53di9cf30af94b59a650@mail.gmail.com> I'm gonna be checking that out then over the next few days, if anyone else has info, will be interesting... Victor On Mon, Jul 21, 2008 at 2:07 PM, Bill Fitzgerald <bill at funnymonkey.com> wrote: > Hello, Victor, > > I have not tested the upgrade path, in large part because for our use > cases upgrading from D5 to D6 will involve upgrading cck node types, and > fields -- and the actual views are predicated on those fields -- so > without the fields upgrading cleanly, the views upgrade is a less > pressing concern. > > I suspect that when we start upgrading from D5 to D6, we'll use > update.php for CCK, but not for views, as I'd rather rebuild the views > cleanly in D6. Will it take longer? Maybe, but it'll also run more > smoothly, and we'll have the peace of mind of knowing that the views are > clean. > > I'd love to hear from anyone who has embarked on the scripted upgrade > from D5 to D6. > > Cheers, > > Bill > > Victor Kane wrote: > > Hi Bill, > > > > That sure sounds like good news! I am sort of embarked in the same > thing... > > > > Did you test upgrading Views 1 views to Views 2? > > > > Victor > > > > On Mon, Jul 21, 2008 at 1:45 PM, Bill Fitzgerald <bill at funnymonkey.com> > > wrote: > > > > > >> Shai Gluskin wrote: > >> > >>> <snip good stuff> > >>> As an aside... Drupal 6 is really awesome... but it's having a long > ramp > >>> > >> up > >> > >>> time for many good reasons. In general, for someone seeking support, > ease > >>> > >> of > >> > >>> use and is a "beginner" - I recommend D5 at this moment in time. Sounds > >>> > >> like > >> > >>> you may be pretty far in and it isn't worth starting over. > >>> > >>> > >> Three or four weeks ago I would have agreed with this. However, having > >> spent some quality time recently with Views2, CCK, Date, Calendar, and > >> OG, I'd say that the time of D6 has arrived. These modules have been > >> working incredibly well in the testing we have been doing. > >> > >> Views2 is phenomenal -- it was pretty amazing in the D5 version, but the > >> D6 version is an amazing leap forward -- and, IMO, easier for a newcomer > >> to use, especially with the Advanced Help module installed. > >> > >> My .02 > >> > >> Cheers, > >> > >> Bill > >> > >>> Shai > >>> > >>> On Mon, Jul 21, 2008 at 12:03 PM, Steve Hays <hays at ohio.edu> wrote: > >>> > >>> > >>> > >>>> Shai, > >>>> > >>>> Many thanks both for your help and your kindness. > >>>> > >>>> Since you urge me not to knock my head against the wall too long, > >>>> here's a problem I have probably spent 10 hours on and not produced a > >>>> reasonable solution to--just a hacked work-around. > >>>> > >>>> I want my students to be able to develop individual blogs. I have > >>>> developed (via Views in Drupal 6.3) a page that lists all Member > >>>> Blogs. I have added a blog_name field to the Profiles page, and > >>>> obviously I would like that name to be linked to the individual blog. > >>>> The blog's default url is (of course) blogs/$uid. I have constructed > >>>> a blog_url field in Profile so I can pull it along with the blog_name > >>>> in Views. > >>>> > >>>> But that makes for an ugly page display: My_Blog http:// etc. > >>>> > >>>> What I would like, of course is to use the $account_blog_url variable > >>>> in an a href statement so the url address is invisible to the user, > >>>> but I don't know how to get Views or Profiles to produce such a link. > >>>> > >>>> Any ideas? > >>>> > >>>> Thanks again, > >>>> > >>>> Steve > >>>> > >>>> > >>>> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: > >>>> > >>>> > >>>> > >>>>> Steve, > >>>>> > >>>>> Do NOT feel stupid. We've all been there and continue to be there in > >>>>> many ways. > >>>>> > >>>>> It's way more efficient in use of the world's resources (which > >>>>> includes your brain power) for you to ask and get quick help -- it > >>>>> took me three minutes to write that email, than for you to bang your > >>>>> head, potentially for hours. People have helped me so many times and > >>>>> I'm sure you will help others -- or already have. No knowledge in > >>>>> Drupal is "comprehensive" -- you don't have to be a "ninja" or > >>>>> anything special to answer a question that you know the answer to. > >>>>> > >>>>> Regarding your situation. Congratulations on figuring it out. > >>>>> > >>>>> Indeed, no need to use the Drupal l() function. > >>>>> > >>>>> Regarding the href-- there are different opinions on this, and > >>>>> sometimes it depends on whether you have a multi-site or not. But my > >>>>> strong preference for any single installation site is for all href's > >>>>> to pages inside the site to be "root relative." All references > >>>>> should start with a forward slash after the first quotes. In this > >>>>> case I would no need to provide any specific page path since it is > >>>>> the default home page. Here is how I would do the href: > >>>>> > >>>>> <a href="/"> > >>>>> > >>>>> best, > >>>>> > >>>>> Shai > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> [ Drupal support list | http://lists.drupal.org/ ] > >>>> > >>>> > >>>> > >>> > >> -- > >> > >> Bill Fitzgerald > >> http://funnymonkey.com > >> FunnyMonkey -- Tools for Teachers > >> ph. 503 897 7160 > >> > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > >> > >> > > > > > > > -- > > Bill Fitzgerald > http://funnymonkey.com > FunnyMonkey -- Tools for Teachers > ph. 503 897 7160 > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/c0b1732d/attachment-0001.htm From hays at ohio.edu Mon Jul 21 18:27:19 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 14:27:19 -0400 Subject: [support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames In-Reply-To: <4884BBFA.5000108@funnymonkey.com> References: <48841B5A.5070803@dowsoftware.com> <177c0a10807210024g388a2d26j27b6347e23a83232@mail.gmail.com> <48848AC2.9040208@dowsoftware.com> <755A6755-53EF-4E0C-97AC-BEDDBD4DEB23@ohio.edu> <9f68efb70807210716k4665462ah137e635c5b6f99a@mail.gmail.com> <BB5AE40E-E564-4B80-9708-8FF087412F8F@ohio.edu> <9f68efb70807210801n20c1355alcb159c3e60b7679f@mail.gmail.com> <9F68C181-4899-44A0-8B39-0DBF2D242368@ohio.edu> <4884BBFA.5000108@funnymonkey.com> Message-ID: <5C74E982-ED4B-4AAF-96E8-AB15019F8AF4@ohio.edu> Bill, I've installed Advanced Help, studied the documentation for Arg in Views, and experimented with both Arg and Attachment. I still haven't been able to make any progress. I think that what you suggest may misconceive what I'm trying to do. It looks like your procedure would produce a list of entries in "Joe's Blog" and another page listing the entries in "Sue's Blog." What I want is one page that lists all blogs on the site: Joe's Blog Sue's Blog, etc. I have produced that in Views. What I can't seem to manage is a way to include links to those titles that would take me to the top level of each--the equivalent of <a href = "/blog/joe">Joe's blog</a> <a href = "/blog/sue">Sue's blog</a> I have available the variable $account_blog_url (from Profile) to supply the url, and as a workaround I have managed to replace the normal Drupal link from user-picture to "user/$uid" with a link to "blog/$uid" in template_preprocess_user_picture. That is a clunky sort of workaround, though--requiring that I instruct the user, "Click on the picture to go to the blog." There is no template_preprocess_user_blogname, which is a customized field I introduced into the Profile. If there were, a simple Drupal linking at the preprocess level would seem to be the thing to do. A programmer would probably know how to do such a thing, but I don't. And I simply can't conceive of how to do it in Views. So, I guess I need more guidance if you have time and energy to provide it. Thanks in advance, Steve On Jul 21, 2008, at 12:40 PM, Bill Fitzgerald wrote: > Hello, Steve, > > First, I'd like to echo what Shai said -- ask away, as we have all > been > there. > > Second, re your specific situation, would it work to filter your blog > based on username? > > If so, create a Views argument that filters based on username -- and, > you can specify the title of the page with the argument setting -- > and, > you could set a header for the entire view. > > Ping back if this is insufficient detail -- > > Cheers, > > Bill > > Steve Hays wrote: >> Shai, >> >> Many thanks both for your help and your kindness. >> >> Since you urge me not to knock my head against the wall too long, >> here's a problem I have probably spent 10 hours on and not produced a >> reasonable solution to--just a hacked work-around. >> >> I want my students to be able to develop individual blogs. I have >> developed (via Views in Drupal 6.3) a page that lists all Member >> Blogs. I have added a blog_name field to the Profiles page, and >> obviously I would like that name to be linked to the individual blog. >> The blog's default url is (of course) blogs/$uid. I have constructed >> a blog_url field in Profile so I can pull it along with the blog_name >> in Views. >> >> But that makes for an ugly page display: My_Blog http:// etc. >> >> What I would like, of course is to use the $account_blog_url variable >> in an a href statement so the url address is invisible to the user, >> but I don't know how to get Views or Profiles to produce such a link. >> >> Any ideas? >> >> Thanks again, >> >> Steve >> >> >> On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote: >> >> >>> Steve, >>> >>> Do NOT feel stupid. We've all been there and continue to be there in >>> many ways. >>> >>> It's way more efficient in use of the world's resources (which >>> includes your brain power) for you to ask and get quick help -- it >>> took me three minutes to write that email, than for you to bang your >>> head, potentially for hours. People have helped me so many times and >>> I'm sure you will help others -- or already have. No knowledge in >>> Drupal is "comprehensive" -- you don't have to be a "ninja" or >>> anything special to answer a question that you know the answer to. >>> >>> Regarding your situation. Congratulations on figuring it out. >>> >>> Indeed, no need to use the Drupal l() function. >>> >>> Regarding the href-- there are different opinions on this, and >>> sometimes it depends on whether you have a multi-site or not. But my >>> strong preference for any single installation site is for all href's >>> to pages inside the site to be "root relative." All references >>> should start with a forward slash after the first quotes. In this >>> case I would no need to provide any specific page path since it is >>> the default home page. Here is how I would do the href: >>> >>> <a href="/"> >>> >>> best, >>> >>> Shai >>> >>> >> >> > > > -- > > Bill Fitzgerald > http://funnymonkey.com > FunnyMonkey -- Tools for Teachers > ph. 503 897 7160 > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/f571d209/attachment.htm From geniekids at gmail.com Mon Jul 21 19:35:45 2008 From: geniekids at gmail.com (geniekids) Date: Mon, 21 Jul 2008 12:35:45 -0700 (PDT) Subject: [support] blogger's list by role Message-ID: <18575810.post@talk.nabble.com> What i want is a block which contains a list of links to user blogs of a certain kind (role) Since we are an educational institute, i want a list of links (block) which point to blogs of different faculty ~ this list should not have links to blogs of students ~ the links should points to all blogs of a particular faculty I tried blogger module but it does not limit by user role. can views help me do this - if yes, how? Or any other module? -- View this message in context: http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18575810.html Sent from the Drupal - Support mailing list archive at Nabble.com. From bill at funnymonkey.com Mon Jul 21 19:40:49 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Mon, 21 Jul 2008 12:40:49 -0700 Subject: [support] blogger's list by role In-Reply-To: <18575810.post@talk.nabble.com> References: <18575810.post@talk.nabble.com> Message-ID: <4884E641.2040001@funnymonkey.com> The views module allows you to filter on the role of the author. You can also restrict visibility of the view based on user role. See http://drupal.org/project/views Cheers, Bill geniekids wrote: > What i want is a block which contains a list of links to user blogs of a > certain kind (role) > > Since we are an educational institute, i want a list of links (block) which > point to blogs of different faculty > ~ this list should not have links to blogs of students > ~ the links should points to all blogs of a particular faculty > > I tried blogger module but it does not limit by user role. > can views help me do this - if yes, how? > Or any other module? > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From hays at ohio.edu Mon Jul 21 19:46:39 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 15:46:39 -0400 Subject: [support] blogger's list by role In-Reply-To: <18575810.post@talk.nabble.com> References: <18575810.post@talk.nabble.com> Message-ID: <BC433621-A688-41E5-9BF9-45328C3E6FD9@ohio.edu> If I understand your goal, Views will do it. I am using Views 2 under Drupal 6.3, and I can't speak to earlier versions. I am attaching a .pdf of the Views page for my blog list--with the User Type filter open. As you can see, you can select multiple roles and exclude roles in the filtering process. The trick will still be to produce a visually pleasant link to each blog. Steve Hays Ohio University -------------- next part -------------- A non-text attachment was scrubbed... Name: Edit view "blog_list" | Difficult Dialogues.pdf Type: application/pdf Size: 110346 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080721/322e4fe3/attachment-0001.pdf -------------- next part -------------- On Jul 21, 2008, at 3:35 PM, geniekids wrote: > > What i want is a block which contains a list of links to user blogs > of a > certain kind (role) > > Since we are an educational institute, i want a list of links > (block) which > point to blogs of different faculty > ~ this list should not have links to blogs of students > ~ the links should points to all blogs of a particular faculty > > I tried blogger module but it does not limit by user role. > can views help me do this - if yes, how? > Or any other module? > > -- > View this message in context: http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18575810.html > Sent from the Drupal - Support mailing list archive at Nabble.com. > > -- > [ Drupal support list | http://lists.drupal.org/ ] From earnie at users.sourceforge.net Mon Jul 21 19:49:20 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 21 Jul 2008 15:49:20 -0400 Subject: [support] [Fwd: Re: [Fwd: Re: Disappearing .htaccess File]] In-Reply-To: <4884B5D2.5010804@comcast.net> References: <4884B5D2.5010804@comcast.net> Message-ID: <20080721154920.fz8vs0o1nhssgcww@mail.progw.org> Quoting Steve Edwards <killshot91 at comcast.net>: > > and here's how I modified it: > After changing the httpd.conf file you must restart Apache for the changes to take effect. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From geniekids at gmail.com Mon Jul 21 20:02:20 2008 From: geniekids at gmail.com (geniekids) Date: Mon, 21 Jul 2008 13:02:20 -0700 (PDT) Subject: [support] blogger's list by role In-Reply-To: <4884E641.2040001@funnymonkey.com> References: <18575810.post@talk.nabble.com> <4884E641.2040001@funnymonkey.com> Message-ID: <18576418.post@talk.nabble.com> Thnaks steve & Bill for the quick response In Drupal 5x how do i get the views to show as a field the following Profile: Blog url (I can see his as one field in the drupal6x screen shot that you have attached) but unfortunately i need it in 5x - i can;t seem to find the field blog url of a profile / user pl help Bill Fitzgerald wrote: > > The views module allows you to filter on the role of the author. > > You can also restrict visibility of the view based on user role. > > See http://drupal.org/project/views > > Cheers, > > Bill > > geniekids wrote: >> What i want is a block which contains a list of links to user blogs of a >> certain kind (role) >> >> Since we are an educational institute, i want a list of links (block) >> which >> point to blogs of different faculty >> ~ this list should not have links to blogs of students >> ~ the links should points to all blogs of a particular faculty >> >> I tried blogger module but it does not limit by user role. >> can views help me do this - if yes, how? >> Or any other module? >> >> > > > -- > > Bill Fitzgerald > http://funnymonkey.com > FunnyMonkey -- Tools for Teachers > ph. 503 897 7160 > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- View this message in context: http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18576418.html Sent from the Drupal - Support mailing list archive at Nabble.com. From hays at ohio.edu Mon Jul 21 20:13:22 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 16:13:22 -0400 Subject: [support] blogger's list by role In-Reply-To: <18576418.post@talk.nabble.com> References: <18575810.post@talk.nabble.com> <4884E641.2040001@funnymonkey.com> <18576418.post@talk.nabble.com> Message-ID: <D558FB83-C4C2-49E0-96C3-51165CE77489@ohio.edu> I added that field as a custom (url) field in Profiles. I made it "hidden" so the user couldn't change it. I simply typed in the url via the Users list. Steve On Jul 21, 2008, at 4:02 PM, geniekids wrote: > > Thnaks steve & Bill for the quick response > In Drupal 5x how do i get the views to show as a field the following > Profile: Blog url > > (I can see his as one field in the drupal6x screen shot that you have > attached) > but unfortunately i need it in 5x - i can;t seem to find the field > blog url > of a profile / user > pl help > > > Bill Fitzgerald wrote: >> >> The views module allows you to filter on the role of the author. >> >> You can also restrict visibility of the view based on user role. >> >> See http://drupal.org/project/views >> >> Cheers, >> >> Bill >> >> geniekids wrote: >>> What i want is a block which contains a list of links to user >>> blogs of a >>> certain kind (role) >>> >>> Since we are an educational institute, i want a list of links >>> (block) >>> which >>> point to blogs of different faculty >>> ~ this list should not have links to blogs of students >>> ~ the links should points to all blogs of a particular faculty >>> >>> I tried blogger module but it does not limit by user role. >>> can views help me do this - if yes, how? >>> Or any other module? >>> >>> >> >> >> -- >> >> Bill Fitzgerald >> http://funnymonkey.com >> FunnyMonkey -- Tools for Teachers >> ph. 503 897 7160 >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> > > -- > View this message in context: http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18576418.html > Sent from the Drupal - Support mailing list archive at Nabble.com. > > -- > [ Drupal support list | http://lists.drupal.org/ ] From john at rivul.com Mon Jul 21 20:21:12 2008 From: john at rivul.com (John Horning) Date: Mon, 21 Jul 2008 16:21:12 -0400 Subject: [support] wrong node data Message-ID: <4884EFB8.6030400@rivul.com> An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/dec0fe07/attachment.htm From hays at ohio.edu Mon Jul 21 20:45:54 2008 From: hays at ohio.edu (Steve Hays) Date: Mon, 21 Jul 2008 16:45:54 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges Message-ID: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> Guys, This sounds really dumb, but I can't find an answer anywhere. Read privileges for all content types EXCEPT for the forum module seem to be controlled by Permissions >> node module >> access content. I have checked that to allow access privileges to anonymous users. But if I try to access the "drupal/forums" page--the list of all containers and forums automatically generated by the Forums module, I cannot access it unless I am logged in. The FAQ module may have encountered a similar problem because their section in the Permissions page includes a checkbox for "view faq." There is no such item under the forums module. Strangely, only the "drupal/forums" page seems to be non-performing in this fashion. If I type in the url of a specific forum, I can read it as anonymous, but (of course) no one can get to the specific forums without the index page. Am I the only one with this problem? (I'm in 6.3) A related gripe: The "containers" on the forum-list page are hot links, but produce no results. It would be nice to remove the links since they're non-functional. Steve Hays Classics Ohio University From earnie at users.sourceforge.net Mon Jul 21 21:44:57 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 21 Jul 2008 17:44:57 -0400 Subject: [support] wrong node data In-Reply-To: <4884EFB8.6030400@rivul.com> References: <4884EFB8.6030400@rivul.com> Message-ID: <20080721174457.cicuzc0pmxassowg@mail.progw.org> Quoting John Horning <john at rivul.com>: > I am seeing the wrong node data on some pages. For example, if I > go to node/152, the page is correct, but if I go to node/142, I am > still seeing node 152 data but with a different title. This is > happening with a content type I created called Company Profile and > data was uploaded via a custom script so no doubt I made an error > somewhere, but I've looked at my tables for duplicate records or > nid's that don't match and everything looks good. I've checked node, > node_revisions, and the table created for this content type. > > This is for Drupal 5.8. > > Any help would be appreciated. > > Did your custom script call node_save after creating a valid node object? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From john at rivul.com Mon Jul 21 22:38:40 2008 From: john at rivul.com (John Horning) Date: Mon, 21 Jul 2008 18:38:40 -0400 Subject: [support] wrong node data In-Reply-To: <20080721174457.cicuzc0pmxassowg@mail.progw.org> References: <4884EFB8.6030400@rivul.com> <20080721174457.cicuzc0pmxassowg@mail.progw.org> Message-ID: <48850FF0.4040800@rivul.com> An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/ba8057cd/attachment.htm From john at rivul.com Mon Jul 21 22:53:08 2008 From: john at rivul.com (John Horning) Date: Mon, 21 Jul 2008 18:53:08 -0400 Subject: [support] wrong node data In-Reply-To: <20080721174457.cicuzc0pmxassowg@mail.progw.org> References: <4884EFB8.6030400@rivul.com> <20080721174457.cicuzc0pmxassowg@mail.progw.org> Message-ID: <48851354.5010704@rivul.com> An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080721/099b0424/attachment-0001.htm From geniekids at gmail.com Tue Jul 22 04:13:39 2008 From: geniekids at gmail.com (geniekids) Date: Mon, 21 Jul 2008 21:13:39 -0700 (PDT) Subject: [support] blogger's list by role In-Reply-To: <D558FB83-C4C2-49E0-96C3-51165CE77489@ohio.edu> References: <18575810.post@talk.nabble.com> <4884E641.2040001@funnymonkey.com> <18576418.post@talk.nabble.com> <D558FB83-C4C2-49E0-96C3-51165CE77489@ohio.edu> Message-ID: <18582033.post@talk.nabble.com> I tried that the prob now is that when i access this URL profile field from views - it shows up like a full url (kind of blog/23 etc) rather than faculty's name with hyperlink how do i get that? for in the block i want a list (of names) with hyperlinks pointing to the user blogs Steve Hays wrote: > > I added that field as a custom (url) field in Profiles. I made it > "hidden" so the user couldn't change it. I simply typed in the url > via the Users list. > > Steve > > > On Jul 21, 2008, at 4:02 PM, geniekids wrote: > >> >> Thnaks steve & Bill for the quick response >> In Drupal 5x how do i get the views to show as a field the following >> Profile: Blog url >> >> (I can see his as one field in the drupal6x screen shot that you have >> attached) >> but unfortunately i need it in 5x - i can;t seem to find the field >> blog url >> of a profile / user >> pl help >> >> >> Bill Fitzgerald wrote: >>> >>> The views module allows you to filter on the role of the author. >>> >>> You can also restrict visibility of the view based on user role. >>> >>> See http://drupal.org/project/views >>> >>> Cheers, >>> >>> Bill >>> >>> geniekids wrote: >>>> What i want is a block which contains a list of links to user >>>> blogs of a >>>> certain kind (role) >>>> >>>> Since we are an educational institute, i want a list of links >>>> (block) >>>> which >>>> point to blogs of different faculty >>>> ~ this list should not have links to blogs of students >>>> ~ the links should points to all blogs of a particular faculty >>>> >>>> I tried blogger module but it does not limit by user role. >>>> can views help me do this - if yes, how? >>>> Or any other module? >>>> >>>> >>> >>> >>> -- >>> >>> Bill Fitzgerald >>> http://funnymonkey.com >>> FunnyMonkey -- Tools for Teachers >>> ph. 503 897 7160 >>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18576418.html >> Sent from the Drupal - Support mailing list archive at Nabble.com. >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- View this message in context: http://www.nabble.com/blogger%27s-list-by-role-tp18575810p18582033.html Sent from the Drupal - Support mailing list archive at Nabble.com. From bharanikumariyerphp at gmail.com Tue Jul 22 06:09:40 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 22 Jul 2008 11:39:40 +0530 Subject: [support] JS calendar not display in scheduler Message-ID: <2240033d0807212309l69c5a7f7m17a658bb1a11f062@mail.gmail.com> Hi in scheduler , the jscalendar not displaying, Even i checked the jscaledar and all dependencies, But i am not find the js calendar int the scheduler , Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080722/0efdb98c/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 22 12:37:19 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 22 Jul 2008 18:07:19 +0530 Subject: [support] how change the path from node to content type Message-ID: <2240033d0807220537s71fe2a1as8c020d29397a4267@mail.gmail.com> Hi how to change the path node to particular content type, That am clicking the article content type,then my path must like this manner presently what i have is http://localhost:90/drupal/node/5 change to http://localhost:90/drupal/article/thomasnetcom-gets-facelife Any idea.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080722/12dde957/attachment.htm From hays at ohio.edu Tue Jul 22 12:50:19 2008 From: hays at ohio.edu (Steve Hays) Date: Tue, 22 Jul 2008 08:50:19 -0400 Subject: [support] how change the path from node to content type In-Reply-To: <2240033d0807220537s71fe2a1as8c020d29397a4267@mail.gmail.com> References: <2240033d0807220537s71fe2a1as8c020d29397a4267@mail.gmail.com> Message-ID: <256AA675-1C63-4854-B250-BFB8A3FD4796@ohio.edu> Bharani, Have you looked at the pathauto module? I think it will do exactly what you want. Steve Hays On Jul 22, 2008, at 8:37 AM, bharani kumar wrote: > Hi > > > how to change the path node to particular content type, > > > That am clicking the article content type,then my path must like > this manner > > presently what i have is > > http://localhost:90/drupal/node/5 change to http://localhost:90/drupal/article/thomasnetcom-gets-facelife > > > Any idea.. > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080722/09cbf263/attachment.htm From earnie at users.sourceforge.net Tue Jul 22 13:08:03 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 22 Jul 2008 09:08:03 -0400 Subject: [support] wrong node data In-Reply-To: <48850FF0.4040800@rivul.com> References: <4884EFB8.6030400@rivul.com> <20080721174457.cicuzc0pmxassowg@mail.progw.org> <48850FF0.4040800@rivul.com> Message-ID: <20080722090803.l7jkwk5kkw2scgow@mail.progw.org> Quoting John Horning <john at rivul.com>: > Did my script call "node_save"? No. I don't know how to hook > into the other Drupal modules. I wrote my own queries to insert into > and update the tables, partly based on what I learned here: > http://drupal.org/node/133705. > Wow!! My jaw is dropped to the floor. The user that wrote that asks for as much trouble as I believe you are in and then is spreading the trouble around. The proper way to import data into a node is to build a node object and pass it to node_save[1]. If you create a batch script to do a job then you need to bootstrap Drupal similar to the way cron.php, install.php or update.php does. The problem with the pointed to documentation is that there may be other enabled modules that want to add its pieces to the data. You have no idea the tables that might be created to control the visual or control data if you add modules to your system. > I'm sure that for those of you who know the proper way of doing this, > my method is pretty crude, but it seemed to work - at least on most > nodes. But something is apparently out of sync. > I saw the follow-up post that you think you found the answer of clearing a cache now and then. I don't think that will keep resolving your issue but more power to you. > Basically what I am trying to do is import users and company > profiles. I used the Import User module for the users, but need > something for the company profiles. What would you suggest at this > point? Obviously your using CCK already. I don't know the whole story; are the company profiles a 1 to 1 relationship to the user? If so, what about a profile field instead of CCK? [1] http://api.drupal.org/api/function/node_save Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Tue Jul 22 13:32:20 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 22 Jul 2008 09:32:20 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> Message-ID: <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > Guys, > > This sounds really dumb, but I can't find an answer anywhere. > > Read privileges for all content types EXCEPT for the forum module seem > to be controlled by Permissions >> node module >> access content. I > have checked that to allow access privileges to anonymous users. But > if I try to access the "drupal/forums" page--the list of all > containers and forums automatically generated by the Forums module, I > cannot access it unless I am logged in. > > The FAQ module may have encountered a similar problem because their > section in the Permissions page includes a checkbox for "view faq." > There is no such item under the forums module. > > Strangely, only the "drupal/forums" page seems to be non-performing in > this fashion. If I type in the url of a specific forum, I can read it > as anonymous, but (of course) no one can get to the specific forums > without the index page. Am I the only one with this problem? (I'm in > 6.3) > > A related gripe: The "containers" on the forum-list page are hot > links, but produce no results. It would be nice to remove the links > since they're non-functional. > What modules do you have installed. The forum module uses taxonomy vocabulary and terms to control containers and fora. The links come from the taxonomy module. Do you have any access modules installed? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From pierre.rineau at makina-corpus.com Tue Jul 22 13:59:47 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Tue, 22 Jul 2008 15:59:47 +0200 Subject: [support] Hide some vocabulary fields in node creation for some roles Message-ID: <1216735187.9738.17.camel@localhost> Hi, I'm looking for a module which permits to disable some taxonomy fields on creation and edition forms. I use taxonomy to tag some content for admin reasons, and I need users to see it, but not to edit it. I tried TAC_lite which did not feet with what I want to do. I also tried TAC which do the trick, but there is a anonying bug: I have a content type with a vocabulary containing this terms: "normal" and "premium". Users which create this nodes dont have the choice, they have to put "normal", which works. Then, a admin can change and select "premium". Then, when the user edit his node, he can't save it because he have to switch it to "normal" again. I want a taxo vocab not to be editable by users, but only by some role. I dont want any other functionnality than that. Is there any module that can do only this, disallow a role to change a vocab, but allow him to edit the node anyway ? From hays at ohio.edu Tue Jul 22 21:55:20 2008 From: hays at ohio.edu (Steve Hays) Date: Tue, 22 Jul 2008 17:55:20 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> Message-ID: <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> Earnie, I do have the Taxonomy module installed. I spent a while looking for "access modules," but I couldn't find any-- at least any that were filtered for 6. Perhaps I didn't know what I was looking for. *Should* I have any access modules installed? Is there one that would solve the problem? I'm think it really is a permissions problem--unless, of course, other people in D6 can access the "forums/" page (the auto-generated index of fora) while in anonymous user role. Steve On Jul 22, 2008, at 9:32 AM, Earnie Boyd wrote: > Quoting Steve Hays <hays at ohio.edu>: > >> Guys, >> >> This sounds really dumb, but I can't find an answer anywhere. >> >> Read privileges for all content types EXCEPT for the forum module >> seem >> to be controlled by Permissions >> node module >> access content. I >> have checked that to allow access privileges to anonymous users. But >> if I try to access the "drupal/forums" page--the list of all >> containers and forums automatically generated by the Forums module, I >> cannot access it unless I am logged in. >> >> The FAQ module may have encountered a similar problem because their >> section in the Permissions page includes a checkbox for "view faq." >> There is no such item under the forums module. >> >> Strangely, only the "drupal/forums" page seems to be non-performing >> in >> this fashion. If I type in the url of a specific forum, I can read >> it >> as anonymous, but (of course) no one can get to the specific forums >> without the index page. Am I the only one with this problem? (I'm >> in >> 6.3) >> >> A related gripe: The "containers" on the forum-list page are hot >> links, but produce no results. It would be nice to remove the links >> since they're non-functional. >> > > What modules do you have installed. The forum module uses taxonomy > vocabulary and terms to control containers and fora. The links come > from the taxonomy module. Do you have any access modules installed? > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] From vuthecuong at luvina.net Wed Jul 23 03:33:26 2008 From: vuthecuong at luvina.net (Vu The Cuong) Date: Wed, 23 Jul 2008 10:33:26 +0700 Subject: [support] Newbie: make taxonomy and terms to apprear in sidebars possible? Message-ID: <3DADD35EDAE49145B9BA1AB44844771160890A@lvsrv_dns.luvina.net> Dear all I'm using drupal 6.3 How can I make taxonomy and terms to apprear in sidebars? Is there a way to do that without installing additional modules? If yes, could you describe step by step? If no, could you introduce some modules that can do that? And if possible, could you describe step by step how to do that? Thanks in advanced -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/e0caa3e7/attachment.htm From bharanikumariyerphp at gmail.com Wed Jul 23 06:06:34 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 23 Jul 2008 11:36:34 +0530 Subject: [support] search block problem Message-ID: <2240033d0807222306v6f6ac798k28c0ed36f885ff95@mail.gmail.com> Hi Am having 3 block, block 1 calender block2 search box block3 display the events with pagination, here i attached bitmaps, What i expect is when user fine the keyword, that keyword search result must be display itself of the search box below, That is,plz check attached image, there one file , name is event_expected_output.jpeg,i want this .jpeg file output.. Thnks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/e089a065/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: event_form.JPG Type: image/jpeg Size: 113149 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080723/e089a065/attachment-0003.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: event_search.JPG Type: image/jpeg Size: 115251 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080723/e089a065/attachment-0004.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: event_expected_output.JPG Type: image/jpeg Size: 106462 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080723/e089a065/attachment-0005.jpeg From bharanikumariyerphp at gmail.com Wed Jul 23 06:59:00 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 23 Jul 2008 12:29:00 +0530 Subject: [support] 3 blocks combine into 1 block In-Reply-To: <2240033d0807222317g20f74b92h223064b2ffffd819@mail.gmail.com> References: <2240033d0807222317g20f74b92h223064b2ffffd819@mail.gmail.com> Message-ID: <2240033d0807222359o78ce7f4aoc8a66a12e8c9e859@mail.gmail.com> Is it possible, combine 3 blocks into 1 block that is aussume block1,block2,block3, These three block i want to display in the same page, what ever navigations will happen, But i must display all threee blocks in the same pages only... thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/b5c36d2e/attachment.htm From earnie at users.sourceforge.net Wed Jul 23 14:03:11 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 23 Jul 2008 10:03:11 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> Message-ID: <20080723100311.jgsyxf7lmx7o8s0s@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > Earnie, > > I do have the Taxonomy module installed. > > I spent a while looking for "access modules," but I couldn't find any-- > at least any that were filtered for 6. Perhaps I didn't know what I > was looking for. *Should* I have any access modules installed? Is > there one that would solve the problem? I'm think it really is a > permissions problem--unless, of course, other people in D6 can access > the "forums/" page (the auto-generated index of fora) while in > anonymous user role. > My point in asking about access modules was to determine if a contrib module might be the issue. I don't know how many users are actually using D6 yet, there are some major modules that haven't published a production ready version yet. What about the user access permissions for Taxonomy and Forum modules? Are they set for access by Anonymous Users? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From fredthejonester at gmail.com Wed Jul 23 14:16:39 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 23 Jul 2008 16:16:39 +0200 Subject: [support] Files directory permissions Message-ID: <177c0a10807230716g214f43f3x27d6dca7ce1f2833@mail.gmail.com> My admin/settings/file-system page says that /files and /tmp are not writable unless I give them 777 via FTP. I am no genius, but isn't that a bit of a security risk? I thought 775 should be enough? Should I ask the host to try to fix this? This host was chosen by my client, however, as he wanted hosting in England, and like all other English hosts, they are a bit thick. To say the least. Thanks, Fred From hays at ohio.edu Wed Jul 23 14:29:20 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 10:29:20 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <20080723100311.jgsyxf7lmx7o8s0s@mail.progw.org> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> <20080723100311.jgsyxf7lmx7o8s0s@mail.progw.org> Message-ID: <335B9A16-3CAA-4FEF-8368-5D014EB2EE71@ohio.edu> Earnie, I have installed only modules that have full Drupal 6 recommendation. The permissions for Taxonomy are very limited: merely "administer"--so I don't want to dispense that one very widely. For Forum there are more options, but there is no "access content." The lowest is "create new forum topic." I don't really want to give that permission to anonymous users, but when I check it, the forums- list page appears for them. For now I've decided to control access via menus. I simply won't post a link to the "node/add/0" page. If someone knows enough about Drupal to type that in, they can create a new topic without logging in, but I guess I'll have to live with that possibility for now. Steve On Jul 23, 2008, at 10:03 AM, Earnie Boyd wrote: > Quoting Steve Hays <hays at ohio.edu>: > >> Earnie, >> >> I do have the Taxonomy module installed. >> >> I spent a while looking for "access modules," but I couldn't find >> any-- >> at least any that were filtered for 6. Perhaps I didn't know what I >> was looking for. *Should* I have any access modules installed? Is >> there one that would solve the problem? I'm think it really is a >> permissions problem--unless, of course, other people in D6 can access >> the "forums/" page (the auto-generated index of fora) while in >> anonymous user role. >> > > My point in asking about access modules was to determine if a contrib > module might be the issue. I don't know how many users are actually > using D6 yet, there are some major modules that haven't published a > production ready version yet. What about the user access permissions > for Taxonomy and Forum modules? Are they set for access by Anonymous > Users? > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] From pinglaura at gmail.com Wed Jul 23 15:43:43 2008 From: pinglaura at gmail.com (Laura Scott) Date: Wed, 23 Jul 2008 09:43:43 -0600 Subject: [support] Newbie: make taxonomy and terms to apprear in sidebars possible? In-Reply-To: <3DADD35EDAE49145B9BA1AB44844771160890A@lvsrv_dns.luvina.net> References: <3DADD35EDAE49145B9BA1AB44844771160890A@lvsrv_dns.luvina.net> Message-ID: <846200EB-BD6E-4AB7-9CED-C8A762DE2346@gmail.com> I can't give you step by step, but Panels 2 can break up node components for placement in the "sidebar". Laura On Jul 22, 2008, at 9:33 PM, Vu The Cuong wrote: > Dear all > I?m using drupal 6.3 > How can I make taxonomy and terms to apprear in sidebars? > Is there a way to do that without installing additional modules? > If yes, could you describe step by step? > If no, could you introduce some modules that can do that? > And if possible, could you describe step by step how to do that? > Thanks in advanced > > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/553023b2/attachment.htm From bharanikumariyerphp at gmail.com Wed Jul 23 16:29:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 23 Jul 2008 21:59:28 +0530 Subject: [support] can any select query Message-ID: <2240033d0807230929y2c18c1a1te9a4eae3dc77cb75@mail.gmail.com> vocabulary table [php] vid name description 2 vegitable this is vegitable [/php] node_revision table [php] nid vid uid title body teaser 21 21 1 mouse program test test [/php] term_data table [php] tid vid name 5 2 ladies finger 6 2 onion 7 2 beetroot 8 2 ladies finger2 9 2 onion2 10 2 beetroot2 [/php] term_node table [php] nid tid 18 4 21 5 21 7 21 8 19 10 20 10 21 10 19 11 [/php] Hi friends the above is my table can any one tell the sql query for that ????? id related all content must display with that query... any great idea,,,plz i welcome :D -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/78912d92/attachment.htm From bharanikumariyerphp at gmail.com Wed Jul 23 17:41:39 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 23 Jul 2008 23:11:39 +0530 Subject: [support] search result displaying in the new page Message-ID: <2240033d0807231041tabfb3b4n5df9c805ef0bc767@mail.gmail.com> Hi How customize ""node_quick_find module"" this is similar search module for search the particular content type, When i search particlar keyword, For that search result is displaying new page, now i want to display the search result , that page itself, any idea -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/28cfac35/attachment-0001.htm From cxjohnson at gmail.com Wed Jul 23 17:58:28 2008 From: cxjohnson at gmail.com (Chris Johnson) Date: Wed, 23 Jul 2008 12:58:28 -0500 Subject: [support] can any select query In-Reply-To: <2240033d0807230929y2c18c1a1te9a4eae3dc77cb75@mail.gmail.com> References: <2240033d0807230929y2c18c1a1te9a4eae3dc77cb75@mail.gmail.com> Message-ID: <9ea8d6030807231058i5c8ba2d6hff34971bb6aef3c3@mail.gmail.com> Note that in the vocabulary table and the term_data table, "vid" stands for "vocabulary id". In the node_revision table, "vid" stands for "version id" (unfortunately). The following SQL should display all of the data from the tables described (untested): SELECT r.nid, r.vid, r.uid, r.title, r.body, r.teaser, t.tid, t.name, v.vid, v.name, v.description FROM node_revision AS r INNER JOIN term_node USING(nid) INNER JOIN term_data AS t USING(tid) INNER JOIN vocabulary AS v USING(vid); On Wed, Jul 23, 2008 at 11:29 AM, bharani kumar <bharanikumariyerphp at gmail.com> wrote: > vocabulary table > > [php] > vid name description > 2 vegitable this is vegitable > > [/php] > node_revision table > [php] > nid vid uid title body teaser > 21 21 1 mouse program test test > [/php] > > > term_data table > [php] > tid vid name > 5 2 ladies finger > 6 2 onion > 7 2 beetroot > 8 2 ladies finger2 > 9 2 onion2 > 10 2 beetroot2 > [/php] > > > term_node table > [php] > nid tid > 18 4 > 21 5 > 21 7 > 21 8 > 19 10 > 20 10 > 21 10 > 19 11 > [/php] > > > Hi friends > > the above is my table can any one tell the sql query for that ????? > > id related all content must display with that query... > > > any great idea,,,plz i welcome > > > :D > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From killshot91 at comcast.net Wed Jul 23 18:54:33 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 11:54:33 -0700 Subject: [support] GNU License displayed instead of home page Message-ID: <48877E69.4050300@comcast.net> As some of you may remember from a previous thread, I had some Apache issues on a new site with clean URLs. We eventually got the httpd.conf file updated correctly (we were missing FollowSymLinks), and we can now get to all the links - except the home page. So basically, it's reversed from before. When I go to www.mysite.com, I get the text of the GNU public license instead of the home page. If I go to mysite.com/index.php, I get the home page just fine. I realize this is more of an Apache issue, but I'm curious to see if anyone has come across this issue before and if they know how to fix it. Thanks. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/1d149ca7/attachment.htm From earnie at users.sourceforge.net Wed Jul 23 19:07:03 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 23 Jul 2008 15:07:03 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <335B9A16-3CAA-4FEF-8368-5D014EB2EE71@ohio.edu> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> <20080723100311.jgsyxf7lmx7o8s0s@mail.progw.org> <335B9A16-3CAA-4FEF-8368-5D014EB2EE71@ohio.edu> Message-ID: <20080723150703.1naj5pqb3vlwko4s@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > Earnie, > > I have installed only modules that have full Drupal 6 recommendation. > > The permissions for Taxonomy are very limited: merely "administer"--so > I don't want to dispense that one very widely. > For Forum there are more options, but there is no "access content." > The lowest is "create new forum topic." I don't really want to give > that permission to anonymous users, but when I check it, the forums- > list page appears for them. For now I've decided to control access > via menus. I simply won't post a link to the "node/add/0" page. If > someone knows enough about Drupal to type that in, they can create a > new topic without logging in, but I guess I'll have to live with that > possibility for now. > I suggest you open a bug issue for it. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From mike at mikeyp.net Wed Jul 23 18:56:30 2008 From: mike at mikeyp.net (Michael Prasuhn) Date: Wed, 23 Jul 2008 11:56:30 -0700 Subject: [support] GNU License displayed instead of home page In-Reply-To: <48877E69.4050300@comcast.net> References: <48877E69.4050300@comcast.net> Message-ID: <4355FAF1-7B93-43C7-9FF8-DC0BBA45EF05@mikeyp.net> You'll probably want to add 'DirectoryIndex index.php' to your vhost section. -Mike On Jul 23, 2008, at 11:54 AM, Steve Edwards wrote: > As some of you may remember from a previous thread, I had some > Apache issues on a new site with clean URLs. We eventually got the > httpd.conf file updated correctly (we were missing FollowSymLinks), > and we can now get to all the links - except the home page. So > basically, it's reversed from before. When I go to www.mysite.com, > I get the text of the GNU public license instead of the home page. > If I go to mysite.com/index.php, I get the home page just fine. I > realize this is more of an Apache issue, but I'm curious to see if > anyone has come across this issue before and if they know how to fix > it. > > Thanks. > > Steve > > -- > [ Drupal support list | http://lists.drupal.org/ ] __________________ Michael Prasuhn mike at mikeyp.net http://mikeyp.net 503.488.5433 714.356.0168 cell 949.200.7670 fax From hays at ohio.edu Wed Jul 23 19:14:49 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 15:14:49 -0400 Subject: [support] Forums permission: can anonymous users view without write privileges In-Reply-To: <20080723150703.1naj5pqb3vlwko4s@mail.progw.org> References: <F87E0517-C5ED-48A0-8D99-19EF9A19CF31@ohio.edu> <20080722093220.7n1ndf70zsco4c0c@mail.progw.org> <1A402D04-27E8-4B32-BA98-C1FB19F7CA34@ohio.edu> <20080723100311.jgsyxf7lmx7o8s0s@mail.progw.org> <335B9A16-3CAA-4FEF-8368-5D014EB2EE71@ohio.edu> <20080723150703.1naj5pqb3vlwko4s@mail.progw.org> Message-ID: <CC8822EC-34DE-4F30-B1A7-6649EEFD19C8@ohio.edu> I did--2 days ago--but no response yet. Steve On Jul 23, 2008, at 3:07 PM, Earnie Boyd wrote: > Quoting Steve Hays <hays at ohio.edu>: > >> Earnie, >> >> I have installed only modules that have full Drupal 6 recommendation. >> >> The permissions for Taxonomy are very limited: merely "administer"-- >> so >> I don't want to dispense that one very widely. >> For Forum there are more options, but there is no "access content." >> The lowest is "create new forum topic." I don't really want to give >> that permission to anonymous users, but when I check it, the forums- >> list page appears for them. For now I've decided to control access >> via menus. I simply won't post a link to the "node/add/0" page. If >> someone knows enough about Drupal to type that in, they can create a >> new topic without logging in, but I guess I'll have to live with that >> possibility for now. >> > > I suggest you open a bug issue for it. > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] From killshot91 at comcast.net Wed Jul 23 19:37:47 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 12:37:47 -0700 Subject: [support] GNU License displayed instead of home page In-Reply-To: <F5CFAC50E3C2466A518058BF@ritz.innovate.net> References: <48877E69.4050300@comcast.net> <F5CFAC50E3C2466A518058BF@ritz.innovate.net> Message-ID: <4887888B.9010701@comcast.net> Here is what already exists in httpd.conf: DirectoryIndex index.php index.html index.htm index.shtml index.php4 index.php3 index.phtml index.cgi I also added DirectoryIndex index.php to my VirtualHost section and reloaded httpd, but no change. Steve lists-drupal wrote: > You need to "fix" the httpd.conf > > DirectoryIndex > > directive. > > If your default directory indexes are always index.php, then you > need to set that as the first (and maybe only) entry in the > list. If you want index.php to be used if it's there, but > index.htm/.html used if it's there but no index.php, then you > should have something like: > > DirectoryIndex index.php index.html index.htm > > > [you'll need to restart apache after making this change.] > > - Rick > > > > ------------ Original Message ------------ > >> Date: Wednesday, July 23, 2008 11:54:33 AM -0700 >> From: Steve Edwards <killshot91 at comcast.net> >> To: Drupal Support <support at drupal.org> >> Subject: [support] GNU License displayed instead of home page >> >> As some of you may remember from a previous thread, I had some >> Apache issues on a new site with clean URLs. We eventually >> got the httpd.conf file updated correctly (we were missing >> FollowSymLinks), and we can now get to all the links - except >> the home page. So basically, it's reversed from before. When >> I go to www.mysite.com, I get the text of the GNU public >> license instead of the home page. If I go to >> mysite.com/index.php, I get the home page just fine. I >> realize this is more of an Apache issue, but I'm curious to >> see if anyone has come across this issue before and if they >> know how to fix it. >> >> Thanks. >> >> Steve >> >> > > ------------ End Original Message ------------ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/64593453/attachment.htm From victorkane at gmail.com Wed Jul 23 19:57:03 2008 From: victorkane at gmail.com (Victor Kane) Date: Wed, 23 Jul 2008 16:57:03 -0300 Subject: [support] GNU License displayed instead of home page In-Reply-To: <4887888B.9010701@comcast.net> References: <48877E69.4050300@comcast.net> <F5CFAC50E3C2466A518058BF@ritz.innovate.net> <4887888B.9010701@comcast.net> Message-ID: <ff176450807231257l2a42cc6t4a69c5b3ffc8d994@mail.gmail.com> Do you have a DNS entry for www.mysite.com??? Does it work for mysite.com(without www)? On Wed, Jul 23, 2008 at 4:37 PM, Steve Edwards <killshot91 at comcast.net> wrote: > Here is what already exists in httpd.conf: > > DirectoryIndex index.php index.html index.htm index.shtml index.php4 > index.php3 index.phtml index.cgi > > I also added > > DirectoryIndex index.php > > to my VirtualHost section and reloaded httpd, but no change. > > Steve > > lists-drupal wrote: > > You need to "fix" the httpd.conf > > DirectoryIndex > > directive. > > If your default directory indexes are always index.php, then you > need to set that as the first (and maybe only) entry in the > list. If you want index.php to be used if it's there, but > index.htm/.html used if it's there but no index.php, then you > should have something like: > > DirectoryIndex index.php index.html index.htm > > > [you'll need to restart apache after making this change.] > > - Rick > > > > ------------ Original Message ------------ > > > Date: Wednesday, July 23, 2008 11:54:33 AM -0700 > From: Steve Edwards <killshot91 at comcast.net> <killshot91 at comcast.net> > To: Drupal Support <support at drupal.org> <support at drupal.org> > Subject: [support] GNU License displayed instead of home page > > As some of you may remember from a previous thread, I had some > Apache issues on a new site with clean URLs. We eventually > got the httpd.conf file updated correctly (we were missing > FollowSymLinks), and we can now get to all the links - except > the home page. So basically, it's reversed from before. When > I go to www.mysite.com, I get the text of the GNU public > license instead of the home page. If I go tomysite.com/index.php, I get the home page just fine. I > realize this is more of an Apache issue, but I'm curious to > see if anyone has come across this issue before and if they > know how to fix it. > > Thanks. > > Steve > > > > ------------ End Original Message ------------ > > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/922a9034/attachment-0001.htm From killshot91 at comcast.net Wed Jul 23 20:04:05 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 13:04:05 -0700 Subject: [support] GNU License displayed instead of home page In-Reply-To: <ff176450807231257l2a42cc6t4a69c5b3ffc8d994@mail.gmail.com> References: <48877E69.4050300@comcast.net> <F5CFAC50E3C2466A518058BF@ritz.innovate.net> <4887888B.9010701@comcast.net> <ff176450807231257l2a42cc6t4a69c5b3ffc8d994@mail.gmail.com> Message-ID: <48878EB5.6070506@comcast.net> I'm actually on a subdomain (i.e. cms-qa.mysite.com). Victor Kane wrote: > Do you have a DNS entry for www.mysite.com? <http://www.mysite.com?>?? > Does it work for mysite.com <http://mysite.com> (without www)? > > > On Wed, Jul 23, 2008 at 4:37 PM, Steve Edwards <killshot91 at comcast.net > <mailto:killshot91 at comcast.net>> wrote: > > Here is what already exists in httpd.conf: > > DirectoryIndex index.php index.html index.htm index.shtml > index.php4 index.php3 index.phtml index.cgi > > I also added > > DirectoryIndex index.php > > to my VirtualHost section and reloaded httpd, but no change. > > Steve > > lists-drupal wrote: >> You need to "fix" the httpd.conf >> >> DirectoryIndex >> >> directive. >> >> If your default directory indexes are always index.php, then you >> need to set that as the first (and maybe only) entry in the >> list. If you want index.php to be used if it's there, but >> index.htm/.html used if it's there but no index.php, then you >> should have something like: >> >> DirectoryIndex index.php index.html index.htm >> >> >> [you'll need to restart apache after making this change.] >> >> - Rick >> >> >> >> ------------ Original Message ------------ >> >>> Date: Wednesday, July 23, 2008 11:54:33 AM -0700 >>> From: Steve Edwards <killshot91 at comcast.net> <mailto:killshot91 at comcast.net> >>> To: Drupal Support <support at drupal.org> <mailto:support at drupal.org> >>> Subject: [support] GNU License displayed instead of home page >>> >>> As some of you may remember from a previous thread, I had some >>> Apache issues on a new site with clean URLs. We eventually >>> got the httpd.conf file updated correctly (we were missing >>> FollowSymLinks), and we can now get to all the links - except >>> the home page. So basically, it's reversed from before. When >>> I go to www.mysite.com <http://www.mysite.com>, I get the text of the GNU public >>> license instead of the home page. If I go to >>> mysite.com/index.php <http://mysite.com/index.php>, I get the home page just fine. I >>> realize this is more of an Apache issue, but I'm curious to >>> see if anyone has come across this issue before and if they >>> know how to fix it. >>> >>> Thanks. >>> >>> Steve >>> >>> >> ------------ End Original Message ------------ >> >> >> >> > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/728142a3/attachment.htm From dennis at wildernesslibrary.com Wed Jul 23 19:08:22 2008 From: dennis at wildernesslibrary.com (Dennis Raney) Date: Wed, 23 Jul 2008 14:08:22 -0500 Subject: [support] GNU License displayed instead of home page In-Reply-To: <48877E69.4050300@comcast.net> References: <48877E69.4050300@comcast.net> Message-ID: <7021626307C84A14B554609E939CBBE9@DennisPC> Sounds familiar, and I think it was a DNS error. Check your DNS settings for your site. Sincerely, Dennis http://www.wildernesslibrary.com _____ From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Steve Edwards Sent: Wednesday, July 23, 2008 1:55 PM To: Drupal Support Subject: [support] GNU License displayed instead of home page As some of you may remember from a previous thread, I had some Apache issues on a new site with clean URLs. We eventually got the httpd.conf file updated correctly (we were missing FollowSymLinks), and we can now get to all the links - except the home page. So basically, it's reversed from before. When I go to www.mysite.com, I get the text of the GNU public license instead of the home page. If I go to mysite.com/index.php, I get the home page just fine. I realize this is more of an Apache issue, but I'm curious to see if anyone has come across this issue before and if they know how to fix it. Thanks. Steve __________ Information from ESET Smart Security, version of virus signature database 3292 (20080723) __________ The message was checked by ESET Smart Security. http://www.eset.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/a83eba89/attachment.htm From pinglaura at gmail.com Wed Jul 23 20:20:12 2008 From: pinglaura at gmail.com (Laura Scott) Date: Wed, 23 Jul 2008 14:20:12 -0600 Subject: [support] GNU License displayed instead of home page In-Reply-To: <48877E69.4050300@comcast.net> References: <48877E69.4050300@comcast.net> Message-ID: <2A40A757-6AEA-4CB8-A0F9-124C6C7049BA@gmail.com> You might just add a global redirect pointing your www. subdomain to the main domain. # To redirect all users to access the site WITHOUT the 'www.' prefix, RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] Laura On Jul 23, 2008, at 12:54 PM, Steve Edwards wrote: > As some of you may remember from a previous thread, I had some > Apache issues on a new site with clean URLs. We eventually got the > httpd.conf file updated correctly (we were missing FollowSymLinks), > and we can now get to all the links - except the home page. So > basically, it's reversed from before. When I go to www.mysite.com, > I get the text of the GNU public license instead of the home page. > If I go to mysite.com/index.php, I get the home page just fine. I > realize this is more of an Apache issue, but I'm curious to see if > anyone has come across this issue before and if they know how to fix > it. > > Thanks. > > Steve > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/3bda1825/attachment.htm From killshot91 at comcast.net Wed Jul 23 20:22:32 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 13:22:32 -0700 Subject: [support] GNU License displayed instead of home page In-Reply-To: <D9C2E9D1EE6DD9324BA57BFA@ritz.innovate.net> References: <48877E69.4050300@comcast.net> <F5CFAC50E3C2466A518058BF@ritz.innovate.net> <4887888B.9010701@comcast.net> <D9C2E9D1EE6DD9324BA57BFA@ritz.innovate.net> Message-ID: <48879308.7020607@comcast.net> We finally figured it out. For some reason, the .htaccess file was explicity overriding DirectoryIndex to point to license.txt. I have no idea why, since I just uploaded the standard Drupal file (or at least I thought I did). But at least it's fixed. Thanks for your suggestions. Steve lists-drupal wrote: > you can have this directive at both the global as well as the > virtual host level. make certain that you're looking at the > correct one(s). [i don't remember if this directive is allowed > in the .htaccess file, but you may want to double check there. > you may also have a conf.d directory (under httpd). the php.conf > file should have this set correctly for what you're after, but > check other of the .conf files in that directory.] > > check your server logs to make certain that you're where you > think you are when being served the gnu license page. > > > > ------------ Original Message ------------ > >> Date: Wednesday, July 23, 2008 12:37:47 PM -0700 >> From: Steve Edwards <killshot91 at comcast.net> >> To: Drupal Support <support at drupal.org> >> Subject: Re: [support] GNU License displayed instead of home >> > page > >> Here is what already exists in httpd.conf: >> >> DirectoryIndex index.php index.html index.htm index.shtml >> index.php4 index.php3 index.phtml index.cgi >> >> I also added >> >> DirectoryIndex index.php >> >> to my VirtualHost section and reloaded httpd, but no change. >> >> Steve >> >> lists-drupal wrote: >> >>> You need to "fix" the httpd.conf >>> >>> DirectoryIndex >>> >>> directive. >>> >>> If your default directory indexes are always index.php, then >>> you need to set that as the first (and maybe only) entry in >>> the list. If you want index.php to be used if it's there, but >>> index.htm/.html used if it's there but no index.php, then you >>> should have something like: >>> >>> DirectoryIndex index.php index.html index.htm >>> >>> >>> [you'll need to restart apache after making this change.] >>> >>> - Rick >>> >>> >>> >>> ------------ Original Message ------------ >>> >>> >>>> Date: Wednesday, July 23, 2008 11:54:33 AM -0700 >>>> From: Steve Edwards <killshot91 at comcast.net> >>>> To: Drupal Support <support at drupal.org> >>>> Subject: [support] GNU License displayed instead of home page >>>> >>>> As some of you may remember from a previous thread, I had >>>> some Apache issues on a new site with clean URLs. We >>>> eventually got the httpd.conf file updated correctly (we >>>> were missing FollowSymLinks), and we can now get to all the >>>> links - except the home page. So basically, it's reversed >>>> from before. When I go to www.mysite.com, I get the text of >>>> the GNU public license instead of the home page. If I go to >>>> mysite.com/index.php, I get the home page just fine. I >>>> realize this is more of an Apache issue, but I'm curious to >>>> see if anyone has come across this issue before and if they >>>> know how to fix it. >>>> >>>> Thanks. >>>> >>>> Steve >>>> >>>> >>>> >>> ------------ End Original Message ------------ >>> >>> >>> >>> >>> > > ------------ End Original Message ------------ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/9a65e2cb/attachment-0001.htm From hays at ohio.edu Wed Jul 23 20:45:13 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 16:45:13 -0400 Subject: [support] Where are my SQL db files? Message-ID: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> Guys, I'm in the process of uploading my alpha-version site. I've got the Drupal folder uploaded. Now I need to find the db it has stored things in, and I'm not sure where to find it. I'm on a new Mac, operating within Mamp. Any chance that any of you are operating in a similar environment and can tell me which files/ folders I need to upload and to which folders within the webhosting site? Steve Hays From killshot91 at comcast.net Wed Jul 23 20:49:33 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 13:49:33 -0700 Subject: [support] Where are my SQL db files? In-Reply-To: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> Message-ID: <4887995D.7000006@comcast.net> settings.php in /sites/default. Look for the $db_url variable around line 93. Steve Steve Hays wrote: > Guys, > > I'm in the process of uploading my alpha-version site. I've got the > Drupal folder uploaded. Now I need to find the db it has stored > things in, and I'm not sure where to find it. > > I'm on a new Mac, operating within Mamp. Any chance that any of you > are operating in a similar environment and can tell me which files/ > folders I need to upload and to which folders within the webhosting > site? > > Steve Hays > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/55713d22/attachment.htm From hays at ohio.edu Wed Jul 23 21:26:12 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 17:26:12 -0400 Subject: [support] Where are my SQL db files? In-Reply-To: <4887995D.7000006@comcast.net> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> Message-ID: <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> Steve, Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. PhP My Admin lists the following 3 databases, all of which seem to be Drupal related: dd08 (which I created) information_schema (which seems to be Views related) mysql (which has 17 records that may or may not have anything to do with the Drupal site. I can't tell.) Now, you need to understand that I'm not a programmer, and I don't work in Terminal mode. Instead, I'm using Mamp, which makes PhP and SQL work within what I regard as a somewhat normal user interface. Drupal also operates within Mamp. So, I'm looking for actual files and folders in System X, and what I find is the following: Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, mysql(folder). [The comma-separated items are all the same level.] The mysql folder contains 51 files with terminations in .frm, .MYD, and MYI. The dd08 folder contains only a single file called "db.opt" (options?). I find nothing in that folder that bears any similarity to "information_schema." So, I'm befuddled. If I have to, I suppose I can learn enough about Terminal mode to find the proper file and upload it. I guess I don't even know quite what to ask. Perhaps this will give someone enough info to extend a suggestion. Thanks, Steve Hays Department of Classics Ohio University On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: > settings.php in /sites/default. Look for the $db_url variable > around line 93. > > Steve > > Steve Hays wrote: >> >> Guys, >> >> I'm in the process of uploading my alpha-version site. I've got the >> Drupal folder uploaded. Now I need to find the db it has stored >> things in, and I'm not sure where to find it. >> >> I'm on a new Mac, operating within Mamp. Any chance that any of you >> are operating in a similar environment and can tell me which files/ >> folders I need to upload and to which folders within the webhosting >> site? >> >> Steve Hays >> > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/9a0d733a/attachment.htm From killshot91 at comcast.net Wed Jul 23 21:32:04 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 14:32:04 -0700 Subject: [support] Where are my SQL db files? In-Reply-To: <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> Message-ID: <4887A354.8010009@comcast.net> mysql is the system database for your MySQL server. It sounds like your db is dd08. Can you look in that database and see what tables are there? If you see ones such as access, blocks, blocks_roles, then that's your Drupal db. Steve Hays wrote: > Steve, > > Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. > > PhP My Admin lists the following 3 databases, all of which seem to be > Drupal related: > dd08 (which I created) > information_schema (which seems to be Views related) > mysql (which has 17 records that may or may not have anything to do > with the Drupal site. I can't tell.) > > Now, you need to understand that I'm not a programmer, and I don't > work in Terminal mode. Instead, I'm using Mamp, which makes PhP and > SQL work within what I regard as a somewhat normal user interface. > Drupal also operates within Mamp. So, I'm looking for actual files > and folders in System X, and what I find is the following: > > Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, > mysql(folder). [The comma-separated items are all the same level.] > > The mysql folder contains 51 files with terminations in .frm, .MYD, > and MYI. The dd08 folder contains only a single file called "db.opt" > (options?). > I find nothing in that folder that bears any similarity to > "information_schema." > > So, I'm befuddled. If I have to, I suppose I can learn enough about > Terminal mode to find the proper file and upload it. > > I guess I don't even know quite what to ask. Perhaps this will give > someone enough info to extend a suggestion. > > Thanks, > > Steve Hays > Department of Classics > Ohio University > > > On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: > >> settings.php in /sites/default. Look for the $db_url variable around >> line 93. >> >> Steve >> >> Steve Hays wrote: >>> Guys, >>> >>> I'm in the process of uploading my alpha-version site. I've got the >>> Drupal folder uploaded. Now I need to find the db it has stored >>> things in, and I'm not sure where to find it. >>> >>> I'm on a new Mac, operating within Mamp. Any chance that any of you >>> are operating in a similar environment and can tell me which files/ >>> folders I need to upload and to which folders within the webhosting >>> site? >>> >>> Steve Hays >>> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/170aebf0/attachment.htm From victorkane at gmail.com Wed Jul 23 21:35:18 2008 From: victorkane at gmail.com (Victor Kane) Date: Wed, 23 Jul 2008 18:35:18 -0300 Subject: [support] Where are my SQL db files? In-Reply-To: <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> Message-ID: <ff176450807231435l3f4c3a95hc01fb55d1f4bcccd@mail.gmail.com> Just above the line you cite ("Here's the variable") is an explanation of the various fields, explaining that "dd08" is the database you want. Check out the Drupal Handbook Documentation: Copying a site to a local MAMP installation on a Mac http://drupal.org/node/232460 Has some good info, even though you don't need to go to "terminal mode". Victor Kane http://awebfactory.com.ar On Wed, Jul 23, 2008 at 6:26 PM, Steve Hays <hays at ohio.edu> wrote: > Steve, > Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. > > PhP My Admin lists the following 3 databases, all of which seem to be > Drupal related: > dd08 (which I created) > information_schema (which seems to be Views related) > mysql (which has 17 records that may or may not have anything to do with > the Drupal site. I can't tell.) > > Now, you need to understand that I'm not a programmer, and I don't work in > Terminal mode. Instead, I'm using Mamp, which makes PhP and SQL work within > what I regard as a somewhat normal user interface. Drupal also operates > within Mamp. So, I'm looking for actual files and folders in System X, and > what I find is the following: > > Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, > mysql(folder). [The comma-separated items are all the same level.] > > The mysql folder contains 51 files with terminations in .frm, .MYD, and > MYI. The dd08 folder contains only a single file called "db.opt" > (options?). > I find nothing in that folder that bears any similarity to > "information_schema." > > So, I'm befuddled. If I have to, I suppose I can learn enough about > Terminal mode to find the proper file and upload it. > > I guess I don't even know quite what to ask. Perhaps this will give > someone enough info to extend a suggestion. > > Thanks, > > Steve Hays > Department of Classics > Ohio University > > > On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: > > settings.php in /sites/default. Look for the $db_url variable around > line 93. > > Steve > > Steve Hays wrote: > > Guys, > > I'm in the process of uploading my alpha-version site. I've got the > Drupal folder uploaded. Now I need to find the db it has stored > things in, and I'm not sure where to find it. > > I'm on a new Mac, operating within Mamp. Any chance that any of you > are operating in a similar environment and can tell me which files/ > folders I need to upload and to which folders within the webhosting > site? > > Steve Hays > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/06fe3bed/attachment-0001.htm From hays at ohio.edu Wed Jul 23 21:41:29 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 17:41:29 -0400 Subject: [support] Where are my SQL db files? In-Reply-To: <4887A354.8010009@comcast.net> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> <4887A354.8010009@comcast.net> Message-ID: <EE01BA8D-2072-45EA-ADBD-B55EBAC4C95F@ohio.edu> Steve, Yes. dd08 does contain that information. I can view it from within PhP My Admin. information_schema contains things like Triggers, User_privileges, and Views--all of Type "View"--which causes me to wonder whether the Views module has built it. My problem is that although I can see dd08 within PhpMyAdmin, I cannot find it in the System X Finder and so I have no idea how to FTP it to the host. Thanks for your patience. Steve On Jul 23, 2008, at 5:32 PM, Steve Edwards wrote: > mysql is the system database for your MySQL server. It sounds like > your db is dd08. Can you look in that database and see what tables > are there? If you see ones such as access, blocks, blocks_roles, > then that's your Drupal db. > > Steve Hays wrote: >> >> Steve, >> >> Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. >> >> PhP My Admin lists the following 3 databases, all of which seem to >> be Drupal related: >> dd08 (which I created) >> information_schema (which seems to be Views related) >> mysql (which has 17 records that may or may not have anything to >> do with the Drupal site. I can't tell.) >> >> Now, you need to understand that I'm not a programmer, and I don't >> work in Terminal mode. Instead, I'm using Mamp, which makes PhP >> and SQL work within what I regard as a somewhat normal user >> interface. Drupal also operates within Mamp. So, I'm looking for >> actual files and folders in System X, and what I find is the >> following: >> >> Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, >> mysql(folder). [The comma-separated items are all the same level.] >> >> The mysql folder contains 51 files with terminations >> in .frm, ..MYD, and MYI. The dd08 folder contains only a single >> file called "db.opt" (options?). >> I find nothing in that folder that bears any similarity to >> "information_schema." >> >> So, I'm befuddled. If I have to, I suppose I can learn enough >> about Terminal mode to find the proper file and upload it. >> >> I guess I don't even know quite what to ask. Perhaps this will >> give someone enough info to extend a suggestion. >> >> Thanks, >> >> Steve Hays >> Department of Classics >> Ohio University >> >> >> On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: >> >>> settings.php in /sites/default. Look for the $db_url variable >>> around line 93. >>> >>> Steve >>> >>> Steve Hays wrote: >>>> >>>> Guys, >>>> >>>> I'm in the process of uploading my alpha-version site. I've got >>>> the >>>> Drupal folder uploaded. Now I need to find the db it has stored >>>> things in, and I'm not sure where to find it. >>>> >>>> I'm on a new Mac, operating within Mamp. Any chance that any of >>>> you >>>> are operating in a similar environment and can tell me which files/ >>>> folders I need to upload and to which folders within the webhosting >>>> site? >>>> >>>> Steve Hays >>>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >> > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/49600463/attachment.htm From killshot91 at comcast.net Wed Jul 23 21:44:34 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 14:44:34 -0700 Subject: [support] Where are my SQL db files? In-Reply-To: <EE01BA8D-2072-45EA-ADBD-B55EBAC4C95F@ohio.edu> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> <4887A354.8010009@comcast.net> <EE01BA8D-2072-45EA-ADBD-B55EBAC4C95F@ohio.edu> Message-ID: <4887A642.4000606@comcast.net> phpMyAdmin allows you to export the entire database as a .sql file. Export it from your local db, and then import it on your server. It's easiest to have your db already created on your server, and then just import the .sql file. Steve Steve Hays wrote: > Steve, > > Yes. dd08 does contain that information. I can view it from within > PhP My Admin. > > information_schema contains things like Triggers, User_privileges, and > Views--all of Type "View"--which causes me to wonder whether the Views > module has built it. > > My problem is that although I can see dd08 within PhpMyAdmin, I cannot > find it in the System X Finder and so I have no idea how to FTP it to > the host. > > Thanks for your patience. > > Steve > On Jul 23, 2008, at 5:32 PM, Steve Edwards wrote: > >> mysql is the system database for your MySQL server. It sounds like >> your db is dd08. Can you look in that database and see what tables >> are there? If you see ones such as access, blocks, blocks_roles, >> then that's your Drupal db. >> >> Steve Hays wrote: >>> Steve, >>> >>> Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. >>> >>> PhP My Admin lists the following 3 databases, all of which seem to >>> be Drupal related: >>> dd08 (which I created) >>> information_schema (which seems to be Views related) >>> mysql (which has 17 records that may or may not have anything to do >>> with the Drupal site. I can't tell.) >>> >>> Now, you need to understand that I'm not a programmer, and I don't >>> work in Terminal mode. Instead, I'm using Mamp, which makes PhP and >>> SQL work within what I regard as a somewhat normal user interface. >>> Drupal also operates within Mamp. So, I'm looking for actual files >>> and folders in System X, and what I find is the following: >>> >>> Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, >>> mysql(folder). [The comma-separated items are all the same level.] >>> >>> The mysql folder contains 51 files with terminations in .frm, ..MYD, >>> and MYI. The dd08 folder contains only a single file called >>> "db.opt" (options?). >>> I find nothing in that folder that bears any similarity to >>> "information_schema." >>> >>> So, I'm befuddled. If I have to, I suppose I can learn enough about >>> Terminal mode to find the proper file and upload it. >>> >>> I guess I don't even know quite what to ask. Perhaps this will give >>> someone enough info to extend a suggestion. >>> >>> Thanks, >>> >>> Steve Hays >>> Department of Classics >>> Ohio University >>> >>> >>> On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: >>> >>>> settings.php in /sites/default. Look for the $db_url variable >>>> around line 93. >>>> >>>> Steve >>>> >>>> Steve Hays wrote: >>>>> Guys, >>>>> >>>>> I'm in the process of uploading my alpha-version site. I've got the >>>>> Drupal folder uploaded. Now I need to find the db it has stored >>>>> things in, and I'm not sure where to find it. >>>>> >>>>> I'm on a new Mac, operating within Mamp. Any chance that any of you >>>>> are operating in a similar environment and can tell me which files/ >>>>> folders I need to upload and to which folders within the webhosting >>>>> site? >>>>> >>>>> Steve Hays >>>>> >>>> -- >>>> [ Drupal support list | http://lists.drupal.org/ ] >>> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/cf0f8d5e/attachment.htm From hays at ohio.edu Wed Jul 23 21:54:19 2008 From: hays at ohio.edu (Steve Hays) Date: Wed, 23 Jul 2008 17:54:19 -0400 Subject: [support] Where are my SQL db files? In-Reply-To: <4887A642.4000606@comcast.net> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> <4887A354.8010009@comcast.net> <EE01BA8D-2072-45EA-ADBD-B55EBAC4C95F@ohio.edu> <4887A642.4000606@comcast.net> Message-ID: <54B4F0FD-D316-4EB0-B59C-0365812CC40E@ohio.edu> Steve, Thanks. The interface looks a little scary. I guess I'll just use the defaults and hope for the best. I can't do it right now. Time to give up web site development for teaching a 2-hour class. Peace, and many thanks. Steve Hays On Jul 23, 2008, at 5:44 PM, Steve Edwards wrote: > phpMyAdmin allows you to export the entire database as a .sql file. > Export it from your local db, and then import it on your server. > It's easiest to have your db already created on your server, and > then just import the .sql file. > > Steve > > Steve Hays wrote: >> >> Steve, >> >> Yes. dd08 does contain that information. I can view it from >> within PhP My Admin. >> >> information_schema contains things like Triggers, User_privileges, >> and Views--all of Type "View"--which causes me to wonder whether >> the Views module has built it. >> >> My problem is that although I can see dd08 within PhpMyAdmin, I >> cannot find it in the System X Finder and so I have no idea how to >> FTP it to the host. >> >> Thanks for your patience. >> >> Steve >> On Jul 23, 2008, at 5:32 PM, Steve Edwards wrote: >> >>> mysql is the system database for your MySQL server. It sounds >>> like your db is dd08. Can you look in that database and see what >>> tables are there? If you see ones such as access, blocks, >>> blocks_roles, then that's your Drupal db. >>> >>> Steve Hays wrote: >>>> >>>> Steve, >>>> >>>> Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. >>>> >>>> PhP My Admin lists the following 3 databases, all of which seem >>>> to be Drupal related: >>>> dd08 (which I created) >>>> information_schema (which seems to be Views related) >>>> mysql (which has 17 records that may or may not have anything to >>>> do with the Drupal site. I can't tell.) >>>> >>>> Now, you need to understand that I'm not a programmer, and I >>>> don't work in Terminal mode. Instead, I'm using Mamp, which >>>> makes PhP and SQL work within what I regard as a somewhat normal >>>> user interface. Drupal also operates within Mamp. So, I'm >>>> looking for actual files and folders in System X, and what I find >>>> is the following: >>>> >>>> Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, >>>> ibdata1, mysql(folder). [The comma-separated items are all the >>>> same level.] >>>> >>>> The mysql folder contains 51 files with terminations >>>> in ..frm, ..MYD, and MYI. The dd08 folder contains only a single >>>> file called "db.opt" (options?). >>>> I find nothing in that folder that bears any similarity to >>>> "information_schema." >>>> >>>> So, I'm befuddled. If I have to, I suppose I can learn enough >>>> about Terminal mode to find the proper file and upload it. >>>> >>>> I guess I don't even know quite what to ask. Perhaps this will >>>> give someone enough info to extend a suggestion. >>>> >>>> Thanks, >>>> >>>> Steve Hays >>>> Department of Classics >>>> Ohio University >>>> >>>> >>>> On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: >>>> >>>>> settings.php in /sites/default. Look for the $db_url variable >>>>> around line 93. >>>>> >>>>> Steve >>>>> >>>>> Steve Hays wrote: >>>>>> >>>>>> Guys, >>>>>> >>>>>> I'm in the process of uploading my alpha-version site. I've >>>>>> got the >>>>>> Drupal folder uploaded. Now I need to find the db it has stored >>>>>> things in, and I'm not sure where to find it. >>>>>> >>>>>> I'm on a new Mac, operating within Mamp. Any chance that any >>>>>> of you >>>>>> are operating in a similar environment and can tell me which >>>>>> files/ >>>>>> folders I need to upload and to which folders within the >>>>>> webhosting >>>>>> site? >>>>>> >>>>>> Steve Hays >>>>>> >>>>> -- >>>>> [ Drupal support list | http://lists.drupal.org/ ] >>>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >> > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/11f2853f/attachment-0001.htm From victorkane at gmail.com Wed Jul 23 22:01:03 2008 From: victorkane at gmail.com (Victor Kane) Date: Wed, 23 Jul 2008 19:01:03 -0300 Subject: [support] Where are my SQL db files? In-Reply-To: <54B4F0FD-D316-4EB0-B59C-0365812CC40E@ohio.edu> References: <A863C7C1-649F-4D46-B516-70EB8BDA71F8@ohio.edu> <4887995D.7000006@comcast.net> <3EE8A0F1-3119-42A2-A057-11340947ADF7@ohio.edu> <4887A354.8010009@comcast.net> <EE01BA8D-2072-45EA-ADBD-B55EBAC4C95F@ohio.edu> <4887A642.4000606@comcast.net> <54B4F0FD-D316-4EB0-B59C-0365812CC40E@ohio.edu> Message-ID: <ff176450807231501o76ba2db0g42a7f97155f2e26d@mail.gmail.com> Later on, check out this video on the Lullabot site, it might prove to be of some assistance to you: http://www.lullabot.com/videocast/install_local_web_server_mac_osx On Wed, Jul 23, 2008 at 6:54 PM, Steve Hays <hays at ohio.edu> wrote: > Steve, > Thanks. The interface looks a little scary. I guess I'll just use the > defaults and hope for the best. I can't do it right now. Time to give up > web site development for teaching a 2-hour class. > > Peace, and many thanks. > > Steve Hays > > On Jul 23, 2008, at 5:44 PM, Steve Edwards wrote: > > phpMyAdmin allows you to export the entire database as a .sql file. > Export it from your local db, and then import it on your server. It's > easiest to have your db already created on your server, and then just import > the .sql file. > > Steve > > Steve Hays wrote: > > Steve, > Yes. dd08 does contain that information. I can view it from within PhP > My Admin. > > information_schema contains things like Triggers, User_privileges, and > Views--all of Type "View"--which causes me to wonder whether the Views > module has built it. > > My problem is that although I can see dd08 within PhpMyAdmin, I cannot > find it in the System X Finder and so I have no idea how to FTP it to the > host. > > Thanks for your patience. > > Steve > On Jul 23, 2008, at 5:32 PM, Steve Edwards wrote: > > mysql is the system database for your MySQL server. It sounds like your > db is dd08. Can you look in that database and see what tables are there? > If you see ones such as access, blocks, blocks_roles, then that's your > Drupal db. > > Steve Hays wrote: > > Steve, > Here's the variable: mysqli://root:xxxxxxx at localhost/dd08. > > PhP My Admin lists the following 3 databases, all of which seem to be > Drupal related: > dd08 (which I created) > information_schema (which seems to be Views related) > mysql (which has 17 records that may or may not have anything to do with > the Drupal site. I can't tell.) > > Now, you need to understand that I'm not a programmer, and I don't work > in Terminal mode. Instead, I'm using Mamp, which makes PhP and SQL work > within what I regard as a somewhat normal user interface. Drupal also > operates within Mamp. So, I'm looking for actual files and folders in > System X, and what I find is the following: > > Mamp >>db>>mysql>>dd08 (folder), ib_logfile0, iblogfile1, ibdata1, > mysql(folder). [The comma-separated items are all the same level.] > > The mysql folder contains 51 files with terminations in ..frm, ..MYD, and > MYI. The dd08 folder contains only a single file called "db.opt" > (options?). > I find nothing in that folder that bears any similarity to > "information_schema." > > So, I'm befuddled. If I have to, I suppose I can learn enough about > Terminal mode to find the proper file and upload it. > > I guess I don't even know quite what to ask. Perhaps this will give > someone enough info to extend a suggestion. > > Thanks, > > Steve Hays > Department of Classics > Ohio University > > > On Jul 23, 2008, at 4:49 PM, Steve Edwards wrote: > > settings.php in /sites/default. Look for the $db_url variable around > line 93. > > Steve > > Steve Hays wrote: > > Guys, > > I'm in the process of uploading my alpha-version site. I've got the > Drupal folder uploaded. Now I need to find the db it has stored > things in, and I'm not sure where to find it. > > I'm on a new Mac, operating within Mamp. Any chance that any of you > are operating in a similar environment and can tell me which files/ > folders I need to upload and to which folders within the webhosting > site? > > Steve Hays > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/475956c5/attachment.htm From emmanuel.seyman at club-internet.fr Wed Jul 23 22:28:30 2008 From: emmanuel.seyman at club-internet.fr (Emmanuel Seyman) Date: Thu, 24 Jul 2008 00:28:30 +0200 Subject: [support] Files directory permissions In-Reply-To: <177c0a10807230716g214f43f3x27d6dca7ce1f2833@mail.gmail.com> References: <177c0a10807230716g214f43f3x27d6dca7ce1f2833@mail.gmail.com> Message-ID: <20080723222830.GA15535@orient.maison.lan> * Fred Jones [23/07/2008 16:17] : > > My admin/settings/file-system page says that /files and /tmp are not > writable unless I give them 777 via FTP. I am no genius, but isn't > that a bit of a security risk? I thought 775 should be enough? This depends which user owns the directories /files and /tmp, which groups he belongs to and which user the web server is using to read the files and directories. There's no one "right" answer. > Should I ask the host to try to fix this? This host was chosen by my > client, however, as he wanted hosting in England, and like all other > English hosts, they are a bit thick. To say the least. Go for it and see what happens. I'ld point out that this is a operation that only needs be done once, not regularly. Emmanuel From killshot91 at comcast.net Thu Jul 24 00:03:13 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 23 Jul 2008 17:03:13 -0700 Subject: [support] Altering HTML in views block displayed in panel Message-ID: <4887C6C1.2090808@comcast.net> I'm using a view block as a panel page on my front page, and the view is a list of blog posts displaying the title, date/time posted, and who posted it. I need to do two things: 1) Add divs around the block so I can add my rounded corner graphics 2) Add some text in front of the name of the poster What override function do I use to modify the markup for this block? Would it be theme_block()? Or another one? Thanks. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080723/bfa27d10/attachment.htm From vuthecuong at luvina.net Thu Jul 24 02:14:44 2008 From: vuthecuong at luvina.net (Vu The Cuong) Date: Thu, 24 Jul 2008 09:14:44 +0700 Subject: [support] Need advices from Drupal guru: develop modules that support multilanguages Message-ID: <3DADD35EDAE49145B9BA1AB448447711683A83@lvsrv_dns.luvina.net> Dear all I have a project building a portal site (somewhat like myspace.com) for 4 countries: - Japan - Spain - France - England Outline: When users access toppage, system will: 1) check which country is this user from 2) Then redirect user to page that displaying content in corresponding to him/her country language Pages for each country is different in language but totally same in content: Subject, title, label, and main content body also. So I need advices from you: About 1): first option is: I planned to uses Accept-Language request header from browser to check where user is from. Second option is: I planned to user Multiviews in Apache to handling this. And I will redirect user based on above returned result. So my question is: - Above solutions is OK? - Do I need to pay any attention on something? - Is any better solution out there? About 2) I would like to receive any advices from you about: - Ex about using t() function, handling date and times etc - text strings used commonly such as labels on form buttons. - body content such as blog articles, informational pages and static blocks - And any others. Thanks in advanced -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080724/f1f670b0/attachment-0001.htm From bharanikumariyerphp at gmail.com Thu Jul 24 02:32:01 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 24 Jul 2008 08:02:01 +0530 Subject: [support] can any select query In-Reply-To: <9ea8d6030807231058i5c8ba2d6hff34971bb6aef3c3@mail.gmail.com> References: <2240033d0807230929y2c18c1a1te9a4eae3dc77cb75@mail.gmail.com> <9ea8d6030807231058i5c8ba2d6hff34971bb6aef3c3@mail.gmail.com> Message-ID: <2240033d0807231932j38a1b833le8fdc786d560a804@mail.gmail.com> SELECT r.nid, r.vid, r.uid, r.title, r.body, r.teaser, t.tid, t.name, v.vid, v.name, v.description FROM node_revisions AS r INNER JOIN term_node USING ( nid ) INNER JOIN term_data AS t USING ( tid ) INNER JOIN vocabulary AS v USING ( vid ) LIMIT 0 , 30 *MySQL said: *[image: Documentation]<http://dev.mysql.com/doc/refman/5.0/en/error-returns.html> #1052 - Column 'vid' in from clause is ambiguous On Wed, Jul 23, 2008 at 11:28 PM, Chris Johnson <cxjohnson at gmail.com> wrote: > Note that in the vocabulary table and the term_data table, "vid" > stands for "vocabulary id". In the node_revision table, "vid" stands > for "version id" (unfortunately). > > The following SQL should display all of the data from the tables > described (untested): > > SELECT r.nid, r.vid, r.uid, r.title, r.body, r.teaser, t.tid, t.name, > v.vid, v.name, v.description FROM node_revision AS r INNER JOIN > term_node USING(nid) INNER JOIN term_data AS t USING(tid) INNER JOIN > vocabulary AS v USING(vid); > > > > On Wed, Jul 23, 2008 at 11:29 AM, bharani kumar > <bharanikumariyerphp at gmail.com> wrote: > > vocabulary table > > > > [php] > > vid name description > > 2 vegitable this is vegitable > > > > [/php] > > node_revision table > > [php] > > nid vid uid title body teaser > > 21 21 1 mouse program test test > > [/php] > > > > > > term_data table > > [php] > > tid vid name > > 5 2 ladies finger > > 6 2 onion > > 7 2 beetroot > > 8 2 ladies finger2 > > 9 2 onion2 > > 10 2 beetroot2 > > [/php] > > > > > > term_node table > > [php] > > nid tid > > 18 4 > > 21 5 > > 21 7 > > 21 8 > > 19 10 > > 20 10 > > 21 10 > > 19 11 > > [/php] > > > > > > Hi friends > > > > the above is my table can any one tell the sql query for that ????? > > > > id related all content must display with that query... > > > > > > any great idea,,,plz i welcome > > > > > > :D > > > > > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080724/2744cc5d/attachment.htm From larry at garfieldtech.com Thu Jul 24 05:09:26 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Thu, 24 Jul 2008 00:09:26 -0500 Subject: [support] can any select query In-Reply-To: <2240033d0807231932j38a1b833le8fdc786d560a804@mail.gmail.com> References: <2240033d0807230929y2c18c1a1te9a4eae3dc77cb75@mail.gmail.com> <9ea8d6030807231058i5c8ba2d6hff34971bb6aef3c3@mail.gmail.com> <2240033d0807231932j38a1b833le8fdc786d560a804@mail.gmail.com> Message-ID: <200807240009.26931.larry@garfieldtech.com> Don't use USING in queries. I don't believe it is part of the official SQL standard (although I'm not certain of that). Drupal convention either way is to use a fully qualified INNER JOIN, on which you can specify the table and field explicitly so there is no ambiguity. On Wednesday 23 July 2008 9:32:01 pm bharani kumar wrote: > SELECT r.nid, r.vid, r.uid, r.title, r.body, r.teaser, t.tid, t.name, > v.vid, v.name, v.description > FROM node_revisions AS r > INNER JOIN term_node > USING ( nid ) > INNER JOIN term_data AS t > USING ( tid ) > INNER JOIN vocabulary AS v > USING ( vid ) > LIMIT 0 , 30 > > *MySQL said: *[image: > Documentation]<http://dev.mysql.com/doc/refman/5.0/en/error-returns.html> > #1052 - Column 'vid' in from clause is ambiguous > > On Wed, Jul 23, 2008 at 11:28 PM, Chris Johnson <cxjohnson at gmail.com> wrote: > > Note that in the vocabulary table and the term_data table, "vid" > > stands for "vocabulary id". In the node_revision table, "vid" stands > > for "version id" (unfortunately). > > > > The following SQL should display all of the data from the tables > > described (untested): > > > > SELECT r.nid, r.vid, r.uid, r.title, r.body, r.teaser, t.tid, t.name, > > v.vid, v.name, v.description FROM node_revision AS r INNER JOIN > > term_node USING(nid) INNER JOIN term_data AS t USING(tid) INNER JOIN > > vocabulary AS v USING(vid); -- Larry Garfield larry at garfieldtech.com From simone.dalmaso at juvox.it Thu Jul 24 06:44:39 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Thu, 24 Jul 2008 08:44:39 +0200 Subject: [support] help with php in a template Message-ID: <010f01c8ed58$c2859b20$06000a0a@csa> Hi, I'm using the content contemplate module for having different templates for each type of contents. I'm not able to write php, so I have a problem... I have a type of content called "pda". Each node is a brief description of a model of PDA. At the end of the page, I put 2 lines into the template of PDA's type of content, that are: <div> <a href="index.php?q=Ausili/Podcast/ <?php print $node->nid ?> "> Download or listen to podcast about <?php print $title ?></a></div> This lines allow user to see podcast about the PDA that he is reading. That's ok, but, if there are no podcast about that node, how can I turn off displaying that link? so users don't click to see only 2 words like "no podcast for that PDA"! Thanks in advance. From fredthejonester at gmail.com Thu Jul 24 07:00:09 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 24 Jul 2008 09:00:09 +0200 Subject: [support] Files directory permissions In-Reply-To: <20080723222830.GA15535@orient.maison.lan> References: <177c0a10807230716g214f43f3x27d6dca7ce1f2833@mail.gmail.com> <20080723222830.GA15535@orient.maison.lan> Message-ID: <177c0a10807240000x6aa8903cib5491d9945ff0465@mail.gmail.com> Thank you On Thu, Jul 24, 2008 at 12:28 AM, Emmanuel Seyman wrote: >> My admin/settings/file-system page says that /files and /tmp are not >> writable unless I give them 777 via FTP. I am no genius, but isn't >> that a bit of a security risk? I thought 775 should be enough? > > This depends which user owns the directories /files and /tmp, which > groups he belongs to and which user the web server is using to > read the files and directories. There's no one "right" answer. > >> Should I ask the host to try to fix this? This host was chosen by my >> client, however, as he wanted hosting in England, and like all other >> English hosts, they are a bit thick. To say the least. > > Go for it and see what happens. I'ld point out that this is a operation > that only needs be done once, not regularly. From bharanikumariyerphp at gmail.com Thu Jul 24 07:14:23 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 24 Jul 2008 12:44:23 +0530 Subject: [support] $block['content'].= drupal_get_form('search_form', NULL, $keys, 'event'); problem Message-ID: <2240033d0807240014l9ee8d53l68b5ad1196a6a64b@mail.gmail.com> Hi Friends $block['content'].= drupal_get_form('search_form', NULL, $keys, 'event'); i have used this code in my custom block, I got the search box, But it is not searched anything, drupal_get_form('search_form', NULL, $keys, 'event'); for this function, i have to supply any value ??? Any idea -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080724/1cccdfee/attachment.htm From metzlerd at evergreen.edu Thu Jul 24 15:40:32 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Thu, 24 Jul 2008 08:40:32 -0700 Subject: [support] help with php in a template In-Reply-To: <010f01c8ed58$c2859b20$06000a0a@csa> References: <010f01c8ed58$c2859b20$06000a0a@csa> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B24@birch.evergreen.edu> Need more information to help. Are the podcasts a field in the PDA content type, or are they adiffent related node? OR are you just assuming a link convention? Need to know more about your setup to answer. -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Simone Dal Maso Sent: Wednesday, July 23, 2008 11:45 PM To: support at drupal.org Subject: [support] help with php in a template Hi, I'm using the content contemplate module for having different templates for each type of contents. I'm not able to write php, so I have a problem... I have a type of content called "pda". Each node is a brief description of a model of PDA. At the end of the page, I put 2 lines into the template of PDA's type of content, that are: <div> <a href="index.php?q=Ausili/Podcast/ <?php print $node->nid ?> "> Download or listen to podcast about <?php print $title ?></a></div> This lines allow user to see podcast about the PDA that he is reading. That's ok, but, if there are no podcast about that node, how can I turn off displaying that link? so users don't click to see only 2 words like "no podcast for that PDA"! Thanks in advance. -- [ Drupal support list | http://lists.drupal.org/ ] From simone.dalmaso at juvox.it Thu Jul 24 19:01:26 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Thu, 24 Jul 2008 21:01:26 +0200 Subject: [support] help with php in a template References: <010f01c8ed58$c2859b20$06000a0a@csa> <384BE444EEC12143B241C72BCD7E9BA8220B24@birch.evergreen.edu> Message-ID: <0B01AD04B8F34C61AA78714AD3E09700@shtututu> Hi, you wrote: > Need more information to help. Are the podcasts a field in the PDA > content type, or are they adiffent related node? OR are you just > assuming a link convention? podcast is a type of content. when users make a new podcast, they can select from a combobox, that is a list of pda's models, the right pda for which they want to upload their podcast. The combobox is a cck nodereference field, that lists all models of PDA, based on the PDA type of content. then, when a user make a podcast, its url is like: www.mysite.com/podcast/podcast_of_pdaname_written_by_authorname where pdaname is the name of PDA selected by the user, and authorname is the name of the user. the title of the page is made automatically by automatic nodetitle module. so, to summerize, we have 2 type of contents, pda and podcast. tell me if I should explain better. From bharanikumariyerphp at gmail.com Thu Jul 24 20:07:25 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 25 Jul 2008 01:37:25 +0530 Subject: [support] search problem Message-ID: <2240033d0807241307r45f34200pf7032ea759027929@mail.gmail.com> Some time Genral search not working, Event the keyword is in the content or article... thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080725/f1764664/attachment.htm From florent.jousseaume at makina-corpus.com Thu Jul 24 20:41:39 2008 From: florent.jousseaume at makina-corpus.com (Florent JOUSSEAUME) Date: Thu, 24 Jul 2008 22:41:39 +0200 Subject: [support] search problem In-Reply-To: <2240033d0807241307r45f34200pf7032ea759027929@mail.gmail.com> References: <2240033d0807241307r45f34200pf7032ea759027929@mail.gmail.com> Message-ID: <4888E903.7020009@makina-corpus.com> Hello, General search is indexed by the cron. If cron is not activated, indexation is not done so no search available. You can execute cron manually with the link present in the admin/logs/status page. Florent JOUSSEAUME, bharani kumar a ?crit : > Some time > > Genral search not working, > > Event the keyword is in the content or article... > > thanks From hays at ohio.edu Thu Jul 24 20:51:58 2008 From: hays at ohio.edu (Steve Hays) Date: Thu, 24 Jul 2008 16:51:58 -0400 Subject: [support] search problem In-Reply-To: <4888E903.7020009@makina-corpus.com> References: <2240033d0807241307r45f34200pf7032ea759027929@mail.gmail.com> <4888E903.7020009@makina-corpus.com> Message-ID: <F3D11C21-1989-4B0E-B787-1ADADE1CBDCB@ohio.edu> Hey, thanks. I had read that somewhere, but it had gotten lost in the fog. Now I'll remember. Steve Hays On Jul 24, 2008, at 4:41 PM, Florent JOUSSEAUME wrote: > Hello, > > General search is indexed by the cron. If cron is not activated, > indexation is not done so no search available. You can execute cron > manually with the link present in the admin/logs/status page. > > Florent JOUSSEAUME, > > bharani kumar a ?crit : >> Some time >> >> Genral search not working, >> >> Event the keyword is in the content or article... >> >> thanks > > -- > [ Drupal support list | http://lists.drupal.org/ ] From killshot91 at comcast.net Thu Jul 24 22:59:01 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Thu, 24 Jul 2008 15:59:01 -0700 Subject: [support] Out of Space On Server Error Message-ID: <48890935.6040408@comcast.net> I'm using FCKEditor with IMCE, and when my client goes to upload files, he gets a message that says "You don't have enough free space". The files being uploaded are well within the limits in Admin settings and php.ini, and there is a ton of space available on the server. What limit could this be hitting that's telling us there is no more space? Thanks. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080724/f9788a9a/attachment.htm From anton.list at gmail.com Thu Jul 24 23:10:52 2008 From: anton.list at gmail.com (Anton) Date: Fri, 25 Jul 2008 11:10:52 +1200 Subject: [support] Out of Space On Server Error In-Reply-To: <48890935.6040408@comcast.net> References: <48890935.6040408@comcast.net> Message-ID: <45811f70807241610k1864d65bx82e23e1911b923d9@mail.gmail.com> 2008/7/25 Steve Edwards <killshot91 at comcast.net>: > I'm using FCKEditor with IMCE, and when my client goes to upload files, he > gets a message that says "You don't have enough free space". The files > being uploaded are well within the limits in Admin settings and php.ini, and > there is a ton of space available on the server. What limit could this be > hitting that's telling us there is no more space? Something to check... Uploads are (usually) first saved in the systems temp directory (eg /tmp on *nix servers) before being copied into the Drupal files directory. If that temp directory is on another filesystem, it may well be nearly full even if there is plenty of space elsewhere. -- Cheers Anton From metzlerd at evergreen.edu Fri Jul 25 00:02:34 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Thu, 24 Jul 2008 17:02:34 -0700 Subject: [support] help with php in a template In-Reply-To: <0B01AD04B8F34C61AA78714AD3E09700@shtututu> References: <010f01c8ed58$c2859b20$06000a0a@csa><384BE444EEC12143B241C72BCD7E9BA8220B24@birch.evergreen.edu> <0B01AD04B8F34C61AA78714AD3E09700@shtututu> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B25@birch.evergreen.edu> Got it ok so that means you need to put a test in your template around the generation of the link, but first we need to figure out what where the node reference ID is, for this, installing the devel module is most helpful, cause you can configure it to dump the node structure for you for themeing purposes. Another way is to put a <?php print_r($node); ?> statement to examine the node structure. Then you wrap in an if statement <?php if (somecomplex node expression that tests to see if the refernce field is null) { ?> conditional content goes here <?php } ?> Does that make some sense? Dave -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Simone Dal Maso Sent: Thursday, July 24, 2008 12:01 PM To: support at drupal.org Subject: Re: [support] help with php in a template Hi, you wrote: > Need more information to help. Are the podcasts a field in the PDA > content type, or are they adiffent related node? OR are you just > assuming a link convention? podcast is a type of content. when users make a new podcast, they can select from a combobox, that is a list of pda's models, the right pda for which they want to upload their podcast. The combobox is a cck nodereference field, that lists all models of PDA, based on the PDA type of content. then, when a user make a podcast, its url is like: www.mysite.com/podcast/podcast_of_pdaname_written_by_authorname where pdaname is the name of PDA selected by the user, and authorname is the name of the user. the title of the page is made automatically by automatic nodetitle module. so, to summerize, we have 2 type of contents, pda and podcast. tell me if I should explain better. -- [ Drupal support list | http://lists.drupal.org/ ] From edward.peters at uk.iofc.org Fri Jul 25 07:22:05 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Fri, 25 Jul 2008 08:22:05 +0100 Subject: [support] Displaying html tags without conversion Message-ID: <02cc01c8ee27$24fa0740$6eee15c0$@peters@uk.iofc.org> I want to place blocks on my site with help info for users on how to use html tags in their posts, but the tags are always converted in the display on the screen. So I cannot display for example "<h3>Title</h3>" as plain text - it always converts into the style. Does anyone know how to set a filter, or use a new one so that html is NOT converted at all? Edward Peters Oxford, UK www.iofc.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080725/f00a5a0f/attachment.htm From fredthejonester at gmail.com Fri Jul 25 07:28:05 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Fri, 25 Jul 2008 09:28:05 +0200 Subject: [support] Displaying html tags without conversion In-Reply-To: <1291243272382201682@unknownmsgid> References: <1291243272382201682@unknownmsgid> Message-ID: <177c0a10807250028o47d64a30hf005974b120c781c@mail.gmail.com> > I want to place blocks on my site with help info for users on how to use > html tags in their posts, but the tags are always converted in the display > on the screen. So I cannot display for example "<h3>Title</h3>" as plain > text ? it always converts into the style. Does anyone know how to set a > filter, or use a new one so that html is NOT converted at all? No, but you can use the HTML code: <h3> to display <h3> on the screen. :) HTH From neil at esl-lounge.com Fri Jul 25 08:49:08 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Fri, 25 Jul 2008 10:49:08 +0200 Subject: [support] Displaying html tags without conversion References: <1291243272382201682@unknownmsgid> <177c0a10807250028o47d64a30hf005974b120c781c@mail.gmail.com> Message-ID: <002e01c8ee33$4df34330$c5400f4e@Neil> Also, you should be able to use <pre></pre> tags around your html and they should come out looking as you want. Neil ----- Original Message ----- From: "Fred Jones" <fredthejonester at gmail.com> To: <support at drupal.org> Sent: Friday, July 25, 2008 9:28 AM Subject: Re: [support] Displaying html tags without conversion > I want to place blocks on my site with help info for users on how to use > html tags in their posts, but the tags are always converted in the display > on the screen. So I cannot display for example "<h3>Title</h3>" as plain > text ? it always converts into the style. Does anyone know how to set a > filter, or use a new one so that html is NOT converted at all? No, but you can use the HTML code: <h3> to display <h3> on the screen. :) HTH -- [ Drupal support list | http://lists.drupal.org/ ] From earnie at users.sourceforge.net Fri Jul 25 12:27:18 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 25 Jul 2008 08:27:18 -0400 Subject: [support] help with php in a template In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B25@birch.evergreen.edu> References: <010f01c8ed58$c2859b20$06000a0a@csa><384BE444EEC12143B241C72BCD7E9BA8220B24@birch.evergreen.edu> <0B01AD04B8F34C61AA78714AD3E09700@shtututu> <384BE444EEC12143B241C72BCD7E9BA8220B25@birch.evergreen.edu> Message-ID: <20080725082718.yevpsqffkbkg4os8@mail.progw.org> Quoting "Metzler, David" <metzlerd at evergreen.edu>: > > Another way is to put a <?php print_r($node); ?> statement to examine > the node structure. > This debugging technique is good but looks better in the GUI as <pre><?php print_r($node); ?></pre> Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From bharanikumariyerphp at gmail.com Fri Jul 25 13:11:37 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 25 Jul 2008 18:41:37 +0530 Subject: [support] search problem In-Reply-To: <F3D11C21-1989-4B0E-B787-1ADADE1CBDCB@ohio.edu> References: <2240033d0807241307r45f34200pf7032ea759027929@mail.gmail.com> <4888E903.7020009@makina-corpus.com> <F3D11C21-1989-4B0E-B787-1ADADE1CBDCB@ohio.edu> Message-ID: <2240033d0807250611p24b70d66j91e928b8fa5c9eb@mail.gmail.com> dear every thing i did already, the thing is drupal taking some diffrent manner, that is genrally search is when ever the keyword is meet, it display, but in drupal,not doing like that assume ..i enter the apple as keyword , if the apple is in the table then it display the content otherwise , it is not display the near of this word .. if the word present like appl, app.. these words are not display.. Drupal doing like exact word match only displaying... i written the patch for that.. this mayuse full if u want ask me..i send u On Fri, Jul 25, 2008 at 2:21 AM, Steve Hays <hays at ohio.edu> wrote: > Hey, thanks. I had read that somewhere, but it had gotten lost in the > fog. Now I'll remember. > > Steve Hays > > On Jul 24, 2008, at 4:41 PM, Florent JOUSSEAUME wrote: > > > Hello, > > > > General search is indexed by the cron. If cron is not activated, > > indexation is not done so no search available. You can execute cron > > manually with the link present in the admin/logs/status page. > > > > Florent JOUSSEAUME, > > > > bharani kumar a ?crit : > >> Some time > >> > >> Genral search not working, > >> > >> Event the keyword is in the content or article... > >> > >> thanks > > > > -- > > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080725/f315fd9e/attachment.htm From bharanikumariyerphp at gmail.com Fri Jul 25 13:15:40 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 25 Jul 2008 18:45:40 +0530 Subject: [support] call event calendar Message-ID: <2240033d0807250615u43ab2544o562fb02bf8c18dd@mail.gmail.com> How to call event calendar into our custom block any great idea thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080725/1ce37f8e/attachment.htm From bharanikumariyerphp at gmail.com Fri Jul 25 16:47:57 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 25 Jul 2008 22:17:57 +0530 Subject: [support] how to assign menu access to registered user through aceess control Message-ID: <2240033d0807250947r4c24b4e2gdc4d185ec01b70b4@mail.gmail.com> Hi How to assign the menu item to some certain users through aceess control panel... .. $content = array(); $content[] = array( 'title' => t('Contents'), 'path' => 'cShow', 'callback' => 'cShow_article', 'access' => user_access('authenticated user') ); for that how to create the custom menu thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080725/5a9750ac/attachment.htm From hays at ohio.edu Fri Jul 25 19:33:37 2008 From: hays at ohio.edu (Steve Hays) Date: Fri, 25 Jul 2008 15:33:37 -0400 Subject: [support] Uploading and getting online Message-ID: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> I have uploaded both Drupal folder and database. I'm getting all my theme and .css info, but haven't yet succeeded in connecting to the db. I think the key is settings.php. Is this how the line should read-- where user and password are those assigned when creating the db on the remote host prior to upload? $db_url = 'mysql://user:password at dbfilename' Thanks, Steve Hays Classics Ohio University From earnie at users.sourceforge.net Fri Jul 25 19:54:48 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 25 Jul 2008 15:54:48 -0400 Subject: [support] Uploading and getting online In-Reply-To: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> References: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> Message-ID: <20080725155448.6axci57xm8040w4s@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > I have uploaded both Drupal folder and database. I'm getting all my > theme and .css info, but haven't yet succeeded in connecting to the db. > > I think the key is settings.php. Is this how the line should read-- > where user and password are those assigned when creating the db on the > remote host prior to upload? > > $db_url = 'mysql://user:password at dbfilename' > You're missing the host $db_url = 'mysql://user:password at hostname/dbfilename' Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From neil at esl-lounge.com Sat Jul 26 11:19:25 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Sat, 26 Jul 2008 13:19:25 +0200 Subject: [support] need to check publication status in block code I use Message-ID: <003601c8ef11$76837bb0$73e70a3e@Neil> I would really appreciate someone helping me with just a tiny bit of SQL code for some block code I got off d.o here is the code: <!-- 4 returned for each term, ordered by nid descending, meaning new will always be at top --> <?php if (arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2))) { $nid = (int)arg(1); $terms = taxonomy_node_get_terms($nid); $output = "<span class='whole-list'>"; foreach($terms as $term){ $sql = "SELECT n.title, n.nid FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid = $term->tid AND n.nid != $nid ORDER BY RAND() LIMIT 3"; $result = db_query(db_rewrite_sql($sql)); if (db_num_rows($result)) { $output .="<h5 style='color:#900;font-weight:bold;margin-top:3px;'>$term->name</h5><ol class='each-term'>"; while ($anode = db_fetch_object($result)) { $output .= "<li>".l($anode->title, "node/$anode->nid")."</li>"; } $output.="</ol>"; } } $output .= "</div>"; return $output; } ?> it shows other nodes with the same taxonomy terms and I use it for a lot of Related Blog Posts, Related Forum Posts, type blocks. But it doesn't check for publication status so I need to add "where status = 1" at some part of the code. But where? Would I therefore also need to add n.status in the SELECT part of the query? any help much appreciated...these blocks are an important part of my site but I'm getting nodes in moderation going into them too. Thanks Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080726/7bf41362/attachment-0001.htm From hays at ohio.edu Sat Jul 26 16:07:49 2008 From: hays at ohio.edu (Steve Hays) Date: Sat, 26 Jul 2008 12:07:49 -0400 Subject: [support] Uploading and getting online In-Reply-To: <20080725155448.6axci57xm8040w4s@mail.progw.org> References: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> <20080725155448.6axci57xm8040w4s@mail.progw.org> Message-ID: <E83DDE3E-CE37-48B8-9D5B-24496B514F0D@ohio.edu> Earnie, I couldn't get any work done last night, but by using your guidance I established the connection with the database. When I tried to open my site, I got: Warning: Can't find file: './ ohiohay2_dd08/users.frm' (errno: 13) query: SELECT u.*, s.* FROM users u INNER JOIN sessions s ON u.uid = s.uid WHERE s.sid = '6b6dc0f4d3915201c36ba8f6f6ce3c7d' in/home/ohiohay2/public_html/ includes/database.mysql.inc on line 128 and a whole page of other errors. So, I opened the db file I had imported, and it was empty. It shows the requisite number of rows or tables: dbname(89), but when I look into individual rows in PhPMyAdmin on the host site, they lack the content that they have on my Mac. The host administrator had assured me that he had installed the file, but apparently the installation had failed. I have since tried to reinstall. I think the problem is the size of the .sql text file (9MB): PhPMyAdmin upload declares a max size of 51KB. I'm a desktop guy with *very* little experience with hosts, their interfaces, and conventions. Can you give me some guidance? Steve On Jul 25, 2008, at 3:54 PM, Earnie Boyd wrote: > Quoting Steve Hays <hays at ohio.edu>: > >> I have uploaded both Drupal folder and database. I'm getting all my >> theme and .css info, but haven't yet succeeded in connecting to the >> db. >> >> I think the key is settings.php. Is this how the line should read-- >> where user and password are those assigned when creating the db on >> the >> remote host prior to upload? >> >> $db_url = 'mysql://user:password at dbfilename' >> > > You're missing the host > > $db_url = 'mysql://user:password at hostname/dbfilename' > > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080726/22f816e5/attachment.htm From listuser at chillco.com Sat Jul 26 16:43:18 2008 From: listuser at chillco.com (Cary Gordon) Date: Sat, 26 Jul 2008 09:43:18 -0700 Subject: [support] Uploading and getting online In-Reply-To: <E83DDE3E-CE37-48B8-9D5B-24496B514F0D@ohio.edu> References: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> <20080725155448.6axci57xm8040w4s@mail.progw.org> <E83DDE3E-CE37-48B8-9D5B-24496B514F0D@ohio.edu> Message-ID: <17c28acc0807260943s130e743dhb54c14588a20a5fe@mail.gmail.com> The "PhPMyAdmin upload declares a max size of 51KB" sounds like a big problem. It also sounds like a misconfiguration on the server. Someone should check the phpmyadmin config.inc.php file for a possible misconfiguration. You might also be running up against limits in the /etc/php.ini file, but 51 kb would be a pretty severe upload limit. Even with normal limits of 2-8 mb you would have to split your script into 2-5 scripts to stay below the limit. Of course, you could try splitting it into 180 pieces for stay under 50Km, but that would be insane. The best way to do what you need is from the command line. * In phpmyadmin, drop and create (or empty) the database. Do not add any tables. * FTP the file to your home directory * run "mysql -u user -p dbname < dbname.sql" (you will be prompted for the password. * if you do not have privileges to run mysql form the command line, have your admin do it. If you are on a cPanel host, use the cPanel MySQL cp to do this. -- Cary Gordon The Cherry Hill Company http://chillco.com From edward.peters at uk.iofc.org Sat Jul 26 16:47:42 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Sat, 26 Jul 2008 17:47:42 +0100 Subject: [support] Simple Organic Groups question1 Message-ID: <00af01c8ef3f$5382d380$fa887a80$@peters@uk.iofc.org> I am going nuts trying to find out why I cannot see in the blocks list a block for group homepages. The OG manual speaks of: "A block is shown on the group home page that links to these group specific posts and actions. The block also provides summary information about the group." But I cannot find that block in the blocks list, or how to enable it. Can anyone help? I am assuming the path to the group homepage is simply the node id? Thanks in advance Edward Peters Oxford, UK www.iofc.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080726/4d45b42b/attachment.htm From neil at esl-lounge.com Sat Jul 26 16:52:15 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Sat, 26 Jul 2008 18:52:15 +0200 Subject: [support] Simple Organic Groups question1 References: <00af01c8ef3f$5382d380$fa887a80$@peters@uk.iofc.org> Message-ID: <009901c8ef3f$f65590c0$73e70a3e@Neil> I think the two main og blocks you're looking for are Group Notifications and Group Details. Neil ----- Original Message ----- From: Edward Peters To: support at drupal.org Sent: Saturday, July 26, 2008 6:47 PM Subject: [support] Simple Organic Groups question1 I am going nuts trying to find out why I cannot see in the blocks list a block for group homepages. The OG manual speaks of: "A block is shown on the group home page that links to these group specific posts and actions. The block also provides summary information about the group." But I cannot find that block in the blocks list, or how to enable it. Can anyone help? I am assuming the path to the group homepage is simply the node id? Thanks in advance Edward Peters Oxford, UK www.iofc.org ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080726/4b128ae5/attachment.htm From pubmb.bco at pt.lu Sat Jul 26 17:15:33 2008 From: pubmb.bco at pt.lu (Bruno Costacurta) Date: Sat, 26 Jul 2008 19:15:33 +0200 Subject: [support] Modules : best of ? Message-ID: <200807261915.33724.pubmb.bco@pt.lu> Hello, I'm getting completely lost between the thousends and thousends of modules as I'm trying to learn and use Drupal (I'm using v5-9)... Is there some list of recommended or best-of modules regarding generic usages of Drupal like ie. web site, blogs ..etc.. ? Many thanks for any link or recommandation. Bye, Bruno From hays at ohio.edu Sat Jul 26 17:58:56 2008 From: hays at ohio.edu (Steve Hays) Date: Sat, 26 Jul 2008 13:58:56 -0400 Subject: [support] Uploading and getting online In-Reply-To: <17c28acc0807260943s130e743dhb54c14588a20a5fe@mail.gmail.com> References: <9FEB5B8F-1E27-47A6-8ECA-4F2C720451B4@ohio.edu> <20080725155448.6axci57xm8040w4s@mail.progw.org> <E83DDE3E-CE37-48B8-9D5B-24496B514F0D@ohio.edu> <17c28acc0807260943s130e743dhb54c14588a20a5fe@mail.gmail.com> Message-ID: <EF17FA2C-31FA-456B-908B-2240981C5B98@ohio.edu> Cary, Your comments caused me to rethink the memory issue. First, I misprinted the max size, which was 51,000 KB (51 MB). then, the realization that my beginning site was over the normal size caused me to rethink why. I flushed the cache and ended up with 2MB, which loaded right up. I'm still not done with all my problems, but at least I'm making progress. Many thanks. Steve Hays Ohio University On Jul 26, 2008, at 12:43 PM, Cary Gordon wrote: > The "PhPMyAdmin upload declares a max size of 51KB" sounds like a big > problem. It also sounds like a misconfiguration on the server. Someone > should check the phpmyadmin config.inc.php file for a possible > misconfiguration. You might also be running up against limits in the > /etc/php.ini file, but 51 kb would be a pretty severe upload limit. > > Even with normal limits of 2-8 mb you would have to split your script > into 2-5 scripts to stay below the limit. Of course, you could try > splitting it into 180 pieces for stay under 50Km, but that would be > insane. > > The best way to do what you need is from the command line. > > * In phpmyadmin, drop and create (or empty) the database. Do not add > any tables. > * FTP the file to your home directory > * run "mysql -u user -p dbname < dbname.sql" (you will be prompted for > the password. > * if you do not have privileges to run mysql form the command line, > have your admin do it. > > If you are on a cPanel host, use the cPanel MySQL cp to do this. > > -- > Cary Gordon > The Cherry Hill Company > http://chillco.com > -- > [ Drupal support list | http://lists.drupal.org/ ] From rich at freestylesystems.co.uk Sat Jul 26 18:24:38 2008 From: rich at freestylesystems.co.uk (Richard Burford) Date: Sat, 26 Jul 2008 19:24:38 +0100 Subject: [support] Modules : best of ? In-Reply-To: <200807261915.33724.pubmb.bco@pt.lu> References: <200807261915.33724.pubmb.bco@pt.lu> Message-ID: <86171746-5DDE-4961-8EA0-5FF0A304012D@freestylesystems.co.uk> Have you seen drupalmodules.com? psynaptic http://freestylesystems.co.uk http://api.freestylesystems.co.uk On 26 Jul 2008, at 18:15, Bruno Costacurta wrote: > Hello, > > I'm getting completely lost between the thousends and thousends of > modules as > I'm trying to learn and use Drupal (I'm using v5-9)... > > Is there some list of recommended or best-of modules regarding > generic usages > of Drupal like ie. web site, blogs ..etc.. ? > > Many thanks for any link or recommandation. > > Bye, > Bruno > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2437 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080726/ddc9677a/attachment.bin From bill at funnymonkey.com Sat Jul 26 23:52:45 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Sat, 26 Jul 2008 16:52:45 -0700 Subject: [support] Modules : best of ? In-Reply-To: <86171746-5DDE-4961-8EA0-5FF0A304012D@freestylesystems.co.uk> References: <200807261915.33724.pubmb.bco@pt.lu> <86171746-5DDE-4961-8EA0-5FF0A304012D@freestylesystems.co.uk> Message-ID: <488BB8CD.70509@funnymonkey.com> Hello, all, In my experience, DrupalModules.com will be of limited use for this need -- However, the "related conversations" links currently visible on the modules pages on drupal.org provide a broader range of conversations from a wider swath of people, and I have found these to be far more valuable as an information resource. If you want to get started using Drupal, start by installing Drupal core, and enabling the core blog module. Create some blog posts. Then, create some pages. Then -- and this is the big leap -- install the Views module. Views has a steep learning curve, but is a great tool for learning Drupal, as it ties together the different pieces of Drupal's inner workings. Use views to start creating customized pages to display your posts. Lullabot has an excellent series of podcasts on using and customizing Drupal. The Drupal dojo (at groups.drupal.org/drupal-dojo ) is another excellent resource. And, as you are learning, ask questions -- ask them here, in the support forums, on groups.drupal.org -- And, google is your friend -- use "search string site:drupal.com" to search drupal.org -- Search strings matter -- often, when searching, you need to translate your need into "Drupalese" -- this handbook page gives an overview of Drupal terminology: http://drupal.org/node/937 Finally, two modules that extend the power of your Drupal install: Views (already mentioned, at http://drupal.org/project/views ) and CCK, at http://drupal.org/project/cck Anybody who has used Drupal has faced a daunting learning curve, and we have all been aided by the assistance of others -- as you learn, don't hesitate to ask questions; and as you ask, provide as much detail as possible, because the more detail you include, the more people will be able to pinpoint possible solutions. And then, 2 months from now, when you see someone else asking a question, you can help them out with a response :) Looking forward to seeing your questions on the list. Cheers, Bill Richard Burford wrote: > Have you seen drupalmodules.com? > > psynaptic > http://freestylesystems.co.uk > http://api.freestylesystems.co.uk > > On 26 Jul 2008, at 18:15, Bruno Costacurta wrote: > >> Hello, >> >> I'm getting completely lost between the thousends and thousends of >> modules as >> I'm trying to learn and use Drupal (I'm using v5-9)... >> >> Is there some list of recommended or best-of modules regarding >> generic usages >> of Drupal like ie. web site, blogs ..etc.. ? >> >> Many thanks for any link or recommandation. >> >> Bye, >> Bruno >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From edward.peters at uk.iofc.org Sun Jul 27 05:41:34 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Sun, 27 Jul 2008 06:41:34 +0100 Subject: [support] Simple Organic Groups question Message-ID: <009701c8efab$6f584100$4e08c300$@peters@uk.iofc.org> Thanks Neil for your reply. The point is that I cannot see these blocks listed in the blocks list. Does anyone know if there are compatibility issues which might prevent display of these blocks in the list when some other modules are enabled? I have not other OG modules enabled, but quite a lot of others. Edward Peters ------------- Message: 4 Date: Sat, 26 Jul 2008 18:52:15 +0200 I think the two main og blocks you're looking for are Group Notifications and Group Details. Neil ----- Original Message ----- From: Edward Peters Sent: Saturday, July 26, 2008 6:47 PM Subject: [support] Simple Organic Groups question1 I am going nuts trying to find out why I cannot see in the blocks list a block for group homepages. The OG manual speaks of: "A block is shown on the group home page that links to these group specific posts and actions. The block also provides summary information about the group." But I cannot find that block in the blocks list, or how to enable it. Can anyone help? I am assuming the path to the group homepage is simply the node id? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080727/5a4ce2c0/attachment.htm From simone.dalmaso at juvox.it Sun Jul 27 16:28:39 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Sun, 27 Jul 2008 18:28:39 +0200 Subject: [support] drupal6, node and files Message-ID: <021401c8f005$d40e7880$0501a8c0@xkljiwn14xc> Hi, just a question because for me it is of great importance. is it true that, in d6, a file can be associated to multiple nodes? I'm using d5 and disknode because it was not possible to associated a file to 3 4 nodes, but I read this in a readme of a module. can you explain me hot does it work? thanks! -- Simone Dal Maso. Homepage di sviluppo comunita' NVDA: http://www.nvda.it homepage gruppo musicale non piu' aggiornata ma simpatica: http://www.juvox.it From z.stolar at gmail.com Sun Jul 27 16:35:15 2008 From: z.stolar at gmail.com (=?UTF-8?B?15bXlNeoINeh15jXldec16ggLSDXnNeZ16DXldeV15nXmdeY?=) Date: Sun, 27 Jul 2008 19:35:15 +0300 Subject: [support] drupal6, node and files In-Reply-To: <021401c8f005$d40e7880$0501a8c0@xkljiwn14xc> References: <021401c8f005$d40e7880$0501a8c0@xkljiwn14xc> Message-ID: <488CA3C3.4030505@linnovate.net> AFAIK , files in D6 are primarily associated with users, not nodes. The association to nodes is done through the use of a second table in DB, where you may have a fid-nid relation. Since this is the case, I guess it's possible to associate a file with more than one node. Simone Dal Maso wrote: > Hi, > just a question because for me it is of great importance. > is it true that, in d6, a file can be associated to multiple nodes? > I'm using d5 and disknode because it was not possible to associated a file > to 3 4 nodes, but I read this in a readme of a module. > can you explain me hot does it work? > thanks! > -- > Simone Dal Maso. > > Homepage di sviluppo comunita' NVDA: > http://www.nvda.it > homepage gruppo musicale non piu' aggiornata ma simpatica: > http://www.juvox.it > > From bharanikumariyerphp at gmail.com Sun Jul 27 16:56:31 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 27 Jul 2008 22:26:31 +0530 Subject: [support] which function highlight the event date in event calendar Message-ID: <2240033d0807270956o3816f13cja9f774ec0eb9d069@mail.gmail.com> Hi Experts In drupal event calendar, Which function highlight the event date, Thanks Bharani -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080727/52a8978c/attachment.htm From Smither at C-C-I.com Sun Jul 27 18:31:42 2008 From: Smither at C-C-I.com (Bob Smither) Date: Sun, 27 Jul 2008 13:31:42 -0500 Subject: [support] Connecting to external databases In-Reply-To: <2240033d0807270956o3816f13cja9f774ec0eb9d069@mail.gmail.com> References: <2240033d0807270956o3816f13cja9f774ec0eb9d069@mail.gmail.com> Message-ID: <1217183502.14011.4.camel@k6-2.c-c-i.com> Dear List, I am using D5 and want to display records from an external (to Drupal, i.e. not the database that stores the Drupal information) data table. Can someone point me to how to do this? What modules might be handy? I know a little about CCK but don't see how to connect the fields created there with another data table. Many thanks! -- Bob Smither <Smither at C-C-I.com> From mail at webthatworks.it Sun Jul 27 23:06:22 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Mon, 28 Jul 2008 01:06:22 +0200 Subject: [support] Connecting to external databases In-Reply-To: <1217183502.14011.4.camel@k6-2.c-c-i.com> References: <2240033d0807270956o3816f13cja9f774ec0eb9d069@mail.gmail.com> <1217183502.14011.4.camel@k6-2.c-c-i.com> Message-ID: <20080728010622.4b652c12@dawn.webthatworks.it> On Sun, 27 Jul 2008 13:31:42 -0500 Bob Smither <Smither at C-C-I.com> wrote: > Dear List, > > I am using D5 and want to display records from an external (to > Drupal, i.e. not the database that stores the Drupal information) > data table. Can someone point me to how to do this? What modules > might be handy? I know a little about CCK but don't see how to > connect the fields created there with another data table. http://api.drupal.org/api/function/db_set_active/5 http://drupal.org/node/30442 -- Ivan Sergio Borgonovo http://www.webthatworks.it From pubmb.bco at pt.lu Mon Jul 28 04:36:59 2008 From: pubmb.bco at pt.lu (Bruno Costacurta) Date: Mon, 28 Jul 2008 06:36:59 +0200 Subject: [support] Modules : best of ? In-Reply-To: <488BB8CD.70509@funnymonkey.com> References: <200807261915.33724.pubmb.bco@pt.lu> <86171746-5DDE-4961-8EA0-5FF0A304012D@freestylesystems.co.uk> <488BB8CD.70509@funnymonkey.com> Message-ID: <200807280636.59300.pubmb.bco@pt.lu> On Sunday 27 July 2008 01:52:45 Bill Fitzgerald wrote: > Hello, all, > > In my experience, DrupalModules.com will be of limited use for this need > -- However, the "related conversations" links currently visible on the > modules pages on drupal.org provide a broader range of conversations > from a wider swath of people, and I have found these to be far more > valuable as an information resource. > > If you want to get started using Drupal, start by installing Drupal > core, and enabling the core blog module. Create some blog posts. Then, > create some pages. > > Then -- and this is the big leap -- install the Views module. Views has > a steep learning curve, but is a great tool for learning Drupal, as it > ties together the different pieces of Drupal's inner workings. Use views > to start creating customized pages to display your posts. > > Lullabot has an excellent series of podcasts on using and customizing > Drupal. The Drupal dojo (at groups.drupal.org/drupal-dojo ) is another > excellent resource. > > And, as you are learning, ask questions -- ask them here, in the support > forums, on groups.drupal.org -- > > And, google is your friend -- use "search string site:drupal.com" to > search drupal.org -- > > Search strings matter -- often, when searching, you need to translate > your need into "Drupalese" -- this handbook page gives an overview of > Drupal terminology: http://drupal.org/node/937 > > Finally, two modules that extend the power of your Drupal install: Views > (already mentioned, at http://drupal.org/project/views ) and CCK, at > http://drupal.org/project/cck > > Anybody who has used Drupal has faced a daunting learning curve, and we > have all been aided by the assistance of others -- as you learn, don't > hesitate to ask questions; and as you ask, provide as much detail as > possible, because the more detail you include, the more people will be > able to pinpoint possible solutions. > > And then, 2 months from now, when you see someone else asking a > question, you can help them out with a response :) > > Looking forward to seeing your questions on the list. > > Cheers, > > Bill > > Richard Burford wrote: > > Have you seen drupalmodules.com? > > > > psynaptic > > http://freestylesystems.co.uk > > http://api.freestylesystems.co.uk > > > > On 26 Jul 2008, at 18:15, Bruno Costacurta wrote: > >> Hello, > >> > >> I'm getting completely lost between the thousends and thousends of > >> modules as > >> I'm trying to learn and use Drupal (I'm using v5-9)... > >> > >> Is there some list of recommended or best-of modules regarding > >> generic usages > >> of Drupal like ie. web site, blogs ..etc.. ? > >> > >> Many thanks for any link or recommandation. > >> > >> Bye, > >> Bruno > >> > >> -- > >> [ Drupal support list | http://lists.drupal.org/ ] > > -- > > Bill Fitzgerald > http://funnymonkey.com > FunnyMonkey -- Tools for Teachers > ph. 503 897 7160 Thanks for these useful links. It helps. From there, I'll be back (probably shortly) in this mailing list with other questions related to my learning curve ... :-) Bye, Bruno From bharanikumariyerphp at gmail.com Mon Jul 28 06:48:10 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 28 Jul 2008 12:18:10 +0530 Subject: [support] mini caledar not problem Message-ID: <2240033d0807272348w22ec49e3g817da1c47c989817@mail.gmail.com> Hi Am displaying the calendar in my home page, The presently display fine, When navigate to NEXT or BACK months, The mini calendar not display, But this problem raising in my custom theme only, But in the drupal theme(garland) display fine, Tell me how is fix this problem, here i have attached the image thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/a865d5c1/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: current_month_july.JPG Type: image/jpeg Size: 36373 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080728/a865d5c1/attachment-0002.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: event_next_month.JPG Type: image/jpeg Size: 52411 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080728/a865d5c1/attachment-0003.jpeg From net at twoedged.org Mon Jul 28 08:03:41 2008 From: net at twoedged.org (John Fletcher) Date: Mon, 28 Jul 2008 10:03:41 +0200 Subject: [support] Remove inline class from node links In-Reply-To: <e79091920807112321k62e8d1c9jeb971b5c3bae378f@mail.gmail.com> References: <005f01c8e31e$ae205e20$0a611a60$@org> <8e783a900807110832w566a17cfg559a7b586987c46f@mail.gmail.com> <001101c8e3c2$728a0e70$579e2b50$@org> <e79091920807112321k62e8d1c9jeb971b5c3bae378f@mail.gmail.com> Message-ID: <001901c8f088$7455aed0$5d010c70$@org> Thanks a lot Dale, I'm using D6 but with a little modification this worked perfectly. This is exactly what I was looking for - the sort of "clean way" to do it. Regards, John -----Original Message----- From: Dale McGladdery Sent: Saturday, 12 July 2008 8:22 AM To: support at drupal.org Subject: Re: [support] Remove inline class from node links [snip] > However that seems a little bit "hacky". Is there not a "better way" - > removing the class from the <ul>? When I asked where the "inline" class > comes from I meant: which piece of code adds the "inline" class so that it > prints <ul class="links inline"> instead of <ul class="links">? I know > theme_links does this but it just prints the arguments that it is given... > how does it get those arguments...? If I'm following you correctly, and I'm not sure I am, you're wanting to know where the value of the $links variable is assigned for node templates. If I'm wrong, ignore the rest of this! :-) In Drupal 5 the $links variable is assigned a value in phptemplate.engine (/themes/engines/phptemplate/phptemplate.engine), in the phptemplate_node function: $variables = array( [snip] 'links' => $node->links ? theme('links', $node->links, array('class' => 'links inline')) : '', [snip] ); You can override this value for all template files in the _phptemplate_variables function of your theme's template.php file with something like (I haven't tested this): function _phptemplate_variables($hook, $vars = array()) { switch ($hook) { case 'node': $vars['links'] = $vars['node']->links ? theme('links', $vars['node']->links, array('class' => 'links')) : '' break; } return $vars; } Some additional info: http://drupal.org/node/16383 http://www.group42.ca/take_control_your_phptemplate_variables From florent.jousseaume at makina-corpus.com Mon Jul 28 09:10:47 2008 From: florent.jousseaume at makina-corpus.com (Florent JOUSSEAUME) Date: Mon, 28 Jul 2008 11:10:47 +0200 Subject: [support] need to check publication status in block code I use In-Reply-To: <003601c8ef11$76837bb0$73e70a3e@Neil> References: <003601c8ef11$76837bb0$73e70a3e@Neil> Message-ID: <488D8D17.8090003@makina-corpus.com> Hello, I think the better soluce is to add the status condition in the SQL statement. In your request, you don't get the status value for each node. Getting the filtered value since the DB is the simplest soluce. $sql = "SELECT n.title, n.nid FROM {node} n INNER JOIN {term_node} tn ON n.nid = tn.nid WHERE tn.tid = $term->tid AND n.nid != $nid AND n.status = 1 ORDER BY RAND() LIMIT 3"; Florent, Neil: esl-lounge.com a ?crit : > I would really appreciate someone helping me with just a tiny bit of > SQL code for some block code I got off d.o > > here is the code: > > <!-- 4 returned for each term, ordered by nid descending, meaning new > will always be at top --> > <?php > if (arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2))) { > $nid = (int)arg(1); > $terms = taxonomy_node_get_terms($nid); > $output = "<span class='whole-list'>"; > foreach($terms as $term){ > $sql = "SELECT n.title, n.nid FROM {node} n INNER JOIN {term_node} > tn ON n.nid = tn.nid WHERE tn.tid = $term->tid AND n.nid != $nid ORDER > BY RAND() LIMIT 3"; > $result = db_query(db_rewrite_sql($sql)); > if (db_num_rows($result)) { > $output .="<h5 > style='color:#900;font-weight:bold;margin-top:3px;'>$term->name</h5><ol > class='each-term'>"; > while ($anode = db_fetch_object($result)) { > $output .= "<li>".l($anode->title, "node/$anode->nid")."</li>"; > } > $output.="</ol>"; > } > } > $output .= "</div>"; > return $output; > } > ?> > it shows other nodes with the same taxonomy terms and I use it for a > lot of Related Blog Posts, Related Forum Posts, type blocks. But it > doesn't check for publication status so I need to add "where status = > 1" at some part of the code. But where? Would I therefore also need to > add n.status in the SELECT part of the query? > > any help much appreciated...these blocks are an important part of my > site but I'm getting nodes in moderation going into them too. > > Thanks > > Neil From florent.jousseaume at makina-corpus.com Mon Jul 28 09:15:32 2008 From: florent.jousseaume at makina-corpus.com (Florent JOUSSEAUME) Date: Mon, 28 Jul 2008 11:15:32 +0200 Subject: [support] mini caledar not problem In-Reply-To: <2240033d0807272348w22ec49e3g817da1c47c989817@mail.gmail.com> References: <2240033d0807272348w22ec49e3g817da1c47c989817@mail.gmail.com> Message-ID: <488D8E34.1040101@makina-corpus.com> Hi, Did you check if the mini-calendar is enabled for your theme in the block page settings ? Florent, bharani kumar a ?crit : > Hi > > Am displaying the calendar in my home page, > > The presently display fine, > > When navigate to NEXT or BACK months, > > The mini calendar not display, > > But this problem raising in my custom theme only, > > But in the drupal theme(garland) display fine, > > Tell me how is fix this problem, > > here i have attached the image > > thanks > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > From bharanikumariyerphp at gmail.com Mon Jul 28 09:20:05 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 28 Jul 2008 14:50:05 +0530 Subject: [support] mini caledar not problem In-Reply-To: <488D8E34.1040101@makina-corpus.com> References: <2240033d0807272348w22ec49e3g817da1c47c989817@mail.gmail.com> <488D8E34.1040101@makina-corpus.com> Message-ID: <2240033d0807280220w48092e6fke3b094a32b7231c5@mail.gmail.com> yes, thank you, 60%problem solved, the event date is highlight, if i click the date, that respective event details mst display in that page itself On Mon, Jul 28, 2008 at 2:45 PM, Florent JOUSSEAUME < florent.jousseaume at makina-corpus.com> wrote: > Hi, > > Did you check if the mini-calendar is enabled for your theme in the > block page settings ? > > Florent, > > bharani kumar a ?crit : > > Hi > > > > Am displaying the calendar in my home page, > > > > The presently display fine, > > > > When navigate to NEXT or BACK months, > > > > The mini calendar not display, > > > > But this problem raising in my custom theme only, > > > > But in the drupal theme(garland) display fine, > > > > Tell me how is fix this problem, > > > > here i have attached the image > > > > thanks > > > > > > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------ > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/fcdefdb1/attachment.htm From mail at webthatworks.it Mon Jul 28 10:17:32 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Mon, 28 Jul 2008 12:17:32 +0200 Subject: [support] tutorial on dynamically generating menu in D5 Message-ID: <20080728121732.233abff5@dawn.webthatworks.it> I've to dynamically generate the menu and I've the feeling that just adding items in menu_hook and trial&error won't take me far reasonably efficiently. eg. I'm interested in obtaining effects similar to "Login" turning into "My account" even for menu created from the admin interface. I'm reading drupal source but I'd hope there is a faster way to get the rough picture and some examples. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it From bharanikumariyerphp at gmail.com Mon Jul 28 10:20:21 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 28 Jul 2008 15:50:21 +0530 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <20080728121732.233abff5@dawn.webthatworks.it> References: <20080728121732.233abff5@dawn.webthatworks.it> Message-ID: <2240033d0807280320w71c72764s9b8ea7d6d90e45f5@mail.gmail.com> what u want here,... On Mon, Jul 28, 2008 at 3:47 PM, Ivan Sergio Borgonovo <mail at webthatworks.it > wrote: > I've to dynamically generate the menu and I've the feeling that just > adding items in menu_hook and trial&error won't take me far > reasonably efficiently. > > eg. I'm interested in obtaining effects similar to "Login" turning > into "My account" even for menu created from the admin interface. > > I'm reading drupal source but I'd hope there is a faster way to get > the rough picture and some examples. > > thanks > > -- > Ivan Sergio Borgonovo > http://www.webthatworks.it > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/10b6cd0e/attachment.htm From bharanikumariyerphp at gmail.com Mon Jul 28 13:55:49 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 28 Jul 2008 19:25:49 +0530 Subject: [support] global variable Message-ID: <2240033d0807280655t6ea2ebfh5b9c84c6f4753987@mail.gmail.com> Hi I declared the variable , global $CAL_Month, in event.module I call this variable in my custom module, But the values not coming into my custom module, Any great idea -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/aac02656/attachment.htm From idan at arbel-designs.com Mon Jul 28 13:28:38 2008 From: idan at arbel-designs.com (Idan Arbel) Date: Mon, 28 Jul 2008 16:28:38 +0300 Subject: [support] Changing theme based on language Message-ID: <20080728140408.A0267A42D0@hemlock.osuosl.org> Hello, I'm looking for a way to change the website theme based on the language of the site. I'm creating a mulitlanguage site and each language has it's own theme. Thanks Idan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/da5b8db3/attachment-0001.htm From pierre.rineau at makina-corpus.com Mon Jul 28 07:25:45 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Mon, 28 Jul 2008 09:25:45 +0200 Subject: [support] Simple Organic Groups question In-Reply-To: <009701c8efab$6f584100$4e08c300$@peters@uk.iofc.org> References: <009701c8efab$6f584100$4e08c300$@peters@uk.iofc.org> Message-ID: <1217229945.9694.0.camel@localhost> They are not enabled by default. See admin/build/block to put them in the region you want. On dim, 2008-07-27 at 06:41 +0100, Edward Peters wrote: > Thanks Neil for your reply. The point is that I cannot see these > blocks listed in the blocks list. Does anyone know if there are > compatibility issues which might prevent display of these blocks in > the list when some other modules are enabled? I have not other OG > modules enabled, but quite a lot of others. > > > > Edward Peters > > > > ------------- > > > > Message: 4 > > Date: Sat, 26 Jul 2008 18:52:15 +0200 > > > > I think the two main og blocks you're looking for are Group > Notifications and Group Details. > > > > Neil > > ----- Original Message ----- > > From: Edward Peters > > Sent: Saturday, July 26, 2008 6:47 PM > > Subject: [support] Simple Organic Groups question1 > > > > I am going nuts trying to find out why I cannot see in the blocks > list a block for group homepages. The OG manual speaks of: "A block is > shown on the group home page that links to these group specific posts > and actions. The block also provides summary information about the > group." But I cannot find that block in the blocks list, or how to > enable it. Can anyone help? I am assuming the path to the group > homepage is simply the node id? > > > -- > [ Drupal support list | http://lists.drupal.org/ ] From florent.jousseaume at makina-corpus.com Mon Jul 28 14:07:50 2008 From: florent.jousseaume at makina-corpus.com (Florent JOUSSEAUME) Date: Mon, 28 Jul 2008 16:07:50 +0200 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <20080728121732.233abff5@dawn.webthatworks.it> References: <20080728121732.233abff5@dawn.webthatworks.it> Message-ID: <488DD2B6.3090004@makina-corpus.com> For your example, this is not a switch, but 2 modules with differents ACL. The block 'login' is displayed for 'Anonymous' and the menu is displayed for 'Authenticated user' (block Navigation). For the element's visibility in the menu, this is with the user_access method defined in the function 'hook_menu' for each module. Florent JOUSSEAUME, Ivan Sergio Borgonovo a ?crit : > I've to dynamically generate the menu and I've the feeling that just > adding items in menu_hook and trial&error won't take me far > reasonably efficiently. > > eg. I'm interested in obtaining effects similar to "Login" turning > into "My account" even for menu created from the admin interface. > > I'm reading drupal source but I'd hope there is a faster way to get > the rough picture and some examples. > > thanks > > From metzlerd at evergreen.edu Mon Jul 28 14:44:52 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Mon, 28 Jul 2008 07:44:52 -0700 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <488DD2B6.3090004@makina-corpus.com> References: <20080728121732.233abff5@dawn.webthatworks.it> <488DD2B6.3090004@makina-corpus.com> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B29@birch.evergreen.edu> This is one way, (and in fact the only way in D6). It's important to understand in D5 and before that the truly dynamic menus must be in the if (!$may_cache) section of hook menu. In D5 this is possible: function mymodule_menu($may_cache) { if ($may_cache ) { $items[] = array(....... Normal static menus go here } else { if (some conditional logic here) { $items[] = array (.... } $items = array( path => path_generated_by_func ) } } But it isn't possible in drupal 6, so not really advised. In d6: function (mymodule_menu) { $menu['path/to/menu'] = array( ..... Other menu items ommited for clarity. 'access callback' => 'mymodule_function', 'access arguments' => array( 'myarg1') ) } function (mymodule_menu) { .... Function that returns false or tru based on whether the menu should show up .... } -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Florent JOUSSEAUME Sent: Monday, July 28, 2008 7:08 AM To: support at drupal.org Subject: Re: [support] tutorial on dynamically generating menu in D5 For your example, this is not a switch, but 2 modules with differents ACL. The block 'login' is displayed for 'Anonymous' and the menu is displayed for 'Authenticated user' (block Navigation). For the element's visibility in the menu, this is with the user_access method defined in the function 'hook_menu' for each module. Florent JOUSSEAUME, Ivan Sergio Borgonovo a ?crit : > I've to dynamically generate the menu and I've the feeling that just > adding items in menu_hook and trial&error won't take me far reasonably > efficiently. > > eg. I'm interested in obtaining effects similar to "Login" turning > into "My account" even for menu created from the admin interface. > > I'm reading drupal source but I'd hope there is a faster way to get > the rough picture and some examples. > > thanks > > -- [ Drupal support list | http://lists.drupal.org/ ] From pdow at dowsoftware.com Mon Jul 28 15:01:38 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Mon, 28 Jul 2008 08:01:38 -0700 Subject: [support] Drupal 5.8 pictures not showing Message-ID: <488DDF52.70004@dowsoftware.com> I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5, Drupal 5.7. Using the Garland them, I configured it to show user pictures in posts and comments. I uploaded a couple of pictures for a couple of user profiles, and all that shows on the blog is a link with the text "userid's picture". Nothing in the user's configuration page shows which picture is associated with that user. The picture is in the files/pictures directory and is named picture-1.jpg, but there is nothing in the drupal5 database "files" table. However, the users table shows the correct path for each picture assigned to a user. What's going on? ** *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / p.s. I've manged to get Clean URLs configured, but IE is still gives "Access Denied" message when trying to login. From pierre.rineau at makina-corpus.com Mon Jul 28 15:17:22 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Mon, 28 Jul 2008 17:17:22 +0200 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <488DDF52.70004@dowsoftware.com> References: <488DDF52.70004@dowsoftware.com> Message-ID: <1217258242.9694.12.camel@localhost> Use an extension like firebug (or introspect your rendered page source) to check the path is set. If your image is present in the web page source, but does not display, check your file is present; if yes, then check path is correct in web page; if yes check your files rights on your file system, maybe your files does not have the read permission for your apache user. If it does not works, check your templates files, if the picture is there, if yes, then check you did not override the theme_* function that display the picture. If always not working, update core and modules and pray. On lun, 2008-07-28 at 08:01 -0700, Peter Dow (DSS) wrote: > I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5, Drupal 5.7. > > Using the Garland them, I configured it to show user pictures in posts > and comments. I uploaded a couple of pictures for a couple of user > profiles, and all that shows on the blog is a link with the text > "userid's picture". Nothing in the user's configuration page shows > which picture is associated with that user. > > The picture is in the files/pictures directory and is named > picture-1.jpg, but there is nothing in the drupal5 database "files" > table. However, the users table shows the correct path for each picture > assigned to a user. > > What's going on? > > ** *Peter Dow* / > Dow Software Services, Inc. > 909 793-9050 > pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / > > p.s. I've manged to get Clean URLs configured, but IE is still gives > "Access Denied" message when trying to login. > From killshot91 at comcast.net Mon Jul 28 15:37:20 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 28 Jul 2008 08:37:20 -0700 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <1217258242.9694.12.camel@localhost> References: <488DDF52.70004@dowsoftware.com> <1217258242.9694.12.camel@localhost> Message-ID: <488DE7B0.9040007@comcast.net> When I've had this problem, it's been the Input format. Filtered HTML doesn't allow <img> tags, but Full HTML does. Steve Pierre Rineau wrote: > Use an extension like firebug (or introspect your rendered page source) > to check the path is set. > > If your image is present in the web page source, but does not display, > check your file is present; if yes, then check path is correct in web > page; if yes check your files rights on your file system, maybe your > files does not have the read permission for your apache user. > > If it does not works, check your templates files, if the picture is > there, if yes, then check you did not override the theme_* function that > display the picture. > > If always not working, update core and modules and pray. > > On lun, 2008-07-28 at 08:01 -0700, Peter Dow (DSS) wrote: > >> I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5, Drupal 5.7. >> >> Using the Garland them, I configured it to show user pictures in posts >> and comments. I uploaded a couple of pictures for a couple of user >> profiles, and all that shows on the blog is a link with the text >> "userid's picture". Nothing in the user's configuration page shows >> which picture is associated with that user. >> >> The picture is in the files/pictures directory and is named >> picture-1.jpg, but there is nothing in the drupal5 database "files" >> table. However, the users table shows the correct path for each picture >> assigned to a user. >> >> What's going on? >> >> ** *Peter Dow* / >> Dow Software Services, Inc. >> 909 793-9050 >> pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / >> >> p.s. I've manged to get Clean URLs configured, but IE is still gives >> "Access Denied" message when trying to login. >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080728/f9656ebf/attachment.htm From pdow at dowsoftware.com Mon Jul 28 15:43:38 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Mon, 28 Jul 2008 08:43:38 -0700 Subject: [support] Xubuntu update manager error when updating Drupal 5.7 Message-ID: <488DE92A.9090709@dowsoftware.com> Had a bunch of updates to apply, and among them was one for drupal: Setting up drupal5 (5.7-lubuntul) ... dbconfig-common: writing config to /etc/dbconfig-common/drupal5.conf Replacing config file /etc/drupal/5/sites/default/dbconfig.php with new version dbconfig-common: flushing administrative password ln: creating symbolic link '/etc/apache/conf.d/drupal.conf': File exists dpkg: error processing drupal5 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: drupal5 Judging by the date modified on /etc/dbconfig-common/drupal5.conf (07/01/2008), writing to this file failed. /etc/drupal/5/sites/default/dbconfig.php did get replaced. etc/apache/conf.d/drupal.conf shows as a broken link. How do I fix this? *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / From mail at webthatworks.it Mon Jul 28 15:42:38 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Mon, 28 Jul 2008 17:42:38 +0200 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <488DD2B6.3090004@makina-corpus.com> References: <20080728121732.233abff5@dawn.webthatworks.it> <488DD2B6.3090004@makina-corpus.com> Message-ID: <20080728174238.1c07214f@dawn.webthatworks.it> On Mon, 28 Jul 2008 16:07:50 +0200 Florent JOUSSEAUME <florent.jousseaume at makina-corpus.com> wrote: > For your example, this is not a switch, but 2 modules with > differents ACL. The block 'login' is displayed for 'Anonymous' and > the menu is displayed for 'Authenticated user' (block Navigation). > > For the element's visibility in the menu, this is with the > user_access method defined in the function 'hook_menu' for each > module. It looks a bit hakish. And I still can't get it completely. 1) path user points to user_login if(uid) otherwise it should point to something else... but what is the alternative? In user_menu all paths are user/[something else] or admin/user/... I can't understand why once the user is logged in and the path user/[uid] becomes available the path /user reaches user_view 2) I can't yet understand the magic that make -My account appear in the Menu admin pages as locked. I still haven't had the time to read the code. 3) I miss how I can *render* menu with the admin interface and/or in modules. I'd expect that if I build up a $items hierarchy I could build up a menu from the "admin" interface adding a path and the menu system will take care of rendering children once I eg. put the menu in a block. What if I'd like to render the menu inside my code? I think I should use menu_tree... but well I bet there are a lot of tricks I could learn without guessing them from the API. 4) I haven't seen any tutorial, handbook... on any of the menu_ family of function. There is nothing on "Pro Drupal development" book. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it From metzlerd at evergreen.edu Mon Jul 28 17:16:37 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Mon, 28 Jul 2008 10:16:37 -0700 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <20080728174238.1c07214f@dawn.webthatworks.it> References: <488DD2B6.3090004@makina-corpus.com> <20080728174238.1c07214f@dawn.webthatworks.it> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> The reason that these menus is because a.) they appear in the if (!$may_cache) section of the hook_menu and b.) thay are wrapped in an if ($user !== FALSE) condition. Note that there is also a separate /user path registered in the if ($may_cache) section of the hook_menu. This is the "default" path for /user and what shows up in the admin/menu screen. You may be grappling with one of the core troubles with Drupal 5. Only menus that are in the if ($may_cache) section of the module may be moved around with the admin/menu user interface. If it's a dynamic menu, you just don't see it there. So if you make a dynamic menu item, you can't turn around and move it into a block. Although you may be able to move a the static parent menu item (defined in the if ($may_cache) section of the menu into a separate menu and menu block. This took me a little time to grok. Finally you can't have the code define a new menu, but only create a menu tree section in code and then move it later using the admin menu interface. Is that clearing any of this up for you? Here's the relavent chunk of user_menu code for understanding. if ($may_cache) { $items[] = array('path' => 'user', 'title' => t('User account'), 'callback' => 'drupal_get_form', 'callback arguments' => array('user_login'), 'access' => !$user->uid, 'type' => MENU_CALLBACK); $items[] = array('path' => 'user/autocomplete', 'title' => t('User autocomplete'), 'callback' => 'user_autocomplete', 'access' => $view_access, 'type' => MENU_CALLBACK); ... Bunch of code ommitted.... } else { ... Some code ommitted. if ($user !== FALSE) { // Always let a user view their own account $view_access |= $user->uid == arg(1); // Only admins can view blocked accounts $view_access &= $account->status || $admin_access; $items[] = array('path' => 'user/'. arg(1), 'title' => t('User'), 'type' => MENU_CALLBACK, 'callback' => 'user_view', 'callback arguments' => array(arg(1)), 'access' => $view_access); $items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => t('View'), 'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => t('Edit'), 'callback' => 'drupal_get_form', 'callback arguments' => array('user_edit'), 'access' => $admin_access || $user->uid == arg(1), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'user/'. arg(1) .'/delete', 'title' => t('Delete'), 'callback' => 'user_edit', 'access' => $admin_access, 'type' => MENU_CALLBACK); if (arg(2) == 'edit') { if (($categories = _user_categories($account)) && (count($categories) > 1)) { foreach ($categories as $key => $category) { $items[] = array( 'path' => 'user/'. arg(1) .'/edit/'. $category['name'], 'title' => $category['title'], 'type' => $category['name'] == 'account' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK, 'weight' => $category['weight'], 'access' => ($admin_access || $user->uid == arg(1))); } } } } } -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Ivan Sergio Borgonovo Sent: Monday, July 28, 2008 8:43 AM To: support at drupal.org Subject: Re: [support] tutorial on dynamically generating menu in D5 On Mon, 28 Jul 2008 16:07:50 +0200 Florent JOUSSEAUME <florent.jousseaume at makina-corpus.com> wrote: > For your example, this is not a switch, but 2 modules with differents > ACL. The block 'login' is displayed for 'Anonymous' and the menu is > displayed for 'Authenticated user' (block Navigation). > > For the element's visibility in the menu, this is with the user_access > method defined in the function 'hook_menu' for each module. It looks a bit hakish. And I still can't get it completely. 1) path user points to user_login if(uid) otherwise it should point to something else... but what is the alternative? In user_menu all paths are user/[something else] or admin/user/... I can't understand why once the user is logged in and the path user/[uid] becomes available the path /user reaches user_view 2) I can't yet understand the magic that make -My account appear in the Menu admin pages as locked. I still haven't had the time to read the code. 3) I miss how I can *render* menu with the admin interface and/or in modules. I'd expect that if I build up a $items hierarchy I could build up a menu from the "admin" interface adding a path and the menu system will take care of rendering children once I eg. put the menu in a block. What if I'd like to render the menu inside my code? I think I should use menu_tree... but well I bet there are a lot of tricks I could learn without guessing them from the API. 4) I haven't seen any tutorial, handbook... on any of the menu_ family of function. There is nothing on "Pro Drupal development" book. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it -- [ Drupal support list | http://lists.drupal.org/ ] From bharanikumariyerphp at gmail.com Mon Jul 28 20:17:43 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 29 Jul 2008 01:47:43 +0530 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> References: <488DD2B6.3090004@makina-corpus.com> <20080728174238.1c07214f@dawn.webthatworks.it> <384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> Message-ID: <2240033d0807281317j6e24155bh1284913863c30f24@mail.gmail.com> I thing This code enough for u, Just copy this module into your site/module.... On Mon, Jul 28, 2008 at 10:46 PM, Metzler, David <metzlerd at evergreen.edu>wrote: > The reason that these menus is because a.) they appear in the if > (!$may_cache) section of the hook_menu and b.) thay are wrapped in an if > ($user !== FALSE) condition. > > Note that there is also a separate /user path registered in the if > ($may_cache) section of the hook_menu. This is the "default" path for > /user and what shows up in the admin/menu screen. > > You may be grappling with one of the core troubles with Drupal 5. Only > menus that are in the if ($may_cache) section of the module may be moved > around with the admin/menu user interface. If it's a dynamic menu, you > just don't see it there. So if you make a dynamic menu item, you can't > turn around and move it into a block. Although you may be able to move > a the static parent menu item (defined in the if ($may_cache) section of > the menu into a separate menu and menu block. This took me a little time > to grok. > > Finally you can't have the code define a new menu, but only create a > menu tree section in code and then move it later using the admin menu > interface. > > Is that clearing any of this up for you? > > > Here's the relavent chunk of user_menu code for understanding. > if ($may_cache) { > $items[] = array('path' => 'user', 'title' => t('User account'), > 'callback' => 'drupal_get_form', 'callback arguments' => > array('user_login'), > 'access' => !$user->uid, 'type' => MENU_CALLBACK); > > $items[] = array('path' => 'user/autocomplete', 'title' => t('User > autocomplete'), > 'callback' => 'user_autocomplete', 'access' => $view_access, > 'type' => MENU_CALLBACK); > ... Bunch of code ommitted.... > > } else { > ... Some code ommitted. > if ($user !== FALSE) { > // Always let a user view their own account > $view_access |= $user->uid == arg(1); > // Only admins can view blocked accounts > $view_access &= $account->status || $admin_access; > > $items[] = array('path' => 'user/'. arg(1), 'title' => > t('User'), > 'type' => MENU_CALLBACK, 'callback' => 'user_view', > 'callback arguments' => array(arg(1)), 'access' => > $view_access); > > $items[] = array('path' => 'user/'. arg(1) .'/view', 'title' => > t('View'), > 'access' => $view_access, 'type' => MENU_DEFAULT_LOCAL_TASK, > 'weight' => -10); > > $items[] = array('path' => 'user/'. arg(1) .'/edit', 'title' => > t('Edit'), > 'callback' => 'drupal_get_form', 'callback arguments' => > array('user_edit'), > 'access' => $admin_access || $user->uid == arg(1), 'type' => > MENU_LOCAL_TASK); > $items[] = array('path' => 'user/'. arg(1) .'/delete', 'title' > => t('Delete'), > 'callback' => 'user_edit', 'access' => $admin_access, > 'type' => MENU_CALLBACK); > > if (arg(2) == 'edit') { > if (($categories = _user_categories($account)) && > (count($categories) > 1)) { > foreach ($categories as $key => $category) { > $items[] = array( > 'path' => 'user/'. arg(1) .'/edit/'. $category['name'], > 'title' => $category['title'], > 'type' => $category['name'] == 'account' ? > MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK, > 'weight' => $category['weight'], > 'access' => ($admin_access || $user->uid == arg(1))); > } > } > } > } > } > -----Original Message----- > From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On > Behalf Of Ivan Sergio Borgonovo > Sent: Monday, July 28, 2008 8:43 AM > To: support at drupal.org > Subject: Re: [support] tutorial on dynamically generating menu in D5 > > On Mon, 28 Jul 2008 16:07:50 +0200 > Florent JOUSSEAUME <florent.jousseaume at makina-corpus.com> wrote: > > > For your example, this is not a switch, but 2 modules with differents > > ACL. The block 'login' is displayed for 'Anonymous' and the menu is > > displayed for 'Authenticated user' (block Navigation). > > > > For the element's visibility in the menu, this is with the user_access > > > method defined in the function 'hook_menu' for each module. > > It looks a bit hakish. > And I still can't get it completely. > > 1) > path user points to user_login if(uid) otherwise it should point to > something else... but what is the alternative? > In user_menu all paths are user/[something else] or admin/user/... > I can't understand why once the user is logged in and the path > user/[uid] becomes available the path /user reaches user_view > > 2) > I can't yet understand the magic that make -My account appear in the > Menu admin pages as locked. I still haven't had the time to read the > code. > > 3) > I miss how I can *render* menu with the admin interface and/or in > modules. > I'd expect that if I build up a $items hierarchy I could build up a menu > from the "admin" interface adding a path and the menu system will take > care of rendering children once I eg. put the menu in a block. > What if I'd like to render the menu inside my code? I think I should use > menu_tree... but well I bet there are a lot of tricks I could learn > without guessing them from the API. > > 4) I haven't seen any tutorial, handbook... on any of the menu_ family > of function. > There is nothing on "Pro Drupal development" book. > > thanks > > -- > Ivan Sergio Borgonovo > http://www.webthatworks.it > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/6ddadb8e/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: cShow.rar Type: application/octet-stream Size: 3533 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080729/6ddadb8e/attachment-0001.obj From mail at webthatworks.it Mon Jul 28 22:46:23 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Tue, 29 Jul 2008 00:46:23 +0200 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> References: <488DD2B6.3090004@makina-corpus.com> <20080728174238.1c07214f@dawn.webthatworks.it> <384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> Message-ID: <20080729004623.450b2a05@dawn.webthatworks.it> On Mon, 28 Jul 2008 10:16:37 -0700 "Metzler, David" <metzlerd at evergreen.edu> wrote: > The reason that these menus is because a.) they appear in the if > (!$may_cache) section of the hook_menu and b.) thay are wrapped in > an if ($user !== FALSE) condition. > Note that there is also a separate /user path registered in the if > ($may_cache) section of the hook_menu. This is the "default" path > for /user and what shows up in the admin/menu screen. did you mean swap($may_cache,!$may_cache)? I didn't notice the (!may_cache) section since what I'd expect to be a $items[] = array('path' => 'user' ... is actually written as if ($_GET['q'] == 'user' Why? > You may be grappling with one of the core troubles with Drupal 5. > Oif ($_GET['q'] == 'user'nly menus that are in the if ($may_cache) > section of the module may be moved around with the admin/menu user > interface. If it's a > dynamic menu, you just don't see it there. So if you make a The "My account" hook is defined as MENU_DYNAMIC_ITEM in the $may_cache section... Does it works as expected because once a user is logged in cache can't be used? > dynamic menu item, you can't turn around and move it into a > block. Although you may be able to move a the static parent menu Do you mean "I can't put it into a block with the admin interface"? If I had a path=>'root' in $may_cache and a path=>'root/otherstuff' in !$may_cache do you mean I won't see the later? Wouldn't it be enough to just define path=>'root/otherstuff' as MENU_DYNAMIC_ITEM and place it in the $may_cache section? That should just make it "locked" (MENU_MODIFIABLE_BY_ADMIN = 0) > item (defined in the if ($may_cache) section of the menu into a > separate menu and menu block. This took me a little time to grok. I didn't get what I can and what I can't do. eg. I can't add a menu with the admin interface and place it into a block if it is defined in the !$may_cache > Finally you can't have the code define a new menu, but only create > a menu tree section in code and then move it later using the admin > menu interface. What does it mean I can't have code defining a new menu? I can actually define conditionally a menu tree even in the $may_cache section. I didn't see user.module calling menu_rebuild but eg. taxonomy_menu rebuild the menu when the taxonomy hook is fired. When does the menu_rebuild have to be called if I have dynamic menu? I won't just have to deal with menu appearing and disappearing according to access but also on other conditions. eg. if I'd like to dynamically create a menu "See this list" just when the user (even anonymous user) has some item in the list? What if I want to change at which depth I want to start to render a menu in a block? eg. a a1 a11 a111 -> a11 a111 or a1 a11 a111 or a1 a11 etc... Then what is the difference between defining a menu DYNAMIC or placing it in the !$may_cache section? MENU_DYNAMIC_ITEM is used just 2 times in core. > Is that clearing any of this up for you? Not completely. > 2) > I can't yet understand the magic that make -My account appear in > the Menu admin pages as locked. I still haven't had the time to > read the code. grep -R locked | grep menu solved partially the mystery. A DYNAMIC menu is not MENU_MODIFIABLE_BY_ADMIN. But still it doesn't explain what is the difference between !$may_cache and MENU_DYNAMIC_ITEM > 3) > I miss how I can *render* menu with the admin interface and/or in > modules. > I'd expect that if I build up a $items hierarchy I could build up > a menu from the "admin" interface adding a path and the menu > system will take care of rendering children once I eg. put the > menu in a block. What if I'd like to render the menu inside my > code? I think I should use menu_tree... but well I bet there are a > lot of tricks I could learn without guessing them from the API. Still didn't get it. As you said... if at least a parent is in the $may_cache system I could use the admin interface to add a block that contain a hierarchy even if some sub menu may be dynamic or in the !$may_cache section. Is it? What if all my menu is dynamic? How can I place a menu in a block? > 4) I haven't seen any tutorial, handbook... on any of the menu_ > family of function. > There is nothing on "Pro Drupal development" book. Still reading the api... but it seems that this part of Drupal lack tutorials, examples or books that explain how to use it. I checked twice "Pro Drupal Dev" and I didn't find anything interesting about dynamic menu, there is nothing even in the cache section. I gave a quick look to "Learning D6 module development" but it doesn't seem to contain any useful info on this topic. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it From simone.dalmaso at juvox.it Tue Jul 29 06:58:01 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Tue, 29 Jul 2008 08:58:01 +0200 Subject: [support] strange problem with direct link to a file Message-ID: <010e01c8f148$71af1ca0$06000a0a@csa> Hi, I have d5 and upload set to private mode. I uploaded a file and its path is: www.spazioausili.net/system/files/pcciechi_2008-14.zip the strange thing is that about 80% of users have no problem download it. but, other users, receive an error message that say that the website is temporary unavailable, or download start and crash after 1 second. This is not random, it happens always to same users. instead, if I give the link of the node and then users click to the attachment, the problem doesn't exist and all can download. do you know if drupal has some difficulties when a user wants access directly to a file when private mode is enabled? Can I solve this problem? Thanks in advance. From bharanikumariyerphp at gmail.com Tue Jul 29 08:32:49 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 29 Jul 2008 14:02:49 +0530 Subject: [support] Attention plz !!! problem in mini calendar Message-ID: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> Hi dear i am using the event calendar, In my mozhila , the mini calendar working fine , But in IE browser , When the page load the mini calendar is display fine, but when i click the NEXT navigation the mini calendar not displaying , the table view calendar is displaying, Any solution for this , plz send the patch as soon as possible Thanks regards check the screen shots -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/b0a4c626/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: IE_Event_june.JPG Type: image/jpeg Size: 124239 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080729/b0a4c626/attachment-0004.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: IE_Event_june_after_navigation.JPG Type: image/jpeg Size: 109532 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080729/b0a4c626/attachment-0005.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: Mozhila_events.JPG Type: image/jpeg Size: 140462 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080729/b0a4c626/attachment-0006.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: Mozhila_events_1.JPG Type: image/jpeg Size: 139313 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080729/b0a4c626/attachment-0007.jpeg From drupal.beginner at wechange.org Tue Jul 29 09:14:03 2008 From: drupal.beginner at wechange.org (augustin (beginner)) Date: Tue, 29 Jul 2008 17:14:03 +0800 Subject: [support] Attention plz !!! Do not send attachements In-Reply-To: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> References: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> Message-ID: <200807291714.03906.drupal.beginner@wechange.org> Hello, Please do not send attachments to this list. On Tuesday 29 July 2008 16:32:49 bharani kumar wrote: > But in IE browser , Use a standard compliant browser. And a better O.S. Augustin. From victorkane at gmail.com Tue Jul 29 09:21:31 2008 From: victorkane at gmail.com (Victor Kane) Date: Tue, 29 Jul 2008 06:21:31 -0300 Subject: [support] Attention plz !!! Do not send attachements In-Reply-To: <200807291714.03906.drupal.beginner@wechange.org> References: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> <200807291714.03906.drupal.beginner@wechange.org> Message-ID: <ff176450807290221u5ffb4504x9fd483112da9305f@mail.gmail.com> On Tue, Jul 29, 2008 at 6:14 AM, augustin (beginner) < drupal.beginner at wechange.org> wrote: > > Hello, > > Please do not send attachments to this list. > > Good advice. > > > > On Tuesday 29 July 2008 16:32:49 bharani kumar wrote: > > But in IE browser , > > Use a standard compliant browser. And a better O.S. > Bad non-advice. Kumar either has javascript turned off or ... whatever. (Does other javascript stuff work?) This is a problem many might experience, IE still used by the silent majority, can't just dismiss it. and I think it would be cool if IE gurus or those having experienced the same could chime in with a fix. Not a patch: this looks to be a browser configuration problem, Kumar, not a Drupal problem. Victor Kane http://awebfactory.com.ar > > > > Augustin. > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/ee701e99/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 29 09:29:16 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 29 Jul 2008 14:59:16 +0530 Subject: [support] Attention plz !!! Do not send attachements In-Reply-To: <ff176450807290221u5ffb4504x9fd483112da9305f@mail.gmail.com> References: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> <200807291714.03906.drupal.beginner@wechange.org> <ff176450807290221u5ffb4504x9fd483112da9305f@mail.gmail.com> Message-ID: <2240033d0807290229q32af1785o893390c07b96d5cb@mail.gmail.com> thanks for great idea, Here b4 u people face this problemes ? On Tue, Jul 29, 2008 at 2:51 PM, Victor Kane <victorkane at gmail.com> wrote: > On Tue, Jul 29, 2008 at 6:14 AM, augustin (beginner) < > drupal.beginner at wechange.org> wrote: > >> >> Hello, >> >> Please do not send attachments to this list. >> >> > Good advice. > > >> >> >> >> On Tuesday 29 July 2008 16:32:49 bharani kumar wrote: >> > But in IE browser , >> >> Use a standard compliant browser. And a better O.S. >> > > Bad non-advice. > > Kumar either has javascript turned off or ... whatever. (Does other > javascript stuff work?) > > This is a problem many might experience, IE still used by the silent > majority, can't just dismiss it. > > and I think it would be cool if IE gurus or those having experienced the > same could chime in with a fix. > > Not a patch: this looks to be a browser configuration problem, Kumar, not a > Drupal problem. > > Victor Kane > http://awebfactory.com.ar > > >> >> >> >> Augustin. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/e538c851/attachment.htm From bharanikumariyerphp at gmail.com Tue Jul 29 11:20:24 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 29 Jul 2008 16:50:24 +0530 Subject: [support] Attention plz !!! Do not send attachements In-Reply-To: <2240033d0807290229q32af1785o893390c07b96d5cb@mail.gmail.com> References: <2240033d0807290132s4f067b3csfe8a15dca05d997d@mail.gmail.com> <200807291714.03906.drupal.beginner@wechange.org> <ff176450807290221u5ffb4504x9fd483112da9305f@mail.gmail.com> <2240033d0807290229q32af1785o893390c07b96d5cb@mail.gmail.com> Message-ID: <2240033d0807290420t1076033cw4db56b383f99f181@mail.gmail.com> problem fixed, To comment these line , // Keep block at it's current width/height to make the update less disruptive //this.styleHeight = $(element).height(); //this.styleWidth = $(element).width(); //$(element).height(element.offsetHeight+"px"); //$(element).width(element.offsetWidth+"px"); //alert('kkk'); now in mini calendar working in IE also On Tue, Jul 29, 2008 at 2:59 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > thanks for great idea, > > Here b4 u people face this problemes ? > > > > > On Tue, Jul 29, 2008 at 2:51 PM, Victor Kane <victorkane at gmail.com> wrote: > >> On Tue, Jul 29, 2008 at 6:14 AM, augustin (beginner) < >> drupal.beginner at wechange.org> wrote: >> >>> >>> Hello, >>> >>> Please do not send attachments to this list. >>> >>> >> Good advice. >> >> >>> >>> >>> >>> On Tuesday 29 July 2008 16:32:49 bharani kumar wrote: >>> > But in IE browser , >>> >>> Use a standard compliant browser. And a better O.S. >>> >> >> Bad non-advice. >> >> Kumar either has javascript turned off or ... whatever. (Does other >> javascript stuff work?) >> >> This is a problem many might experience, IE still used by the silent >> majority, can't just dismiss it. >> >> and I think it would be cool if IE gurus or those having experienced the >> same could chime in with a fix. >> >> Not a patch: this looks to be a browser configuration problem, Kumar, not >> a Drupal problem. >> >> Victor Kane >> http://awebfactory.com.ar >> >> >>> >>> >>> >>> Augustin. >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> >> >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/3d4ab66c/attachment.htm From earnie at users.sourceforge.net Tue Jul 29 11:24:59 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 29 Jul 2008 07:24:59 -0400 Subject: [support] strange problem with direct link to a file In-Reply-To: <010e01c8f148$71af1ca0$06000a0a@csa> References: <010e01c8f148$71af1ca0$06000a0a@csa> Message-ID: <20080729072459.na9hzikzw8gscc8c@mail.progw.org> Quoting Simone Dal Maso <simone.dalmaso at juvox.it>: > Hi, > I have d5 and upload set to private mode. > I uploaded a file and its path is: > www.spazioausili.net/system/files/pcciechi_2008-14.zip > the strange thing is that about 80% of users have no problem download it. > but, other users, receive an error message that say that the website > is temporary unavailable, or download start and crash after 1 second. > This is not random, it happens always to same users. > instead, if I give the link of the node and then users click to the > attachment, the problem doesn't exist and all can download. > do you know if drupal has some difficulties when a user wants access > directly to a file when private mode is enabled? Can I solve this > problem? > Thanks in advance. > Sounds like maybe a timeout issue based on destination but maybe a browser cache issue as well. The "private mode" adds a lot of overhead that you really don't want. I recommend that you reverse that option as I believe that you'll be happier with it. Try http://www.google.com/search?q=private+mode+site%3Adrupal.org for a search about the problems. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From simone.dalmaso at juvox.it Tue Jul 29 14:02:37 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Tue, 29 Jul 2008 16:02:37 +0200 Subject: [support] strange problem with direct link to a file Message-ID: <8C2DE9740D3E4EDAA41BC0A2E3F38D8A@shtututu> you wrote: > Sounds like maybe a timeout issue based on destination but maybe a > browser cache issue as well. The "private mode" adds a lot of overhead > that you really don't want. I recommend that you reverse that option noooooooooo. you have reason, I read about it and it's true. The only problem, a little problem, is that I have only 2 gb of files, all in the "files" folder that is my system path for drupal. Since I'm using the disknode module,because it allows to select files from server and attach them to more nodes, and it works only in private mode, I should: 1. download all files into my pc. 2. create a subdirectory of files called "private" and then, render it "private", it is possible, I saw some instructions about it. 3. upload all these files again, one node at the time... in that different subdirectory ok, I will think about it, it seems terrible, but it was a great mistake I have done when drupal for me was only a game. thank you again. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/8fa1e70e/attachment-0001.htm From earnie at users.sourceforge.net Tue Jul 29 14:17:31 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 29 Jul 2008 10:17:31 -0400 Subject: [support] strange problem with direct link to a file In-Reply-To: <8C2DE9740D3E4EDAA41BC0A2E3F38D8A@shtututu> References: <8C2DE9740D3E4EDAA41BC0A2E3F38D8A@shtututu> Message-ID: <20080729101731.sonb9nb1b5icc8sw@mail.progw.org> Quoting Simone Dal Maso <simone.dalmaso at juvox.it>: > you wrote: > > >> Sounds like maybe a timeout issue based on destination but maybe a >> browser cache issue as well. The "private mode" adds a lot of overhead >> that you really don't want. I recommend that you reverse that option > > noooooooooo. > you have reason, I read about it and it's true. > The only problem, a little problem, is that I have only 2 gb of > files, all in the "files" folder that is my system path for drupal. > Since I'm using the disknode module,because it allows to select files > from server and attach them to more nodes, and it works only in > private mode, I should: > 1. download all files into my pc. > 2. create a subdirectory of files called "private" and then, render > it "private", it is possible, I saw some instructions about it. > > 3. upload all these files again, one node at the time... in that > different subdirectory > ok, I will think about it, it seems terrible, but it was a great > mistake I have done when drupal for me was only a game. > thank you again. > I don't know about steps 1 and 3 but step 2 can be handled by a .htaccess in that directory. You may be able to accomplish the rename of path by creating a batch process that will node_load(), change the data, and node_save(). You'll have to give it a try in your development server and decide which is best. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From metzlerd at evergreen.edu Tue Jul 29 15:47:05 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Tue, 29 Jul 2008 08:47:05 -0700 Subject: [support] tutorial on dynamically generating menu in D5 In-Reply-To: <20080729004623.450b2a05@dawn.webthatworks.it> References: <488DD2B6.3090004@makina-corpus.com><20080728174238.1c07214f@dawn.webthatworks.it><384BE444EEC12143B241C72BCD7E9BA8220B2B@birch.evergreen.edu> <20080729004623.450b2a05@dawn.webthatworks.it> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B30@birch.evergreen.edu> >did you mean swap($may_cache,!$may_cache)? No I don't think so, but maybe I didn't word that sentence well enough. >I didn't notice the (!may_cache) section since what I'd expect to be a $items[] = array('path' => 'user' ... >is actually written as >if ($_GET['q'] == 'user' >Why? That chunk of code is really wrapping a a redirect. It's saying if you're on the 'user' page (not subpages) and we're logged in then goto user/{uid}. The code that builds the $items array is a few lines down and incidently is not hit if you just goto yousite/user. If you visit the yoursite/user page and watch the url line you'll see the redirect that's happening. But this isn't really part of building menus at all. >The "My account" hook is defined as MENU_DYNAMIC_ITEM in the $may_cache section... Does it works as expected because >once a user is logged in cache can't be used? No that's not true. Cache can be used whether or not a user is logged in, but the $items array in the if (!$maycache) section may register new menu paths that weren't available when you're logged in. Menu items are cached for anonymous users as well. But MENU_DYNAMIC_ITEMS are never cached. Note that the tabs for that page are rendered later, in the if (!may_cache) section >Do you mean "I can't put it into a block with the admin interface"? >If I had a >path=>'root' in $may_cache >and a >path=>'root/otherstuff' in !$may_cache >do you mean I won't see the later? >Wouldn't it be enough to just define >path=>'root/otherstuff' >as MENU_DYNAMIC_ITEM >and place it in the $may_cache section? I really just meant that you can't manipulate root/otherstuff in the admin interface at all. I'm not really familiar with MENU_DYNAMIC_ITEM. I think it's historical. The same kind of dynamic menu items appear in the if (!may_cache ). Either way your menu items can't be altered in the admin interface. >What does it mean I can't have code defining a new menu? >I can actually define conditionally a menu tree even in the $may_cache section. >I didn't see user.module calling menu_rebuild but eg. taxonomy_menu rebuild the menu when the taxonomy hook is fired. I mean that you can't define something that is in its own block by default. All menus in code start out in the "Navigation Menu". >When does the menu_rebuild have to be called if I have dynamic menu? It doesn't because items in this sections are built at every page load, and not stored in the database at all. The menu_rebuild functioin is simply a cache clearing mecahnism. >I won't just have to deal with menu appearing and disappearing according to access but also on other conditions. >eg. if I'd like to dynamically create a menu "See this list" just when the user (even anonymous user) has some item in >the list? You may find DYNAMIC_MENU_ITEM to be enough, but I have never used it, so can't attest to the differences. I really do think it's an older way of achieving the same thing. >What if I want to change at which depth I want to start to render a menu in a block? As you hinted at in your root example, the starting point simply needs to be a static menu (meaning that it is in the if ($may_cache) section of hook menu, and hence movable by the admin interface. >Then what is the difference between defining a menu DYNAMIC or placing it in the !$may_cache section? I think MENU_DYNAMIC_ITEM is a hold-over from the past, but I'm not sure. As I've said, I didn't use it much and I've always been told to put dynamic menus in the if (!may_cache) section. >Still didn't get it. >As you said... if at least a parent is in the $may_cache system I could use the admin interface to add a block that >contain a hierarchy even if some sub menu may be dynamic or in the !$may_cache section. Is it? I think that this is doable, yes. >What if all my menu is dynamic? How can I place a menu in a block? You can't. If all your menu is dynamic you can't place it in another block. >Still reading the api... but it seems that this part of Drupal lack tutorials, examples or books that explain how to use >it. >I checked twice "Pro Drupal Dev" and I didn't find anything interesting about dynamic menu, there is nothing even in the >cache section. >I gave a quick look to "Learning D6 module development" but it doesn't seem to contain any useful info on this topic. In D6 the menu system was completely overhauled and is very different from D5. In those you simply write a and access function and have it get called. IF the access function returns true, then you're menu item gets displayed. Don't think of the access function as simply being about permissions. In d6, dynamic paths are achieved with wild_cards. You register user/%/edit to get the user edit page where the uid passed as a parameter. In D5 this approach will not work because the user_access function is not called on every page_load. It's results get cahced at login, so you have to use the if (!may_cache) section in order to achieve truly dynamic menus. thanks -- Ivan Sergio Borgonovo http://www.webthatworks.it -- [ Drupal support list | http://lists.drupal.org/ ] From hays at ohio.edu Tue Jul 29 20:50:12 2008 From: hays at ohio.edu (Steve Hays) Date: Tue, 29 Jul 2008 16:50:12 -0400 Subject: [support] Throttles Message-ID: <506686BC-2C74-4D4B-954D-8699D5B60BCB@ohio.edu> Friends, Thanks to much help from this board, my site (www.ohiodialogues.org) is up and functioning. Occasionally it goes very slow. I have enabled caching in Performance. I suspect there are other things that you who've managed sites have learned that you might be willing to share? In particular, I'm wondering about enabling Throttle in the Modules section. I started to enable it for all modules. Then I wondered whether it might cause some troubles for some of them--Views, for instance. So, any advice on Throttles--or any other performance suggestions? May thanks, Steve Hays Classics and World Religions Ohio University -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080729/4bec05c2/attachment.htm From earnie at users.sourceforge.net Tue Jul 29 21:56:52 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 29 Jul 2008 17:56:52 -0400 Subject: [support] Throttles In-Reply-To: <506686BC-2C74-4D4B-954D-8699D5B60BCB@ohio.edu> References: <506686BC-2C74-4D4B-954D-8699D5B60BCB@ohio.edu> Message-ID: <20080729175652.tchot5l0r8gkko08@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > > So, any advice on Throttles--or any other performance suggestions? > Make sure the radio on admin/settings/file-system is set to public and not private. Performance killer if there ever was one even if you're not uploading files. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From bharanikumariyerphp at gmail.com Wed Jul 30 04:14:41 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 30 Jul 2008 09:44:41 +0530 Subject: [support] event calendar year problem Message-ID: <2240033d0807292114s66c9c89ekfee99bc8aa3209f7@mail.gmail.com> Hi In my datatabse, am having the events date from 2000 to 2009, But event calendar showing , only current month , previous month , and future months, So How to display the all previous year events in the calendar... Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/f762ce75/attachment.htm From bharanikumariyerphp at gmail.com Wed Jul 30 05:43:39 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 30 Jul 2008 11:13:39 +0530 Subject: [support] Content Type Dele problem Message-ID: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> Hi The steps to generate the bug are: 1. Create a Content type (eg: Content type 1) 2. Create a content(eg: content-1) of the same content type (Content type 1). 3. Delete the Content type (i.e., Content type 1). 4. Try to edit the content (content-1). The browser will show warning, and you wont be able to edit the contents. 5. Now create a content-type with the same name, which you have deleted (i.e., Content type 1), and you will be able to edit or delete your content (i.e., content-1). ???Any solution thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/a940227a/attachment.htm From bill at funnymonkey.com Wed Jul 30 06:07:30 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Tue, 29 Jul 2008 23:07:30 -0700 Subject: [support] Content Type Dele problem In-Reply-To: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> References: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> Message-ID: <48900522.80104@funnymonkey.com> My .02 -- I don't really see this as a bug, but as a feature that protects a site from mass content deletion if a node type is inadvertently deleted. One possible fix, which would be more of a feature: if there are nodes of any content type, flash a warning onscreen if a user is attempting to delete the node type. Generally, though, the ability to delete node types should only be given to highly trusted -- and highly competent -- users. Cheers, Bill bharani kumar wrote: > Hi > > > The steps to generate the bug are: > > 1. Create a Content type (eg: Content type 1) > > 2. Create a content(eg: content-1) of the same content type (Content type > 1). > 3. Delete the Content type (i.e., Content type 1). > 4. Try to edit the content (content-1). > > The browser will show warning, > and you wont be able to edit the > contents. > > 5. Now create a content-type with the same name, which you have deleted > (i.e., Content type 1), and you will be able to edit or delete your content > (i.e., content-1). > > > ???Any solution > > thanks > > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From amont at 5net.hu Wed Jul 30 08:04:18 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Wed, 30 Jul 2008 10:04:18 +0200 Subject: [support] using two different database type Message-ID: <48902082.6060908@5net.hu> Hello, I like to use two database, a postgresql and a mysqli in my module. My settings.php looks like this: $db_url['default'] = 'mysqli://user:pass at localhost:3370/allathletics'; $db_url['atleta'] = 'pgsql://user:pass at 192.168.2.104/cds_atletabackup'; But when I try the db_set_active('atleta'); I get the Fatal error: Cannot redeclare db_status_report() (previously declared in /var/www/mysite/includes/database.mysqli.inc:23) in /var/www/demo.internetstudio.hu/allathletics/web/includes/database.pgsql.inc on line 33 Is there a solution for it, or I must to use two same database type? ?mon Tam?s Sitefejleszt? ?s programoz? -- 5NET Informatikai Kft. 1062 Budapest, Aradi utca 38. A 3/11 telefon: (1) 461-0205 | fax: (1) 461-0206 e-mail: amont at 5net.hu | web: http://www.5net.hu From pierre.rineau at makina-corpus.com Wed Jul 30 08:33:43 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Wed, 30 Jul 2008 10:33:43 +0200 Subject: [support] using two different database type In-Reply-To: <48902082.6060908@5net.hu> References: <48902082.6060908@5net.hu> Message-ID: <1217406823.9339.2.camel@localhost> You MUST use two same database type. Explaination is simple, since Drupal files with pgsql support and mysql support declare the same function's names inside, it's just impossible to go through this situation. Using OO it could be possible, but Drupal is not OO. On mer, 2008-07-30 at 10:04 +0200, ?mon Tam?s wrote: > Hello, > > I like to use two database, a postgresql and a mysqli in my module. My > settings.php looks like this: > > $db_url['default'] = 'mysqli://user:pass at localhost:3370/allathletics'; > $db_url['atleta'] = 'pgsql://user:pass at 192.168.2.104/cds_atletabackup'; > > But when I try the > > db_set_active('atleta'); > > I get the > > Fatal error: Cannot redeclare db_status_report() (previously declared in > /var/www/mysite/includes/database.mysqli.inc:23) in > /var/www/demo.internetstudio.hu/allathletics/web/includes/database.pgsql.inc > on line 33 > > Is there a solution for it, or I must to use two same database type? > > ?mon Tam?s > Sitefejleszt? ?s programoz? > -- > 5NET Informatikai Kft. > 1062 Budapest, Aradi utca 38. A 3/11 > telefon: (1) 461-0205 | fax: (1) 461-0206 > e-mail: amont at 5net.hu | web: http://www.5net.hu > From earnie at users.sourceforge.net Wed Jul 30 13:47:28 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 09:47:28 -0400 Subject: [support] using two different database type In-Reply-To: <1217406823.9339.2.camel@localhost> References: <48902082.6060908@5net.hu> <1217406823.9339.2.camel@localhost> Message-ID: <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>: > You MUST use two same database type. > > Explaination is simple, since Drupal files with pgsql support and mysql > support declare the same function's names inside, it's just impossible > to go through this situation. > Yes, this is most unfortunate. I've an idea of how to fix it but I won't even begin until after the PDO patch is in. > Using OO it could be possible, but Drupal is not OO. > What an odd sentence. Drupal doesn't need to use classes and instantiation to resolve this bit of hardship. It just needs to use the database type to resolve which function to hook from the global function name. So I call db_query() in my module but that will call db_query_mysql() or db_query_pgsql() dependent on the type of the DB active at the time. Currently the design declares the same db_query() function within more than one file which is really sad. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Wed Jul 30 13:52:27 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 09:52:27 -0400 Subject: [support] using two different database type In-Reply-To: <48902082.6060908@5net.hu> References: <48902082.6060908@5net.hu> Message-ID: <20080730095227.wxb2y4w7cxfogwcs@mail.progw.org> Quoting ?mon Tam?s <amont at 5net.hu>: > Hello, > > I like to use two database, a postgresql and a mysqli in my module. My > settings.php looks like this: > > $db_url['default'] = 'mysqli://user:pass at localhost:3370/allathletics'; > $db_url['atleta'] = 'pgsql://user:pass at 192.168.2.104/cds_atletabackup'; > > But when I try the > > db_set_active('atleta'); > > I get the > > Fatal error: Cannot redeclare db_status_report() (previously declared in > /var/www/mysite/includes/database.mysqli.inc:23) in > /var/www/demo.internetstudio.hu/allathletics/web/includes/database.pgsql.inc > on line 33 > > Is there a solution for it, or I must to use two same database type? > The only solution is to hack core. Create a definition of db_status_report in database.inc will will in turn call one of db_status_report_mysqli() or db_status_report_pgsql() dependent on the active database type. You change the name of the db_status_report function in each of the database.mysqli.inc and database.pgsql.inc files accordingly. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From pierre.rineau at makina-corpus.com Wed Jul 30 13:54:44 2008 From: pierre.rineau at makina-corpus.com (Pierre Rineau) Date: Wed, 30 Jul 2008 15:54:44 +0200 Subject: [support] using two different database type In-Reply-To: <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> References: <48902082.6060908@5net.hu> <1217406823.9339.2.camel@localhost> <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> Message-ID: <1217426084.9339.24.camel@localhost> On mer, 2008-07-30 at 09:47 -0400, Earnie Boyd wrote: > Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>: > > > You MUST use two same database type. > > > > Explaination is simple, since Drupal files with pgsql support and mysql > > support declare the same function's names inside, it's just impossible > > to go through this situation. > > > > Yes, this is most unfortunate. I've an idea of how to fix it but I > won't even begin until after the PDO patch is in. > > > Using OO it could be possible, but Drupal is not OO. > > > > What an odd sentence. Drupal doesn't need to use classes and > instantiation to resolve this bit of hardship. It just needs to use > the database type to resolve which function to hook from the global > function name. So I call db_query() in my module but that will call > db_query_mysql() or db_query_pgsql() dependent on the type of the DB > active at the time. Currently the design declares the same db_query() > function within more than one file which is really sad. Yes, I agree with that, this was a wonderfull troll :) But it should go with a dynamic database type resolving based on active database type. It really could be easy to implement. > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > From amont at 5net.hu Wed Jul 30 14:00:46 2008 From: amont at 5net.hu (=?UTF-8?B?w4Ftb24gVGFtw6Fz?=) Date: Wed, 30 Jul 2008 16:00:46 +0200 Subject: [support] using two different database type In-Reply-To: <20080730095227.wxb2y4w7cxfogwcs@mail.progw.org> References: <48902082.6060908@5net.hu> <20080730095227.wxb2y4w7cxfogwcs@mail.progw.org> Message-ID: <4890740E.603@5net.hu> Earnie Boyd ?rta: > Quoting ?mon Tam?s <amont at 5net.hu>: > > >> Hello, >> >> I like to use two database, a postgresql and a mysqli in my module. My >> settings.php looks like this: >> >> $db_url['default'] = 'mysqli://user:pass at localhost:3370/allathletics'; >> $db_url['atleta'] = 'pgsql://user:pass at 192.168.2.104/cds_atletabackup'; >> >> But when I try the >> >> db_set_active('atleta'); >> >> I get the >> >> Fatal error: Cannot redeclare db_status_report() (previously declared in >> /var/www/mysite/includes/database.mysqli.inc:23) in >> /var/www/demo.internetstudio.hu/allathletics/web/includes/database.pgsql.inc >> on line 33 >> >> Is there a solution for it, or I must to use two same database type? >> >> > > The only solution is to hack core. Create a definition of > db_status_report in database.inc will will in turn call one of > db_status_report_mysqli() or db_status_report_pgsql() dependent on the > active database type. You change the name of the db_status_report > function in each of the database.mysqli.inc and database.pgsql.inc > files accordingly. > > I thinked about a same solution. Maybe this should be in the next version in drupal... It is a drupal 6. Maybe somebody has a patch for it? ?mon Tam?s Sitefejleszt? ?s programoz? -- 5NET Informatikai Kft. 1062 Budapest, Aradi utca 38. A 3/11 telefon: (1) 461-0205 | fax: (1) 461-0206 e-mail: amont at 5net.hu | web: http://www.5net.hu From earnie at users.sourceforge.net Wed Jul 30 14:03:30 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 10:03:30 -0400 Subject: [support] Content Type Dele problem In-Reply-To: <48900522.80104@funnymonkey.com> References: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> <48900522.80104@funnymonkey.com> Message-ID: <20080730100330.t5xmjx70h7280ko8@mail.progw.org> Quoting Bill Fitzgerald <bill at funnymonkey.com>: > My .02 -- > > I don't really see this as a bug, but as a feature that protects a site > from mass content deletion if a node type is inadvertently deleted. > It is a bug that you don't get the warning you mention below. > One possible fix, which would be more of a feature: if there are nodes > of any content type, flash a warning onscreen if a user is attempting to > delete the node type. > Yes, and if it doesn't stop the user from deleting the content type with content assigned without deleting the content then it is a design flaw, IMNSHO. The lack of foreign key relationships is the reason that this design can flourish. > Generally, though, the ability to delete node types should only be given > to highly trusted -- and highly competent -- users. > I agree but that doesn't negate the flawed design feature. > Cheers, > > Bill > > bharani kumar wrote: >> Hi >> >> >> The steps to generate the bug are: >> >> 1. Create a Content type (eg: Content type 1) >> >> 2. Create a content(eg: content-1) of the same content type (Content type >> 1). >> 3. Delete the Content type (i.e., Content type 1). >> 4. Try to edit the content (content-1). >> >> The browser will show warning, >> and you wont be able to edit the >> contents. >> >> 5. Now create a content-type with the same name, which you have deleted >> (i.e., Content type 1), and you will be able to edit or delete your content >> (i.e., content-1). >> >> >> ???Any solution >> Create a module to hook_form_alter and add a #validate function that will be called and add form_error() message if the content type has content. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From marc at funnymonkey.com Wed Jul 30 14:24:24 2008 From: marc at funnymonkey.com (Marc Poris) Date: Wed, 30 Jul 2008 07:24:24 -0700 Subject: [support] Content Type Dele problem In-Reply-To: <20080730100330.t5xmjx70h7280ko8@mail.progw.org> References: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> <48900522.80104@funnymonkey.com> <20080730100330.t5xmjx70h7280ko8@mail.progw.org> Message-ID: <48907998.5080601@funnymonkey.com> In 6.3 there's already an excellent warning in the confirmation message. Try it out slowly. Marc Earnie Boyd wrote: > Quoting Bill Fitzgerald <bill at funnymonkey.com>: > > >> My .02 -- >> >> I don't really see this as a bug, but as a feature that protects a site >> from mass content deletion if a node type is inadvertently deleted. >> >> > > It is a bug that you don't get the warning you mention below. > > >> One possible fix, which would be more of a feature: if there are nodes >> of any content type, flash a warning onscreen if a user is attempting to >> delete the node type. >> >> > > Yes, and if it doesn't stop the user from deleting the content type > with content assigned without deleting the content then it is a design > flaw, IMNSHO. The lack of foreign key relationships is the reason that > this design can flourish. > > >> Generally, though, the ability to delete node types should only be given >> to highly trusted -- and highly competent -- users. >> >> > > I agree but that doesn't negate the flawed design feature. > > >> Cheers, >> >> Bill >> >> bharani kumar wrote: >> >>> Hi >>> >>> >>> The steps to generate the bug are: >>> >>> 1. Create a Content type (eg: Content type 1) >>> >>> 2. Create a content(eg: content-1) of the same content type (Content type >>> 1). >>> 3. Delete the Content type (i.e., Content type 1). >>> 4. Try to edit the content (content-1). >>> >>> The browser will show warning, >>> and you wont be able to edit the >>> contents. >>> >>> 5. Now create a content-type with the same name, which you have deleted >>> (i.e., Content type 1), and you will be able to edit or delete your content >>> (i.e., content-1). >>> >>> >>> ???Any solution >>> >>> > > Create a module to hook_form_alter and add a #validate function that > will be called and add form_error() message if the content type has > content. > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > From earnie at users.sourceforge.net Wed Jul 30 15:12:24 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 11:12:24 -0400 Subject: [support] using two different database type In-Reply-To: <1217426084.9339.24.camel@localhost> References: <48902082.6060908@5net.hu> <1217406823.9339.2.camel@localhost> <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> <1217426084.9339.24.camel@localhost> Message-ID: <20080730111224.yvt9bu3z4dmsk4wc@mail.progw.org> Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>: > On mer, 2008-07-30 at 09:47 -0400, Earnie Boyd wrote: >> What an odd sentence. Drupal doesn't need to use classes and >> instantiation to resolve this bit of hardship. It just needs to use >> the database type to resolve which function to hook from the global >> function name. So I call db_query() in my module but that will call >> db_query_mysql() or db_query_pgsql() dependent on the type of the DB >> active at the time. Currently the design declares the same db_query() >> function within more than one file which is really sad. > > Yes, I agree with that, this was a wonderfull troll :) > > But it should go with a dynamic database type resolving based on active > database type. > > It really could be easy to implement. > Such a patch should wait on http://drupal.org/node/225450 to be committed which means that it this easy implementation might need to wait on D8. If someone wants to beat me to a patch go ahead; this is open source country. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From larry at garfieldtech.com Wed Jul 30 15:16:36 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Wed, 30 Jul 2008 10:16:36 -0500 Subject: [support] using two different database type In-Reply-To: <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> References: <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> Message-ID: <5a4feabac295473b7160e5fb1ef4526c@localhost> On Wed, 30 Jul 2008 09:47:28 -0400, Earnie Boyd <earnie at users.sourceforge.net> wrote: > Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>: > >> You MUST use two same database type. >> >> Explaination is simple, since Drupal files with pgsql support and mysql >> support declare the same function's names inside, it's just impossible >> to go through this situation. >> > > Yes, this is most unfortunate. I've an idea of how to fix it but I > won't even begin until after the PDO patch is in. The PDO patch already addresses this and many other issues. It is currently ready (IMO), passing all unit tests not already broken (as of last week), and desperately needs someone to review it and mark it RTBC so that we can move on to the dozen or so follow-up patches that still need to be written. http://drupal.org/node/225450 --Larry Garfield From earnie at users.sourceforge.net Wed Jul 30 15:24:38 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 11:24:38 -0400 Subject: [support] using two different database type In-Reply-To: <4890740E.603@5net.hu> References: <48902082.6060908@5net.hu> <20080730095227.wxb2y4w7cxfogwcs@mail.progw.org> <4890740E.603@5net.hu> Message-ID: <20080730112438.8mpff0wta3cc8sco@mail.progw.org> Quoting ?mon Tam?s <amont at 5net.hu>: > I thinked about a same solution. Maybe this should be in the next > version in drupal... > It is a drupal 6. Maybe somebody has a patch for it? > I haven't seen one yet. There is http://drupal.org/node/225450 to switch to PDO which is a large patch set in itself. The engine include files are changing already because of this patch which is why I haven't even attempted a patch as I've suggested. Feel free to pursue the patch yourself. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Wed Jul 30 15:36:46 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 30 Jul 2008 11:36:46 -0400 Subject: [support] using two different database type In-Reply-To: <5a4feabac295473b7160e5fb1ef4526c@localhost> References: <20080730094728.4kteacbdj2qs8g4w@mail.progw.org> <5a4feabac295473b7160e5fb1ef4526c@localhost> Message-ID: <20080730113646.ec3uwv1pfcf40ogs@mail.progw.org> Quoting Larry Garfield <larry at garfieldtech.com>: > > On Wed, 30 Jul 2008 09:47:28 -0400, Earnie Boyd > <earnie at users.sourceforge.net> wrote: >> Quoting Pierre Rineau <pierre.rineau at makina-corpus.com>: >> >>> You MUST use two same database type. >>> >>> Explaination is simple, since Drupal files with pgsql support and mysql >>> support declare the same function's names inside, it's just impossible >>> to go through this situation. >>> >> >> Yes, this is most unfortunate. I've an idea of how to fix it but I >> won't even begin until after the PDO patch is in. > > The PDO patch already addresses this and many other issues. It is > currently ready (IMO), passing all unit tests not already broken (as > of last week), and desperately needs someone to review it and mark it > RTBC so that we can move on to the dozen or so follow-up patches that > still need to be written. > > http://drupal.org/node/225450 > I wasn't aware that that patch took care of this issue. Thanks for the enlightenment Larry. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From fredthejonester at gmail.com Wed Jul 30 18:05:09 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 20:05:09 +0200 Subject: [support] Simple Module Coding Question Message-ID: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> I have a menu item whose callback is drupal_get_form, but in the form function, I would like to know what arguments follow my path. What I mean is that my menu path is: custommod and the actual URL I am calling is custommod/3 and in the form I want to be able to see that 3. Is this available in the API? I tried making my callback a custom function and then using drupal_render to render my form at the end of that function, and while then I see the 3, the form came out all messed up--it was out of order it seems. Is this the right way to do it? Or is there something I am missing? Thanks! From metzlerd at evergreen.edu Wed Jul 30 18:07:43 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Wed, 30 Jul 2008 11:07:43 -0700 Subject: [support] Simple Module Coding Question In-Reply-To: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> I usually just get it using a call to arg(1) in the from rendering function. Make sense? -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Fred Jones Sent: Wednesday, July 30, 2008 11:05 AM To: support at drupal.org Subject: [support] Simple Module Coding Question I have a menu item whose callback is drupal_get_form, but in the form function, I would like to know what arguments follow my path. What I mean is that my menu path is: custommod and the actual URL I am calling is custommod/3 and in the form I want to be able to see that 3. Is this available in the API? I tried making my callback a custom function and then using drupal_render to render my form at the end of that function, and while then I see the 3, the form came out all messed up--it was out of order it seems. Is this the right way to do it? Or is there something I am missing? Thanks! -- [ Drupal support list | http://lists.drupal.org/ ] From Greg at GrowingVentureSolutions.com Wed Jul 30 18:18:40 2008 From: Greg at GrowingVentureSolutions.com (Greg Knaddison - GVS) Date: Wed, 30 Jul 2008 12:18:40 -0600 Subject: [support] Simple Module Coding Question In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> Message-ID: <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> On Wed, Jul 30, 2008 at 12:07 PM, Metzler, David <metzlerd at evergreen.edu> wrote: > I usually just get it using a call to arg(1) in the from rendering > function. > > Make sense? > This works as long as your form is always on that exact URL. An alternative, if you want your form to be more flexible, is to use arg(1) as a 'page argument' in the hook_menu definition and then add it as a variable in your custommod_form_name($var_here) function declaration. -- Greg Knaddison Denver, CO | http://knaddison.com | 303-800-5623 Growing Venture Solutions, LLC | http://growingventuresolutions.com From fredthejonester at gmail.com Wed Jul 30 18:20:48 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 20:20:48 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> Message-ID: <177c0a10807301120l7c12d479s886e84cc8ba03db6@mail.gmail.com> Oh, right. I was so carried away looking into drupal_render_form etc. on the API site that I forgot about that--I saw args() used over there and I tried that and it failed. :) Thanks! But actually custommod/3 doesn't seem to render my form. If the callback is a custom form, it works, but if it's drupal_get_form, it just shows the title and that's it. On Wed, Jul 30, 2008 at 8:07 PM, Metzler, David <metzlerd at evergreen.edu> wrote: > I usually just get it using a call to arg(1) in the from rendering > function. > > Make sense? From fredthejonester at gmail.com Wed Jul 30 18:24:26 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 20:24:26 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> Message-ID: <177c0a10807301124ia68d669we33dcb32c6083595@mail.gmail.com> > This works as long as your form is always on that exact URL. An > alternative, if you want your form to be more flexible, is to use > arg(1) as a 'page argument' in the hook_menu definition and then add > it as a variable in your custommod_form_name($var_here) function > declaration. Brilliant--you answered my question just before I wrote it. I see that if I use: array('addciviparticipant_form',arg(1)), for my 'callback arguments' then it indeed works as you say. But in fact just array('addciviparticipant_form'), also works. :) The only one that FAILS is: 'addciviparticipant_form' Thank you!! From metzlerd at evergreen.edu Wed Jul 30 18:25:30 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Wed, 30 Jul 2008 11:25:30 -0700 Subject: [support] Simple Module Coding Question In-Reply-To: <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> References: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B35@birch.evergreen.edu> Er, but that doesn't work in drupal 5 or later, does it? I had to do some significant reworking of forms that were built that way when I updated to D5. -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Greg Knaddison - GVS Sent: Wednesday, July 30, 2008 11:19 AM To: support at drupal.org Subject: Re: [support] Simple Module Coding Question On Wed, Jul 30, 2008 at 12:07 PM, Metzler, David <metzlerd at evergreen.edu> wrote: > I usually just get it using a call to arg(1) in the from rendering > function. > > Make sense? > This works as long as your form is always on that exact URL. An alternative, if you want your form to be more flexible, is to use arg(1) as a 'page argument' in the hook_menu definition and then add it as a variable in your custommod_form_name($var_here) function declaration. -- Greg Knaddison Denver, CO | http://knaddison.com | 303-800-5623 Growing Venture Solutions, LLC | http://growingventuresolutions.com -- [ Drupal support list | http://lists.drupal.org/ ] From fredthejonester at gmail.com Wed Jul 30 18:26:46 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 20:26:46 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B35@birch.evergreen.edu> References: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <3861c6770807301118l186930d1vdbac7176cd0f21f7@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B35@birch.evergreen.edu> Message-ID: <177c0a10807301126v422f5ed1u63be13566dbdc1ce@mail.gmail.com> > Er, but that doesn't work in drupal 5 or later, does it? > > I had to do some significant reworking of forms that were built that way > when I updated to D5. Works for me thus far in my local test server using 5.7 (I haven't updated yet b/c anyway this is just a local server, heh heh) From marolijo at yahoo.es Wed Jul 30 18:37:10 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 30 Jul 2008 20:37:10 +0200 Subject: [support] Views and i18n show other locale nodes Message-ID: <712565.62650.bm@omp406.mail.mud.yahoo.com> Hi, I have a view on a site with 3 languages (en-es-ca) Suddenly, the view is showing the EN nodes when I'm on CA, but working well when I'm on ES. Any idea? I cleared the cache views... thank's! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/25493681/attachment.htm From mail at webthatworks.it Wed Jul 30 18:40:38 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Wed, 30 Jul 2008 20:40:38 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> Message-ID: <20080730204038.3f767227@dawn.webthatworks.it> On Wed, 30 Jul 2008 11:07:43 -0700 "Metzler, David" <metzlerd at evergreen.edu> wrote: > I usually just get it using a call to arg(1) in the from rendering > function. > > Make sense? This makes your form definition function dependent on where it is rendered. What about ... 'path' => 'somepath/'.arg(1).'/'.arg(2), 'callback' => 'drupal_get_form', 'callback arguments' => Array('my_form',arg(1), arg(2)), ... function my_form($p1, $p2, $form_values) { $form['bau']=array(...); } I just had issues with multistep forms making use of $form_values when I was willing to provide a fall back from somepath/1/2 to somepath/ without duplicating too much code. I solved it in a way that I didn't find intuitive but I forgot how I did. But in less complicated situation it definitively works smoothly in D5. -- Ivan Sergio Borgonovo http://www.webthatworks.it From metzlerd at evergreen.edu Wed Jul 30 18:47:43 2008 From: metzlerd at evergreen.edu (Metzler, David) Date: Wed, 30 Jul 2008 11:47:43 -0700 Subject: [support] Simple Module Coding Question In-Reply-To: <20080730204038.3f767227@dawn.webthatworks.it> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com><384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <20080730204038.3f767227@dawn.webthatworks.it> Message-ID: <384BE444EEC12143B241C72BCD7E9BA8220B37@birch.evergreen.edu> Thanks for this guys I really didn't realize this was possible. When I read the module porting guidelines, it suggested that form rendering functions now only take one parameter, that is formid. I wish I knew about this before I wrote all those static caching functions as a workaround. :). FYI: If you do the exact code Ivan suggests here this, you need to make sure it's in the (!$maycache) section of the hook_menu, which means of course you can't customize it. This will be better in D6 where wildcards take up the slack. Dave -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Ivan Sergio Borgonovo Sent: Wednesday, July 30, 2008 11:41 AM To: support at drupal.org Subject: Re: [support] Simple Module Coding Question On Wed, 30 Jul 2008 11:07:43 -0700 "Metzler, David" <metzlerd at evergreen.edu> wrote: > I usually just get it using a call to arg(1) in the from rendering > function. > > Make sense? This makes your form definition function dependent on where it is rendered. What about ... 'path' => 'somepath/'.arg(1).'/'.arg(2), 'callback' => 'drupal_get_form', 'callback arguments' => Array('my_form',arg(1), arg(2)), ... function my_form($p1, $p2, $form_values) { $form['bau']=array(...); } I just had issues with multistep forms making use of $form_values when I was willing to provide a fall back from somepath/1/2 to somepath/ without duplicating too much code. I solved it in a way that I didn't find intuitive but I forgot how I did. But in less complicated situation it definitively works smoothly in D5. -- Ivan Sergio Borgonovo http://www.webthatworks.it -- [ Drupal support list | http://lists.drupal.org/ ] From fredthejonester at gmail.com Wed Jul 30 18:58:31 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 20:58:31 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <20080730204038.3f767227@dawn.webthatworks.it> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <20080730204038.3f767227@dawn.webthatworks.it> Message-ID: <177c0a10807301158h528daaecv2779ce394f71e903@mail.gmail.com> >> I usually just get it using a call to arg(1) in the from rendering >> function. > > This makes your form definition function dependent on where it is > rendered. > > What about > ... > 'path' => 'somepath/'.arg(1).'/'.arg(2), > 'callback' => 'drupal_get_form', > 'callback arguments' => Array('my_form',arg(1), arg(2)), I don't understand you, Ivan. Using: 'path' => 'somepath', and then calling arg(1) will yes only work at a URL of the form: somepath/x but your solution also only will work at a URL of the form: somepath/x/y I don't see any difference--on the contrary, using arg(1) etc. seems more flexible, because then I can always access arg(3) without worrying about adding to my callback arguments. Perhaps I am not understanding you correctly. Thanks From marolijo at yahoo.es Wed Jul 30 19:07:16 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 30 Jul 2008 21:07:16 +0200 Subject: [support] Views and i18n show other locale nodes In-Reply-To: <712565.62650.bm@omp406.mail.mud.yahoo.com> Message-ID: <328977.8480.bm@omp102.mail.re1.yahoo.com> Solved! I have more details... the problem is on the Imagecache derivate image generated as link, it links to the EN version. But if I generate a link on the views template with the NID it's ok. (so the NID are the CA version NID) Does anyone know if Imagecache with link on sincronized CCK imagefield syncronizes the link too? Thank's! _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de marolijo - Pol Maresma Enviado el: dimecres, 30 / juliol / 2008 20:37 Para: support at drupal.org Asunto: [support] Views and i18n show other locale nodes Hi, I have a view on a site with 3 languages (en-es-ca) Suddenly, the view is showing the EN nodes when I'm on CA, but working well when I'm on ES. Any idea? I cleared the cache views... thank's! __________ Informaci?n de NOD32, revisi?n 3303 (20080728) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/75879040/attachment.htm From mail at webthatworks.it Wed Jul 30 19:11:37 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Wed, 30 Jul 2008 21:11:37 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <177c0a10807301158h528daaecv2779ce394f71e903@mail.gmail.com> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <20080730204038.3f767227@dawn.webthatworks.it> <177c0a10807301158h528daaecv2779ce394f71e903@mail.gmail.com> Message-ID: <20080730211137.7b70aa25@dawn.webthatworks.it> On Wed, 30 Jul 2008 20:58:31 +0200 "Fred Jones" <fredthejonester at gmail.com> wrote: > > What about > > ... > > 'path' => 'somepath/'.arg(1).'/'.arg(2), > > 'callback' => 'drupal_get_form', > > 'callback arguments' => Array('my_form',arg(1), arg(2)), > I don't understand you, Ivan. Using: > > 'path' => 'somepath', > > and then calling arg(1) will yes only work at a URL of the form: > > somepath/x > > but your solution also only will work at a URL of the form: > > somepath/x/y In the hook yes... but at least you can reuse the form generating function elsewhere. Specifying the path with arguments in the menu_hook is a form of "input validation". If you don't need it... or you'd like to rely on default param etc... you could simply: 'path' => 'somepath', 'callback' => 'drupal_get_form', 'callback arguments' => Array('my_form',arg(1), arg(2)), ... but still you could use my_form elsewhere... maybe in another hook or as part of a more complicated page or merged with other forms of modified through form_alter etc... To be extraclear function my_form($form_values) { $mystuff=(int)arg(1)*(int)arg(2); } is much less flexible than function my_form($a, $b, $form_values) { $mystuff=$a*$b; } and you could even wrap input validation elsewhere. -- Ivan Sergio Borgonovo http://www.webthatworks.it From fredthejonester at gmail.com Wed Jul 30 19:43:08 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 30 Jul 2008 21:43:08 +0200 Subject: [support] Simple Module Coding Question In-Reply-To: <20080730211137.7b70aa25@dawn.webthatworks.it> References: <177c0a10807301105q2d4539d8sfc8f0b4fa3d9ba4@mail.gmail.com> <384BE444EEC12143B241C72BCD7E9BA8220B33@birch.evergreen.edu> <20080730204038.3f767227@dawn.webthatworks.it> <177c0a10807301158h528daaecv2779ce394f71e903@mail.gmail.com> <20080730211137.7b70aa25@dawn.webthatworks.it> Message-ID: <177c0a10807301243y30049b99k5b4e0aed4a9eba81@mail.gmail.com> > To be extraclear > > function my_form($form_values) { > $mystuff=(int)arg(1)*(int)arg(2); > } > > is much less flexible than > > function my_form($a, $b, $form_values) { > $mystuff=$a*$b; > } > > and you could even wrap input validation elsewhere. Ah, now I see. Yes, you are quite right--good point. Thanks. From pdow at dowsoftware.com Wed Jul 30 20:20:54 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Wed, 30 Jul 2008 13:20:54 -0700 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <488DE7B0.9040007@comcast.net> References: <488DDF52.70004@dowsoftware.com> <1217258242.9694.12.camel@localhost> <488DE7B0.9040007@comcast.net> Message-ID: <4890CD26.8020907@dowsoftware.com> Hi Steve, Sounds promising, but (I'm a newbie) what's the Input format? Where do I check it? *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / Steve Edwards wrote: > When I've had this problem, it's been the Input format. Filtered HTML > doesn't allow <img> tags, but Full HTML does. > > Steve > > Pierre Rineau wrote: >> Use an extension like firebug (or introspect your rendered page source) >> to check the path is set. >> >> If your image is present in the web page source, but does not display, >> check your file is present; if yes, then check path is correct in web >> page; if yes check your files rights on your file system, maybe your >> files does not have the read permission for your apache user. >> >> If it does not works, check your templates files, if the picture is >> there, if yes, then check you did not override the theme_* function that >> display the picture. >> >> If always not working, update core and modules and pray. >> >> On lun, 2008-07-28 at 08:01 -0700, Peter Dow (DSS) wrote: >> >>> I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5, Drupal 5.7. >>> >>> Using the Garland them, I configured it to show user pictures in posts >>> and comments. I uploaded a couple of pictures for a couple of user >>> profiles, and all that shows on the blog is a link with the text >>> "userid's picture". Nothing in the user's configuration page shows >>> which picture is associated with that user. >>> >>> The picture is in the files/pictures directory and is named >>> picture-1.jpg, but there is nothing in the drupal5 database "files" >>> table. However, the users table shows the correct path for each picture >>> assigned to a user. >>> >>> What's going on? >>> >>> ** *Peter Dow* / >>> Dow Software Services, Inc. >>> 909 793-9050 >>> pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / >>> >>> p.s. I've manged to get Clean URLs configured, but IE is still gives >>> "Access Denied" message when trying to login. >>> >>> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/984088c5/attachment.htm From pdow at dowsoftware.com Wed Jul 30 20:32:54 2008 From: pdow at dowsoftware.com (Peter Dow (DSS)) Date: Wed, 30 Jul 2008 13:32:54 -0700 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <1217258242.9694.12.camel@localhost> References: <488DDF52.70004@dowsoftware.com> <1217258242.9694.12.camel@localhost> Message-ID: <4890CFF6.2030305@dowsoftware.com> Hi Pierre, Great tip! I had firebug check for broken images: http://www.cardenasdow.us/ 0 broken images http://71.189.231.57:5080/drupal5/ 1. http://www.cardenasdow.us/drupal5/files/pictures/picture-2.jpg 2. http://www.cardenasdow.us/drupal5/files/pictures/picture-2.jpg 3. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 4. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 5. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 6. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 7. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 8. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 9. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg 10. http://www.cardenasdow.us/drupal5/files/pictures/picture-1.jpg The problem here is that I have a dynamic IP address with no-ip.com, and in addition, Verizon (my ISP) blocks port 80 requests. So no-ip.com does a port-redirect on www.cardenasdow.us to port 5080, which my router points to port 80 on the server. Unfortunately, drupal apparently takes the "cardenasdow.us" part of the url and gets the IP for that (71.189.231.57) to use in subsequent urls. The IP for www.cardenasdow.us is currently 72.5.169.70. How do I get drupal to keep using www.cardenasdow.us instead of the ip address? *Peter Dow* / Dow Software Services, Inc. 909 793-9050 pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / Pierre Rineau wrote: > Use an extension like firebug (or introspect your rendered page source) > to check the path is set. > > If your image is present in the web page source, but does not display, > check your file is present; if yes, then check path is correct in web > page; if yes check your files rights on your file system, maybe your > files does not have the read permission for your apache user. > > If it does not works, check your templates files, if the picture is > there, if yes, then check you did not override the theme_* function that > display the picture. > > If always not working, update core and modules and pray. > > On lun, 2008-07-28 at 08:01 -0700, Peter Dow (DSS) wrote: > >> I'm running Xubuntu, Apache2.2.8 (Ubuntu), PHP 5.2.4, MySQL 5, Drupal 5.7. >> >> Using the Garland them, I configured it to show user pictures in posts >> and comments. I uploaded a couple of pictures for a couple of user >> profiles, and all that shows on the blog is a link with the text >> "userid's picture". Nothing in the user's configuration page shows >> which picture is associated with that user. >> >> The picture is in the files/pictures directory and is named >> picture-1.jpg, but there is nothing in the drupal5 database "files" >> table. However, the users table shows the correct path for each picture >> assigned to a user. >> >> What's going on? >> >> ** *Peter Dow* / >> Dow Software Services, Inc. >> 909 793-9050 >> pdow at dowsoftware.com <mailto:pdow at dowsoftware.com> / >> >> p.s. I've manged to get Clean URLs configured, but IE is still gives >> "Access Denied" message when trying to login. >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080730/796cc9cc/attachment.htm From jasondbecker at gmail.com Wed Jul 30 23:55:10 2008 From: jasondbecker at gmail.com (Jason Becker) Date: Wed, 30 Jul 2008 17:55:10 -0600 Subject: [support] How to confirm that Drupal is using reverse_proxy? Message-ID: <9406ee920807301655n22fa5f10h31741f0173fd0ce7@mail.gmail.com> Hi All, I have nginx 0.7.6 in front of Drupal 6.3 in a test environment. I have edited settings.php: 'reverse_proxy' => TRUE, 'reverse_proxy_addresses' => array('192.168.2.179'), Where can I look to see a X-Forwarded-For address? I don't see it in the sessions table (hostname). I have tested with plain old PHP to confirm that my proxy setup is copesetic and written X-Forwarded-For into the apache log (i.e. %{X-Forwarded-For}i) but how do I confirm my proxy setup is working with Drupal? My apologies if this is obvious! But smite me with the answer! Cheers Jason From bharanikumariyerphp at gmail.com Thu Jul 31 02:58:13 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 31 Jul 2008 08:28:13 +0530 Subject: [support] Content Type Dele problem In-Reply-To: <48907998.5080601@funnymonkey.com> References: <2240033d0807292243t20a23277t6dd1b6760ba1dbb8@mail.gmail.com> <48900522.80104@funnymonkey.com> <20080730100330.t5xmjx70h7280ko8@mail.progw.org> <48907998.5080601@funnymonkey.com> Message-ID: <2240033d0807301958r6bef748fr780da6ea7f62ed6c@mail.gmail.com> then , there is no solution in 5.x for that content type problem !! On Wed, Jul 30, 2008 at 7:54 PM, Marc Poris <marc at funnymonkey.com> wrote: > In 6.3 there's already an excellent warning in the confirmation > message. Try it out slowly. > > Marc > > > Earnie Boyd wrote: > > Quoting Bill Fitzgerald <bill at funnymonkey.com>: > > > > > >> My .02 -- > >> > >> I don't really see this as a bug, but as a feature that protects a site > >> from mass content deletion if a node type is inadvertently deleted. > >> > >> > > > > It is a bug that you don't get the warning you mention below. > > > > > >> One possible fix, which would be more of a feature: if there are nodes > >> of any content type, flash a warning onscreen if a user is attempting to > >> delete the node type. > >> > >> > > > > Yes, and if it doesn't stop the user from deleting the content type > > with content assigned without deleting the content then it is a design > > flaw, IMNSHO. The lack of foreign key relationships is the reason that > > this design can flourish. > > > > > >> Generally, though, the ability to delete node types should only be given > >> to highly trusted -- and highly competent -- users. > >> > >> > > > > I agree but that doesn't negate the flawed design feature. > > > > > >> Cheers, > >> > >> Bill > >> > >> bharani kumar wrote: > >> > >>> Hi > >>> > >>> > >>> The steps to generate the bug are: > >>> > >>> 1. Create a Content type (eg: Content type 1) > >>> > >>> 2. Create a content(eg: content-1) of the same content type (Content > type > >>> 1). > >>> 3. Delete the Content type (i.e., Content type 1). > >>> 4. Try to edit the content (content-1). > >>> > >>> The browser will show warning, > >>> and you wont be able to edit the > >>> contents. > >>> > >>> 5. Now create a content-type with the same name, which you have deleted > >>> (i.e., Content type 1), and you will be able to edit or delete your > content > >>> (i.e., content-1). > >>> > >>> > >>> ???Any solution > >>> > >>> > > > > Create a module to hook_form_alter and add a #validate function that > > will be called and add form_error() message if the content type has > > content. > > > > Earnie -- http://for-my-kids.com/ > > -- http://give-me-an-offer.com/ > > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/23526a91/attachment.htm From simone.dalmaso at juvox.it Thu Jul 31 07:04:58 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Thu, 31 Jul 2008 09:04:58 +0200 Subject: [support] php and drupal. how to start learning? Message-ID: <003001c8f2db$beb2af00$06000a0a@csa> Hi, I'm quite tired to ask questions and questions, only because I don't know php and the main structure of drupal. So, I'd like to study. Do you know if exist a manual or a tutorial that explain drupal's structure and the fundamental of php? or, could you just tell me what to start reading? thank you. From mail at webthatworks.it Thu Jul 31 07:56:11 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Thu, 31 Jul 2008 09:56:11 +0200 Subject: [support] security mailing list "slow" announcment for SA-2008-046 sent today Message-ID: <20080731095611.7852251c@dawn.webthatworks.it> I just received the July 23rd announcement of session fixation from the security mailing list. ------------SA-2008-046 - DRUPAL CORE - SESSION FIXATION------------ * Advisory ID: DRUPAL-SA-2008-046 ... * Date: 2008-July-23 ... but the headers say Received: from www1.drupal.org (www1.drupal.org [140.211.166.61]) by fraxinus.osuosl.org (Postfix) with ESMTP id F241F3C700 for <mail at webthatworks.it>; Thu, 31 Jul 2008 06:03:15 +0000 (UTC) Received: by www1.drupal.org (Postfix, from userid 81) id F072D16B4E8; Thu, 31 Jul 2008 06:03:15 +0000 (UTC) fortunately I upgraded much before... but the email was actually sent today. -- Ivan Sergio Borgonovo http://www.webthatworks.it From shyamala at netlinkindia.com Thu Jul 31 08:03:49 2008 From: shyamala at netlinkindia.com (Shyamala Rajaram) Date: Thu, 31 Jul 2008 13:33:49 +0530 Subject: [support] php and drupal. how to start learning? References: <003001c8f2db$beb2af00$06000a0a@csa> Message-ID: <030501c8f2e4$099f4fc0$3663a8c0@netlinkindia.local> I have embedded Aquia'a video on my blog. "A 10 minute Drupal Demo for a small business website", real neat video. Gives a good Preview as to what drupal can do. Check out: http://shyamala-drupal.blogspot.com/. Useful links : http://drupal.org/getting-started http://drupal.org/handbook/customization/tutorials/beginners-cookbook Shyamala Technology Head - Drupal Competency Center Netlink Technologies Ltd. ----- Original Message ----- From: "Simone Dal Maso" <simone.dalmaso at juvox.it> To: <support at drupal.org> Sent: Thursday, July 31, 2008 12:34 PM Subject: [support] php and drupal. how to start learning? > Hi, > I'm quite tired to ask questions and questions, only because I don't know php and the main structure of drupal. > So, I'd like to study. > Do you know if exist a manual or a tutorial that explain drupal's structure and the fundamental of php? > or, could you just tell me what to start reading? > thank you. > > -- > [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/5c351a3b/attachment.htm From fredthejonester at gmail.com Thu Jul 31 11:23:34 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 31 Jul 2008 13:23:34 +0200 Subject: [support] Another d5 Module Coding Question Message-ID: <177c0a10807310423m272f6c61idc75fd93a1e7400c@mail.gmail.com> I have a form which is generated--the user enters his data and submits the form. I run a search based on that, and what I want to do is to show him the same form again (so he can rerun it) with the search results below it. Whether I use drupal_get_form as the callback or whether I use a custom function that calls drupal_get_form, it seems that me that my form function is called before my validation function, yet its only in the validation function that I see that I have access to $form_values. I can run the search there, but I don't yet see how to add those search results to the page. I do see that the user module uses $_POST. Is that the recommended method? In my custom function, I can just access the search fields inputted via $_POST, run the search, and then add those results to the form which I generate via drupal_get_form. I can do it this way, it just seems a bit low-tech for Drupal, heh heh. Thanks From earnie at users.sourceforge.net Thu Jul 31 11:32:03 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 31 Jul 2008 07:32:03 -0400 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <4890CFF6.2030305@dowsoftware.com> References: <488DDF52.70004@dowsoftware.com> <1217258242.9694.12.camel@localhost> <4890CFF6.2030305@dowsoftware.com> Message-ID: <20080731073203.093pm5apueg4c0cw@mail.progw.org> Quoting "Peter Dow (DSS)" <pdow at dowsoftware.com>: > How do I get drupal to keep using www.cardenasdow.us instead of the > ip address? > Add the mapping to your local DNS or modify the /etc/hosts file or windows <windows root>/sytem32/drivers/etc/hosts to add the mapping. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From fredthejonester at gmail.com Thu Jul 31 11:34:29 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 31 Jul 2008 13:34:29 +0200 Subject: [support] Another d5 Module Coding Question In-Reply-To: <177c0a10807310423m272f6c61idc75fd93a1e7400c@mail.gmail.com> References: <177c0a10807310423m272f6c61idc75fd93a1e7400c@mail.gmail.com> Message-ID: <177c0a10807310434l70c4dab7q819b2ae7014a317d@mail.gmail.com> > I have a form which is generated--the user enters his data and submits > the form. I run a search based on that, and what I want to do is to > show him the same form again (so he can rerun it) with the search > results below it. Hey stupid, why don't you just work more on your Google skills and then check out this article: http://www.lullabot.com/articles/drupal_5_making_forms_that_display_their_own_results entitled: Drupal 5: Making forms that display their own results because that's exactly the question you asked--there is a code sample there, and I can confirm that it works--I just tested it. :) Thank you. Sorry. Please continue to ignore me. From fredthejonester at gmail.com Thu Jul 31 11:35:41 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 31 Jul 2008 13:35:41 +0200 Subject: [support] Drupal 5.8 pictures not showing In-Reply-To: <4890CD26.8020907@dowsoftware.com> References: <488DDF52.70004@dowsoftware.com> <1217258242.9694.12.camel@localhost> <488DE7B0.9040007@comcast.net> <4890CD26.8020907@dowsoftware.com> Message-ID: <177c0a10807310435k7706b367k675cfe6800b5bfba@mail.gmail.com> > Sounds promising, but (I'm a newbie) what's the Input format? Where do I > check it? Under the Body textarea is a link for "Input format" Click that to see the choices. From hays at ohio.edu Thu Jul 31 11:53:44 2008 From: hays at ohio.edu (Steve Hays) Date: Thu, 31 Jul 2008 07:53:44 -0400 Subject: [support] Access error in Views (D6.3) Message-ID: <3C8D90F9-EAC1-45DC-8AF8-ACD74E6EDE5B@ohio.edu> I created a very simple Views page list of Books on my site (Filter: Book Depth = 1)--an index of books. I want it to be visible to everyone. Views>> Access is set to "unrestricted." Permissions >> Access All Views is checked for all roles, including anonymous. And yet it is visible to all registered users, but NOT to anonymous users (who get only a white page). Can anyone imagine some other permission feature I have overlooked? Or is this a bug? If it's a bug, can anyone tell me if there is a way to hack a permission override for a single URL-aliased page or Views-page? Steve Hays Ohio University From marolijo at yahoo.es Thu Jul 31 12:08:37 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 31 Jul 2008 14:08:37 +0200 Subject: [support] Ubercart: Send an email on order confirm Message-ID: <562261.90191.bm@omp107.mail.re1.yahoo.com> Anyone knows how to do that? I wanna have a mail sent to shop admin and to the customer. thank's! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/a344857e/attachment.htm From edward.peters at uk.iofc.org Thu Jul 31 13:46:46 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Thu, 31 Jul 2008 14:46:46 +0100 Subject: [support] Filtering a View Message-ID: <06f401c8f313$e0e2fe80$a2a8fb80$@peters@uk.iofc.org> Is there a way to expose a filter for a view which defaults to show NO results? I want to filter but only show results when a filter is actually chosen by the user. At present a lot of results are shown when one goes to the page, before filtering. Edward Peters Oxford, UK www.iofc.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/9bd3ffd1/attachment-0001.htm From earnie at users.sourceforge.net Thu Jul 31 15:02:49 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 31 Jul 2008 11:02:49 -0400 Subject: [support] Ubercart: Send an email on order confirm In-Reply-To: <562261.90191.bm@omp107.mail.re1.yahoo.com> References: <562261.90191.bm@omp107.mail.re1.yahoo.com> Message-ID: <20080731110249.81anw5pqsojoggso@mail.progw.org> Quoting marolijo - Pol Maresma <marolijo at yahoo.es>: > Anyone knows how to do that? > I wanna have a mail sent to shop admin and to the customer. > The Ubercart maintainer has chosen to support Ubercart on the Ubercart site. You should ask there. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Thu Jul 31 15:06:44 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Thu, 31 Jul 2008 11:06:44 -0400 Subject: [support] Access error in Views (D6.3) In-Reply-To: <3C8D90F9-EAC1-45DC-8AF8-ACD74E6EDE5B@ohio.edu> References: <3C8D90F9-EAC1-45DC-8AF8-ACD74E6EDE5B@ohio.edu> Message-ID: <20080731110644.4hb14ze9nmxw4skk@mail.progw.org> Quoting Steve Hays <hays at ohio.edu>: > I created a very simple Views page list of Books on my site (Filter: > Book Depth = 1)--an index of books. I want it to be visible to > everyone. Views>> Access is set to "unrestricted." Permissions >> > Access All Views is checked for all roles, including anonymous. And > yet it is visible to all registered users, but NOT to anonymous users > (who get only a white page). > > Can anyone imagine some other permission feature I have overlooked? Or > is this a bug? > If it's a bug, can anyone tell me if there is a way to hack a > permission override for a single URL-aliased page or Views-page? > Steve, you asked that at http://drupal.org/node/289477 where I responded. Please don't ask in more than one forum. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From cxjohnson at gmail.com Thu Jul 31 16:00:12 2008 From: cxjohnson at gmail.com (Chris Johnson) Date: Thu, 31 Jul 2008 11:00:12 -0500 Subject: [support] security mailing list "slow" announcment for SA-2008-046 sent today In-Reply-To: <20080731095611.7852251c@dawn.webthatworks.it> References: <20080731095611.7852251c@dawn.webthatworks.it> Message-ID: <9ea8d6030807310900q5b253b53o406042524f2ad97b@mail.gmail.com> Actually, I've noticed some other email date / arrival date oddities with the security list. I just received an email sent by a user to the security list a week ago (I'm a member of the security team). So maybe there's some email delay problems at OSUOSL that are affecting mail in both directions? On Thu, Jul 31, 2008 at 2:56 AM, Ivan Sergio Borgonovo <mail at webthatworks.it> wrote: > I just received the July 23rd announcement of session fixation from > the security mailing list. > > ------------SA-2008-046 - DRUPAL CORE - SESSION FIXATION------------ > > * Advisory ID: DRUPAL-SA-2008-046 > ... > * Date: 2008-July-23 > > ... but the headers say > > Received: from www1.drupal.org (www1.drupal.org [140.211.166.61]) > by fraxinus.osuosl.org (Postfix) with ESMTP id F241F3C700 > for <mail at webthatworks.it>; Thu, 31 Jul 2008 06:03:15 +0000 (UTC) > Received: by www1.drupal.org (Postfix, from userid 81) > id F072D16B4E8; Thu, 31 Jul 2008 06:03:15 +0000 (UTC) From mail at webthatworks.it Thu Jul 31 16:23:59 2008 From: mail at webthatworks.it (Ivan Sergio Borgonovo) Date: Thu, 31 Jul 2008 18:23:59 +0200 Subject: [support] security mailing list "slow" announcment for SA-2008-046 sent today In-Reply-To: <9ea8d6030807310900q5b253b53o406042524f2ad97b@mail.gmail.com> References: <20080731095611.7852251c@dawn.webthatworks.it> <9ea8d6030807310900q5b253b53o406042524f2ad97b@mail.gmail.com> Message-ID: <20080731182359.137ce7ec@dawn.webthatworks.it> On Thu, 31 Jul 2008 11:00:12 -0500 "Chris Johnson" <cxjohnson at gmail.com> wrote: > Actually, I've noticed some other email date / arrival date > oddities with the security list. I just received an email sent by > a user to the security list a week ago (I'm a member of the > security team). So maybe there's some email delay problems at > OSUOSL that are affecting mail in both directions? If it's not easy to monitor sec ml or make it more reliable I'd add a couple of lines: http://drupal.org/support and http://drupal.org/drupal-6.3 to advise people to subscribe to the rss too. -- Ivan Sergio Borgonovo http://www.webthatworks.it From bharanikumariyerphp at gmail.com Thu Jul 31 16:40:29 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 31 Jul 2008 22:10:29 +0530 Subject: [support] how to disable the warnings Message-ID: <2240033d0807310940x31899ba8n52fa193db181adbc@mail.gmail.com> Hi In drupal, how to disable the WARNING MSG -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/a0f2cbae/attachment.htm From denis.lafont at gmail.com Thu Jul 31 16:48:00 2008 From: denis.lafont at gmail.com (Denis Lafont-Trevisan) Date: Thu, 31 Jul 2008 18:48:00 +0200 Subject: [support] how to disable the warnings In-Reply-To: <2240033d0807310940x31899ba8n52fa193db181adbc@mail.gmail.com> References: <2240033d0807310940x31899ba8n52fa193db181adbc@mail.gmail.com> Message-ID: <51182f4c0807310948x3bb7bf9aracfd87406987f085@mail.gmail.com> Administer <http://www.opensource-it.com/admin> ? Site configuration<http://www.opensource-it.com/admin/settings>> Error Reporting On Thu, Jul 31, 2008 at 6:40 PM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Hi > > In drupal, how to disable the WARNING MSG > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/80f92a38/attachment.htm From bharanikumariyerphp at gmail.com Thu Jul 31 16:51:18 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 31 Jul 2008 22:21:18 +0530 Subject: [support] how to disable the warnings In-Reply-To: <51182f4c0807310948x3bb7bf9aracfd87406987f085@mail.gmail.com> References: <2240033d0807310940x31899ba8n52fa193db181adbc@mail.gmail.com> <51182f4c0807310948x3bb7bf9aracfd87406987f085@mail.gmail.com> Message-ID: <2240033d0807310951i836461bj5588d37bd6867262@mail.gmail.com> kkkkkkkkkk...... i also guess that one... but after ur mail i confirmed,,thanks,,, can u tell me... in that combo..there are two selection..what is the diff can u plzzzzzzz On Thu, Jul 31, 2008 at 10:18 PM, Denis Lafont-Trevisan < denis.lafont at gmail.com> wrote: > Administer <http://www.opensource-it.com/admin> ? Site configuration<http://www.opensource-it.com/admin/settings>> Error Reporting > > On Thu, Jul 31, 2008 at 6:40 PM, bharani kumar < > bharanikumariyerphp at gmail.com> wrote: > >> Hi >> >> In drupal, how to disable the WARNING MSG >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080731/5b848e46/attachment.htm