From neil at esl-lounge.com Sun Jun 1 11:04:40 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Sun, 1 Jun 2008 13:04:40 +0200 Subject: [support] Is there a way to "lock" taxonomy selections for a node after publication? Message-ID: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> I have many OG group node content types where both the URL and the title are created automatically from the taxonomy settings. So when a user creates a new group and selects the location to be USA >> Texas >> Dallas: Title: My Group (Texas, Dallas, USA) URL /group/usa/texas/dallas/mygroup Is there a way for me to prevent that group administrator/creator from going back and changing the taxonomy terms a year down the line and therefore changing both the title and, more importantly, the URL with all its implications for SEO, site organisation, broken links, etc.?? How can I "lock" taxonomy on publication? Is that doable? Regards Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080601/7a44ef64/attachment.htm From earnie at users.sourceforge.net Sun Jun 1 13:14:01 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Sun, 01 Jun 2008 09:14:01 -0400 Subject: [support] Is there a way to "lock" taxonomy selections for a node after publication? In-Reply-To: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> References: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> Message-ID: <20080601091401.4j1j324m0ya8808w@mail.progw.org> Quoting "Neil: esl-lounge.com" : > > How can I "lock" taxonomy on publication? Is that doable? > You'll need to program up a module and use http://api.drupal.org/api/function/book_nodeapi to prevent the changes. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From shellmultimedia at gmail.com Sun Jun 1 13:28:45 2008 From: shellmultimedia at gmail.com (Michelle Cox) Date: Sun, 1 Jun 2008 08:28:45 -0500 Subject: [support] Is there a way to "lock" taxonomy selections for a node after publication? In-Reply-To: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> References: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> Message-ID: <8ccde8ac0806010628q6a703b81r600f25fb518e53e9@mail.gmail.com> On Sun, Jun 1, 2008 at 6:04 AM, Neil: esl-lounge.com wrote: > > Is there a way for me to prevent that group administrator/creator from > going back and changing the taxonomy terms a year down the line and > therefore changing both the title and, more importantly, the URL with all > its implications for SEO, site organisation, broken links, etc.?? > This doesn't answer your question, but be sure this is actually a problem before spending too much time on it. Pathauto can be set to not change the URL once it's created and auto nodetitles only sets it on create, IIRC. Michelle -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080601/1cf533d5/attachment.htm From neil at esl-lounge.com Sun Jun 1 14:49:52 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Sun, 1 Jun 2008 16:49:52 +0200 Subject: [support] Is there a way to "lock" taxonomy selections for anode after publication? References: <006001c8c3d7$4adc5dc0$a8d90a3e@Neil> <8ccde8ac0806010628q6a703b81r600f25fb518e53e9@mail.gmail.com> Message-ID: <00bb01c8c3f6$c02a54f0$a8d90a3e@Neil> Thanks for that information Michelle. I've just found the PathAuto setting, which is the more important of my two questions resolved. Node titles, however, does alter the title when I change the taxonomy terms on node/edit. Neil ----- Original Message ----- From: Michelle Cox To: support at drupal.org Sent: Sunday, June 01, 2008 3:28 PM Subject: Re: [support] Is there a way to "lock" taxonomy selections for anode after publication? On Sun, Jun 1, 2008 at 6:04 AM, Neil: esl-lounge.com wrote: Is there a way for me to prevent that group administrator/creator from going back and changing the taxonomy terms a year down the line and therefore changing both the title and, more importantly, the URL with all its implications for SEO, site organisation, broken links, etc.?? This doesn't answer your question, but be sure this is actually a problem before spending too much time on it. Pathauto can be set to not change the URL once it's created and auto nodetitles only sets it on create, IIRC. Michelle ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080601/228b882e/attachment.htm From thejanitor at fastmail.fm Sun Jun 1 16:53:49 2008 From: thejanitor at fastmail.fm (The Janitor) Date: Sun, 1 Jun 2008 17:53:49 +0100 Subject: [support] Email members In-Reply-To: <20080530192721.77v3abqbphc0g40o@mail.progw.org> References: <1189342016.20080530205840@fastmail.fm> <20080530192721.77v3abqbphc0g40o@mail.progw.org> Message-ID: <134346279.20080601175349@fastmail.fm> 01 June 2008 - 17:52 (where I live) Earnie Boyd Hello Earnie, Thanks for the reply but could you elaborate on: " Couldn't you just grab the list from the user table?" Many thanks. Saturday, May 31, 2008, 12:27:21 AM, you wrote: EB> Quoting The Janitor : >> 30 May 2008 - 20:49 (where I live) >> support at drupal.org >> >> Greetings from a very damp Cambridgeshire >> >> I would like to send a one-off message to all (about 90) >> authenticated members >> in the simplest possible way. It will be a simple text message just >> drawing their attention to a new poll. >> EB> Have you check Advanced User[1]? It still has problems with the EB> profile fields but what you explain here is functioning. >> I've looked at a couple of email modules but they seem either >> overkill or buggy. >> >> Alternatively is there a way to harvest members' email addresses so >> that I can send an group email from my MUA. >> EB> Couldn't you just grab the list from the user table? EB> [1] http://drupal.org/project/advuser EB> Earnie -- http://for-my-kids.com/ EB> -- http://give-me-an-offer.com/ -- Best regards, The Janitor mailto:thejanitor at fastmail.fm Flying with The Bat! Professional version 4.0.7 Privileged and/or confidential information and/or copyright material may be contained in this e-mail.If you are not the intended recipient or the person responsible for delivering it to the intended recipient you must not copy it,deliver it to anyone else or use it in anyway whatsoever.To do so is prohibited and may be unlawful. Instead, kindly destroy this message and notify the sender by reply e-mail. Fe all fod gwybodaeth freiniol a/neu gyfrinachol a/neu ddeunydd dan amodau hawlfraint y neges e-bost yma. Os nad y chi sydd i fod gael y neges, neu'r un sy'n gyfrifol am ei throsglwyddo, rhaid i chi beidio a'i chopio na'i throsglwyddo i neb un arall na'i defnyddio mewn unrhyw fodd o gwbl. Mae gwaharddiad ar i chi wneud hynny ac efallai y byddech chi'n torri'r gyfraith trwy wneud hynny. Dinistriwch y neges yma ac anfonwch neges e-bost at y sawl a'i hanfonodd i roi gwybod iddo fe. The author recommends NOD32 (www.eset.com) as the most effective and efficient anti-virus software. From fredthejonester at gmail.com Sun Jun 1 17:49:09 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Sun, 1 Jun 2008 19:49:09 +0200 Subject: [support] CCK Field Search Message-ID: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> I believe this question has been asked before, but I see no clear answer. I have a site with a simple CCK nodetype with a few text fields. We need to implement a 'scholarly' search whereby one can limit one's search by year, Volume, author, or limit his search to the Title field. We want something akin to the author, subject, date feature here: http://scholar.google.co.il/advanced_scholar_search?hl=en&lr= The Faceted Search module I believe may have this functionality, but neither the stable nor beta version will run correctly on the PHP 4 live server and even the stable one doesn't run on my local PHP 5 dev. server. :( Faceted Search is quite a complicated module. My simple approach would be to just run a regular old text search based on the fields submitted. I would have to add an index or two, but aside from that, I think it would work. Are there any better suggestions? Thanks! From larry at garfieldtech.com Sun Jun 1 18:34:29 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Sun, 1 Jun 2008 13:34:29 -0500 Subject: [support] CCK Field Search In-Reply-To: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> Message-ID: <200806011334.29644.larry@garfieldtech.com> Try looking into views_fastsearch.module. It lets you leverage the search module's database for Views' exposed filters, creating a reasonably good facsimile of a per-field search. On Sunday 01 June 2008, Fred Jones wrote: > I believe this question has been asked before, but I see no clear > answer. I have a site with a simple CCK nodetype with a few text > fields. We need to implement a 'scholarly' search whereby one can > limit one's search by year, Volume, author, or limit his search to the > Title field. We want something akin to the author, subject, date > feature here: > > http://scholar.google.co.il/advanced_scholar_search?hl=en&lr= > > The Faceted Search module I believe may have this functionality, but > neither the stable nor beta version will run correctly on the PHP 4 > live server and even the stable one doesn't run on my local PHP 5 dev. > server. :( > > Faceted Search is quite a complicated module. My simple approach would > be to just run a regular old text search based on the fields > submitted. I would have to add an index or two, but aside from that, I > think it would work. > > Are there any better suggestions? > > Thanks! -- Larry Garfield AIM: LOLG42 larry at garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson From info at koba.be Sun Jun 1 19:14:10 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Sun, 1 Jun 2008 21:14:10 +0200 Subject: [support] Email members In-Reply-To: <1189342016.20080530205840@fastmail.fm> References: <1189342016.20080530205840@fastmail.fm> Message-ID: <51a9b8330806011214g39cac479tce9b6b115e14374@mail.gmail.com> > I would like to send a one-off message to all (about 90) authenticated > members > in the simplest possible way. It will be a simple text message just > drawing their attention to a new poll. > > I've looked at a couple of email modules but they seem either > overkill or buggy. Did you check http://drupal.org/project/mass_contact? I've tried out recently several modules for the same purpose: finding the most simple module that just can send an email to all registered users and found that one as the most easy one. Good luck, Hans www.koba.be -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080601/22e05718/attachment.htm From hgezim at gmail.com Mon Jun 2 03:00:42 2008 From: hgezim at gmail.com (Gezim Hoxha) Date: Sun, 1 Jun 2008 21:00:42 -0600 Subject: [support] information organization for a magazine website Message-ID: Hey all. I'm totally new to drupal. I read the PDF getting started guide and I found it very useful. Thanks to the drupal community for all your hard work. I'm trying to make a web site for a magazine and I'm looking for some advise from the veterans. First, I need to tackle the information organization issue. The magazine has a number of issues in one series (about 6 issues/each series). Each issue has a number of articles. I'm not sure if it's better to make each article just a story and then add a taxonomy to link it to a specific issue or whether to have issues as a book? How would I represent a series? Now, a bit in the implementation end. I on the right side of the front page a list of stories (blog site) and right side of main page list of all the articles for the current issue. What's the best way of doing this? Thanks in advance for any pointers that you might be able to give me. Regards, -Gezim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080601/ec66f3f4/attachment.htm From fredthejonester at gmail.com Mon Jun 2 11:59:07 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 2 Jun 2008 13:59:07 +0200 Subject: [support] CCK Field Search In-Reply-To: <200806011334.29644.larry@garfieldtech.com> References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> <200806011334.29644.larry@garfieldtech.com> Message-ID: <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> > Try looking into views_fastsearch.module. It lets you leverage the search > module's database for Views' exposed filters, creating a reasonably good > facsimile of a per-field search. I presume you mean to look into modifying the code, because AFAICT this module only provides a general search on all fields within the CCK nodes, but it can't be defined to search only only on one field. On the other hand, in examining this, I have realized that I can create a view and expose a filter for each CCK field in question. This allows users to effectively search on those fields. The only issue now is to style the search fields and also, to set it up so that when the view first loads, no nodes appear (as opposed to ALL nodes appearing because no search terms were setup). For that I think I could hack the Views code. Seems like this could be the easiest way actually. :) Unless someone has a better idea. Thanks, Fred From neil at esl-lounge.com Mon Jun 2 16:12:48 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Mon, 2 Jun 2008 18:12:48 +0200 Subject: [support] CCK Field Search References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com><200806011334.29644.larry@garfieldtech.com> <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> Message-ID: <003e01c8c4cb$80f8bfd0$35db0a3e@Neil> I have to admit I saw your message yesterday and didn't respond with the Views idea because I presumed you'd already considered it and dismissed it. Sorry! :-) You could always expose the fields and have results returned "If Contains: Enter Keyword Here". Nothing will get returned AND you'll have a nice user friendly instruction already entered in the text box. Neil ----- Original Message ----- From: "Fred Jones" To: Sent: Monday, June 02, 2008 1:59 PM Subject: Re: [support] CCK Field Search >> Try looking into views_fastsearch.module. It lets you leverage the >> search >> module's database for Views' exposed filters, creating a reasonably good >> facsimile of a per-field search. > > I presume you mean to look into modifying the code, because AFAICT > this module only provides a general search on all fields within the > CCK nodes, but it can't be defined to search only only on one field. > > On the other hand, in examining this, I have realized that I can > create a view and expose a filter for each CCK field in question. This > allows users to effectively search on those fields. The only issue now > is to style the search fields and also, to set it up so that when the > view first loads, no nodes appear (as opposed to ALL nodes appearing > because no search terms were setup). For that I think I could hack the > Views code. > > Seems like this could be the easiest way actually. :) > > Unless someone has a better idea. > > Thanks, > Fred > -- > [ Drupal support list | http://lists.drupal.org/ ] > From fredthejonester at gmail.com Mon Jun 2 16:27:51 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 2 Jun 2008 18:27:51 +0200 Subject: [support] CCK Field Search In-Reply-To: <003e01c8c4cb$80f8bfd0$35db0a3e@Neil> References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> <200806011334.29644.larry@garfieldtech.com> <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> <003e01c8c4cb$80f8bfd0$35db0a3e@Neil> Message-ID: <177c0a10806020927t6f01a9d8s710c631c14812108@mail.gmail.com> > You could always expose the fields and have results returned "If Contains: > Enter Keyword Here". Nothing will get returned AND you'll have a nice user > friendly instruction already entered in the text box. I thought about that also. Then I would have to add a JS trigger to that field so that when they put the cursor there, that text goes away. To leave it there will be confusing for some users, especially those who won't know precisely how to remote it easily. I suppose I will see which is easier then--edit the PHP or add a JS trigger. Thanks From marolijo at yahoo.es Mon Jun 2 19:39:26 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Mon, 2 Jun 2008 21:39:26 +0200 Subject: [support] Theme views_slideshow ? Message-ID: <492601.29681.bm@omp401.mail.mud.yahoo.com> I usually use a phptemplate_views_view_list_contenttype function to theme the output of my views but can't get this to work with this great module http://drupal.org/project/views_slideshow I tryed to use a Slideshow teaser list without results. Any idea how can I do that? Thank's! Pol Maresma PolNetwork.com / pol (a) polnetwork.com msn: marolijo From larry at garfieldtech.com Tue Jun 3 01:37:05 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Mon, 2 Jun 2008 20:37:05 -0500 Subject: [support] CCK Field Search In-Reply-To: <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> <200806011334.29644.larry@garfieldtech.com> <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> Message-ID: <200806022037.05760.larry@garfieldtech.com> On Monday 02 June 2008, Fred Jones wrote: > > Try looking into views_fastsearch.module. It lets you leverage the > > search module's database for Views' exposed filters, creating a > > reasonably good facsimile of a per-field search. > > I presume you mean to look into modifying the code, because AFAICT > this module only provides a general search on all fields within the > CCK nodes, but it can't be defined to search only only on one field. > > On the other hand, in examining this, I have realized that I can > create a view and expose a filter for each CCK field in question. This > allows users to effectively search on those fields. The only issue now > is to style the search fields and also, to set it up so that when the > view first loads, no nodes appear (as opposed to ALL nodes appearing > because no search terms were setup). For that I think I could hack the > Views code. > > Seems like this could be the easiest way actually. :) > > Unless someone has a better idea. > > Thanks, > Fred There's no need to hack Views for that. (Really, don't, you'll live longer.) I believe you want to set the default value of the filter to empty, and then "use default" on the exposed filter. Or something along those lines. It may vary with the field type, but I know it is possible to setup an "empty by default" View because I've done it before myself. -- Larry Garfield AIM: LOLG42 larry at garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson From fredthejonester at gmail.com Tue Jun 3 09:42:21 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Tue, 3 Jun 2008 11:42:21 +0200 Subject: [support] CCK Field Search In-Reply-To: <200806022037.05760.larry@garfieldtech.com> References: <177c0a10806011049t75c7b925s10b64a9881db6270@mail.gmail.com> <200806011334.29644.larry@garfieldtech.com> <177c0a10806020459u565b162bwc7b135a772cef6e9@mail.gmail.com> <200806022037.05760.larry@garfieldtech.com> Message-ID: <177c0a10806030242p3b64f98erea6ae888403e0d63@mail.gmail.com> > There's no need to hack Views for that. (Really, don't, you'll live longer.) > > I believe you want to set the default value of the filter to empty, and > then "use default" on the exposed filter. Or something along those lines. > It may vary with the field type, but I know it is possible to setup an "empty > by default" View because I've done it before myself. I don't actually see any way to do that. The hack works, however, and was pretty painless. Maybe 8 lines of code altogether. Thanks. From net at twoedged.org Tue Jun 3 10:05:55 2008 From: net at twoedged.org (John Fletcher) Date: Tue, 3 Jun 2008 20:05:55 +1000 Subject: [support] Menu positioning Message-ID: <003201c8c561$6c97b3c0$45c71b40$@org> 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). -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080603/26d689c5/attachment-0001.htm From gwenael.saint-genest at makina-corpus.com Tue Jun 3 12:44:07 2008 From: gwenael.saint-genest at makina-corpus.com (Saint-Genest Gwenael) Date: Tue, 03 Jun 2008 14:44:07 +0200 Subject: [support] Problem with update my Feed In-Reply-To: <50011fb90805280028w42139eabr257ffcca6e61a1fd@mail.gmail.com> References: <50011fb90805280028w42139eabr257ffcca6e61a1fd@mail.gmail.com> Message-ID: <48453C97.2000307@makina-corpus.com> angappa moorthy wrote: > Hi, > I'm using Drupal 5.7, in my site i have created one feed using > 'Administer ? Content management >> Add Feed'. It's not getting update after > i submit my feed and also it's not happing when i update it manually. It is > showing the following error, > *"The feed from Business seems to be broken, because of error "-10060 10060 > A connection attempt failed because the connected party did not properly > respond after a period of time, or established connection failed because > connected host has failed to respond."."* (here 'Business' is my feed > title). Anybody please help me to solve this problem.. i have proper > internet connection and all and when i use this Rss url in my browser it is > showing proper response. The url is > http://online.wsj.com/xml/rss/0,,3_7077,00.xml. This is exist when i use any > RSS url. > > Thanks & Regards > Angappa Moorthy A > Hi ! Is your network need a proxy configuration to go on external websites ? Maybe your browser use a gateway (an feed works well) and your Drupal can't join the same URL because of direct access. Some patches like [1] can be used for proxy ... G. Saint-Genest [1] http://drupal.org/files/issues/common.inc_4.patch -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 From gwenael.saint-genest at makina-corpus.com Tue Jun 3 13:13:32 2008 From: gwenael.saint-genest at makina-corpus.com (Saint-Genest Gwenael) Date: Tue, 03 Jun 2008 15:13:32 +0200 Subject: [support] newbie node id In-Reply-To: References: Message-ID: <4845437C.4080307@makina-corpus.com> Brian Wolf wrote: > Hi, > > I have a "view" that returns node id's . I would like to use these as "links" in the list built by the view. > > Thanks, > Brian > > _________________________________________________________________ > Change the world with e-mail. Join the i?m Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld > Hi, You can use a phptemplate function to override list content. - Create a template.php file into your current theme - Add a function that override views_view_list Example : name) ."'>"; $data .= l(" a link to ".$node->nid, 'node/'.$node->nid); $data .= "\n"; $items[] = $data; } return theme('item_list', $items); } ?> G. Saint-Genest -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 From jfurfey at mbl.edu Tue Jun 3 16:02:27 2008 From: jfurfey at mbl.edu (John Furfey) Date: Tue, 3 Jun 2008 12:02:27 -0400 Subject: [support] CCK type of 'person' Message-ID: <02B8F889-6312-4EE7-9A37-67B0966701A5@mbl.edu> New to Drupal and trying something which should be easy. Using CCK to create a person type. Fields are to be lastname, firstname, DOB... CCK is forcing me to give each entry a title which doesn't see to make sense, unless I use the persons full name. But I'd rather have this in lastname, firstname fields. Is there a way to add a unique id in the title field and hide it from the public? ------------------------------------------------------------ John Furfey Digital Systems and Services Coordinator MBLWHOI Library Woods Hole MA 02543 USA PHONE: 508-289-7435 EMAIL: jfurfey at mbl.edu http://www.mblwhoilibrary.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080603/b9776114/attachment.htm From killshot91 at comcast.net Tue Jun 3 17:09:54 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Tue, 03 Jun 2008 10:09:54 -0700 Subject: [support] CCK type of 'person' In-Reply-To: <02B8F889-6312-4EE7-9A37-67B0966701A5@mbl.edu> References: <02B8F889-6312-4EE7-9A37-67B0966701A5@mbl.edu> Message-ID: <48457AE2.6030907@comcast.net> You might want to look at the bio module (http://drupal.org/project/bio) for creating a profile-type node. Steve John Furfey wrote: > New to Drupal and trying something which should be easy. > > Using CCK to create a person type. > > Fields are to be lastname, firstname, DOB... > > CCK is forcing me to give each entry a title which doesn't see to make > sense, unless I use the persons full name. But I'd rather have this > in lastname, firstname fields. Is there a way to add a unique id in > the title field and hide it from the public? > > ------------------------------------------------------------ > John Furfey > Digital Systems and Services Coordinator > MBLWHOI Library > Woods Hole MA 02543 USA > PHONE: 508-289-7435 > EMAIL: jfurfey at mbl.edu > http://www.mblwhoilibrary.org > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080603/3782d99e/attachment.htm From bill at funnymonkey.com Tue Jun 3 17:25:29 2008 From: bill at funnymonkey.com (Bill Fitzgerald) Date: Tue, 03 Jun 2008 10:25:29 -0700 Subject: [support] CCK type of 'person' In-Reply-To: <02B8F889-6312-4EE7-9A37-67B0966701A5@mbl.edu> References: <02B8F889-6312-4EE7-9A37-67B0966701A5@mbl.edu> Message-ID: <48457E89.5080001@funnymonkey.com> Bio and Autonodetitle will do exactly what you describe. Bio can be used for users creating their own profiles; if the profiles will be entered by someone other than the person being described (ie, you are creating a site that gives biographical info on renowned oceanographers) then you can use autonodetitle with a standard cck content type. Cheers, Bill John Furfey wrote: > New to Drupal and trying something which should be easy. > > Using CCK to create a person type. > > Fields are to be lastname, firstname, DOB... > > CCK is forcing me to give each entry a title which doesn't see to make > sense, unless I use the persons full name. But I'd rather have this > in lastname, firstname fields. Is there a way to add a unique id in > the title field and hide it from the public? > > ------------------------------------------------------------ > John Furfey > Digital Systems and Services Coordinator > MBLWHOI Library > Woods Hole MA 02543 USA > PHONE: 508-289-7435 > EMAIL: jfurfey at mbl.edu > http://www.mblwhoilibrary.org > -- Bill Fitzgerald http://funnymonkey.com FunnyMonkey -- Tools for Teachers ph. 503 897 7160 From thejanitor at fastmail.fm Wed Jun 4 05:44:26 2008 From: thejanitor at fastmail.fm (The Janitor) Date: Wed, 4 Jun 2008 06:44:26 +0100 Subject: [support] Email members In-Reply-To: <1189342016.20080530205840@fastmail.fm> References: <1189342016.20080530205840@fastmail.fm> Message-ID: <748952246.20080604064426@fastmail.fm> 04 June 2008 - 06:30 (where I live) Friday, May 30, 2008, 8:58:40 PM, I wrote: TJ> I would like to send a one-off message to all (about 90) authenticated members TJ> in the simplest possible way. It will be a simple text message just TJ> drawing their attention to a new poll... Thanks to both Earnie and Hans for responding. In the end I just manually typed in usernames and addresses into an address book in The Bat!, sent the email to myself and BCC'd the list. I can manually update the list as (if!) new members join. As I'm running this site for my local doctor's practice I'm loathe to stray too far from the core modules unless I'm confident that contributed modules are robust and need little tweaking. It does seem to me that a *simple* facility to send a message to one's members is needed. It need do nothing else, no bells, no whistles just send a message to all authenticated users. I wish I had the time to learn these new-fangled languages so that I could write it myself but my coding career ended nearly forty years ago! -- Best regards, The Janitor mailto:thejanitor at fastmail.fm Flying with The Bat! Professional version 4.0.7 Privileged and/or confidential information and/or copyright material may be contained in this e-mail.If you are not the intended recipient or the person responsible for delivering it to the intended recipient you must not copy it,deliver it to anyone else or use it in anyway whatsoever.To do so is prohibited and may be unlawful. Instead, kindly destroy this message and notify the sender by reply e-mail. Fe all fod gwybodaeth freiniol a/neu gyfrinachol a/neu ddeunydd dan amodau hawlfraint y neges e-bost yma. Os nad y chi sydd i fod gael y neges, neu'r un sy'n gyfrifol am ei throsglwyddo, rhaid i chi beidio a'i chopio na'i throsglwyddo i neb un arall na'i defnyddio mewn unrhyw fodd o gwbl. Mae gwaharddiad ar i chi wneud hynny ac efallai y byddech chi'n torri'r gyfraith trwy wneud hynny. Dinistriwch y neges yma ac anfonwch neges e-bost at y sawl a'i hanfonodd i roi gwybod iddo fe. The author recommends NOD32 (www.eset.com) as the most effective and efficient anti-virus software. From marolijo at yahoo.es Wed Jun 4 09:09:47 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 4 Jun 2008 11:09:47 +0200 Subject: [support] control content type on views theme function Message-ID: <464490.22939.bm@omp102.mail.re3.yahoo.com> Hello, how can I control the content type of a node on a view? I need to personalize the theme output on views_slideshow module depending on the content type, or altenatively on the views name. function theme_views_slideshow_view_list($view, $nodes, $type) $fields = _views_get_fields(); $items = array(); foreach ($nodes as $node) { $item = ''; if ($node->type == 'producte_estrella') { ... thank's Pol Maresma msn: marolijo From amont at 5net.hu Wed Jun 4 12:08:41 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Wed, 04 Jun 2008 14:08:41 +0200 Subject: [support] i18n views Message-ID: <484685C9.2010300@5net.hu> Hello, I have a multilingual site where I use some table views. How can I translate the fields labels? ?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 marolijo at yahoo.es Wed Jun 4 12:33:17 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Wed, 4 Jun 2008 14:33:17 +0200 Subject: [support] i18n views In-Reply-To: <484685C9.2010300@5net.hu> Message-ID: <282917.85979.bm@omp110.mail.re3.yahoo.com> I use to theme the Views with the views wizard and then edit the ..tpl.php to adjust my needs. Here you can control de locale with PHP See you -----Mensaje original----- De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de ?mon Tam?s Enviado el: dimecres, 4 / juny / 2008 14:09 Para: support at drupal.org Asunto: [support] i18n views Hello, I have a multilingual site where I use some table views. How can I translate the fields labels? ?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 -- [ Drupal support list | http://lists.drupal.org/ ] __________ Informaci?n de NOD32, revisi?n 3154 (20080603) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com From amont at 5net.hu Wed Jun 4 12:43:44 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Wed, 04 Jun 2008 14:43:44 +0200 Subject: [support] i18n views In-Reply-To: <282917.85979.bm@omp110.mail.re3.yahoo.com> References: <282917.85979.bm@omp110.mail.re3.yahoo.com> Message-ID: <48468E00.3020309@5net.hu> Thanks for the answer. I found an other way: In a module I made the following: function otnet_views_pre_view(&$view, &$items) { if ($view->page_type == 'table') { $fields = $view->field; foreach ($fields as $curr => $val) { $val['label'] = t($val['label']); $view->field[$curr] = $val; } } } marolijo - Pol Maresma ?rta: > I use to theme the Views with the views wizard and then edit the ..tpl.php to > adjust my needs. > Here you can control de locale with PHP > > See you > > > > -----Mensaje original----- > De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre > de ?mon Tam?s > Enviado el: dimecres, 4 / juny / 2008 14:09 > Para: support at drupal.org > Asunto: [support] i18n views > > Hello, > > I have a multilingual site where I use some table views. How can I translate > the fields labels? > > ?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 > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > __________ Informaci?n de NOD32, revisi?n 3154 (20080603) __________ > > Este mensaje ha sido analizado con NOD32 antivirus system > http://www.nod32.com > > > > ?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 amont at 5net.hu Wed Jun 4 12:53:55 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Wed, 04 Jun 2008 14:53:55 +0200 Subject: [support] i18n views In-Reply-To: <48468E00.3020309@5net.hu> References: <282917.85979.bm@omp110.mail.re3.yahoo.com> <48468E00.3020309@5net.hu> Message-ID: <48469063.6060401@5net.hu> But it does not work :( ?mon Tam?s ?rta: > Thanks for the answer. I found an other way: > > In a module I made the following: > > function otnet_views_pre_view(&$view, &$items) { > if ($view->page_type == 'table') { > $fields = $view->field; > foreach ($fields as $curr => $val) { > $val['label'] = t($val['label']); > $view->field[$curr] = $val; > } > } > } > marolijo - Pol Maresma ?rta: > >> I use to theme the Views with the views wizard and then edit the ..tpl.php to >> adjust my needs. >> Here you can control de locale with PHP >> >> See you >> >> >> >> -----Mensaje original----- >> De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre >> de ?mon Tam?s >> Enviado el: dimecres, 4 / juny / 2008 14:09 >> Para: support at drupal.org >> Asunto: [support] i18n views >> >> Hello, >> >> I have a multilingual site where I use some table views. How can I translate >> the fields labels? >> >> ?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 >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> __________ Informaci?n de NOD32, revisi?n 3154 (20080603) __________ >> >> Este mensaje ha sido analizado con NOD32 antivirus system >> http://www.nod32.com >> >> >> >> >> > > > ?mon Tam?s > Sitefejleszt? ?s programoz? > ?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 amont at 5net.hu Thu Jun 5 09:48:41 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Thu, 05 Jun 2008 11:48:41 +0200 Subject: [support] i18n views In-Reply-To: <48469063.6060401@5net.hu> References: <282917.85979.bm@omp110.mail.re3.yahoo.com> <48468E00.3020309@5net.hu> <48469063.6060401@5net.hu> Message-ID: <4847B679.7090801@5net.hu> This is the best solution: function otnet_views_pre_view(&$view, &$items) { if ($view->page_type == 'table') { $table_header = $view->table_header; foreach ($table_header as $curr => $val) { if ($val['data']) { $val['data'] = t($val['data']); } $view->table_header[$curr] = $val; } } } ?mon Tam?s ?rta: > But it does not work :( > > ?mon Tam?s ?rta: > >> Thanks for the answer. I found an other way: >> >> In a module I made the following: >> >> function otnet_views_pre_view(&$view, &$items) { >> if ($view->page_type == 'table') { >> $fields = $view->field; >> foreach ($fields as $curr => $val) { >> $val['label'] = t($val['label']); >> $view->field[$curr] = $val; >> } >> } >> } >> marolijo - Pol Maresma ?rta: >> >> >>> I use to theme the Views with the views wizard and then edit the ..tpl.php to >>> adjust my needs. >>> Here you can control de locale with PHP >>> >>> See you >>> >>> >>> >>> -----Mensaje original----- >>> De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre >>> de ?mon Tam?s >>> Enviado el: dimecres, 4 / juny / 2008 14:09 >>> Para: support at drupal.org >>> Asunto: [support] i18n views >>> >>> Hello, >>> >>> I have a multilingual site where I use some table views. How can I translate >>> the fields labels? >>> >>> ?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 >>> >>> -- >>> [ Drupal support list | http://lists.drupal.org/ ] >>> >>> __________ Informaci?n de NOD32, revisi?n 3154 (20080603) __________ >>> >>> Este mensaje ha sido analizado con NOD32 antivirus system >>> http://www.nod32.com >>> >>> >>> >>> >>> >>> >> ?mon Tam?s >> Sitefejleszt? ?s programoz? >> >> > > > ?mon Tam?s > Sitefejleszt? ?s programoz? > ?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 neil at esl-lounge.com Thu Jun 5 10:38:47 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Thu, 5 Jun 2008 12:38:47 +0200 Subject: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! Message-ID: <004d01c8c6f8$56718b50$1eea0a3e@Neil> This is a real head scratcher. I have two sites: mysite.com and it.mysite.com, the Italian version. I noticed this morning a ton of mysql errors on pages where I have a block called "Related Pages". The sql query for this block is: 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 LIMIT 3 it gets me a list of 3 related pages that share the same taxonomy terms and was working perfectly about 4 days ago the last time I checked. Now it gives me the error: user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.t' at line 1 query: SELECT n.title, DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != 200 LIMIT 3 in /home/mysite/public_html/includes/database.mysql.inc on line 172. I pasted the code into phpmyadmin and then noticed the difference between this and what I was getting on the Italian site which has identical code. For some reason, the DISTINCT was getting put into the code. So in block config, the code has been pasted as: 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 LIMIT 3 and yet the query is being sent as: SELECT n.title, DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != 200 LIMIT 3 and it is this which is causing an error. In phpmyadmin, when I take away the DISTINCT(), it works like a dream. this is not happening on the Italian site despite identical block code. Now, I have been doing quite a bit of work with phpmyadmin in last few days although I can't think of anything I've changed on the english DB that may have created this result. Do I have to start calling the mediums and reaching for the garlic and crucifix? Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080605/fdc6edc8/attachment.htm From gerhard at killesreiter.de Thu Jun 5 10:52:34 2008 From: gerhard at killesreiter.de (Gerhard Killesreiter) Date: Thu, 05 Jun 2008 12:52:34 +0200 Subject: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! In-Reply-To: <004d01c8c6f8$56718b50$1eea0a3e@Neil> References: <004d01c8c6f8$56718b50$1eea0a3e@Neil> Message-ID: <4847C572.4060702@killesreiter.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Neil: esl-lounge.com schrieb: > This is a real head scratcher. > > I have two sites: mysite.com and it.mysite.com, the Italian version. > > I noticed this morning a ton of mysql errors on pages where I have a block called "Related Pages". The sql query for this block is: > > 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 LIMIT 3 > > it gets me a list of 3 related pages that share the same taxonomy terms and was working perfectly about 4 days ago the last time I checked. Now it gives me the error: > > user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.t' at line 1 query: SELECT n.title, DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != 200 LIMIT 3 in /home/mysite/public_html/includes/database.mysql.inc on line 172. > > I pasted the code into phpmyadmin and then noticed the difference between this and what I was getting on the Italian site which has identical code. For some reason, the DISTINCT was getting put into the code. > > So in block config, the code has been pasted as: > > 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 LIMIT 3 > > and yet the query is being sent as: > > SELECT n.title, DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != 200 LIMIT 3 > > and it is this which is causing an error. In phpmyadmin, when I take away the DISTINCT(), it works like a dream. > > this is not happening on the Italian site despite identical block code. Now, I have been doing quite a bit of work with phpmyadmin in last few days although I can't think of anything I've changed on the english DB that may have created this result. > > Do I have to start calling the mediums and reaching for the garlic and crucifix? > No, you need to disable the node access module or to fix the node_access table if you don't use one. Cheers, Gerhard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIR8Vyfg6TFvELooQRAtWJAKC4xiEgJpHfzBHS/7VIf4WMWbXfIgCfciqi fTbjbLBQz36m28G16JSvpkg= =b+UT -----END PGP SIGNATURE----- From neil at esl-lounge.com Thu Jun 5 14:31:45 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Thu, 5 Jun 2008 16:31:45 +0200 Subject: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! References: <004d01c8c6f8$56718b50$1eea0a3e@Neil> <4847C572.4060702@killesreiter.de> Message-ID: <007701c8c718$e27e2700$1eea0a3e@Neil> The culprit was the Workflow module! ----- Original Message ----- From: "Gerhard Killesreiter" To: Sent: Thursday, June 05, 2008 12:52 PM Subject: Re: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Neil: esl-lounge.com schrieb: >> This is a real head scratcher. >> >> I have two sites: mysite.com and it.mysite.com, the Italian version. >> >> I noticed this morning a ton of mysql errors on pages where I have a >> block called "Related Pages". The sql query for this block is: >> >> 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 LIMIT 3 >> >> it gets me a list of 3 related pages that share the same taxonomy terms >> and was working perfectly about 4 days ago the last time I checked. Now >> it gives me the error: >> >> user warning: You have an error in your SQL syntax; check the manual that >> corresponds to your MySQL server version for the right syntax to use near >> 'DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON n.nid = tn.nid >> WHERE tn.t' at line 1 query: SELECT n.title, DISTINCT(n.nid) FROM node n >> INNER JOIN term_node tn ON n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != >> 200 LIMIT 3 in /home/mysite/public_html/includes/database.mysql.inc on >> line 172. >> >> I pasted the code into phpmyadmin and then noticed the difference between >> this and what I was getting on the Italian site which has identical code. >> For some reason, the DISTINCT was getting put into the code. >> >> So in block config, the code has been pasted as: >> >> 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 LIMIT 3 >> >> and yet the query is being sent as: >> >> SELECT n.title, DISTINCT(n.nid) FROM node n INNER JOIN term_node tn ON >> n.nid = tn.nid WHERE tn.tid = 59 AND n.nid != 200 LIMIT 3 >> >> and it is this which is causing an error. In phpmyadmin, when I take away >> the DISTINCT(), it works like a dream. >> >> this is not happening on the Italian site despite identical block code. >> Now, I have been doing quite a bit of work with phpmyadmin in last few >> days although I can't think of anything I've changed on the english DB >> that may have created this result. >> >> Do I have to start calling the mediums and reaching for the garlic and >> crucifix? >> > > No, you need to disable the node access module or to fix the node_access > table if you don't use one. > > Cheers, > Gerhard > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFIR8Vyfg6TFvELooQRAtWJAKC4xiEgJpHfzBHS/7VIf4WMWbXfIgCfciqi > fTbjbLBQz36m28G16JSvpkg= > =b+UT > -----END PGP SIGNATURE----- > -- > [ Drupal support list | http://lists.drupal.org/ ] > From michel at ziobudda.net Thu Jun 5 15:06:48 2008 From: michel at ziobudda.net (Davide Michel 'ZioBudda' Morelli) Date: Thu, 05 Jun 2008 17:06:48 +0200 Subject: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! In-Reply-To: <007701c8c718$e27e2700$1eea0a3e@Neil> References: <004d01c8c6f8$56718b50$1eea0a3e@Neil> <4847C572.4060702@killesreiter.de> <007701c8c718$e27e2700$1eea0a3e@Neil> Message-ID: <48480108.4080909@ziobudda.net> Neil: esl-lounge.com ha scritto: > The culprit was the Workflow module! > workflow or workflow-ng ? M. -- Michel 'ZioBudda' Morelli michel at ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel at ziobuddalabs.it JABBER: michel at gmail.com From neil at esl-lounge.com Thu Jun 5 23:20:17 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Fri, 6 Jun 2008 01:20:17 +0200 Subject: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! References: <004d01c8c6f8$56718b50$1eea0a3e@Neil> <4847C572.4060702@killesreiter.de><007701c8c718$e27e2700$1eea0a3e@Neil> <48480108.4080909@ziobudda.net> Message-ID: <004001c8c762$b7bfec70$59e60a3e@Neil> Workflow. As soon as I uninstalled it, the 60-70 entries that had been added to the node_access table were replaced by the default one. Neil ----- Original Message ----- From: "Davide Michel 'ZioBudda' Morelli" To: Sent: Thursday, June 05, 2008 5:06 PM Subject: Re: [support] My site is haunted! SQL code gets changed by the Phantom of SQL Errors! > Neil: esl-lounge.com ha scritto: >> The culprit was the Workflow module! >> > workflow or workflow-ng ? > > M. > > -- > Michel 'ZioBudda' Morelli michel at ziobudda.net > Consulenza sistemistica in ambito OpenSource. > Sviluppo applicazioni web dinamiche (LAMP+Ajax) > Telefono: 0200619074 > Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 > > http://www.ziobudda.net ICQ: 58351764 > http://www.ziobuddalabs.it Skype: zio_budda > http://www.ziodrupal.net MSN: michel at ziobuddalabs.it > JABBER: michel at gmail.com > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From neil at esl-lounge.com Fri Jun 6 16:00:00 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Fri, 6 Jun 2008 18:00:00 +0200 Subject: [support] Block php errors from Drupal Logs Message-ID: <008301c8c7ee$6117c230$46d70a3e@Neil> I have some front page blocks based on nodeprofile fields which seem to be working fine and returning expected results. However my drupal logs are filling up with php errors on every view of the front page. The original sql block code is: SELECT content_type_nodeprofile.field_country_value, users_1.name, users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = content_type_nodeprofile.field_uid_value) INNER JOIN content_type_nodeprofile AS content_type_nodeprofile_1 ON content_type_nodeprofile.field_country_value = content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY users_1.uid DESC LIMIT 5 whereas the php error log messages are like this: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3' at line 3 query: SELECT content_type_nodeprofile.field_country_value, users_1.name, users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = content_type_nodeprofile.field_uid_value) INNER JOIN content_type_nodeprofile AS content_type_nodeprofile_1 ON content_type_nodeprofile.field_country_value = content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE (((users.uid)=) AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3; in /home/mysite/public_html/includes/database.mysql.inc on line 172. as you can see, the WHERE part of the query is being mangled. What could cause this? As I say, the blocks seem to be working perfectly so I don't get why the php errors are filling out my log files and why the WHERE part of the query is getting altered. Regards Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080606/dae19c34/attachment.htm From gwenael.saint-genest at makina-corpus.com Fri Jun 6 16:07:08 2008 From: gwenael.saint-genest at makina-corpus.com (Saint-Genest Gwenael) Date: Fri, 06 Jun 2008 18:07:08 +0200 Subject: [support] Block php errors from Drupal Logs In-Reply-To: <008301c8c7ee$6117c230$46d70a3e@Neil> References: <008301c8c7ee$6117c230$46d70a3e@Neil> Message-ID: <484960AC.3070402@makina-corpus.com> Hi, Where this SQL request is defined ? According to php error you have an HTML encoding of the SQL string sent to mysql (' for "'" ... < for "<" ...). You must decode string before use with something like html_entity_decode(); Gwen Neil: esl-lounge.com wrote: > I have some front page blocks based on nodeprofile fields which seem to be working fine and returning expected results. However my drupal logs are filling up with php errors on every view of the front page. > > The original sql block code is: > > SELECT content_type_nodeprofile.field_country_value, users_1.name, users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = content_type_nodeprofile.field_uid_value) INNER JOIN content_type_nodeprofile AS content_type_nodeprofile_1 ON content_type_nodeprofile.field_country_value = content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY users_1.uid DESC LIMIT 5 > > whereas the php error log messages are like this: > > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3' at line 3 query: SELECT content_type_nodeprofile.field_country_value, users_1.name, users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = content_type_nodeprofile.field_uid_value) INNER JOIN content_type_nodeprofile AS content_type_nodeprofile_1 ON content_type_nodeprofile.field_country_value = content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE (((users.uid)=) AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3; in /home/mysite/public_html/includes/database.mysql.inc on line 172. > > as you can see, the WHERE part of the query is being mangled. What could cause this? As I say, the blocks seem to be working perfectly so I don't get why the php errors are filling out my log files and why the WHERE part of the query is getting altered. > > Regards > > Neil > -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 From neil at esl-lounge.com Fri Jun 6 16:24:11 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Fri, 6 Jun 2008 18:24:11 +0200 Subject: [support] Block php errors from Drupal Logs References: <008301c8c7ee$6117c230$46d70a3e@Neil> <484960AC.3070402@makina-corpus.com> Message-ID: <008f01c8c7f1$c1577840$46d70a3e@Neil> Hi, this is put into a block code text box, with php code filter applied. Here is the whole block code: uid) AND ((users_1.uid)<>$user->uid)) ORDER BY users_1.uid DESC LIMIT 5; "); while ($u = db_fetch_object($result)) { $items[]="
  • "; $items[]="uid\">$u->name"; $items[]=" field_country_value\" class=\"geo-link\">$u->field_country_value"; $items[]="
  • "; } return theme('front_page_geo_blocks', $items, "From my country"); ?> is the problem the ordering of my filters for the php filter? Where would I need to place the html_entity_decode() to prevent the code getting mangled? I don't understand how the blocks are performing as per design if the code is getting altered? :-S Thanks Neil ----- Original Message ----- From: "Saint-Genest Gwenael" To: Sent: Friday, June 06, 2008 6:07 PM Subject: Re: [support] Block php errors from Drupal Logs Hi, Where this SQL request is defined ? According to php error you have an HTML encoding of the SQL string sent to mysql (' for "'" ... < for "<" ...). You must decode string before use with something like html_entity_decode(); Gwen Neil: esl-lounge.com wrote: > I have some front page blocks based on nodeprofile fields which seem to be > working fine and returning expected results. However my drupal logs are > filling up with php errors on every view of the front page. > > The original sql block code is: > > SELECT content_type_nodeprofile.field_country_value, users_1.name, > users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid > = content_type_nodeprofile.field_uid_value) INNER JOIN > content_type_nodeprofile AS content_type_nodeprofile_1 ON > content_type_nodeprofile.field_country_value = > content_type_nodeprofile_1.field_country_value) INNER JOIN users AS > users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE > (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY > users_1.uid DESC LIMIT 5 > > whereas the php error log messages are like this: > > You have an error in your SQL syntax; check the manual that corresponds to > your MySQL server version for the right syntax to use near ') AND > ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3' at line 3 > query: SELECT content_type_nodeprofile.field_country_value, users_1.name, > users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid > = content_type_nodeprofile.field_uid_value) INNER JOIN > content_type_nodeprofile AS content_type_nodeprofile_1 ON > content_type_nodeprofile.field_country_value = > content_type_nodeprofile_1.field_country_value) INNER JOIN users AS > users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE > (((users.uid)=) AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC > LIMIT 3; in /home/mysite/public_html/includes/database.mysql.inc on line > 172. > > as you can see, the WHERE part of the query is being mangled. What could > cause this? As I say, the blocks seem to be working perfectly so I don't > get why the php errors are filling out my log files and why the WHERE part > of the query is getting altered. > > Regards > > Neil > -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 -- [ Drupal support list | http://lists.drupal.org/ ] From gwenael.saint-genest at makina-corpus.com Fri Jun 6 16:36:35 2008 From: gwenael.saint-genest at makina-corpus.com (Saint-Genest Gwenael) Date: Fri, 06 Jun 2008 18:36:35 +0200 Subject: [support] Block php errors from Drupal Logs In-Reply-To: <008f01c8c7f1$c1577840$46d70a3e@Neil> References: <008301c8c7ee$6117c230$46d70a3e@Neil> <484960AC.3070402@makina-corpus.com> <008f01c8c7f1$c1577840$46d70a3e@Neil> Message-ID: <48496793.4080606@makina-corpus.com> Set vars directly into SQL query is not a good choice (see [1]). You can set $user->uid as parameter and '%d' into SQL string. I'm not sure that's your error but you can try with this syntax. Gwen [1] http://api.drupal.org/api/function/db_query/5 Neil: esl-lounge.com wrote: > Hi, > > this is put into a block code text box, with php code filter applied. Here > is the whole block code: > > global $user; > $result=db_query("SELECT content_type_nodeprofile.field_country_value, > users_1.name, users_1.uid > FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = > content_type_nodeprofile.field_uid_value) INNER JOIN > content_type_nodeprofile AS content_type_nodeprofile_1 ON > content_type_nodeprofile.field_country_value = > content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 > ON content_type_nodeprofile_1.field_uid_value = users_1.uid > WHERE (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY > users_1.uid DESC LIMIT 5; > "); > while ($u = db_fetch_object($result)) { > $items[]="
  • "; > $items[]="uid\">$u->name"; > $items[]="  href=\"/search/user-search?filter1=$u->field_country_value\" > class=\"geo-link\">$u->field_country_value"; > $items[]="
  • "; > } > return theme('front_page_geo_blocks', $items, "From my country"); > ?> > > is the problem the ordering of my filters for the php filter? Where would I > need to place the html_entity_decode() to prevent the code getting mangled? > I don't understand how the blocks are performing as per design if the code > is getting altered? :-S > > Thanks > > Neil -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 From chris.mccreery at gmail.com Sun Jun 8 01:39:13 2008 From: chris.mccreery at gmail.com (Chris McCreery) Date: Sat, 7 Jun 2008 21:39:13 -0400 Subject: [support] TinyMCE Message-ID: <8ce458940806071839r4f1bbo65b2a0d860fbe806@mail.gmail.com> When I bring up one of the dialog boxes, like insert image or html they display {$lang_theme_code_title} and whatnot instead of proper titles. In the case of the html box it no longer even shows the code for the page anymore. I have disabled the module and ran the uninstall and then reinstalled a new version of the module. Also note that I installed TinyMCE 3 instead of 2.1 to begin with and since changing back to 2.1 I can't fix the problem. Here is a video of the problem http://screencast.com/t/SatUNiLLB. I am just wondering what are the steps necessary to completely remove TinyMCE module from Drupal. I am having some problems, and disabling the module, uninstalling it and deleting it from the modules folder, removing instances of TinyMCE from the system table don't seem to fix the issue. Any help would be greatly appreciated as I am now forced to use FCKEditor which has some limitations for linking to nodes. -- Chris McCreery -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080607/35fc4908/attachment.htm From cohill at designnine.com Sun Jun 8 01:39:33 2008 From: cohill at designnine.com (Andrew Cohill) Date: Sat, 7 Jun 2008 18:39:33 -0700 Subject: [support] automated response Message-ID: <10806071839.AA06172@designnine.com> I'll be on vacation through June 13th. Call Design Nine (540-951-4400) if you need immediate help. I'll be checking phone messages daily. Thanks, Andrew From cog.rusty at gmail.com Sun Jun 8 11:28:05 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Sun, 8 Jun 2008 14:28:05 +0300 Subject: [support] Block php errors from Drupal Logs In-Reply-To: <008f01c8c7f1$c1577840$46d70a3e@Neil> References: <008301c8c7ee$6117c230$46d70a3e@Neil> <484960AC.3070402@makina-corpus.com> <008f01c8c7f1$c1577840$46d70a3e@Neil> Message-ID: (Sorry if this reply was sent twice, I had an email glitch) On 6/6/08, Neil: esl-lounge.com wrote: > Hi, > > this is put into a block code text box, with php code filter applied. Here > is the whole block code: > > global $user; > $result=db_query("SELECT content_type_nodeprofile.field_country_value, > users_1.name, users_1.uid > FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = > content_type_nodeprofile.field_uid_value) INNER JOIN > content_type_nodeprofile AS content_type_nodeprofile_1 ON > content_type_nodeprofile.field_country_value = > content_type_nodeprofile_1.field_country_value) INNER JOIN users AS users_1 > ON content_type_nodeprofile_1.field_uid_value = users_1.uid > WHERE (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY From your error message, you can see that $user->uid comes empty. If it was supposed to contain the current user, make sure that you have declared $user as a global before running the query: global $user; HTML entity 049 is the single quote and I am not sure where it comes from. Also you could use != instead of <>. But maybe these are just side effects of the first problem. > users_1.uid DESC LIMIT 5; > "); > while ($u = db_fetch_object($result)) { > $items[]="
  • "; > $items[]="uid\">$u->name"; > $items[]="  href=\"/search/user-search?filter1=$u->field_country_value\" > class=\"geo-link\">$u->field_country_value"; > $items[]="
  • "; > } > return theme('front_page_geo_blocks', $items, "From my country"); > ?> > > is the problem the ordering of my filters for the php filter? Where would I > need to place the html_entity_decode() to prevent the code getting mangled? > I don't understand how the blocks are performing as per design if the code > is getting altered? :-S > > Thanks > > Neil > > ----- Original Message ----- > From: "Saint-Genest Gwenael" > To: > Sent: Friday, June 06, 2008 6:07 PM > Subject: Re: [support] Block php errors from Drupal Logs > > > Hi, > > Where this SQL request is defined ? > > According to php error you have an HTML encoding of the SQL string > sent to mysql (' for "'" ... < for "<" ...). You must decode > string before use with something like html_entity_decode(); > > Gwen > > Neil: esl-lounge.com wrote: >> I have some front page blocks based on nodeprofile fields which seem to be >> >> working fine and returning expected results. However my drupal logs are >> filling up with php errors on every view of the front page. >> >> The original sql block code is: >> >> SELECT content_type_nodeprofile.field_country_value, users_1.name, >> users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid >> = content_type_nodeprofile.field_uid_value) INNER JOIN >> content_type_nodeprofile AS content_type_nodeprofile_1 ON >> content_type_nodeprofile.field_country_value = >> content_type_nodeprofile_1.field_country_value) INNER JOIN users AS >> users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE >> (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY >> users_1.uid DESC LIMIT 5 >> >> whereas the php error log messages are like this: >> >> You have an error in your SQL syntax; check the manual that corresponds to >> >> your MySQL server version for the right syntax to use near ') AND >> ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3' at line 3 >> >> query: SELECT content_type_nodeprofile.field_country_value, users_1.name, >> users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON users.uid >> = content_type_nodeprofile.field_uid_value) INNER JOIN >> content_type_nodeprofile AS content_type_nodeprofile_1 ON >> content_type_nodeprofile.field_country_value = >> content_type_nodeprofile_1.field_country_value) INNER JOIN users AS >> users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid WHERE >> (((users.uid)=) AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC >> LIMIT 3; in /home/mysite/public_html/includes/database.mysql.inc on line >> 172. >> >> as you can see, the WHERE part of the query is being mangled. What could >> cause this? As I say, the blocks seem to be working perfectly so I don't >> get why the php errors are filling out my log files and why the WHERE part >> >> of the query is getting altered. >> >> Regards >> >> Neil >> > > -- > Gwenael Saint-Genest > MAKINA CORPUS - www.makina-corpus.com > 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire > Tel : +33 (0) 2 40 94 96 08 > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From neil at esl-lounge.com Sun Jun 8 12:34:16 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Sun, 8 Jun 2008 14:34:16 +0200 Subject: [support] Block php errors from Drupal Logs References: <008301c8c7ee$6117c230$46d70a3e@Neil><484960AC.3070402@makina-corpus.com><008f01c8c7f1$c1577840$46d70a3e@Neil> Message-ID: <006c01c8c963$fa661b00$3fd50a3e@Neil> Hmmm, I did declare global $user as you can see in my original code. I've seen that I'm producing possibly insecure code, so have decided to post this block job on the Paid Dev forum instead. Thanks Neil ----- Original Message ----- From: "Cog Rusty" To: Sent: Sunday, June 08, 2008 1:28 PM Subject: Re: [support] Block php errors from Drupal Logs > (Sorry if this reply was sent twice, I had an email glitch) > > On 6/6/08, Neil: esl-lounge.com wrote: >> Hi, >> >> this is put into a block code text box, with php code filter applied. >> Here >> is the whole block code: >> >> > global $user; >> $result=db_query("SELECT content_type_nodeprofile.field_country_value, >> users_1.name, users_1.uid >> FROM ((users INNER JOIN content_type_nodeprofile ON users.uid = >> content_type_nodeprofile.field_uid_value) INNER JOIN >> content_type_nodeprofile AS content_type_nodeprofile_1 ON >> content_type_nodeprofile.field_country_value = >> content_type_nodeprofile_1.field_country_value) INNER JOIN users AS >> users_1 >> ON content_type_nodeprofile_1.field_uid_value = users_1.uid >> WHERE (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY > > > From your error message, you can see that $user->uid comes empty. If > it was supposed to contain the current user, make sure that you have > declared $user as a global before running the query: > > global $user; > > HTML entity 049 is the single quote and I am not sure where it comes > from. Also you could use != instead of <>. But maybe these are just > side effects of the first problem. > > >> users_1.uid DESC LIMIT 5; >> "); >> while ($u = db_fetch_object($result)) { >> $items[]="
  • "; >> $items[]="uid\">$u->name"; >> $items[]=" > href=\"/search/user-search?filter1=$u->field_country_value\" >> class=\"geo-link\">$u->field_country_value"; >> $items[]="
  • "; >> } >> return theme('front_page_geo_blocks', $items, "From my country"); >> ?> >> >> is the problem the ordering of my filters for the php filter? Where would >> I >> need to place the html_entity_decode() to prevent the code getting >> mangled? >> I don't understand how the blocks are performing as per design if the >> code >> is getting altered? :-S >> >> Thanks >> >> Neil >> >> ----- Original Message ----- >> From: "Saint-Genest Gwenael" >> To: >> Sent: Friday, June 06, 2008 6:07 PM >> Subject: Re: [support] Block php errors from Drupal Logs >> >> >> Hi, >> >> Where this SQL request is defined ? >> >> According to php error you have an HTML encoding of the SQL string >> sent to mysql (' for "'" ... < for "<" ...). You must decode >> string before use with something like html_entity_decode(); >> >> Gwen >> >> Neil: esl-lounge.com wrote: >>> I have some front page blocks based on nodeprofile fields which seem to >>> be >>> >>> working fine and returning expected results. However my drupal logs are >>> filling up with php errors on every view of the front page. >>> >>> The original sql block code is: >>> >>> SELECT content_type_nodeprofile.field_country_value, users_1.name, >>> users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON >>> users.uid >>> = content_type_nodeprofile.field_uid_value) INNER JOIN >>> content_type_nodeprofile AS content_type_nodeprofile_1 ON >>> content_type_nodeprofile.field_country_value = >>> content_type_nodeprofile_1.field_country_value) INNER JOIN users AS >>> users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid >>> WHERE >>> (((users.uid)=$user->uid) AND ((users_1.uid)<>$user->uid)) ORDER BY >>> users_1.uid DESC LIMIT 5 >>> >>> whereas the php error log messages are like this: >>> >>> You have an error in your SQL syntax; check the manual that corresponds >>> to >>> >>> your MySQL server version for the right syntax to use near ') AND >>> ((users_1.uid)<>)) ORDER BY users_1.uid DESC LIMIT 3' at line >>> 3 >>> >>> query: SELECT content_type_nodeprofile.field_country_value, >>> users_1.name, >>> users_1.uid FROM ((users INNER JOIN content_type_nodeprofile ON >>> users.uid >>> = content_type_nodeprofile.field_uid_value) INNER JOIN >>> content_type_nodeprofile AS content_type_nodeprofile_1 ON >>> content_type_nodeprofile.field_country_value = >>> content_type_nodeprofile_1.field_country_value) INNER JOIN users AS >>> users_1 ON content_type_nodeprofile_1.field_uid_value = users_1.uid >>> WHERE >>> (((users.uid)=) AND ((users_1.uid)<>)) ORDER BY users_1.uid DESC >>> LIMIT 3; in /home/mysite/public_html/includes/database.mysql.inc on line >>> 172. >>> >>> as you can see, the WHERE part of the query is being mangled. What could >>> cause this? As I say, the blocks seem to be working perfectly so I don't >>> get why the php errors are filling out my log files and why the WHERE >>> part >>> >>> of the query is getting altered. >>> >>> Regards >>> >>> Neil >>> >> >> -- >> Gwenael Saint-Genest >> MAKINA CORPUS - www.makina-corpus.com >> 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire >> Tel : +33 (0) 2 40 94 96 08 >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > -- > [ Drupal support list | http://lists.drupal.org/ ] From roy at panix.com Sun Jun 8 16:50:25 2008 From: roy at panix.com (Roy Smith) Date: Sun, 8 Jun 2008 12:50:25 -0400 Subject: [support] Moving an image from one story to another? Message-ID: <608C8848-8D63-43C8-AD3D-E5D4BE713B12@panix.com> I'm running drupal 5.7. I've got an image as a file attachment to one story. I've got the List box unchecked and refer to it with an tag in-line with the story text. Now I want to use the image in another story (also by being the target of an tag). If, at some point in the future, I delete the original story, does the attached image automatically get deleted too, leaving my second tag pointing to a non-existent file? -- roy at panix.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080608/2c91bb1d/attachment-0001.htm From edward.peters at uk.iofc.org Sun Jun 8 18:29:14 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Sun, 8 Jun 2008 19:29:14 +0100 Subject: [support] Strange search problem Message-ID: <00bd01c8c995$8f07eaf0$ad17c0d0$@peters@uk.iofc.org> I have a strange problem. I have a search block which works perfectly on my localhost. But when I put the site onto my web server, the search block goes to the further search page without any results (which are then found by a second search on that page). I notice that the search term is not being put into the url, e.g. search/node/searchterm (i.e. /searchterm not present, while it is on my localhost). So far as I know, the configurations and dbs are the same. Can anyone advise me what might be the problem? Many thanks. Edward Peters Oxford, UK www.iofc.org From mike at mikeyp.net Sun Jun 8 22:15:37 2008 From: mike at mikeyp.net (Michael Prasuhn) Date: Sun, 8 Jun 2008 15:15:37 -0700 Subject: [support] Moving an image from one story to another? In-Reply-To: <608C8848-8D63-43C8-AD3D-E5D4BE713B12@panix.com> References: <608C8848-8D63-43C8-AD3D-E5D4BE713B12@panix.com> Message-ID: Yes, it would be deleted, leaving an empty image tag. Consider using a module such as IMCE, or Image module to solve this problem. Asset would be another possibility. -Mike On Sun, Jun 8, 2008 at 9:50 AM, Roy Smith wrote: > I'm running drupal 5.7. > I've got an image as a file attachment to one story. I've got the List box > unchecked and refer to it with an tag in-line with the story text. > Now I want to use the image in another story (also by being the target of an > tag). If, at some point in the future, I delete the original story, > does the attached image automatically get deleted too, leaving my second > tag pointing to a non-existent file? __________________ Michael Prasuhn mike at mikeyp.net http://mikeyp.net 503.488.5433 714.356.0168 cell 949.200.7670 fax From amont at 5net.hu Mon Jun 9 07:53:10 2008 From: amont at 5net.hu (=?UTF-8?B?w4Ftb24gVGFtw6Fz?=) Date: Mon, 09 Jun 2008 09:53:10 +0200 Subject: [support] Strange search problem In-Reply-To: <00bd01c8c995$8f07eaf0$ad17c0d0$@peters@uk.iofc.org> References: <00bd01c8c995$8f07eaf0$ad17c0d0$@peters@uk.iofc.org> Message-ID: <484CE166.3060502@5net.hu> Hello, The short url is working on your site? Edward Peters ?rta: > I have a strange problem. I have a search block which works perfectly on my > localhost. But when I put the site onto my web server, the search block goes > to the further search page without any results (which are then found by a > second search on that page). I notice that the search term is not being put > into the url, e.g. search/node/searchterm (i.e. /searchterm not present, > while it is on my localhost). So far as I know, the configurations and dbs > are the same. Can anyone advise me what might be the problem? Many thanks. > > Edward Peters > Oxford, UK > www.iofc.org > > > ?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 amont at 5net.hu Mon Jun 9 07:58:40 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Mon, 09 Jun 2008 09:58:40 +0200 Subject: [support] FCKEditor and

     

    Message-ID: <484CE2B0.7060908@5net.hu> Hello, I have some 5.7 drupal site with the latest FCKEditor modul. If I have a textarea field with empty value, the FCKEditor always put an

     

    . How can I disable 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 killshot91 at comcast.net Mon Jun 9 22:38:52 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Mon, 09 Jun 2008 15:38:52 -0700 Subject: [support] Views parameters canceling each other out? Message-ID: <484DB0FC.1060704@comcast.net> I'm working on a site for a city, and the city is broken down into it's different areas/departments. The page for each department has it's own view for its main page. For each piece of content, there are two taxonomy categories: one to indicate which department it does under, and one that indicates the type of information. What we need to do is have a block that shows the relevant content of a certain type for the specific department. So for instance, on the Police department page, I want to have a block that shows content with type 'form' and a department of 'police'. Since 'police' is the URL for the view (i.e. mysite.com/police on the Police page) and not an argument, I use the following code to add the view URL as an argument: $path = $_GET['q']; $searchchar = '/'; $slash = strpos($path, $searchchar); //get first item in path //if there is no '/' in $path, use $path if (strpos($path, $searchchar) === FALSE) { $subsite = $path; } else { //there was a slash, so we're assuming is it in the format node/xxxx $part1 = substr($path, 0, $slash); $sql = "SELECT dst FROM {url_alias} WHERE src = '%s'"; $alias = db_result(db_query($sql, $path)); $subsite = substr($alias, 0, strpos($alias, $searchchar)); } $args[0] = $subsite; I then have an argument that uses %1 from the URL. This code works perfectly by itself. The problem comes when I add a filter to narrow down by type using the second taxonomy term. If the filter is by content type, it works fine and both criteria are used. If however, the second filter is also by taxonomy term for the type vocabulary, then the block doesn't show at all. If I just use one or the other (the argument code or the filter by type vocabulary), the block shows up, but obviously only with more nodes displayed than I want. It's almost as if the two parameters (the argument and the filter) are canceling each other out. Can anyone verify if this is true? Is there a better way to do what I'm trying to do? Thanks. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080609/7f51bf36/attachment.htm From earnie at users.sourceforge.net Tue Jun 10 11:41:02 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 10 Jun 2008 07:41:02 -0400 Subject: [support] Views parameters canceling each other out? In-Reply-To: <484DB0FC.1060704@comcast.net> References: <484DB0FC.1060704@comcast.net> Message-ID: <20080610074102.5erh04vkztj4wg0k@mail.progw.org> Quoting Steve Edwards : > Is there a better way to do what I'm trying to do? How about using Organic Groups[1] and have each department be a group. There are a number of modules[2] just for Organic Groups. [1] http://drupal.org/project/og [2] http://drupal.org/project/Modules/category/90 Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From amont at 5net.hu Tue Jun 10 12:05:51 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Tue, 10 Jun 2008 14:05:51 +0200 Subject: [support] form evulating in other page Message-ID: <484E6E1F.6010309@5net.hu> Hello, I made a form in a block and I like to evaluate in an other page, but I like to validate in the same block. How can I made it? Now in the submit function I put the variables to a $_SESSION variable and redirecting to the result page. But I think this is not a nice solution. ?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 killshot91 at comcast.net Tue Jun 10 14:28:43 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Tue, 10 Jun 2008 07:28:43 -0700 Subject: [support] Views parameters canceling each other out? In-Reply-To: <20080610074102.5erh04vkztj4wg0k@mail.progw.org> References: <484DB0FC.1060704@comcast.net> <20080610074102.5erh04vkztj4wg0k@mail.progw.org> Message-ID: <484E8F9B.3050606@comcast.net> Yes, I would agree. Matt Westgate made that suggestion to us at a Drupal camp a few weeks ago, but unfortunately this project (not mine, I'm just helping out) is too far along to convert to OG. Steve Earnie Boyd wrote: > Quoting Steve Edwards : > > >> Is there a better way to do what I'm trying to do? >> > > How about using Organic Groups[1] and have each department be a group. > There are a number of modules[2] just for Organic Groups. > > [1] http://drupal.org/project/og > [2] http://drupal.org/project/Modules/category/90 > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080610/c0d27d14/attachment-0001.htm From amont at 5net.hu Tue Jun 10 15:12:49 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Tue, 10 Jun 2008 17:12:49 +0200 Subject: [support] dinamic form id Message-ID: <484E99F1.8000403@5net.hu> Hello, I have a lot of dynamical generated forms in one page. Every form is a block and I used panels module to put these to one page. Depend on the $delta I made different forms. Some code: function qqplast_block($op = 'list', $delta='0', $edit=array()) { $blocks = array('a lot of arrays not interesting'); switch($op) { case 'list': return $blocks; case 'view': $block['subject'] = $blocks[$delta]['title']; $block['content'] = drupal_get_form('qqplast_altalanos', $delta); return $block; } } function qqplast_altalanos($delta) { $form=array(); $form["delta"] = array( "#type" => "hidden", "#value" => $delta ); $form['ertekek_'.$delta] = array( "#type" => "checkboxes", "#options" => $anyagnevek[$delta], "#default_value" =>'' ); $form['lekerd_tipus'] = array( "#type" => "select", "#options" => _qqplast_get_lekerdezes_tipus($delta) ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), ); $form['#submit'] = array('qqplast_altalanos_submit' => array()); return $form; } The only difference is the checkboxes. My problem is the $form_id is always the same. How can I change it dynamically? Thanks ?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 edward.peters at uk.iofc.org Tue Jun 10 17:13:01 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Tue, 10 Jun 2008 18:13:01 +0100 Subject: [support] Strange search problem In-Reply-To: References: Message-ID: <084b01c8cb1d$3d775520$b865ff60$@peters@uk.iofc.org> I am not sure what you mean by 'short url'. If you mean search/node, yes it works. On my local host, if I search for, say, 'green', it goes to a page whose url is search/node/green. But if I do the same on the web server, it goes to a page whose url is just search/node. That's my problem. Any further ideas? Edward Peters -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of support-request at drupal.org Sent: 10 June 2008 15:29 To: support at drupal.org Subject: support Digest, Vol 66, Issue 7 ------------------------------ Message: 3 Date: Mon, 09 Jun 2008 09:53:10 +0200 The short url is working on your site? Edward Peters ?rta: > I have a strange problem. I have a search block which works perfectly on my > localhost. But when I put the site onto my web server, the search block goes > to the further search page without any results (which are then found by a > second search on that page). I notice that the search term is not being put > into the url, e.g. search/node/searchterm (i.e. /searchterm not present, > while it is on my localhost). So far as I know, the configurations and dbs > are the same. Can anyone advise me what might be the problem? Many thanks. From thummel at email.arizona.edu Wed Jun 11 00:18:59 2008 From: thummel at email.arizona.edu (Tracey Hummel) Date: Tue, 10 Jun 2008 17:18:59 -0700 Subject: [support] character encoding Message-ID: <20080610171859.q9j7pis8csoo8wc0@www.email.arizona.edu> Drupal stores text in its database with escaped entities like &. I'm trying to use actions to send the body of the stored text to a listserv. Is there a way to get it to send an unencoded version of the text? I'm using Drupal 5.7. Thanks, Tracey -- Tracey Hummel Web Developer University Information Technology Services Learning Technologies Services University of Arizona (520) 626-5139 tracey at uainfo.arizona.edu From sean at practicalweb.co.uk Wed Jun 11 09:53:40 2008 From: sean at practicalweb.co.uk (Sean Burlington) Date: Wed, 11 Jun 2008 10:53:40 +0100 Subject: [support] character encoding In-Reply-To: <20080610171859.q9j7pis8csoo8wc0@www.email.arizona.edu> References: <20080610171859.q9j7pis8csoo8wc0@www.email.arizona.edu> Message-ID: <484FA0A4.4030708@practicalweb.co.uk> Tracey Hummel wrote: > Drupal stores text in its database with escaped entities like &. I'm trying > to use actions to send the body of the stored text to a listserv. Is there a > way to get it to send an unencoded version of the text? I'm using Drupal 5.7. > you need to decode them using this function http://api.drupal.org/api/function/decode_entities/5 -- Sean Burlington www.practicalweb.co.uk From jhedstrom at opensourcery.com Wed Jun 11 16:11:59 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Wed, 11 Jun 2008 09:11:59 -0700 Subject: [support] TinyMCE In-Reply-To: <8ce458940806071839r4f1bbo65b2a0d860fbe806@mail.gmail.com> References: <8ce458940806071839r4f1bbo65b2a0d860fbe806@mail.gmail.com> Message-ID: <484FF94F.4040107@opensourcery.com> Chris McCreery wrote: > I am just wondering what are the steps necessary to completely remove > TinyMCE module from Drupal. I am having some problems, and disabling > the module, uninstalling it and deleting it from the modules folder, > removing instances of TinyMCE from the system table don't seem to fix > the issue. Any help would be greatly appreciated as I am now forced to > use FCKEditor which has some limitations for linking to nodes. After uninstalling, emptying the various cache tables (cache, cache_menu, etc) has usually cleared up the lingering remains of the module. 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/20080611/3777ba8c/attachment.pgp From jhedstrom at opensourcery.com Wed Jun 11 16:21:50 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Wed, 11 Jun 2008 09:21:50 -0700 Subject: [support] dinamic form id In-Reply-To: <484E99F1.8000403@5net.hu> References: <484E99F1.8000403@5net.hu> Message-ID: <484FFB9E.1090808@opensourcery.com> ?mon Tam?s wrote: > Hello, > > I have a lot of dynamical generated forms in one page. Every form is a > block and I used panels module to put these to one page. Depend on the > $delta I made different forms. > > Some code: > function qqplast_block($op = 'list', $delta='0', $edit=array()) { > $blocks = array('a lot of arrays not interesting'); > switch($op) { > case 'list': > return $blocks; > case 'view': > $block['subject'] = $blocks[$delta]['title']; > $block['content'] = drupal_get_form('qqplast_altalanos', $delta); > return $block; > } > } > function qqplast_altalanos($delta) { > $form=array(); > $form["delta"] = array( > "#type" => "hidden", > "#value" => $delta > ); > $form['ertekek_'.$delta] = array( > "#type" => "checkboxes", > "#options" => $anyagnevek[$delta], > "#default_value" =>'' > ); > $form['lekerd_tipus'] = array( > "#type" => "select", > "#options" => _qqplast_get_lekerdezes_tipus($delta) > ); > $form['submit'] = array( > '#type' => 'submit', > '#value' => t('Submit'), > ); > $form['#submit'] = array('qqplast_altalanos_submit' => array()); > return $form; > } > > The only difference is the checkboxes. My problem is the $form_id is > always the same. How can I change it dynamically? > > The form id is always the same, because you're passing it a static value of 'qqplast_altalanos'...this becomes the form_id. If you need a different id in the form, you can set it manually using $form['foo']['#id'] = 'any-id-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/20080611/e425f12c/attachment.pgp From cjones at partialflow.com Wed Jun 11 16:42:37 2008 From: cjones at partialflow.com (Christopher M. Jones) Date: Wed, 11 Jun 2008 12:42:37 -0400 Subject: [support] MT4 migration, prob with node_object_prepare() Message-ID: <4850007D.2090708@partialflow.com> I'm following the steps at http://drupal.org/node/860 I realize that this node is not current for 6.x, but I thought I'd give it a whirl, anyway. I've got the following error: Fatal error: Call to undefined function node_object_prepare() in //public_html/ab612/includes/common.inc(1537) : eval()'d code on line 29 Can anyone suggest how to update this script for use in Drupal 6? From ml.dcailli at free.fr Thu Jun 12 07:07:53 2008 From: ml.dcailli at free.fr (Daniel Caillibaud) Date: Thu, 12 Jun 2008 09:07:53 +0200 Subject: [support] dependant content_taxonomy autocomplete textfields Message-ID: <20080612090753.3d8e7cdd@free.fr> Hi, In a CCK node type with drupal6, I have 2 content_taxonomy autocomplete textfield, but the vocabulary for the 2nd one (keyword) should depend on the 1st choice (subject), because I have a fixed list of "keywords" terms (~1000) for each subject. I can put all the keywords in a single vocabulary, where the first root entry is the subject, but I don't know what to do then to filter availables words in the autocomplate field, depending on the subject choice in the first field... Any idea about the best way to do this ? (all modules about dependant fields I saw are for D5) Thanks a lot -- Daniel From marolijo at yahoo.es Thu Jun 12 07:20:50 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 12 Jun 2008 09:20:50 +0200 Subject: [support] Gmap views, on click map moves far away Message-ID: <446662.9909.bm@omp404.mail.mud.yahoo.com> When click a marker the map moves to a very distant place on the map... any idea? I tried autozoom but It seems to afect only the map load. Thank's! Pol From gordon at heydon.com.au Thu Jun 12 11:53:18 2008 From: gordon at heydon.com.au (Gordon Heydon) Date: Thu, 12 Jun 2008 21:53:18 +1000 Subject: [support] Gmap views, on click map moves far away In-Reply-To: <446662.9909.bm@omp404.mail.mud.yahoo.com> References: <446662.9909.bm@omp404.mail.mud.yahoo.com> Message-ID: <70B22761-46EF-4C08-A96C-3F168C81AFF2@heydon.com.au> Hi, Yes I am getting this problem too, any ideas Gordon. On 12/06/2008, at 5:20 PM, marolijo - Pol Maresma wrote: > > When click a marker the map moves to a very distant place on the > map... any > idea? > I tried autozoom but It seems to afect only the map load. > > Thank's! > > Pol > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > !DSPAM:1000,4850d1af9021468016628! > From marolijo at yahoo.es Thu Jun 12 12:15:33 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 12 Jun 2008 14:15:33 +0200 Subject: [support] Gmap views, on click map moves far away In-Reply-To: <70B22761-46EF-4C08-A96C-3F168C81AFF2@heydon.com.au> Message-ID: <16660.85795.bm@omp423.mail.mud.yahoo.com> Someone tells to go back to previous version http://drupal.org/node/269471 But this versions gives me other errors. Still searchin' -----Mensaje original----- De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de Gordon Heydon Enviado el: dijous, 12 / juny / 2008 13:53 Para: support at drupal.org Asunto: Re: [support] Gmap views, on click map moves far away Hi, Yes I am getting this problem too, any ideas Gordon. On 12/06/2008, at 5:20 PM, marolijo - Pol Maresma wrote: > > When click a marker the map moves to a very distant place on the > map... any idea? > I tried autozoom but It seems to afect only the map load. > > Thank's! > > Pol > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > !DSPAM:1000,4850d1af9021468016628! > -- [ Drupal support list | http://lists.drupal.org/ ] __________ Informacisn de NOD32, revisisn 3180 (20080612) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com From lorenz.schori at gmx.ch Thu Jun 12 12:38:08 2008 From: lorenz.schori at gmx.ch (Lorenz Schori) Date: Thu, 12 Jun 2008 14:38:08 +0200 Subject: [support] Gmap views, on click map moves far away In-Reply-To: <16660.85795.bm@omp423.mail.mud.yahoo.com> References: <70B22761-46EF-4C08-A96C-3F168C81AFF2@heydon.com.au> <16660.85795.bm@omp423.mail.mud.yahoo.com> Message-ID: <20080612143808.1bc81a66@blackrider> On Thu, 12 Jun 2008 14:15:33 +0200 "marolijo - Pol Maresma" wrote: > Someone tells to go back to previous version > http://drupal.org/node/269471 Set the Google Maps API Version to the stable one: http://drupal.org/node/231473#comment-764576 Lorenz From marolijo at yahoo.es Thu Jun 12 12:55:55 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 12 Jun 2008 14:55:55 +0200 Subject: [support] Gmap views, on click map moves far away In-Reply-To: <20080612143808.1bc81a66@blackrider> Message-ID: <108707.42674.bm@omp419.mail.mud.yahoo.com> It Works!!! Thank's a lot, great list :) -----Mensaje original----- De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de Lorenz Schori Enviado el: dijous, 12 / juny / 2008 14:38 Para: support at drupal.org Asunto: Re: [support] Gmap views, on click map moves far away On Thu, 12 Jun 2008 14:15:33 +0200 "marolijo - Pol Maresma" wrote: > Someone tells to go back to previous version > http://drupal.org/node/269471 Set the Google Maps API Version to the stable one: http://drupal.org/node/231473#comment-764576 Lorenz -- [ Drupal support list | http://lists.drupal.org/ ] __________ Informacisn de NOD32, revisisn 3180 (20080612) __________ Este mensaje ha sido analizado con NOD32 antivirus system http://www.nod32.com From jhedstrom at opensourcery.com Fri Jun 13 15:38:42 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Fri, 13 Jun 2008 08:38:42 -0700 Subject: [support] Menu positioning In-Reply-To: <003201c8c561$6c97b3c0$45c71b40$@org> References: <003201c8c561$6c97b3c0$45c71b40$@org> Message-ID: <48529482.4040601@opensourcery.com> 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 -------------- 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/20080613/a055a52a/attachment.pgp From ignorance.is.strength at gmail.com Fri Jun 13 19:17:55 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Fri, 13 Jun 2008 14:17:55 -0500 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? Message-ID: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> Hi Everyone, My boss has a special request of me. We want to make a "sub-site" of the current site we are running, which is: http://narcosphere.narconews.com I need to build a sub-site which will use most of the current theme but with about 15-20% of changes. For instance, I am going to need to change the banner for this "sub-site", get rid of the left column, and change what's on the right-sidebar. Is there an easy way to do this without having to make a whole new drupal installation just for this sub-site? If this isn't clear enough, please let me know and I can further explain what I'm trying to do. Thanks! David B. From brettev at gmail.com Fri Jun 13 19:20:00 2008 From: brettev at gmail.com (Brett Evanson) Date: Fri, 13 Jun 2008 13:20:00 -0600 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> Message-ID: <972255370806131220y12a5289co19be4726c6747c8d@mail.gmail.com> a subtheme might be a great way to go here. create a folder inside your existing theme's folder, and duplicate whatever files you need to overwrite or modify, and then make your modifications. it will show up as a new theme, and you can use things like taxonomy_theme or similar modules to set certain paths to use your new theme! Brett http://brettevanson.com On Fri, Jun 13, 2008 at 1:17 PM, Big Brother wrote: > Hi Everyone, > > My boss has a special request of me. We want to make a "sub-site" of > the current site we are running, which is: > > http://narcosphere.narconews.com > > I need to build a sub-site which will use most of the current theme > but with about 15-20% of changes. For instance, I am going to need to > change the banner for this "sub-site", get rid of the left column, and > change what's on the right-sidebar. > > Is there an easy way to do this without having to make a whole new > drupal installation just for this sub-site? > > If this isn't clear enough, please let me know and I can further > explain what I'm trying to do. > > Thanks! > > David B. > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Brett Evanson brettev at gmail.com From ignorance.is.strength at gmail.com Fri Jun 13 19:36:44 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Fri, 13 Jun 2008 14:36:44 -0500 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: <972255370806131220y12a5289co19be4726c6747c8d@mail.gmail.com> References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> <972255370806131220y12a5289co19be4726c6747c8d@mail.gmail.com> Message-ID: <9506cc0a0806131236v199d309ci15cc635f4c990ab1@mail.gmail.com> Brett -- Thanks for the quick response! I'm going to go ahead and try what you told me. It sounds like a good plan!! Thanks again, and I'm still open for suggestions from everyone as I continue to work on this, but it seems like Brett may have provided a good solution. Cheers, David On Fri, Jun 13, 2008 at 2:20 PM, Brett Evanson wrote: > a subtheme might be a great way to go here. create a folder inside > your existing theme's folder, and duplicate whatever files you need to > overwrite or modify, and then make your modifications. it will show up > as a new theme, and you can use things like taxonomy_theme or similar > modules to set certain paths to use your new theme! > > Brett > http://brettevanson.com > > On Fri, Jun 13, 2008 at 1:17 PM, Big Brother > wrote: >> Hi Everyone, >> >> My boss has a special request of me. We want to make a "sub-site" of >> the current site we are running, which is: >> >> http://narcosphere.narconews.com >> >> I need to build a sub-site which will use most of the current theme >> but with about 15-20% of changes. For instance, I am going to need to >> change the banner for this "sub-site", get rid of the left column, and >> change what's on the right-sidebar. >> >> Is there an easy way to do this without having to make a whole new >> drupal installation just for this sub-site? >> >> If this isn't clear enough, please let me know and I can further >> explain what I'm trying to do. >> >> Thanks! >> >> David B. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > > > -- > Brett Evanson > brettev at gmail.com > -- > [ Drupal support list | http://lists.drupal.org/ ] > From mgalvin at simplifiedcomplexity.org Fri Jun 13 19:58:18 2008 From: mgalvin at simplifiedcomplexity.org (Matt Galvin) Date: Fri, 13 Jun 2008 15:58:18 -0400 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> Message-ID: Hi David, You might want to try: http://drupal.org/node/104316 - Using different page templates depending on the current path Hope this helps. Best, Matt Galvin http://www.simplifiedcomplexity.org/ On Fri, Jun 13, 2008 at 3:17 PM, Big Brother wrote: > Hi Everyone, > > My boss has a special request of me. We want to make a "sub-site" of > the current site we are running, which is: > > http://narcosphere.narconews.com > > I need to build a sub-site which will use most of the current theme > but with about 15-20% of changes. For instance, I am going to need to > change the banner for this "sub-site", get rid of the left column, and > change what's on the right-sidebar. > > Is there an easy way to do this without having to make a whole new > drupal installation just for this sub-site? > > If this isn't clear enough, please let me know and I can further > explain what I'm trying to do. > > Thanks! > > David B. > -- > [ Drupal support list | http://lists.drupal.org/ ] > From net at twoedged.org Sat Jun 14 00:37:59 2008 From: net at twoedged.org (John Fletcher) Date: Sat, 14 Jun 2008 10:37:59 +1000 Subject: [support] FCKEditor and

     

    In-Reply-To: <484CE2B0.7060908@5net.hu> References: <484CE2B0.7060908@5net.hu> Message-ID: <001001c8cdb6$e660e1b0$b322a510$@org> I have noticed this in my D6 site and would like to disable it too. I have a feeling it might be there on purpose for some technical reason. -----Original Message----- From: ?mon Tam?s [mailto:amont at 5net.hu] Sent: Monday, 9 June 2008 5:59 PM To: support at drupal.org Subject: [support] FCKEditor and

    ?

    Hello, I have some 5.7 drupal site with the latest FCKEditor modul. If I have a textarea field with empty value, the FCKEditor always put an

     

    . How can I disable 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 ignorance.is.strength at gmail.com Sat Jun 14 05:21:53 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Sat, 14 Jun 2008 00:21:53 -0500 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> Message-ID: <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> Hi Matt, Thanks for the suggestion. I fooled around with it for a bit today and got some decent results. However, the problem I ran into is that I need to change the right sidebar as well, and I can't figure out to do that with your suggestion. Above, the suggestion by Brett seemed like it would solve this, but when I applied his solution the CSS of the new subtheme I made broke... sorta. Now: http://narcosphere.narconews.com/thefield2/ You notice that there is no sidebar at all, though I have set blocks up for the new subtheme, and the body are is black instead of white. Otherwise the logo looks fine... hehe. If your way provides a method for me to be able to manipulate the right sidebar as well then I will just go ahead and use your method. I'm not sure if it's possible, though. Thanks again! David On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin wrote: > Hi David, > > You might want to try: > > http://drupal.org/node/104316 - Using different page templates > depending on the current path > > Hope this helps. > > Best, > > Matt Galvin > http://www.simplifiedcomplexity.org/ > > > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother > wrote: >> Hi Everyone, >> >> My boss has a special request of me. We want to make a "sub-site" of >> the current site we are running, which is: >> >> http://narcosphere.narconews.com >> >> I need to build a sub-site which will use most of the current theme >> but with about 15-20% of changes. For instance, I am going to need to >> change the banner for this "sub-site", get rid of the left column, and >> change what's on the right-sidebar. >> >> Is there an easy way to do this without having to make a whole new >> drupal installation just for this sub-site? >> >> If this isn't clear enough, please let me know and I can further >> explain what I'm trying to do. >> >> Thanks! >> >> David B. >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > -- > [ Drupal support list | http://lists.drupal.org/ ] > From victorkane at gmail.com Sat Jun 14 09:22:08 2008 From: victorkane at gmail.com (Victor Kane) Date: Sat, 14 Jun 2008 06:22:08 -0300 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> Message-ID: For the right sidebar, you can configure certain blocks to only appear / not appear on certain paths, for certain roles, etc., by clicking on the configuration link. Another approach would be to take a look at Panels 2 (there is good documentation on the Drupal site), which is a whole other way of solving your problem (making a different page content type, and then a node/% panel can be set to have a different layout on a content type basis. Victor Kane http://awebfactory.com.ar On Sat, Jun 14, 2008 at 2:21 AM, Big Brother < ignorance.is.strength at gmail.com> wrote: > Hi Matt, > > Thanks for the suggestion. I fooled around with it for a bit today and > got some decent results. However, the problem I ran into is that I > need to change the right sidebar as well, and I can't figure out to do > that with your suggestion. > > Above, the suggestion by Brett seemed like it would solve this, but > when I applied his solution the CSS of the new subtheme I made > broke... sorta. Now: > > http://narcosphere.narconews.com/thefield2/ > > You notice that there is no sidebar at all, though I have set blocks > up for the new subtheme, and the body are is black instead of white. > Otherwise the logo looks fine... hehe. > > If your way provides a method for me to be able to manipulate the > right sidebar as well then I will just go ahead and use your method. > I'm not sure if it's possible, though. > > Thanks again! > > David > > On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin > wrote: > > Hi David, > > > > You might want to try: > > > > http://drupal.org/node/104316 - Using different page templates > > depending on the current path > > > > Hope this helps. > > > > Best, > > > > Matt Galvin > > http://www.simplifiedcomplexity.org/ > > > > > > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother > > wrote: > >> Hi Everyone, > >> > >> My boss has a special request of me. We want to make a "sub-site" of > >> the current site we are running, which is: > >> > >> http://narcosphere.narconews.com > >> > >> I need to build a sub-site which will use most of the current theme > >> but with about 15-20% of changes. For instance, I am going to need to > >> change the banner for this "sub-site", get rid of the left column, and > >> change what's on the right-sidebar. > >> > >> Is there an easy way to do this without having to make a whole new > >> drupal installation just for this sub-site? > >> > >> If this isn't clear enough, please let me know and I can further > >> explain what I'm trying to do. > >> > >> Thanks! > >> > >> David B. > >> -- > >> [ 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/20080614/f8bfdacc/attachment.htm From edward.peters at uk.iofc.org Sat Jun 14 11:26:52 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Sat, 14 Jun 2008 12:26:52 +0100 Subject: [support] Search engine issue Message-ID: <020a01c8ce11$8c126200$a4372600$@peters@uk.iofc.org> Does anyone know a way of getting the search engine to index static html files in the files directory? The Search Attachments module does a good job with PDFs, Docs etc, but I don't know how to do plain html files. Edward Peters Oxford, UK www.drupalproject.iofc.org From ignorance.is.strength at gmail.com Sat Jun 14 17:20:49 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Sat, 14 Jun 2008 12:20:49 -0500 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> Message-ID: <9506cc0a0806141020p707fe1b7q5477c12e89f4d43c@mail.gmail.com> Thanks Victor! I ended up doing what you suggested. I disabled the elements of the right sidebar that I didn't need for the new subsite. It seemed to have worked! I have another problem now. I am using the PHPtemplate method, provided by Matt above, but it doesn't seem to work for the nodes contained within "thefield2/" Here's what the design should look like: http://narcosphere.narconews.com/thefield2/ but look what happens when I do this: http://narcosphere.narconews.com/thefield2/test-4 The PHPtemplate engine should look for page-thefield2-test-4.tpl.php, then page-thefield2-test.tpl.php, then page-thefield2.tpl.php (which I have in the template folder I am using. Why isn't it picking up the right template file? Thanks! On Sat, Jun 14, 2008 at 4:22 AM, Victor Kane wrote: > For the right sidebar, you can configure certain blocks to only appear / not > appear on certain paths, for certain roles, etc., by clicking on the > configuration link. > > Another approach would be to take a look at Panels 2 (there is good > documentation on the Drupal site), which is a whole other way of solving > your problem (making a different page content type, and then a node/% panel > can be set to have a different layout on a content type basis. > > Victor Kane > http://awebfactory.com.ar > > On Sat, Jun 14, 2008 at 2:21 AM, Big Brother > wrote: >> >> Hi Matt, >> >> Thanks for the suggestion. I fooled around with it for a bit today and >> got some decent results. However, the problem I ran into is that I >> need to change the right sidebar as well, and I can't figure out to do >> that with your suggestion. >> >> Above, the suggestion by Brett seemed like it would solve this, but >> when I applied his solution the CSS of the new subtheme I made >> broke... sorta. Now: >> >> http://narcosphere.narconews.com/thefield2/ >> >> You notice that there is no sidebar at all, though I have set blocks >> up for the new subtheme, and the body are is black instead of white. >> Otherwise the logo looks fine... hehe. >> >> If your way provides a method for me to be able to manipulate the >> right sidebar as well then I will just go ahead and use your method. >> I'm not sure if it's possible, though. >> >> Thanks again! >> >> David >> >> On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin >> wrote: >> > Hi David, >> > >> > You might want to try: >> > >> > http://drupal.org/node/104316 - Using different page templates >> > depending on the current path >> > >> > Hope this helps. >> > >> > Best, >> > >> > Matt Galvin >> > http://www.simplifiedcomplexity.org/ >> > >> > >> > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother >> > wrote: >> >> Hi Everyone, >> >> >> >> My boss has a special request of me. We want to make a "sub-site" of >> >> the current site we are running, which is: >> >> >> >> http://narcosphere.narconews.com >> >> >> >> I need to build a sub-site which will use most of the current theme >> >> but with about 15-20% of changes. For instance, I am going to need to >> >> change the banner for this "sub-site", get rid of the left column, and >> >> change what's on the right-sidebar. >> >> >> >> Is there an easy way to do this without having to make a whole new >> >> drupal installation just for this sub-site? >> >> >> >> If this isn't clear enough, please let me know and I can further >> >> explain what I'm trying to do. >> >> >> >> Thanks! >> >> >> >> David B. >> >> -- >> >> [ 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/ ] > From victorkane at gmail.com Sat Jun 14 17:56:29 2008 From: victorkane at gmail.com (Victor Kane) Date: Sat, 14 Jun 2008 14:56:29 -0300 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: <9506cc0a0806141020p707fe1b7q5477c12e89f4d43c@mail.gmail.com> References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> <9506cc0a0806141020p707fe1b7q5477c12e89f4d43c@mail.gmail.com> Message-ID: What is "thefield2" ? If it is a node type, the node template would be node-thefield2.tpl.php. If you want to make a page template based on url, see http://drupal.org/node/139766 Depending on what you want to do, you might have to create support for a custom template with a php callback function; see excellent tutorial at http://www.chapterthree.com/blog/zirafa/different_node_templates_node_variables_nid_type_view Victor On Sat, Jun 14, 2008 at 2:20 PM, Big Brother < ignorance.is.strength at gmail.com> wrote: > Thanks Victor! > > I ended up doing what you suggested. I disabled the elements of the > right sidebar that I didn't need for the new subsite. It seemed to > have worked! > > I have another problem now. I am using the PHPtemplate method, > provided by Matt above, but it doesn't seem to work for the nodes > contained within "thefield2/" > > Here's what the design should look like: > > http://narcosphere.narconews.com/thefield2/ > > but look what happens when I do this: > > http://narcosphere.narconews.com/thefield2/test-4 > > The PHPtemplate engine should look for page-thefield2-test-4.tpl.php, > then page-thefield2-test.tpl.php, then page-thefield2.tpl.php (which I > have in the template folder I am using. > > Why isn't it picking up the right template file? > > Thanks! > > On Sat, Jun 14, 2008 at 4:22 AM, Victor Kane wrote: > > For the right sidebar, you can configure certain blocks to only appear / > not > > appear on certain paths, for certain roles, etc., by clicking on the > > configuration link. > > > > Another approach would be to take a look at Panels 2 (there is good > > documentation on the Drupal site), which is a whole other way of solving > > your problem (making a different page content type, and then a node/% > panel > > can be set to have a different layout on a content type basis. > > > > Victor Kane > > http://awebfactory.com.ar > > > > On Sat, Jun 14, 2008 at 2:21 AM, Big Brother > > wrote: > >> > >> Hi Matt, > >> > >> Thanks for the suggestion. I fooled around with it for a bit today and > >> got some decent results. However, the problem I ran into is that I > >> need to change the right sidebar as well, and I can't figure out to do > >> that with your suggestion. > >> > >> Above, the suggestion by Brett seemed like it would solve this, but > >> when I applied his solution the CSS of the new subtheme I made > >> broke... sorta. Now: > >> > >> http://narcosphere.narconews.com/thefield2/ > >> > >> You notice that there is no sidebar at all, though I have set blocks > >> up for the new subtheme, and the body are is black instead of white. > >> Otherwise the logo looks fine... hehe. > >> > >> If your way provides a method for me to be able to manipulate the > >> right sidebar as well then I will just go ahead and use your method. > >> I'm not sure if it's possible, though. > >> > >> Thanks again! > >> > >> David > >> > >> On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin > >> wrote: > >> > Hi David, > >> > > >> > You might want to try: > >> > > >> > http://drupal.org/node/104316 - Using different page templates > >> > depending on the current path > >> > > >> > Hope this helps. > >> > > >> > Best, > >> > > >> > Matt Galvin > >> > http://www.simplifiedcomplexity.org/ > >> > > >> > > >> > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother > >> > wrote: > >> >> Hi Everyone, > >> >> > >> >> My boss has a special request of me. We want to make a "sub-site" of > >> >> the current site we are running, which is: > >> >> > >> >> http://narcosphere.narconews.com > >> >> > >> >> I need to build a sub-site which will use most of the current theme > >> >> but with about 15-20% of changes. For instance, I am going to need to > >> >> change the banner for this "sub-site", get rid of the left column, > and > >> >> change what's on the right-sidebar. > >> >> > >> >> Is there an easy way to do this without having to make a whole new > >> >> drupal installation just for this sub-site? > >> >> > >> >> If this isn't clear enough, please let me know and I can further > >> >> explain what I'm trying to do. > >> >> > >> >> Thanks! > >> >> > >> >> David B. > >> >> -- > >> >> [ 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/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080614/984a57b0/attachment-0001.htm From Greg at GrowingVentureSolutions.com Mon Jun 16 00:16:23 2008 From: Greg at GrowingVentureSolutions.com (Greg Knaddison - GVS) Date: Sun, 15 Jun 2008 17:16:23 -0700 Subject: [support] Search engine issue In-Reply-To: <-3426057354470376753@unknownmsgid> References: <-3426057354470376753@unknownmsgid> Message-ID: <3861c6770806151716v2e8ea405scdfce329d2209aea@mail.gmail.com> On Sat, Jun 14, 2008 at 4:26 AM, Edward Peters wrote: > Does anyone know a way of getting the search engine to index static html > files in the files directory? The Search Attachments module does a good job > with PDFs, Docs etc, but I don't know how to do plain html files. Here are a couple ideas why they wouldn't get indexed: 1) The files directory is excluded by robots.txt and/or some rules in your .htaccess 2) The content is too new and the engines just haven't prioritized seeing it yet 3) You don't have any links to those pages on the anonymously available parts of your site so the search engines don't know about it because there is no link to it. If item 1 is the problem, just remove the files directory from robots.txt or .htacess If item 2 is the problem, be patient :) If item 3 is the problem, you could add the links in a place that makes sense. You could also use the xmlsitemap module and visit admin/settings/xmlsitemap/additional to add "additional" pages outside of the normal Drupal items that get added via the xmlsitemap suite of modules. http://drupal.org/project/xmlsitemap Regards, Greg -- Greg Knaddison Denver, CO | http://knaddison.com World Spanish Tour | http://wanderlusting.org/user/greg From ignorance.is.strength at gmail.com Mon Jun 16 01:28:25 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Sun, 15 Jun 2008 20:28:25 -0500 Subject: [support] Can I Use a Slightly Modified Theme on Only One Page??? In-Reply-To: References: <9506cc0a0806131217m68e130d2y317f1c7b155ec830@mail.gmail.com> <9506cc0a0806132221q691e3f87se87f9a37618bc5cc@mail.gmail.com> <9506cc0a0806141020p707fe1b7q5477c12e89f4d43c@mail.gmail.com> Message-ID: <9506cc0a0806151828u18a0e69atce671931292f57b4@mail.gmail.com> Victor -- thanks again, I've got it working as I wish now. I wanted to thank everyone who responded with their advice. I really appreciate your efforts to help me out. Thank you all so much! To see what you all helped me make (it still needs some touching-up): http://www.narconews.com/thefield/ Sincerely, David Briones On Sat, Jun 14, 2008 at 12:56 PM, Victor Kane wrote: > What is "thefield2" ? > > If it is a node type, the node template would be node-thefield2.tpl.php. > > If you want to make a page template based on url, see > http://drupal.org/node/139766 > > Depending on what you want to do, you might have to create support for a > custom template with a php callback function; see excellent tutorial at > http://www.chapterthree.com/blog/zirafa/different_node_templates_node_variables_nid_type_view > > Victor > > On Sat, Jun 14, 2008 at 2:20 PM, Big Brother > wrote: >> >> Thanks Victor! >> >> I ended up doing what you suggested. I disabled the elements of the >> right sidebar that I didn't need for the new subsite. It seemed to >> have worked! >> >> I have another problem now. I am using the PHPtemplate method, >> provided by Matt above, but it doesn't seem to work for the nodes >> contained within "thefield2/" >> >> Here's what the design should look like: >> >> http://narcosphere.narconews.com/thefield2/ >> >> but look what happens when I do this: >> >> http://narcosphere.narconews.com/thefield2/test-4 >> >> The PHPtemplate engine should look for page-thefield2-test-4.tpl.php, >> then page-thefield2-test.tpl.php, then page-thefield2.tpl.php (which I >> have in the template folder I am using. >> >> Why isn't it picking up the right template file? >> >> Thanks! >> >> On Sat, Jun 14, 2008 at 4:22 AM, Victor Kane wrote: >> > For the right sidebar, you can configure certain blocks to only appear / >> > not >> > appear on certain paths, for certain roles, etc., by clicking on the >> > configuration link. >> > >> > Another approach would be to take a look at Panels 2 (there is good >> > documentation on the Drupal site), which is a whole other way of solving >> > your problem (making a different page content type, and then a node/% >> > panel >> > can be set to have a different layout on a content type basis. >> > >> > Victor Kane >> > http://awebfactory.com.ar >> > >> > On Sat, Jun 14, 2008 at 2:21 AM, Big Brother >> > wrote: >> >> >> >> Hi Matt, >> >> >> >> Thanks for the suggestion. I fooled around with it for a bit today and >> >> got some decent results. However, the problem I ran into is that I >> >> need to change the right sidebar as well, and I can't figure out to do >> >> that with your suggestion. >> >> >> >> Above, the suggestion by Brett seemed like it would solve this, but >> >> when I applied his solution the CSS of the new subtheme I made >> >> broke... sorta. Now: >> >> >> >> http://narcosphere.narconews.com/thefield2/ >> >> >> >> You notice that there is no sidebar at all, though I have set blocks >> >> up for the new subtheme, and the body are is black instead of white. >> >> Otherwise the logo looks fine... hehe. >> >> >> >> If your way provides a method for me to be able to manipulate the >> >> right sidebar as well then I will just go ahead and use your method. >> >> I'm not sure if it's possible, though. >> >> >> >> Thanks again! >> >> >> >> David >> >> >> >> On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin >> >> wrote: >> >> > Hi David, >> >> > >> >> > You might want to try: >> >> > >> >> > http://drupal.org/node/104316 - Using different page templates >> >> > depending on the current path >> >> > >> >> > Hope this helps. >> >> > >> >> > Best, >> >> > >> >> > Matt Galvin >> >> > http://www.simplifiedcomplexity.org/ >> >> > >> >> > >> >> > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother >> >> > wrote: >> >> >> Hi Everyone, >> >> >> >> >> >> My boss has a special request of me. We want to make a "sub-site" of >> >> >> the current site we are running, which is: >> >> >> >> >> >> http://narcosphere.narconews.com >> >> >> >> >> >> I need to build a sub-site which will use most of the current theme >> >> >> but with about 15-20% of changes. For instance, I am going to need >> >> >> to >> >> >> change the banner for this "sub-site", get rid of the left column, >> >> >> and >> >> >> change what's on the right-sidebar. >> >> >> >> >> >> Is there an easy way to do this without having to make a whole new >> >> >> drupal installation just for this sub-site? >> >> >> >> >> >> If this isn't clear enough, please let me know and I can further >> >> >> explain what I'm trying to do. >> >> >> >> >> >> Thanks! >> >> >> >> >> >> David B. >> >> >> -- >> >> >> [ 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/ ] >> > >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From ignorance.is.strength at gmail.com Mon Jun 16 04:52:54 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Sun, 15 Jun 2008 23:52:54 -0500 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments Message-ID: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> Hello everyone, I'm experience a hard-to-find bug. I don't know exactly where it is, but only a few triggers of the problem. When I approve comments (from the approval queue), whether it be one or ten, it hangs for several minutes and sometimes results in a complete MySql crash, where I have no other option other than to reset the MySql server. Also, when I delete comments as well I get this long hang and occasional crashes. It's obviously something with how Drupal is interacting with the MySql DB when calling comments. When the crashes occur the error is a basic "Too many connections..." MySql error. Anyone ever experienced this before? Let me know if anyone needs some clarification of my explanation. Cheers, David From michel at ziobudda.net Mon Jun 16 07:09:59 2008 From: michel at ziobudda.net (Davide Michel 'ZioBudda' Morelli) Date: Mon, 16 Jun 2008 09:09:59 +0200 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> Message-ID: <485611C7.4050800@ziobudda.net> Big Brother ha scritto: > Hello everyone, > > I'm experience a hard-to-find bug. I don't know exactly where it is, > but only a few triggers of the problem. > > When I approve comments (from the approval queue), whether it be one > or ten, it hangs for several minutes and sometimes results in a > complete MySql crash, where I have no other option other than to reset > the MySql server. > > Which modules do you have installed ? Have you the possibility to use phpMyAdmin (web) or mytop (shell) to see which queries are running ? M. -- Michel 'ZioBudda' Morelli michel at ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel at ziobuddalabs.it JABBER: michel at gmail.com From earnie at users.sourceforge.net Mon Jun 16 12:02:04 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 16 Jun 2008 08:02:04 -0400 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> Message-ID: <20080616080204.4xz0d4hkbk004sgs@mail.progw.org> Quoting Big Brother : > > Anyone ever experienced this before? Let me know if anyone needs some > clarification of my explanation. > Yes but in my instance I had installed another piece of software that left its connections persistent. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From jhedstrom at opensourcery.com Mon Jun 16 16:39:58 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Mon, 16 Jun 2008 09:39:58 -0700 Subject: [support] Search engine issue In-Reply-To: <020a01c8ce11$8c126200$a4372600$@peters@uk.iofc.org> References: <020a01c8ce11$8c126200$a4372600$@peters@uk.iofc.org> Message-ID: <4856975E.2040405@opensourcery.com> Edward Peters wrote: > Does anyone know a way of getting the search engine to index static html > files in the files directory? The Search Attachments module does a good job > with PDFs, Docs etc, but I don't know how to do plain html files. > It doesn't look like the Search Attachments module is currently configurable to search through static html files that aren't registered in the database (it pulls all it's lists of files to index from the files table). However, aside from that small issue, it would be the perfect module to accomplish such a task, and the work involved would be as simple as replacing a db query with a directory scan, and configuring what the module author calls Helper Apps to parse the html. Alternatively, there is the Swish-E module (http://drupal.org/project/swish) which appears to be very similar to Search Attachments. 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/20080616/5136455e/attachment.pgp From marolijo at yahoo.es Mon Jun 16 17:25:08 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Mon, 16 Jun 2008 19:25:08 +0200 Subject: [support] Views show filters over empty text Message-ID: <451632.11293.bm@omp417.mail.mud.yahoo.com> Is ot possible? Or can I force to show always the Header? Thank's! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080616/3a29b021/attachment.htm From marolijo at yahoo.es Mon Jun 16 17:40:12 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Mon, 16 Jun 2008 19:40:12 +0200 Subject: [support] Views show filters over empty text In-Reply-To: <451632.11293.bm@omp417.mail.mud.yahoo.com> Message-ID: <260211.78082.bm@omp412.mail.mud.yahoo.com> Sorry, I think I didn't explained so well... I need 1st: always the same header 2ond: the filter or the empty text. But when View returns the empty text It returns: 1st: the filter 2ond: the empty text. thank's again _____ De: support-bounces at drupal.org [mailto:support-bounces at drupal.org] En nombre de marolijo - Pol Maresma Enviado el: dilluns, 16 / juny / 2008 19:25 Para: support at drupal.org Asunto: [support] Views show filters over empty text Is ot possible? Or can I force to show always the Header? Thank's! __________ Informaci?n de NOD32, revisi?n 3191 (20080616) __________ 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/20080616/676a7f23/attachment-0001.htm From xamprod at gmail.com Mon Jun 16 19:19:45 2008 From: xamprod at gmail.com (xamprod) Date: Mon, 16 Jun 2008 15:19:45 -0400 Subject: [support] content type help Message-ID: Hello, I am looking to create a new content type that will basically display a page without menus or a top logo bar. It would be blank except the body of the content. Is there anyway to to this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080616/693dbf33/attachment.htm From rich at freestylesystems.co.uk Mon Jun 16 21:22:47 2008 From: rich at freestylesystems.co.uk (Richard Burford) Date: Mon, 16 Jun 2008 22:22:47 +0100 Subject: [support] content type help In-Reply-To: References: Message-ID: Hi, Just use the block visibility settings to not show your header and sidebar blocks for the required URL(s). If you can't get the result you desire from a simple URL pattern (e.g. path* or path/*) then you should look at PHP block visibility settings at http://drupal.org/node/60317 . psynaptic http://freestylesystems.co.uk http://api.freestylesystems.co.uk On 16 Jun 2008, at 20:19, xamprod wrote: > Hello, > > I am looking to create a new content type that will basically > display a page > without menus or a top logo bar. It would be blank except the body > of the > content. > Is there anyway to to this? > > 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/20080616/494819d4/attachment.bin From pinglaura at gmail.com Mon Jun 16 21:35:00 2008 From: pinglaura at gmail.com (Laura Scott) Date: Mon, 16 Jun 2008 15:35:00 -0600 Subject: [support] content type help In-Reply-To: References: Message-ID: Stripping away the Drupal "chrome" can be done easily in the page template. You can target a single post with a custom page template for that node, e.g., page-node-333.tpl.php. Laura On Jun 16, 2008, at 1:19 PM, xamprod wrote: > Hello, > > I am looking to create a new content type that will basically > display a page without menus or a top logo bar. It would be blank > except the body of the content. > Is there anyway to to this? > > Thanks > -- > [ Drupal support list | http://lists.drupal.org/ ] From dcarman at crchealth.com Mon Jun 16 23:05:15 2008 From: dcarman at crchealth.com (David Carman) Date: Mon, 16 Jun 2008 16:05:15 -0700 Subject: [support] Setting head_title and title independently Message-ID: <8D0930D674C6764DA50AB9B8A3E3B12702A3812B@crcmail3.crchealth.local> I have been trying to add support to the panels module (I am not associated with it) for a separate title in the title bar and in the in-page text. I have modified the module to get the two strings and store them in the database, but I am having trouble figuring out how to set $head_title and $title in the theme. It the title is currently set using the drupal_set_title function, which seems sets both of those variables. Is there was any way to set those variables independently or override the set_title function because I do not want to change the core? I apologize if this has been covered else where, I could not find it. Thanks. David Carman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080616/86e27e54/attachment.htm From merlin at logrus.com Mon Jun 16 23:26:00 2008 From: merlin at logrus.com (Earl Miles) Date: Mon, 16 Jun 2008 16:26:00 -0700 Subject: [support] Views show filters over empty text In-Reply-To: <260211.78082.bm@omp412.mail.mud.yahoo.com> References: <260211.78082.bm@omp412.mail.mud.yahoo.com> Message-ID: <4856F688.8000303@logrus.com> marolijo - Pol Maresma wrote: > Sorry, I think I didn't explained so well... > > I need > 1st: always the same header > 2ond: the filter or the empty text. > > But when View returns the empty text It returns: > > 1st: the filter > 2ond: the empty text. > > thank's again You can change this behavior by overriding theme_views_view_VIEWNAME(...) From ignorance.is.strength at gmail.com Mon Jun 16 23:37:39 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Mon, 16 Jun 2008 18:37:39 -0500 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <485611C7.4050800@ziobudda.net> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> <485611C7.4050800@ziobudda.net> Message-ID: <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> Thanks for the responses. I have too many modules to list them all... it would take too long. It's something to do with MySql accessing the comments table. It then locks and hangs. I am not using persistent connections. The Processlist indicates a number of 'SELECT count(node.nid) FROM node LEFT JOIN comments' statements which send data forever, and a few 'SELECT node.nid, comments.timestamp' which copy to tmp forever. Possible relevant modules: Karma Path Localizer Panels -David On Mon, Jun 16, 2008 at 2:09 AM, Davide Michel 'ZioBudda' Morelli wrote: > Big Brother ha scritto: >> Hello everyone, >> >> I'm experience a hard-to-find bug. I don't know exactly where it is, >> but only a few triggers of the problem. >> >> When I approve comments (from the approval queue), whether it be one >> or ten, it hangs for several minutes and sometimes results in a >> complete MySql crash, where I have no other option other than to reset >> the MySql server. >> >> > > Which modules do you have installed ? > > Have you the possibility to use phpMyAdmin (web) or mytop (shell) to see > which queries are running ? > > M. > > -- > Michel 'ZioBudda' Morelli michel at ziobudda.net > Consulenza sistemistica in ambito OpenSource. > Sviluppo applicazioni web dinamiche (LAMP+Ajax) > Telefono: 0200619074 > Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 > > http://www.ziobudda.net ICQ: 58351764 > http://www.ziobuddalabs.it Skype: zio_budda > http://www.ziodrupal.net MSN: michel at ziobuddalabs.it > JABBER: michel at gmail.com > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From lev at vpac.org Tue Jun 17 03:48:26 2008 From: lev at vpac.org (Lev Lafayette) Date: Tue, 17 Jun 2008 13:48:26 +1000 (EST) Subject: [support] Four excellent questions Message-ID: <894670680.11021213674506434.JavaMail.root@zimbra.vpac.org> ... were recently submitted to me. (1) can an a current version of a page be publicly available on the website, whilst there is another version of that same page being updated but not publicly available (with this in-editing page later becoming the current page)? (2) we'd like to set a few users only with publishing authority, with all other users having create/edit authority, but not able to publish new or edited content. The "publishers" would review new/edited content and then publish it if OK. This issue rather presumes that (1) is possible? (3) if a page does not have a menu item (i.e. the "menu title" field is left blank), so that it is just linked from another page, for example, is there a handy way for authenticated users to find such pages if they are not published (I think that "recent posts" works only for published content?)? (4) can friendly URL's be created automatically, up to the last section which is the actual name of the page (e.g. x/y/z/PageTitle, with x/y/z/ being added automatically, and the page creator just having to add PageTitle)? This would "be nice" but not essential... I gave a workaround for (1), a 'no' for (2) and (4) - with an explanation for the latter, and suggested Administer > Content Management (admin/content/node) for the third. Any other ideas/solutions? All the best, -- Lev Lafayette (03) 9925 4909 Systems Administrator 110 Victoria St Carlton South, 3053 From dcirotteau at rue89.com Tue Jun 17 06:12:02 2008 From: dcirotteau at rue89.com (Damien Cirotteau) Date: Tue, 17 Jun 2008 08:12:02 +0200 Subject: [support] Four excellent questions In-Reply-To: <894670680.11021213674506434.JavaMail.root@zimbra.vpac.org> References: <894670680.11021213674506434.JavaMail.root@zimbra.vpac.org> Message-ID: Yes to the 4 questions. On Tue, Jun 17, 2008 at 5:48 AM, Lev Lafayette wrote: > > ... were recently submitted to me. > > (1) can an a current version of a page be publicly available on the website, whilst there is another version of that same page being updated but not publicly available (with this in-editing page later becoming the current page)? Yes there is a module that do that. Unfortunatly I don't remember the name and I can't find it on drupal.org. Search in the module pages (there is revision in the title if I remember correctly) > > (2) we'd like to set a few users only with publishing authority, with all other users having create/edit authority, but not able to publish new or edited content. The "publishers" would review new/edited content and then publish it if OK. This issue rather presumes that (1) is possible? You can do that with the workflow module http://drupal.org/project/workflow > > (3) if a page does not have a menu item (i.e. the "menu title" field is left blank), so that it is just linked from another page, for example, is there a handy way for authenticated users to find such pages if they are not published (I think that "recent posts" works only for published content?)? Or you can use the Views module to build such a page http://drupal.org/project/views > > (4) can friendly URL's be created automatically, up to the last section which is the actual name of the page (e.g. x/y/z/PageTitle, with x/y/z/ being added automatically, and the page creator just having to add PageTitle)? This would "be nice" but not essential... Very easy with pathauto http://drupal.org/project/pathauto damien From fredthejonester at gmail.com Tue Jun 17 11:29:43 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Tue, 17 Jun 2008 13:29:43 +0200 Subject: [support] Google Spreadsheet Message-ID: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> While I see there have been discussions of implementing a Google Spreadsheet-like feature for Drupal or an API to share data with an actual Google Spreadsheet, I don't see any working code. Does such a thing exist? I have a site where the owner wants to keep the list of Drupal users (complete with a set of custom fields) in a Google Spreadsheet. My only solution is to hook into the registration form processor and use curl to post the fields to the Google Spreadsheet. This I believe can be done and would work. Updates are not yet accounted for, but I'm not sure this will be a requirement. Anyone have an alternative solution? Thanks! From enboig at gmail.com Tue Jun 17 11:40:05 2008 From: enboig at gmail.com (=?ISO-8859-1?Q?Llu=EDs?=) Date: Tue, 17 Jun 2008 13:40:05 +0200 Subject: [support] Google Spreadsheet In-Reply-To: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> References: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> Message-ID: <45a29f450806170440h4982a3b8h38ae359d0ede6a8e@mail.gmail.com> Don't know if it is what you are looking for, but Ajax Table was good for my site to manage nodes. http://drupal.org/project/ajaxtable 2008/6/17 Fred Jones : > While I see there have been discussions of implementing a Google > Spreadsheet-like feature for Drupal or an API to share data with an > actual Google Spreadsheet, I don't see any working code. > > Does such a thing exist? I have a site where the owner wants to keep > the list of Drupal users (complete with a set of custom fields) in a > Google Spreadsheet. My only solution is to hook into the registration > form processor and use curl to post the fields to the Google > Spreadsheet. This I believe can be done and would work. Updates are > not yet accounted for, but I'm not sure this will be a requirement. > > Anyone have an alternative solution? > > Thanks! > -- > [ 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 earnie at users.sourceforge.net Tue Jun 17 12:31:48 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 17 Jun 2008 08:31:48 -0400 Subject: [support] Google Spreadsheet In-Reply-To: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> References: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> Message-ID: <20080617083148.4wm1z76mmqtcw8c4@mail.progw.org> Quoting Fred Jones : > > Anyone have an alternative solution? > Use the Profile fields for the extra data and then use Advanced User to filter and page through the data. Not a spread sheet but it is an alternative solution. The Profile fields can be set so that only administrators see the data. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Tue Jun 17 13:08:11 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 17 Jun 2008 09:08:11 -0400 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> <485611C7.4050800@ziobudda.net> <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> Message-ID: <20080617090811.8cvzui8s8e80wscs@mail.progw.org> Quoting Big Brother : > Thanks for the responses. > > I have too many modules to list them all... it would take too long. > > It's something to do with MySql accessing the comments table. It then > locks and hangs. > > I am not using persistent connections. > > The Processlist indicates a number of 'SELECT count(node.nid) FROM > node LEFT JOIN > comments' statements which send data forever, and a few 'SELECT node.nid, > comments.timestamp' which copy to tmp forever. > > Possible relevant modules: > Karma > Path > Localizer > Panels > The only suggestion I have is for you to start turning off modules until you find the one causing the problem and then open an issue for that module. It may be a combination of modules causing an issue; some modules are not compatible with other modules. If you find a combination issue then open an issue in both modules so that they can document the travesty. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From fredthejonester at gmail.com Tue Jun 17 13:58:34 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Tue, 17 Jun 2008 15:58:34 +0200 Subject: [support] Google Spreadsheet In-Reply-To: <20080617083148.4wm1z76mmqtcw8c4@mail.progw.org> References: <177c0a10806170429n61051bf4x1955e7bd350ea975@mail.gmail.com> <20080617083148.4wm1z76mmqtcw8c4@mail.progw.org> Message-ID: <177c0a10806170658m1ff9ca88g40bc8952c0824beb@mail.gmail.com> > Use the Profile fields for the extra data and then use Advanced User to > filter and page through the data. Not a spread sheet but it is an > alternative solution. The Profile fields can be set so that only > administrators see the data. I think 'spreadsheet' is a requirement, but thanks for the pointer. > Don't know if it is what you are looking for, but Ajax Table was good > for my site to manage nodes. > > http://drupal.org/project/ajaxtable Very interesting. I will try to convince the boss. :) Thanks. From stefan at borchert.cc Tue Jun 17 17:13:27 2008 From: stefan at borchert.cc (Stefan Borchert) Date: Tue, 17 Jun 2008 19:13:27 +0200 Subject: [support] Four excellent questions In-Reply-To: References: <894670680.11021213674506434.JavaMail.root@zimbra.vpac.org> Message-ID: <4857F0B7.1040802@borchert.cc> Damien Cirotteau schrieb: > Yes to the 4 questions. > > On Tue, Jun 17, 2008 at 5:48 AM, Lev Lafayette wrote: >> ... were recently submitted to me. >> >> (1) can an a current version of a page be publicly available on the website, whilst there is another version of that same page being updated but not publicly available (with this in-editing page later becoming the current page)? > > Yes there is a module that do that. Unfortunatly I don't remember the > name and I can't find it on drupal.org. Search in the module pages > (there is revision in the title if I remember correctly) Probably http://drupal.org/project/revision_moderation ? From dcirotteau at rue89.com Tue Jun 17 17:16:40 2008 From: dcirotteau at rue89.com (Damien Cirotteau) Date: Tue, 17 Jun 2008 19:16:40 +0200 Subject: [support] Four excellent questions In-Reply-To: <4857F0B7.1040802@borchert.cc> References: <894670680.11021213674506434.JavaMail.root@zimbra.vpac.org> <4857F0B7.1040802@borchert.cc> Message-ID: On Tue, Jun 17, 2008 at 7:13 PM, Stefan Borchert wrote: > Damien Cirotteau schrieb: >> Yes to the 4 questions. >> >> On Tue, Jun 17, 2008 at 5:48 AM, Lev Lafayette wrote: >>> ... were recently submitted to me. >>> >>> (1) can an a current version of a page be publicly available on the website, whilst there is another version of that same page being updated but not publicly available (with this in-editing page later becoming the current page)? >> >> Yes there is a module that do that. Unfortunatly I don't remember the >> name and I can't find it on drupal.org. Search in the module pages >> (there is revision in the title if I remember correctly) > > Probably http://drupal.org/project/revision_moderation ? That's it. From pkim at reachlocal.com Tue Jun 17 18:47:09 2008 From: pkim at reachlocal.com (Paul Kim) Date: Tue, 17 Jun 2008 11:47:09 -0700 Subject: [support] Dynamically display parent/child taxonomy terms in a separate list? Message-ID: <485806AD.5030902@reachlocal.com> Is there a way to display a single-hierarchy taxonomy terms separately? For example, if we have this list: Parent1 --child1 --child2 Parent2 --child3 --child4 --child5 I want to show two drop-down menus, populating the first one with: Parent1 Parent2 Once a selection is selected in this first drop-down menu, a second drop-down menu is populated with the children based on the selection of the first drop-down menu. What's the best way to do this? Thanks! From jhedstrom at opensourcery.com Tue Jun 17 21:41:19 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Tue, 17 Jun 2008 14:41:19 -0700 Subject: [support] Dynamically display parent/child taxonomy terms in a separate list? In-Reply-To: <485806AD.5030902@reachlocal.com> References: <485806AD.5030902@reachlocal.com> Message-ID: <48582F7F.3020005@opensourcery.com> Paul Kim wrote: > Is there a way to display a single-hierarchy taxonomy terms separately? > For example, if we have this list: > > Parent1 > --child1 > --child2 > Parent2 > --child3 > --child4 > --child5 > > I want to show two drop-down menus, populating the first one with: > > Parent1 > Parent2 > > Once a selection is selected in this first drop-down menu, a second > drop-down menu is populated with the children based on the selection of > the first drop-down menu. What's the best way to do this? > There are several modules that should address this issue. I've used Content Taxonomy (http://drupal.org/project/content_taxonomy), which optionally implements Active Select (http://drupal.org/project/activeselect). There is also Hierarchical Select (http://drupal.org/project/hierarchical_select), which doesn't depend on cck the way Content Taxonomy does. 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/20080617/d7119588/attachment-0001.pgp From jhedstrom at opensourcery.com Tue Jun 17 22:53:17 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Tue, 17 Jun 2008 15:53:17 -0700 Subject: [support] Setting head_title and title independently In-Reply-To: <8D0930D674C6764DA50AB9B8A3E3B12702A3812B@crcmail3.crchealth.local> References: <8D0930D674C6764DA50AB9B8A3E3B12702A3812B@crcmail3.crchealth.local> Message-ID: <4858405D.9060000@opensourcery.com> David Carman wrote: > > I have been trying to add support to the panels module (I am not > associated with it) for a separate title in the title bar and in the > in-page text. > > > > I have modified the module to get the two strings and store them in > the database, but I am having trouble figuring out how to set > $head_title and $title in the theme. It the title is currently set > using the drupal_set_title function, which seems sets both of those > variables. Is there was any way to set those variables independently > or override the set_title function because I do not want to change the > core? > > > > I apologize if this has been covered else where, I could not find it. > You should be able to set them separately in template.php, using _phptemplate_variables for D5 [1] or phptemplate_preprocess_page for D6 [2] something like: $vars['title'] = 'foo'; $vars['head_title'] = 'bar'; 1. http://api.drupal.org/api/function/_phptemplate_variables/5 2. http://api.drupal.org/api/function/phptemplate_preprocess_page/6 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/20080617/4ab95a13/attachment.pgp From pkim at reachlocal.com Tue Jun 17 22:54:15 2008 From: pkim at reachlocal.com (Paul Kim) Date: Tue, 17 Jun 2008 15:54:15 -0700 Subject: [support] Dynamically display parent/child taxonomy terms in a separate list? In-Reply-To: <48582F7F.3020005@opensourcery.com> References: <485806AD.5030902@reachlocal.com> <48582F7F.3020005@opensourcery.com> Message-ID: <48584097.80701@reachlocal.com> Thanks! That was exactly what I needed. Jonathan Hedstrom wrote: > There are several modules that should address this issue. I've used > Content Taxonomy (http://drupal.org/project/content_taxonomy), which > optionally implements Active Select > (http://drupal.org/project/activeselect). There is also Hierarchical > Select (http://drupal.org/project/hierarchical_select), which doesn't > depend on cck the way Content Taxonomy does. > > Cheers, > > Jonathan > > From lev at vpac.org Tue Jun 17 23:52:49 2008 From: lev at vpac.org (Lev Lafayette) Date: Wed, 18 Jun 2008 09:52:49 +1000 (EST) Subject: [support] Four excellent questions In-Reply-To: Message-ID: <385621190.16191213746769665.JavaMail.root@zimbra.vpac.org> ----- "Damien Cirotteau" wrote: > On Tue, Jun 17, 2008 at 7:13 PM, Stefan Borchert > wrote: > > Damien Cirotteau schrieb: > >> Yes to the 4 questions. > >> > >> On Tue, Jun 17, 2008 at 5:48 AM, Lev Lafayette > wrote: > >>> ... were recently submitted to me. > >>> > >>> (1) can an a current version of a page be publicly available on > the website, whilst there is another version of that same page being > updated but not publicly available (with this in-editing page later > becoming the current page)? > >> > >> Yes there is a module that do that. Unfortunatly I don't remember > the > >> name and I can't find it on drupal.org. Search in the module pages > >> (there is revision in the title if I remember correctly) > > > > Probably http://drupal.org/project/revision_moderation ? > > That's it. Nice work everyone. Thanks for your help. It's greatly appreciated. -- Lev Lafayette (03) 9925 4909 Systems Administrator 110 Victoria St Carlton South, 3053 From dcarman at crchealth.com Wed Jun 18 18:00:44 2008 From: dcarman at crchealth.com (David Carman) Date: Wed, 18 Jun 2008 11:00:44 -0700 Subject: [support] Setting head_title and title independently Message-ID: <8D0930D674C6764DA50AB9B8A3E3B12702A38337@crcmail3.crchealth.local> Thanks. As I understand it, those functions are used in an individual theme. I am trying to find a way to set those variables in the module itself so that it will work for any theme without having to add a template.php file to each individual theme with one of those functions in them. If I define a theme_[module_name]_page_title function would whatever it returns be passed as $page_title to the templates, or would there be a way within such a function to make sure a variable gets passed to the templates? I am still trying to figure out the flow between modules and themes. Thanks for the help, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080618/b0d35f60/attachment.htm From gwenael.saint-genest at makina-corpus.com Thu Jun 19 14:13:16 2008 From: gwenael.saint-genest at makina-corpus.com (Saint-Genest Gwenael) Date: Thu, 19 Jun 2008 16:13:16 +0200 Subject: [support] Error when install two Drupal 6.2 with PGSQL and table prefix (and patch) Message-ID: <485A697C.8010807@makina-corpus.com> Hi, Today, i've tried to install two sets of datas into a drupal 6.2 database (with pgsql). With a table prefix i've take an error like : Warning: pg_query() [function.pg-query]: Query failed: ERROR: type "int_unsigned" already exists in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 138 Warning: ERROR: type "int_unsigned" already exists query: CREATE DOMAIN int_unsigned integer CHECK (VALUE >= 0) in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 159 Warning: pg_query() [function.pg-query]: Query failed: ERROR: type "smallint_unsigned" already exists in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 138 Warning: ERROR: type "smallint_unsigned" already exists query: CREATE DOMAIN smallint_unsigned smallint CHECK (VALUE >= 0) in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 159 Warning: pg_query() [function.pg-query]: Query failed: ERROR: type "bigint_unsigned" already exists in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 138 Warning: ERROR: type "bigint_unsigned" already exists query: CREATE DOMAIN bigint_unsigned bigint CHECK (VALUE >= 0) in /var/www/xxxxxx/drupal-6.2/includes/database.pgsql.inc on line 159 Ok ... Drupal try to create data types two times ... and crash :( If anyone else has the same error, this patch can solve this problem : --=={ snip }==-- --- drupal-6.2-ref/modules/system/system.install 2008-06-19 10:19:36.000000000 +0200 +++ drupal-6.2/modules/system/system.install 2008-06-19 15:53:28.000000000 +0200 @@ -302,9 +302,15 @@ function system_install() { if ($GLOBALS['db_type'] == 'pgsql') { // Create unsigned types. - db_query("CREATE DOMAIN int_unsigned integer CHECK (VALUE >= 0)"); - db_query("CREATE DOMAIN smallint_unsigned smallint CHECK (VALUE >= 0)"); - db_query("CREATE DOMAIN bigint_unsigned bigint CHECK (VALUE >= 0)"); + if (!db_result(db_query("SELECT COUNT(*) FROM pg_type WHERE typname = 'int_unsigned'"))) { + db_query("CREATE DOMAIN int_unsigned integer CHECK (VALUE >= 0)"); + } + if (!db_result(db_query("SELECT COUNT(*) FROM pg_type WHERE typname = 'smallint_unsigned'"))) { + db_query("CREATE DOMAIN smallint_unsigned smallint CHECK (VALUE >= 0)"); + } + if (!db_result(db_query("SELECT COUNT(*) FROM pg_type WHERE typname = 'bigint_unsigned'"))) { + db_query("CREATE DOMAIN bigint_unsigned bigint CHECK (VALUE >= 0)"); + } // Create functions. db_query('CREATE OR REPLACE FUNCTION "greatest"(numeric, numeric) RETURNS numeric AS --=={ snip }==-- Gwen -- Gwenael Saint-Genest MAKINA CORPUS - www.makina-corpus.com 44 boulevard des Pas Enchant?s FR-44230 Saint S?bastien sur Loire Tel : +33 (0) 2 40 94 96 08 From cleveland at winnefox.org Thu Jun 19 18:45:27 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Thu, 19 Jun 2008 13:45:27 -0500 Subject: [support] Possible to add block to node content? Message-ID: Hello, I'm running Drupal 6.2 and I have a question. Is it possible to add a block into a content element? I want to create a page that includes a block I've created, but I want it in the content area of the page. -- Jody Cleveland From pinglaura at gmail.com Thu Jun 19 20:57:25 2008 From: pinglaura at gmail.com (Laura Scott) Date: Thu, 19 Jun 2008 14:57:25 -0600 Subject: [support] Possible to add block to node content? In-Reply-To: References: Message-ID: <9E572CF1-17E5-4227-9E79-CA883BE7D789@gmail.com> Yes. You can define a region in your theme, into which you place the block. Many themes by default will place blocks placed into the "content" region below the node. Look at the handbooks on phptemplate themes discussion on regions. Defining them is *really* easy in Drupal 6. An alternative approach would be to use php within the node's content (using the input form and the php parser input setting) to print the block. Laura On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote: > Hello, > > I'm running Drupal 6.2 and I have a question. > > Is it possible to add a block into a content element? I want to > create a > page that includes a block I've created, but I want it in the > content area > of the page. > > -- > Jody Cleveland > > -- > [ Drupal support list | http://lists.drupal.org/ ] From jimmydami at gmail.com Thu Jun 19 21:18:42 2008 From: jimmydami at gmail.com (Jim Li) Date: Thu, 19 Jun 2008 17:18:42 -0400 Subject: [support] CCK 6.x field permission questions Message-ID: <507611440806191418h6d3992c1nb61595b018abae38@mail.gmail.com> Hello, I was playing with CCK-6.x-2.0-beta, and had a couple questions on content_permission (previously field permission?). 1. What's the best way to allow a user to be able to edit a user-defined field, but not the default content body and title? Looks like a user have to have 'edit any my-content-type' permission, so he can get to the edit form. But it also gives him permission of editing the default content body and title, which is not what I wanted. One possible way I can think of getting around this, is to disable the default body/title field, and define my own ones, but it's kind of awkward to me. Is there a better way to do this, or am I missing something? 2. Is there a way to have fine-grained permission on multi-fields? What I want is users can add a multi-field, and edit their own multi-field but not the ones added by others. Is this possible with CCK-6.x? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080619/69b47a37/attachment-0001.htm From cleveland at winnefox.org Thu Jun 19 21:19:31 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Thu, 19 Jun 2008 16:19:31 -0500 Subject: [support] Possible to add block to node content? In-Reply-To: <9E572CF1-17E5-4227-9E79-CA883BE7D789@gmail.com> Message-ID: I'm only going to be having this on one page, and was hoping to control exactly where it goes using php code. But, I wasn't able to find anything on how to do that. - jody On 6/19/08 3:57 PM, "Laura Scott" wrote: > Yes. You can define a region in your theme, into which you place the > block. Many themes by default will place blocks placed into the > "content" region below the node. Look at the handbooks on phptemplate > themes discussion on regions. Defining them is *really* easy in Drupal > 6. > > An alternative approach would be to use php within the node's content > (using the input form and the php parser input setting) to print the > block. > > Laura > > On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote: > >> Hello, >> >> I'm running Drupal 6.2 and I have a question. >> >> Is it possible to add a block into a content element? I want to >> create a >> page that includes a block I've created, but I want it in the >> content area >> of the page. >> >> -- >> Jody Cleveland >> >> -- >> [ 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 cog.rusty at gmail.com Fri Jun 20 02:47:56 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Fri, 20 Jun 2008 05:47:56 +0300 Subject: [support] Possible to add block to node content? In-Reply-To: References: <9E572CF1-17E5-4227-9E79-CA883BE7D789@gmail.com> Message-ID: There used to be a http://drupal.org/project/insert_block module but it has not been upgraded to Drupal 6 I also recall a technique for creating "floater" theme regions in the content, at least for Drupal 5 (http://drupal.org/node/29139) But if it is only for one page, does it need to be a block? Can't it be just formatted content? On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland wrote: > I'm only going to be having this on one page, and was hoping to control > exactly where it goes using php code. But, I wasn't able to find anything on > how to do that. > > - jody > > > On 6/19/08 3:57 PM, "Laura Scott" wrote: > >> Yes. You can define a region in your theme, into which you place the >> block. Many themes by default will place blocks placed into the >> "content" region below the node. Look at the handbooks on phptemplate >> themes discussion on regions. Defining them is *really* easy in Drupal >> 6. >> >> An alternative approach would be to use php within the node's content >> (using the input form and the php parser input setting) to print the >> block. >> >> Laura >> >> On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote: >> >>> Hello, >>> >>> I'm running Drupal 6.2 and I have a question. >>> >>> Is it possible to add a block into a content element? I want to >>> create a >>> page that includes a block I've created, but I want it in the >>> content area >>> of the page. >>> >>> -- >>> Jody Cleveland >>> >>> -- >>> [ 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/ ] > From matt at cabinetuk.com Fri Jun 20 06:19:54 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Fri, 20 Jun 2008 07:19:54 +0100 Subject: [support] Possible to add block to node content? In-Reply-To: References: <9E572CF1-17E5-4227-9E79-CA883BE7D789@gmail.com> Message-ID: <1D708992-FA51-4BB4-B284-4F90F79C230C@cabinetuk.com> Jody, in Drupal 6.2 this can be done without adding any custom modules or theme modifications. Log in as administrator user. Go to: - Administer - Site Building - Blocks Then "Add Block" - create the content you want - this will be static content, although it could be dynamic via javascript. You have visibility controls here. eg: Make it visible to all users, always. There's also a section called "Page specific visibility settings" - here you can allow the block to be shown only on specific pages within the drupal site. (I recommend enabling the "Path" module so that you can specify url names to pages, which makes this type of access control easier. When you save the block, it will appear in the disabled list back on the Blocks page. Move it to where you want (by drag or select from pull-down menu). Don't forget to save the page. best, Matt On 20/06/2008, at 3:47 AM, Cog Rusty wrote: > There used to be a http://drupal.org/project/insert_block module but > it has not been upgraded to Drupal 6 > > I also recall a technique for creating "floater" theme regions in the > content, at least for Drupal 5 (http://drupal.org/node/29139) > > But if it is only for one page, does it need to be a block? Can't it > be just formatted content? > > > > On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland > wrote: >> I'm only going to be having this on one page, and was hoping to >> control >> exactly where it goes using php code. But, I wasn't able to find >> anything on >> how to do that. >> >> - jody >> >> >> On 6/19/08 3:57 PM, "Laura Scott" wrote: >> >>> Yes. You can define a region in your theme, into which you place the >>> block. Many themes by default will place blocks placed into the >>> "content" region below the node. Look at the handbooks on >>> phptemplate >>> themes discussion on regions. Defining them is *really* easy in >>> Drupal >>> 6. >>> >>> An alternative approach would be to use php within the node's >>> content >>> (using the input form and the php parser input setting) to print the >>> block. >>> >>> Laura >>> >>> On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote: >>> >>>> Hello, >>>> >>>> I'm running Drupal 6.2 and I have a question. >>>> >>>> Is it possible to add a block into a content element? I want to >>>> create a >>>> page that includes a block I've created, but I want it in the >>>> content area >>>> of the page. >>>> >>>> -- >>>> Jody Cleveland >>>> >>>> -- >>>> [ 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/ ] >> > -- > [ Drupal support list | http://lists.drupal.org/ ] From Cleveland at winnefox.org Fri Jun 20 11:07:18 2008 From: Cleveland at winnefox.org (Jody Cleveland) Date: Fri, 20 Jun 2008 06:07:18 -0500 Subject: [support] Possible to add block to node content? References: <9E572CF1-17E5-4227-9E79-CA883BE7D789@gmail.com> Message-ID: <9720CA43F755A148BF65B6618B90CB94022FD453@magneto.wals.local> This is the site I'm working on: http://beta.menashalibrary.org/ I've got three blocks there, two node carousel's and a popular content block. Ideally what I'd like to do is have a div that contains those three blocks within the content area of a page. With the one carousel that rotates content, the popular content next to it, and the other carousel right below it. Kind of like this: -------------------------------------------------------------- | | | | | | | | | -------------------------------------------------------------- | | | | | | -------------------------------------------------------------- ________________________________ From: support-bounces at drupal.org on behalf of Cog Rusty Sent: Thu 6/19/2008 9:47 PM To: support at drupal.org Subject: Re: [support] Possible to add block to node content? There used to be a http://drupal.org/project/insert_block module but it has not been upgraded to Drupal 6 I also recall a technique for creating "floater" theme regions in the content, at least for Drupal 5 (http://drupal.org/node/29139) But if it is only for one page, does it need to be a block? Can't it be just formatted content? On Fri, Jun 20, 2008 at 12:19 AM, Jody Cleveland wrote: > I'm only going to be having this on one page, and was hoping to control > exactly where it goes using php code. But, I wasn't able to find anything on > how to do that. > > - jody > > > On 6/19/08 3:57 PM, "Laura Scott" wrote: > >> Yes. You can define a region in your theme, into which you place the >> block. Many themes by default will place blocks placed into the >> "content" region below the node. Look at the handbooks on phptemplate >> themes discussion on regions. Defining them is *really* easy in Drupal >> 6. >> >> An alternative approach would be to use php within the node's content >> (using the input form and the php parser input setting) to print the >> block. >> >> Laura >> >> On Jun 19, 2008, at 12:45 PM, Jody Cleveland wrote: >> >>> Hello, >>> >>> I'm running Drupal 6.2 and I have a question. >>> >>> Is it possible to add a block into a content element? I want to >>> create a >>> page that includes a block I've created, but I want it in the >>> content area >>> of the page. >>> >>> -- >>> Jody Cleveland >>> >>> -- >>> [ 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/ ] > -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 8677 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080620/5ad4020f/attachment.bin From edward.peters at uk.iofc.org Fri Jun 20 15:48:00 2008 From: edward.peters at uk.iofc.org (Edward Peters) Date: Fri, 20 Jun 2008 16:48:00 +0100 Subject: [support] Views and Image question Message-ID: <05cd01c8d2ed$058e19a0$10aa4ce0$@peters@uk.iofc.org> I am trying to build an image gallery in Drupal 6 using Views. I want to define the Field as the image which has been uploaded using the image module, but I can't see any way of choosing it. It is not an 'uploaded file' in the sense that is used. Does this mean that Views for D6 does not yet have integration with the image module? Edward Peters Oxford, UK www.iofc.org From jhedstrom at opensourcery.com Fri Jun 20 21:13:56 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Fri, 20 Jun 2008 14:13:56 -0700 Subject: [support] Setting head_title and title independently In-Reply-To: <8D0930D674C6764DA50AB9B8A3E3B12702A38337@crcmail3.crchealth.local> References: <8D0930D674C6764DA50AB9B8A3E3B12702A38337@crcmail3.crchealth.local> Message-ID: <485C1D94.8020602@opensourcery.com> David Carman wrote: > > Thanks. As I understand it, those functions are used in an individual > theme. > I'm not positive, but in D6, I think modules can implement those hooks (module_name_preprocess_page() etc). This isn't the case in D5. 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/20080620/72c89b00/attachment.pgp From bharanikumariyerphp at gmail.com Sat Jun 21 12:44:11 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sat, 21 Jun 2008 18:14:11 +0530 Subject: [support] Fivestar Message-ID: <2240033d0806210544y2128bd7ckebf48a44d493c231@mail.gmail.com> Hi dears I downloaded the fivestart module.. I developed the cutom module,that module act as display the top 5 events in the home page left side block, Now in that , each events title,acuthor,sponsor,location, and i want to add the star rating here , How to i display that star rating here, Any idea About ... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080621/ab89bf38/attachment.htm From shyamala at netlinkindia.com Sun Jun 22 02:18:51 2008 From: shyamala at netlinkindia.com (Shyamala Rajaram) Date: Sun, 22 Jun 2008 07:48:51 +0530 Subject: [support] Fivestar References: <2240033d0806210544y2128bd7ckebf48a44d493c231@mail.gmail.com> Message-ID: <003f01c8d40e$62b37d60$2101a8c0@netlinkindia.local> Are you unsing views to create the block? Is event a CCK? Shyamala ----- Original Message ----- From: bharani kumar To: support at drupal.org Sent: Saturday, June 21, 2008 6:14 PM Subject: [support] Fivestar Hi dears I downloaded the fivestart module.. I developed the cutom module,that module act as display the top 5 events in the home page left side block, Now in that , each events title,acuthor,sponsor,location, and i want to add the star rating here , How to i display that star rating here, Any idea About ... ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/d27104d3/attachment.htm From sebastien at dianjingkeji.com Sun Jun 22 04:34:11 2008 From: sebastien at dianjingkeji.com (Sebastien Louis) Date: Sun, 22 Jun 2008 12:34:11 +0800 Subject: [support] Dupal vs DotNetNuke Message-ID: Hi everybody. I have a big project for a customer here in China and after studying its requirements and the different technologies available out there, I am left with two choices: Drupal and DotNetNuke. This project indeed involve a very detailed list of user groups and permissions for its different features and these two Open-Source CMS seem to be the ones that provide the best ACL. I am personally more experienced with DotNetNuke and I'm confident that I could find all the DNN modules that I need for this project, but my team has mostly been working with Joomla! so if I can find all these modules for Drupal, that would probably be best. So I have had a quick look at the list of modules on the Drupal website and couldn't easily find those so I thought I'll flick a quick email to the support mailing-list. As you guys know Drupal much better than me, you might be able to let me know if these modules are actually available. Thanks for your help! Sebastien Louis Project Manager Crystal Science & Technology -- 1 - User Registration The main reason for choosing Drupal for this website is that it offers a powerful ACL. After registering to the website, users will be put in the Members group, but they should also have the ability to submit further documents and details to become a Verified Members. So it would be great to find an existing module that can handle two-steps registrations. 2 - User Profile Registered users will be given the ability to manage their own user profile. Like most websites of this kind, users will be able to keep some of these details private. However, even though the email address might not be displayed, users should be able to email the users they visit the user profile. This is similar to sending a message to the user except that the message is send by email. No need for an internal inbox for each user. 3 - User Directory The purpose of this module is to provide the ability to access the profiles of the users in a specific group (i.e. the list of Verified Members). Details of the different users will be displayed according to a set of internal rules (i.e. do not show the email address) and according to each user preferences (i.e. user can choose to show his address or not). To browse this directory, visitors will be able to use an advanced search interface (i.e. search by name, city, region, country...) or by clicking on a simple map with predefined regions. 4 - Marketing Tools The purpose of this module is to take advantage of the list of users to send them newsletters and invitations according to different criteria (i.e. group, region, date of birth...). 5 - Calendar of Events A standard calendar module that can be configured to display role based events. 6 - Forums A standard forum module that can be configured to display role based threads. 7 - Online Discussion The purpose of this module is to setup an online discussion on a specific topic between an expert and the different users of the website. Questions will be posted by the users for the expert to answer. Moderators will need to review the questions before they are sent to the expert. 8 - RSS Feeds A standard RSS reader module that can be configured to display role based feeds. 9 - News Feeds A standard news module that can be configured to display role based news. Ideally the administrator of the website should be able to publish news in different categories and each category will be displayed in a different page, but if that's not possible, administrating several instance of the module should be fine. Control over the number of news per page and over the layout of the different pages should be easy to setup or hack. ______________________________________________ Crystal Science & Technology Room 2103, Shangdu Soho South (Blue) Tower, Dongdaqiao Rd. Chaoyang District, Beijing P.R.C. 100022 w: www.dianjingkeji.com p: +86 10 5900 1375 f: +86 10 5900 1376 m: +86 135 204 96 314 This e-mail is intended only for the person to whom it is addressed. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, copy, print or rely on this e-mail. By replying to this e-mail you give your consent to such monitoring. All materials produced and published by Beijing Crystal Science and Technology Limited, including logo's, drawings, data, products, content, images,web designs are protected by copyright laws, and belong to Beijing Crystal Science and Technology Limited or to third parties otherwise stated by a specific contract. They may not be reproduced, republished, distributed, transmitted, resold, displayed, broadcast, or otherwise exploited in any manner without the express written permission of Beijing Crystal Science and Technology Limited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/8c3f4932/attachment-0001.htm From bharanikumariyerphp at gmail.com Sun Jun 22 07:47:53 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 22 Jun 2008 13:17:53 +0530 Subject: [support] Fivestar In-Reply-To: <003f01c8d40e$62b37d60$2101a8c0@netlinkindia.local> References: <2240033d0806210544y2128bd7ckebf48a44d493c231@mail.gmail.com> <003f01c8d40e$62b37d60$2101a8c0@netlinkindia.local> Message-ID: <2240033d0806220047y31de9af0p8d72ad93ca380fea@mail.gmail.com> this is custom module am not depend any other module... open the the attached document.............. On Sun, Jun 22, 2008 at 7:48 AM, Shyamala Rajaram wrote: > Are you unsing views to create the block? Is event a CCK? > > Shyamala > > ----- Original Message ----- > *From:* bharani kumar > *To:* support at drupal.org > *Sent:* Saturday, June 21, 2008 6:14 PM > *Subject:* [support] Fivestar > > Hi dears > > I downloaded the fivestart module.. > > I developed the cutom module,that module act as display the top 5 events in > the home page left side block, > > > Now in that , each events title,acuthor,sponsor,location, and i want to > add the star rating here , > > How to i display that star rating here, > > Any idea About ... > > ------------------------------ > > -- > [ 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/20080622/ec083fa8/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: rating.doc Type: application/msword Size: 39936 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080622/ec083fa8/attachment-0001.doc From fredthejonester at gmail.com Sun Jun 22 07:50:07 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Sun, 22 Jun 2008 09:50:07 +0200 Subject: [support] Dupal vs DotNetNuke In-Reply-To: References: Message-ID: <177c0a10806220050q55dd4e0anf1e3de7cd5774fdd@mail.gmail.com> > I have a big project for a customer here in China and after studying its > requirements and the different technologies available out there, I am left > with two choices: Drupal and DotNetNuke. > This project indeed involve a very detailed list of user groups and > permissions for its different features and these two Open-Source CMS seem to > be the ones that provide the best ACL. > I am personally more experienced with DotNetNuke and I'm confident that I > could find all the DNN modules that I need for this project, but my team has > mostly been working with Joomla! so if I can find all these modules for > Drupal, that would probably be best. I don't see why experience with Joomla will help with Drupal. I know Drupal but when I occasionally look at a Joomla admin interface, I am fairly lost. > 1 - User Registration > The main reason for choosing Drupal for this website is that it offers a > powerful ACL. After registering to the website, users will be put in the > Members group, but they should also have the ability to submit further > documents and details to become a Verified Members. So it would be great to > find an existing module that can handle two-steps registrations. I am not aware of such, but this would be a trivial module to create. It's not a new registration, it's just adding another role to the existing user. > 2 - User Profile > Registered users will be given the ability to manage their own user profile. > Like most websites of this kind, users will be able to keep some of these > details private. > However, even though the email address might not be displayed, users should > be able to email the users they visit the user profile. This is similar to > sending a message to the user except that the message is send by email. No > need for an internal inbox for each user. This exists in core Drupal as "user contact form." > 3 - User Directory > The purpose of this module is to provide the ability to access the profiles > of the users in a specific group (i.e. the list of Verified Members). > Details of the different users will be displayed according to a set of > internal rules (i.e. do not show the email address) and according to each > user preferences (i.e. user can choose to show his address or not). > To browse this directory, visitors will be able to use an advanced search > interface (i.e. search by name, city, region, country...) or by clicking on > a simple map with predefined regions. The Organic Groups module has the first part of your requirement. As far as searching, I am not sure if this exists or not, but this would be fairly easy to code. > 4 - Marketing Tools > The purpose of this module is to take advantage of the list of users to send > them newsletters and invitations according to different criteria (i.e. > group, region, date of birth...). I am not sure about this--I haven't dealt with this type of functionality so I don't know. > 5 - Calendar of Events > A standard calendar module that can be configured to display role based > events. Events module and submodules. > 6 - Forums > A standard forum module that can be configured to display role based > threads. Forum module is a core Drupal module. Setting up permissions to forums based on roles is doable--may require one of the advanced permissions modules. > 7 - Online Discussion > The purpose of this module is to setup an online discussion on a specific > topic between an expert and the different users of the website. Questions > will be posted by the users for the expert to answer. Moderators will need > to review the questions before they are sent to the expert. This can be handled by a combination of various modules--there are different options how to implement this. > 8 - RSS Feeds > A standard RSS reader module that can be configured to display role based > feeds. RSS is core Drupal functionality. To permission them by role may require one of the advanced permissions modules. > 9 - News Feeds > A standard news module that can be configured to display role based news. > Ideally the administrator of the website should be able to publish news in > different categories and each category will be displayed in a different > page, but if that's not possible, administrating several instance of the > module should be fine. > Control over the number of news per page and over the layout of the > different pages should be easy to setup or hack. Views module and submodules. The main advantage of Drupal IMO is that it is easily extensible. If a feature doesn't exist, it's not difficult to add it. HTH, Fred From bharanikumariyerphp at gmail.com Sun Jun 22 07:54:48 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 22 Jun 2008 13:24:48 +0530 Subject: [support] Dupal vs DotNetNuke In-Reply-To: <177c0a10806220050q55dd4e0anf1e3de7cd5774fdd@mail.gmail.com> References: <177c0a10806220050q55dd4e0anf1e3de7cd5774fdd@mail.gmail.com> Message-ID: <2240033d0806220054q4353d897u1a4da897b7a5d960@mail.gmail.com> my idea, drupal... bcoz lot and lot of themes,security,lot of modules, so and so.. even lot of support mail,, u will get soon replys from forums and help mail.. On Sun, Jun 22, 2008 at 1:20 PM, Fred Jones wrote: > > I have a big project for a customer here in China and after studying its > > requirements and the different technologies available out there, I am > left > > with two choices: Drupal and DotNetNuke. > > This project indeed involve a very detailed list of user groups and > > permissions for its different features and these two Open-Source CMS seem > to > > be the ones that provide the best ACL. > > I am personally more experienced with DotNetNuke and I'm confident that I > > could find all the DNN modules that I need for this project, but my team > has > > mostly been working with Joomla! so if I can find all these modules for > > Drupal, that would probably be best. > > I don't see why experience with Joomla will help with Drupal. I know > Drupal but when I occasionally look at a Joomla admin interface, I am > fairly lost. > > > 1 - User Registration > > The main reason for choosing Drupal for this website is that it offers a > > powerful ACL. After registering to the website, users will be put in the > > Members group, but they should also have the ability to submit further > > documents and details to become a Verified Members. So it would be great > to > > find an existing module that can handle two-steps registrations. > > I am not aware of such, but this would be a trivial module to create. > It's not a new registration, it's just adding another role to the > existing user. > > > 2 - User Profile > > Registered users will be given the ability to manage their own user > profile. > > Like most websites of this kind, users will be able to keep some of these > > details private. > > However, even though the email address might not be displayed, users > should > > be able to email the users they visit the user profile. This is similar > to > > sending a message to the user except that the message is send by email. > No > > need for an internal inbox for each user. > > This exists in core Drupal as "user contact form." > > > 3 - User Directory > > The purpose of this module is to provide the ability to access the > profiles > > of the users in a specific group (i.e. the list of Verified Members). > > Details of the different users will be displayed according to a set of > > internal rules (i.e. do not show the email address) and according to each > > user preferences (i.e. user can choose to show his address or not). > > To browse this directory, visitors will be able to use an advanced search > > interface (i.e. search by name, city, region, country...) or by clicking > on > > a simple map with predefined regions. > > The Organic Groups module has the first part of your requirement. As > far as searching, I am not sure if this exists or not, but this would > be fairly easy to code. > > > 4 - Marketing Tools > > The purpose of this module is to take advantage of the list of users to > send > > them newsletters and invitations according to different criteria (i.e. > > group, region, date of birth...). > > I am not sure about this--I haven't dealt with this type of > functionality so I don't know. > > > 5 - Calendar of Events > > A standard calendar module that can be configured to display role based > > events. > > Events module and submodules. > > > 6 - Forums > > A standard forum module that can be configured to display role based > > threads. > > Forum module is a core Drupal module. Setting up permissions to forums > based on roles is doable--may require one of the advanced permissions > modules. > > > 7 - Online Discussion > > The purpose of this module is to setup an online discussion on a specific > > topic between an expert and the different users of the website. Questions > > will be posted by the users for the expert to answer. Moderators will > need > > to review the questions before they are sent to the expert. > > This can be handled by a combination of various modules--there are > different options how to implement this. > > > 8 - RSS Feeds > > A standard RSS reader module that can be configured to display role based > > feeds. > > RSS is core Drupal functionality. To permission them by role may > require one of the advanced permissions modules. > > > 9 - News Feeds > > A standard news module that can be configured to display role based news. > > Ideally the administrator of the website should be able to publish news > in > > different categories and each category will be displayed in a different > > page, but if that's not possible, administrating several instance of the > > module should be fine. > > Control over the number of news per page and over the layout of the > > different pages should be easy to setup or hack. > > Views module and submodules. > > The main advantage of Drupal IMO is that it is easily extensible. If a > feature doesn't exist, it's not difficult to add it. > > HTH, > Fred > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/cebe2d0d/attachment.htm From victorkane at gmail.com Sun Jun 22 10:48:10 2008 From: victorkane at gmail.com (Victor Kane) Date: Sun, 22 Jun 2008 07:48:10 -0300 Subject: [support] Dupal vs DotNetNuke In-Reply-To: References: Message-ID: I suppose that when you say everyone has experience in Joomla, you mean that the big decision is LAMP vs Microsoft, and PHP experience as against .NET. You have to decide which architecture is right for the job before you decide whether to use Drupal or DotNetNuke. If, for some reason, IIS + .NET + Microsoft SQL Server is a required part of the architecture for your clients, you should go with DotNetNuke (native to that architecture), even though Drupal could run in that environement (on a LAMP stack). But if the environment can be Apache + MySql / PostgreSQL (even on a Windows server), you are better off in Drupal. You shouldn't make the decision based on a list of modules you have never tried. Most of the functionality you describe is there in contributed modules of good quality. People here probably aren't familiar enough with the modules available for DotNetNuke (not which appear on a list, but which actually work). If either architecture would work, and you are driven by PHP experience of your developers, that is OK, but Drupal has a steep learning curve, so if no-one has experience with Drupal, it could take you a while before the team gets up to scratch for a big job. If time is a big factor (and it always is) look out for videos / mentoring / offsite project leader to guide the developers on the one hand, and you with implementing your design in Drupal components, on the other. Victor Kane http://awebfactory.com.ar On Sun, Jun 22, 2008 at 1:34 AM, Sebastien Louis wrote: > Hi everybody. > > I have a big project for a customer here in China and after studying its > requirements and the different technologies available out there, I am left > with two choices: Drupal and DotNetNuke. > > This project indeed involve a very detailed list of user groups and > permissions for its different features and these two Open-Source CMS seem to > be the ones that provide the best ACL. > > I am personally more experienced with DotNetNuke and I'm confident that I > could find all the DNN modules that I need for this project, but my team has > mostly been working with Joomla! so if I can find all these modules for > Drupal, that would probably be best. > > So I have had a quick look at the list of modules on the Drupal website and > couldn't easily find those so I thought I'll flick a quick email to the > support mailing-list. > > As you guys know Drupal much better than me, you might be able to let me > know if these modules are actually available. > > Thanks for your help! > > Sebastien Louis > > Project Manager > Crystal Science & Technology > > -- > > 1 - User Registration > > The main reason for choosing Drupal for this website is that it offers a > powerful ACL. After registering to the website, users will be put in the > Members group, but they should also have the ability to submit further > documents and details to become a Verified Members. So it would be great to > find an existing module that can handle two-steps registrations. > > > 2 - User Profile > > Registered users will be given the ability to manage their own user > profile. Like most websites of this kind, users will be able to keep some of > these details private. > > However, even though the email address might not be displayed, users should > be able to email the users they visit the user profile. This is similar to > sending a message to the user except that the message is send by email. No > need for an internal inbox for each user. > > > 3 - User Directory > The purpose of this module is to provide the ability to access the profiles > of the users in a specific group (i.e. the list of Verified Members). > > Details of the different users will be displayed according to a set of > internal rules (i.e. do not show the email address) and according to each > user preferences (i.e. user can choose to show his address or not). > > To browse this directory, visitors will be able to use an advanced search > interface (i.e. search by name, city, region, country...) or by clicking on > a simple map with predefined regions. > > > 4 - Marketing Tools > > The purpose of this module is to take advantage of the list of users to > send them newsletters and invitations according to different criteria (i.e. > group, region, date of birth...). > > > 5 - Calendar of Events > > A standard calendar module that can be configured to display role based > events. > > > 6 - Forums > > A standard forum module that can be configured to display role based > threads. > > > 7 - Online Discussion > > The purpose of this module is to setup an online discussion on a specific > topic between an expert and the different users of the website. Questions > will be posted by the users for the expert to answer. Moderators will need > to review the questions before they are sent to the expert. > > > 8 - RSS Feeds > > A standard RSS reader module that can be configured to display role based > feeds. > > > 9 - News Feeds > > A standard news module that can be configured to display role based news. > > Ideally the administrator of the website should be able to publish news in > different categories and each category will be displayed in a different > page, but if that's not possible, administrating several instance of the > module should be fine. > > Control over the number of news per page and over the layout of the > different pages should be easy to setup or hack. > > ______________________________________________ > > Crystal Science & Technology > Room 2103, Shangdu Soho South (Blue) Tower, > Dongdaqiao Rd. Chaoyang District, Beijing P.R.C. 100022 > > w: www.dianjingkeji.com > p: +86 10 5900 1375 > f: +86 10 5900 1376 > m: +86 135 204 96 314 > > *This e-mail is intended only for the person to whom it is addressed. If > an addressing or transmission error has misdirected this e-mail, please > notify the author by replying to this e-mail. If you are not the intended > recipient you must not use, disclose, copy, print or rely on this e-mail. > By replying to this e-mail you give your consent to such monitoring. All > materials produced and published by Beijing Crystal Science and Technology > Limited, including logo's, drawings, data, products, content, images,web > designs are protected by copyright laws, and belong to Beijing Crystal > Science and Technology Limited or to third parties otherwise stated by a > specific contract. They may not be reproduced, republished, distributed, > transmitted, resold, displayed, broadcast, or otherwise exploited in any > manner without the express written permission of Beijing Crystal Science and > Technology Limited.* > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/4d3d9434/attachment-0001.htm From bharanikumariyerphp at gmail.com Sun Jun 22 16:41:38 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 22 Jun 2008 22:11:38 +0530 Subject: [support] display five star voting Message-ID: <2240033d0806220941r17d62140xd8b35fdf19e27f03@mail.gmail.com> open the attachement.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/913c156e/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: starvoting.JPG Type: image/jpeg Size: 111878 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080622/913c156e/attachment-0001.jpeg From mimlist at repconnection.com Sun Jun 22 17:07:50 2008 From: mimlist at repconnection.com (Gregg Marshall) Date: Sun, 22 Jun 2008 11:07:50 -0600 Subject: [support] Two similar sites Message-ID: <6901512E13EA4BFB94278849066D992B@Gregg2370> I have a multi-site Drupal 5.7 installation. I have one site (for vendors) that is currently under construction. In a few weeks, I'll be doing a similar site (for reps). The base site and design are different for the two. But a lot of the content will be common. Any simple way to post the common content to both sites easily? Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080622/ec29a802/attachment.htm From ignorance.is.strength at gmail.com Mon Jun 23 01:07:22 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Sun, 22 Jun 2008 20:07:22 -0500 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <20080617090811.8cvzui8s8e80wscs@mail.progw.org> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> <485611C7.4050800@ziobudda.net> <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> <20080617090811.8cvzui8s8e80wscs@mail.progw.org> Message-ID: <9506cc0a0806221807n44a1f51cpf4afc53bb5c21e42@mail.gmail.com> It appears to be a problem with the Karma module we are using. The call in questions arise when we call a query for the Top Rated Comments, which we display to the user in a sidebar. Oddly enough, this only happens on the weekends and then doesn't give us any problems during the week. Has anyone ever heard of the Karma module causing a problem? -David On Tue, Jun 17, 2008 at 8:08 AM, Earnie Boyd wrote: > Quoting Big Brother : > >> Thanks for the responses. >> >> I have too many modules to list them all... it would take too long. >> >> It's something to do with MySql accessing the comments table. It then >> locks and hangs. >> >> I am not using persistent connections. >> >> The Processlist indicates a number of 'SELECT count(node.nid) FROM >> node LEFT JOIN >> comments' statements which send data forever, and a few 'SELECT node.nid, >> comments.timestamp' which copy to tmp forever. >> >> Possible relevant modules: >> Karma >> Path >> Localizer >> Panels >> > > The only suggestion I have is for you to start turning off modules > until you find the one causing the problem and then open an issue for > that module. It may be a combination of modules causing an issue; some > modules are not compatible with other modules. If you find a > combination issue then open an issue in both modules so that they can > document the travesty. > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From shyamala at netlinkindia.com Mon Jun 23 01:37:17 2008 From: shyamala at netlinkindia.com (Shyamala Rajaram) Date: Mon, 23 Jun 2008 07:07:17 +0530 Subject: [support] Two similar sites References: <6901512E13EA4BFB94278849066D992B@Gregg2370> Message-ID: <00b501c8d4de$689061a0$0301a8c0@netlinkindia.local> The easiest way will be to use Organic Groups. Have separate groups for Vendors and reps. The content could also be different or shared between both groups. Shyamala ----- Original Message ----- From: Gregg Marshall To: support at drupal.org Sent: Sunday, June 22, 2008 10:37 PM Subject: [support] Two similar sites I have a multi-site Drupal 5.7 installation. I have one site (for vendors) that is currently under construction. In a few weeks, I'll be doing a similar site (for reps). The base site and design are different for the two. But a lot of the content will be common. Any simple way to post the common content to both sites easily? Gregg ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080623/fe8282b4/attachment.htm From Sujit.Nair at Sun.COM Mon Jun 23 10:58:07 2008 From: Sujit.Nair at Sun.COM (Sujit) Date: Mon, 23 Jun 2008 16:28:07 +0530 Subject: [support] NetBeans 6.1 support for Drupal 6.x : Documentation and Plugin Message-ID: <485F81BF.9060503@sun.com> Hello Everyone, We have come up with documentation to run a Drupal based website through NetBeans 6.1 editor. Also, we have developed a plugin to assist the Drupal Module development. Both of these have been published over here . We hope its useful for the Drupal users/developers! Please use, comment and contribute at your free will. Thanks With Regards, Sujit Nair -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080623/4fda6d81/attachment.htm From earnie at users.sourceforge.net Mon Jun 23 12:32:51 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 23 Jun 2008 08:32:51 -0400 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <9506cc0a0806221807n44a1f51cpf4afc53bb5c21e42@mail.gmail.com> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> <485611C7.4050800@ziobudda.net> <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> <20080617090811.8cvzui8s8e80wscs@mail.progw.org> <9506cc0a0806221807n44a1f51cpf4afc53bb5c21e42@mail.gmail.com> Message-ID: <20080623083251.3ua1gvkjthc00g4c@mail.progw.org> Quoting Big Brother : > It appears to be a problem with the Karma module we are using. The > call in questions arise when we call a query for the Top Rated > Comments, which we display to the user in a sidebar. > > Oddly enough, this only happens on the weekends and then doesn't give > us any problems during the week. > > Has anyone ever heard of the Karma module causing a problem? > Check the issues. This one http://drupal.org/node/100266 looks interesting. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From bharanikumariyerphp at gmail.com Mon Jun 23 13:28:39 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 23 Jun 2008 18:58:39 +0530 Subject: [support] Call to undefined function content_types() i Message-ID: <2240033d0806230628m77524fc8wb5076f0091a135b1@mail.gmail.com> I installed the CCK module, And i check in module in the administrator panel, then i created the events content type, for that i click the add fields , Then error message was through *Fatal error*: Call to undefined function content_types() in * E:\WorkingProjects\PHPProjects\plasticstoday\modules\cck\userreference.module * on line *387* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080623/7d313529/attachment.htm From daniel.carrera at zmsl.com Mon Jun 23 11:44:13 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Mon, 23 Jun 2008 13:44:13 +0200 Subject: [support] Session problems Message-ID: <485F8C8D.6020505@zmsl.com> Hello, A lot of users are complaining that inexplicably they end up getting logged into another user's account. These are users at a school. At first I assumed that they there sharing computers and the previous user had not logged out properly. But at least some users have assured me that this is not the problem. Can anyone think of a reason why some users may be logged in as a different user? My users are very angry and I don't know what to do. Drupal 4.7 Thank you for your help. Daniel. From earnie at users.sourceforge.net Mon Jun 23 15:22:27 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 23 Jun 2008 11:22:27 -0400 Subject: [support] Session problems In-Reply-To: <485F8C8D.6020505@zmsl.com> References: <485F8C8D.6020505@zmsl.com> Message-ID: <20080623112227.hqzhbkztww9wwckw@mail.progw.org> Quoting Daniel Carrera : > Hello, > > A lot of users are complaining that inexplicably they end up getting > logged into another user's account. These are users at a school. At > first I assumed that they there sharing computers and the previous user > had not logged out properly. But at least some users have assured me > that this is not the problem. > > Can anyone think of a reason why some users may be logged in as a > different user? My users are very angry and I don't know what to do. > The only thing I can think of is that for some reason users are getting the same session id. Perhaps setting up a cron session that empties the session table once a day might help. > Drupal 4.7 > Drupal 4.7 is old and unsupported at this point in time as far as security updates. You might wish to move to version 5.7 sometime in the near future. > Thank you for your help. > HTH, Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From daniel.carrera at zmsl.com Mon Jun 23 15:38:00 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Mon, 23 Jun 2008 17:38:00 +0200 Subject: [support] Session problems In-Reply-To: <20080623112227.hqzhbkztww9wwckw@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> Message-ID: <485FC358.6010108@zmsl.com> Earnie Boyd wrote: > The only thing I can think of is that for some reason users are getting > the same session id. Perhaps setting up a cron session that empties > the session table once a day might help. I could try that. > Drupal 4.7 is old and unsupported at this point in time as far as > security updates. You might wish to move to version 5.7 sometime in > the near future. Is that hard to do? I've been putting it off because it sounds difficult. I have a lot of plugins and I'm afraid that those will cause a lot of trouble. Daniel. From earnie at users.sourceforge.net Mon Jun 23 15:50:35 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 23 Jun 2008 11:50:35 -0400 Subject: [support] Call to undefined function content_types() i In-Reply-To: <2240033d0806230628m77524fc8wb5076f0091a135b1@mail.gmail.com> References: <2240033d0806230628m77524fc8wb5076f0091a135b1@mail.gmail.com> Message-ID: <20080623115035.k8g4j9ihcsyssoo0@mail.progw.org> Quoting bharani kumar : > I installed the CCK module, > > And i check in module in the administrator panel, > > then i created the events content type, > > for that i click the add fields , > > Then error message was through > > *Fatal error*: Call to undefined function content_types() in * > E:\WorkingProjects\PHPProjects\plasticstoday\modules\cck\userreference.module > * on line *387* > Is this DRUPAL-6? I don't think CCK is ready yet, check the issue queue for CCK and if an issue isn't already open then open one. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Mon Jun 23 16:37:32 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 23 Jun 2008 12:37:32 -0400 Subject: [support] Session problems In-Reply-To: <485FC358.6010108@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FC358.6010108@zmsl.com> Message-ID: <20080623123732.my1j0v8pa1y74cwc@mail.progw.org> Quoting Daniel Carrera : >> Drupal 4.7 is old and unsupported at this point in time as far as >> security updates. You might wish to move to version 5.7 sometime in >> the near future. > > Is that hard to do? I've been putting it off because it sounds > difficult. I have a lot of plugins and I'm afraid that those will cause > a lot of trouble. > You of course want to use a deployment server to get all of the pieces ready and tested before putting into production. Those modules that are converting to version 5.7 have done so by now. If you use any that haven't, you'll need to look in the issue queue for patches others have provided or upgrade it yourself. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From simone.dalmaso at juvox.it Mon Jun 23 17:12:45 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Mon, 23 Jun 2008 19:12:45 +0200 Subject: [support] all attachments's mimetype in plain/text? Message-ID: Hi, it is very strange. I'm using a module called disknode for file managment, because it is the only one that allows admin or users to select a file to attach to a node that is already uploaded into the server. Since 2 persons say that using firefox, instead of downloading a zip file, they see all the characters and strange symbols as a text file, i clicked the info button of disknode of a zip file, and it says, mimetype=plain/text. I don't think the problem is given by disknode, because it says the same thing plain/text mimetype also if I click the info button on a file that I uploaded with the simple upload module of drupal. I don't know from where to start to solve this problem... Any ideas? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080623/9adeb2e5/attachment.htm From pkim at reachlocal.com Mon Jun 23 18:32:19 2008 From: pkim at reachlocal.com (Paul Kim) Date: Mon, 23 Jun 2008 11:32:19 -0700 Subject: [support] display five star voting In-Reply-To: <2240033d0806220941r17d62140xd8b35fdf19e27f03@mail.gmail.com> References: <2240033d0806220941r17d62140xd8b35fdf19e27f03@mail.gmail.com> Message-ID: <485FEC33.8010008@reachlocal.com> Try this: print fivestar_widget_form($node) bharani kumar wrote: > open the attachement.. > > ------------------------------------------------------------------------ > From daniel.carrera at zmsl.com Mon Jun 23 18:41:14 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Mon, 23 Jun 2008 20:41:14 +0200 Subject: [support] Session problems In-Reply-To: <20080623112227.hqzhbkztww9wwckw@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> Message-ID: <485FEE4A.8040301@zmsl.com> Another thought: Where do you configure how long sessions last before they expire? My first guess was to go to settings.php and change: ini_set('session.cache_expire', 200000); To a smaller value. But that didn't do it. I also have set: ini_set('session.cookie_lifetime', 0); Anyways, maybe if sessions expired sooner I could minimize the problems that I'm having. Thanks for the help. Daniel. Earnie Boyd wrote: > Quoting Daniel Carrera : > >> Hello, >> >> A lot of users are complaining that inexplicably they end up getting >> logged into another user's account. These are users at a school. At >> first I assumed that they there sharing computers and the previous user >> had not logged out properly. But at least some users have assured me >> that this is not the problem. >> >> Can anyone think of a reason why some users may be logged in as a >> different user? My users are very angry and I don't know what to do. >> > > The only thing I can think of is that for some reason users are getting > the same session id. Perhaps setting up a cron session that empties > the session table once a day might help. > >> Drupal 4.7 >> > > Drupal 4.7 is old and unsupported at this point in time as far as > security updates. You might wish to move to version 5.7 sometime in > the near future. > >> Thank you for your help. >> > > HTH, > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > From forums at absolutecross.com Tue Jun 24 00:15:15 2008 From: forums at absolutecross.com (Keyz) Date: Mon, 23 Jun 2008 17:15:15 -0700 (PDT) Subject: [support] Dupal vs DotNetNuke In-Reply-To: References: Message-ID: <18081161.post@talk.nabble.com> Sebastien Louis wrote: > > 4 - Marketing Tools > > The purpose of this module is to take advantage of the list of users > to send them newsletters and invitations according to different > criteria (i.e. group, region, date of birth...). > For this you might want to consider the CiviCRM add-on to Drupal: http://civicrm.org It includes an integrated mailing system called CiviMail: http://civicrm.org/civimail Selecting group to mail in CiviMail: http://wiki.civicrm.org/confluence/display/CRMDOC/2.+Select+Recipients Info on CiviCRM "smart groups": http://wiki.civicrm.org/confluence/display/CRMDOC/Groups Alternatively, not sure if it quite suits your needs, but look at Advanced User Details module: http://drupal.org/project/advuser ... might be adaptable for what you want to do. Sebastien Louis wrote: > > 5 - Calendar of Events > > A standard calendar module that can be configured to display role > based events. > Event module is one option, though also compare with the more flexible (though a bit more complex) combination of the CCK, Views, Date API, and Calendar modules. http://drupal.org/project/cck http://drupal.org/project/views http://drupal.org/project/date http://drupal.org/project/calendar Sebastien Louis wrote: > > 9 - News Feeds > > A standard news module that can be configured to display role based > news. > > Ideally the administrator of the website should be able to publish > news in different categories and each category will be displayed in a > different page, but if that's not possible, administrating several > instance of the module should be fine. > > Control over the number of news per page and over the layout of the > different pages should be easy to setup or hack. > Views module is what you need for this. Views is a tool for building custom "lists" of content. Views has the built in control for allowing certain roles to access a given view, though you will likely still need a node access control module to restrict content (nodes) themselves. For easily combining "multiple" Views in a single page (e.g. your home page) look into the Panels 2 module, which is highly flexible and allows you to literally drag and drop content where you want it to appear. You can of course do this as well through coding in your template files, though Panels is a powerful option - it is used, for instance, on this site: http://myplay.com (CCK, Views, Panels, and Nodequeue modules are all major components of this site). http://drupal.org/project/panels http://drupal.org/project/nodequeue Hope this helps :) Note that many of the referenced modules are not officially released for Drupal 6 yet - they will be soon, but if you are on a tight schedule, Drupal 5 is still perfectly viable for basing your site on. Above all, take some time to learn about CCK and Views - they are the most powerful modules for Drupal and what you can build with them is nearly unlimited :) CCK 2 and Views 2 are being redesigned for Drupal 6, however learning about them in Drupal 5 in the mean time is still useful. Good luck! -- View this message in context: http://www.nabble.com/Dupal-vs-DotNetNuke-tp18051199p18081161.html Sent from the Drupal - Support mailing list archive at Nabble.com. From sudheer.s at binaryvibes.co.in Mon Jun 23 15:47:39 2008 From: sudheer.s at binaryvibes.co.in (Sudheer) Date: Mon, 23 Jun 2008 21:17:39 +0530 Subject: [support] Session problems In-Reply-To: <485FC358.6010108@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FC358.6010108@zmsl.com> Message-ID: <485FC59B.8010600@binaryvibes.co.in> Daniel Carrera wrote: > Earnie Boyd wrote: > >> The only thing I can think of is that for some reason users are getting >> the same session id. Perhaps setting up a cron session that empties >> the session table once a day might help. >> > > I could try that. > > >> Drupal 4.7 is old and unsupported at this point in time as far as >> security updates. You might wish to move to version 5.7 sometime in >> the near future. >> > > Is that hard to do? I've been putting it off because it sounds > difficult. I have a lot of plugins and I'm afraid that those will cause > a lot of trouble. > > Daniel. > It is as easy as turning off the modules, upgrading Drupal core, installing Drupal 5.x versions of the modules, running update.php and you're done. I would recommend replicating your site on a local server and upgrading it. Once you have successfully upgraded the site, you can upload it to your server. You can even install PHP, Apache and MySQL server on your desktop. Regards, -- With warm regards, Sudheer. S http://binaryvibes.co.in From earnie at users.sourceforge.net Tue Jun 24 02:31:37 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Mon, 23 Jun 2008 22:31:37 -0400 Subject: [support] Session problems In-Reply-To: <485FEE4A.8040301@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> Message-ID: <20080623223137.fltnzcsfffb4w484@mail.progw.org> Quoting Daniel Carrera : > Another thought: Where do you configure how long sessions last before > they expire? My first guess was to go to settings.php and change: > > ini_set('session.cache_expire', 200000); > > To a smaller value. But that didn't do it. > > I also have set: > > ini_set('session.cookie_lifetime', 0); > This would cause the user to be logged out when the browser closes. > Anyways, maybe if sessions expired sooner I could minimize the problems > that I'm having. > I see at http://drupal.org/node/188710 that you should also ini_set('session.use_only_cookies', 0); in the settings.php file. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From bharanikumariyerphp at gmail.com Tue Jun 24 04:52:10 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 10:22:10 +0530 Subject: [support] display five star voting In-Reply-To: <485FEC33.8010008@reachlocal.com> References: <2240033d0806220941r17d62140xd8b35fdf19e27f03@mail.gmail.com> <485FEC33.8010008@reachlocal.com> Message-ID: <2240033d0806232152i35565bcfsd21ca06d69e79135@mail.gmail.com> i try this print function but no output for this line, just blank page is displayed, print fivestar_widget_form($node) Dear My module is custom module, Then how this node will call, For that i have to include any thing,,, Like include the fivestarmodule into my custom module... On Tue, Jun 24, 2008 at 12:02 AM, Paul Kim wrote: > Try this: > > print fivestar_widget_form($node) > > > bharani kumar wrote: > > open the attachement.. > > > > ------------------------------------------------------------------------ > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/9238515f/attachment.htm From bharanikumariyerphp at gmail.com Tue Jun 24 04:58:09 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 10:28:09 +0530 Subject: [support] Call to undefined function content_types() i In-Reply-To: <20080623115035.k8g4j9ihcsyssoo0@mail.progw.org> References: <2240033d0806230628m77524fc8wb5076f0091a135b1@mail.gmail.com> <20080623115035.k8g4j9ihcsyssoo0@mail.progw.org> Message-ID: <2240033d0806232158u64204681g7d4d66304edf82e2@mail.gmail.com> no , my drupal version is drupal 5.7 On Mon, Jun 23, 2008 at 9:20 PM, Earnie Boyd wrote: > Quoting bharani kumar : > > > I installed the CCK module, > > > > And i check in module in the administrator panel, > > > > then i created the events content type, > > > > for that i click the add fields , > > > > Then error message was through > > > > *Fatal error*: Call to undefined function content_types() in * > > > E:\WorkingProjects\PHPProjects\plasticstoday\modules\cck\userreference.module > > * on line *387* > > > > Is this DRUPAL-6? I don't think CCK is ready yet, check the issue > queue for CCK and if an issue isn't already open then open one. > > 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/20080624/2c182b96/attachment.htm From daniel.carrera at zmsl.com Tue Jun 24 07:16:23 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 09:16:23 +0200 Subject: [support] Session problems In-Reply-To: <20080623223137.fltnzcsfffb4w484@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> Message-ID: <48609F47.5060801@zmsl.com> Earnie Boyd wrote: > I see at http://drupal.org/node/188710 that you should also > ini_set('session.use_only_cookies', 0); in the settings.php file. Thanks. I have to say that I don't really understand that option. I made the change, but I don't understand what I just did. Daniel. From daniel.carrera at zmsl.com Tue Jun 24 08:37:21 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 10:37:21 +0200 Subject: [support] Session problems In-Reply-To: <48609F47.5060801@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> Message-ID: <4860B241.6040504@zmsl.com> I have some additional information from users: The problem (being apparently logged as someone else) only appears to happen between users in the same location. Students are a school some times appear to be logged in as a different student. But when they go home, the site functions as it should. If the problem is that sessions are not expiring and a new user comes in to the computer, that would explain why it only happens at school. If the problem is that somehow Drupal or PHP is giving out session ids that have not expired yet, I'm not sure why hat should only happen between users in the same location. Is the session id based on the IP address? All users at the school would have the same IP. The school is even likely to be behind a proxy. Does this give anyone any ideas as to what might be the root problem? Thanks Daniel. Daniel Carrera wrote: > Earnie Boyd wrote: >> I see at http://drupal.org/node/188710 that you should also >> ini_set('session.use_only_cookies', 0); in the settings.php file. > > > Thanks. I have to say that I don't really understand that option. I made > the change, but I don't understand what I just did. > > Daniel. From bharanikumariyerphp at gmail.com Tue Jun 24 09:30:19 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 15:00:19 +0530 Subject: [support] display five star voting In-Reply-To: <2240033d0806232152i35565bcfsd21ca06d69e79135@mail.gmail.com> References: <2240033d0806220941r17d62140xd8b35fdf19e27f03@mail.gmail.com> <485FEC33.8010008@reachlocal.com> <2240033d0806232152i35565bcfsd21ca06d69e79135@mail.gmail.com> Message-ID: <2240033d0806240230ofd23559r907c30acbd4afe8d@mail.gmail.com> Thanks Problem fixed On Tue, Jun 24, 2008 at 10:22 AM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > i try this print function but no output for this line, just blank page is > displayed, > print fivestar_widget_form($node) > > Dear > > My module is custom module, > > Then how this node will call, > > For that i have to include any thing,,, > > Like include the fivestarmodule into my custom module... > > > On Tue, Jun 24, 2008 at 12:02 AM, Paul Kim wrote: > >> Try this: >> >> print fivestar_widget_form($node) >> >> >> bharani kumar wrote: >> > open the attachement.. >> > >> > ------------------------------------------------------------------------ >> > >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/c7745ebd/attachment.htm From victorkane at gmail.com Tue Jun 24 10:04:51 2008 From: victorkane at gmail.com (Victor Kane) Date: Tue, 24 Jun 2008 07:04:51 -0300 Subject: [support] Session problems In-Reply-To: <4860B241.6040504@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> Message-ID: There is a module to have sessions expire after a configurable amount of time (Khalid's). http://drupal.org/project/session_expire Could Drupal be seeing similarly located IPs as being the same? Anyway, the above module only has a version for 5.x, so you would have to upgrade to use it. I have used it, it is excellent. Victor Kane http://awebfactory.com.ar On Tue, Jun 24, 2008 at 5:37 AM, Daniel Carrera wrote: > I have some additional information from users: > > The problem (being apparently logged as someone else) only appears to > happen between users in the same location. Students are a school some > times appear to be logged in as a different student. But when they go > home, the site functions as it should. > > If the problem is that sessions are not expiring and a new user comes in > to the computer, that would explain why it only happens at school. > > If the problem is that somehow Drupal or PHP is giving out session ids > that have not expired yet, I'm not sure why hat should only happen > between users in the same location. Is the session id based on the IP > address? All users at the school would have the same IP. The school is > even likely to be behind a proxy. > > Does this give anyone any ideas as to what might be the root problem? > > Thanks > > Daniel. > > > Daniel Carrera wrote: > > Earnie Boyd wrote: > >> I see at http://drupal.org/node/188710 that you should also > >> ini_set('session.use_only_cookies', 0); in the settings.php file. > > > > > > Thanks. I have to say that I don't really understand that option. I made > > the change, but I don't understand what I just did. > > > > Daniel. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/12309aa9/attachment-0001.htm From bharanikumariyerphp at gmail.com Tue Jun 24 10:10:53 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 15:40:53 +0530 Subject: [support] fckedit cat display image Message-ID: <2240033d0806240310q75723172q4e134de15130562d@mail.gmail.com> Hi I installed fck editor, And then i created the content and images, then i viewed the insert content & image , The content is displayed but image not displayed, is any thing need to check or enable it for display the image, i take the view source of that content and image, this is the view source -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/158c0d21/attachment.htm From victorkane at gmail.com Tue Jun 24 10:22:09 2008 From: victorkane at gmail.com (Victor Kane) Date: Tue, 24 Jun 2008 07:22:09 -0300 Subject: [support] fckedit cat display image In-Reply-To: <2240033d0806240310q75723172q4e134de15130562d@mail.gmail.com> References: <2240033d0806240310q75723172q4e134de15130562d@mail.gmail.com> Message-ID: Make sure that and other tags are included in the input filter you are using. Victor Kane http://awebfactory.com.ar On Tue, Jun 24, 2008 at 7:10 AM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > Hi > > I installed fck editor, > > And then i created the content and images, > > then i viewed the insert content & image , > > The content is displayed but image not displayed, > > is any thing need to check or enable it for display the image, > > i take the view source of that content and image, > > this is the view source > > > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/e7e5d561/attachment.htm From bharanikumariyerphp at gmail.com Tue Jun 24 11:13:57 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 16:43:57 +0530 Subject: [support] fckedit cat display image In-Reply-To: References: <2240033d0806240310q75723172q4e134de15130562d@mail.gmail.com> Message-ID: <2240033d0806240413t13c7128arbec95e4640738a40@mail.gmail.com> Thanks problem fixed On Tue, Jun 24, 2008 at 3:52 PM, Victor Kane wrote: > Make sure that and other tags are included in the input filter you > are using. > > Victor Kane > http://awebfactory.com.ar > > On Tue, Jun 24, 2008 at 7:10 AM, bharani kumar < > bharanikumariyerphp at gmail.com> wrote: > >> Hi >> >> I installed fck editor, >> >> And then i created the content and images, >> >> then i viewed the insert content & image , >> >> The content is displayed but image not displayed, >> >> is any thing need to check or enable it for display the image, >> >> i take the view source of that content and image, >> >> this is the view source >> >> >> >> >> >> -- >> [ 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/20080624/87ba3299/attachment.htm From bharanikumariyerphp at gmail.com Tue Jun 24 12:10:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 17:40:28 +0530 Subject: [support] problem on content display In-Reply-To: <2240033d0806240503r2a59a305je690149b3cd1fca5@mail.gmail.com> References: <2240033d0806240503r2a59a305je690149b3cd1fca5@mail.gmail.com> Message-ID: <2240033d0806240510m53abb65bi425d38366bb84634@mail.gmail.com> Here i have attached my printscrren of the problem.. Hi dears I installed fckeditor module, When i display the content with image , It is not displayed properly, This is the code am using case 'view': if (user_access('access content') && $delta == 0 && arg(0)=='user') { $num_posts = variable_get('ptHeadlines_blog_num_posts', 5); // $current_user_profile = arg(1); $result = db_query_range("select cn.nid,cn.title,nr.title,nr.timestamp,nr.body,nr.teaser from node as cn,node_revisions as nr where cn.nid=nr.nid and cn.type='article'ORDER BY nr.timestamp DESC", NULL, 0, $num_posts); if (db_num_rows($result)) { $items = array(); while ($blog_posts = db_fetch_object($result)) { $items[] = "
      ".l(ucwords($blog_posts->title), 'node/'. $blog_posts->nid)."
    ".substr($blog_posts->teaser, 0, 175).l("More","node/".$blog_posts->nid); } $block['subject'] = t('More Headlines'); // Theme our array of links as an unordered list $block['content'] = theme('item_list', $items); // if (db_num_rows($result) == $num_posts) { // //$block['content'] .= '
    '. l(t('View more'), 'blog/'. $current_user_profile, array(), NULL, NULL, FALSE, FALSE) .'
    '; // } } } return $block; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/6a91b74c/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: fckimagepeoblem.JPG Type: image/jpeg Size: 108892 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080624/6a91b74c/attachment-0001.jpeg From matt at cabinetuk.com Tue Jun 24 12:27:36 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Tue, 24 Jun 2008 13:27:36 +0100 Subject: [support] Including files Message-ID: I'm writing a module to custom drupal for our needs. My question is about including files. I have some page callbacks, which are defined in my hook_menu function like so: $items['mymodule/myaction'] = array( 'title' => 'Custom Action', 'page callback' => 'mymodule_myaction', 'type' => MENU_CALLBACK, 'file' => 'mymodule.module', 'access callback' => TRUE, ); However, common functions, such as `url()` cannot be used because they are not included. I would have thought that `/includes/common.inc` would be already included, since drupal has got far enough to call my page callback function. In my handler function, I have had to include: require_once './includes/common.inc'; require_once './includes/path.inc'; to access drupal's functionality that I want. Or have I missed something really obvious!!? -matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/c1e48653/attachment.htm From earnie at users.sourceforge.net Tue Jun 24 12:53:47 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 08:53:47 -0400 Subject: [support] Session problems In-Reply-To: <4860B241.6040504@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> Message-ID: <20080624085347.oor5uwvb23k08g8k@mail.progw.org> Quoting Daniel Carrera : > > Does this give anyone any ideas as to what might be the root problem? > What version of PHP are you using? What values are in php.ini for the session variables? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From daniel.carrera at zmsl.com Tue Jun 24 13:01:08 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 15:01:08 +0200 Subject: [support] Session problems In-Reply-To: <20080624085347.oor5uwvb23k08g8k@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> <20080624085347.oor5uwvb23k08g8k@mail.progw.org> Message-ID: <4860F014.4080206@zmsl.com> Earnie Boyd wrote: >> Does this give anyone any ideas as to what might be the root problem? >> > > What version of PHP are you using? What values are in php.ini for the > session variables? Version 5.1.4. Here is phpinfo: http://theingots.org/phpinfo.php Thanks for the help. Cheers, Daniel. From earnie at users.sourceforge.net Tue Jun 24 13:04:41 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 09:04:41 -0400 Subject: [support] Session problems In-Reply-To: <48609F47.5060801@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> Message-ID: <20080624090441.amzemrmirrwwog40@mail.progw.org> Quoting Daniel Carrera : > Earnie Boyd wrote: >> I see at http://drupal.org/node/188710 that you should also >> ini_set('session.use_only_cookies', 0); in the settings.php file. > > > Thanks. I have to say that I don't really understand that option. I made > the change, but I don't understand what I just did. > From http://php.net/session.configuration we see: session.use_only_cookies boolean session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP 6.0. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From earnie at users.sourceforge.net Tue Jun 24 13:16:50 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 09:16:50 -0400 Subject: [support] Call to undefined function content_types() i In-Reply-To: <2240033d0806232158u64204681g7d4d66304edf82e2@mail.gmail.com> References: <2240033d0806230628m77524fc8wb5076f0091a135b1@mail.gmail.com> <20080623115035.k8g4j9ihcsyssoo0@mail.progw.org> <2240033d0806232158u64204681g7d4d66304edf82e2@mail.gmail.com> Message-ID: <20080624091650.z8cles1lgpsk00g4@mail.progw.org> Quoting bharani kumar : > no , my drupal version is drupal 5.7 > The CVS branch and release tags for CCK are out of sync so I can't see the userreference.module for that version. It could be that the out of sync tags in CVS are the issue with the installed version since the project module depends on those tags to build the file. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From daniel.carrera at zmsl.com Tue Jun 24 13:19:10 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 15:19:10 +0200 Subject: [support] Session problems In-Reply-To: <20080624090441.amzemrmirrwwog40@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <20080624090441.amzemrmirrwwog40@mail.progw.org> Message-ID: <4860F44E.8060409@zmsl.com> Earnie Boyd wrote: >> Thanks. I have to say that I don't really understand that option. I made >> the change, but I don't understand what I just did. > > From http://php.net/session.configuration we see: > > session.use_only_cookies boolean > session.use_only_cookies specifies whether the module will only use > cookies to store the session id on the client side. Enabling this > setting prevents attacks involved passing session ids in URLs. This > setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP 6.0. Yes. I had read that. But I don't see what that has to do with sessions expiring. For that matter, I don't know what else PHP would be using besides cookies. Oh oh.... I think I get it. That says that the cookie will only the session id and and other than that no other information will be stored.... Is that right? Sorry, I'm dumb. When I read that the first time I thought it meant "session id will be stored in cookies but nowhere else" and my reaction was "where else would you store it?". Daniel. From bharathi.selvan at gmail.com Tue Jun 24 14:34:05 2008 From: bharathi.selvan at gmail.com (bharathi.selvan) Date: Tue, 24 Jun 2008 20:04:05 +0530 Subject: [support] Session problems In-Reply-To: <4860F44E.8060409@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <20080624090441.amzemrmirrwwog40@mail.progw.org> <4860F44E.8060409@zmsl.com> Message-ID: <62dfedd0806240734t41e2cf35x1c02ddfb8f84560a@mail.gmail.com> I am getting an error which is kind of similar to this..After read thru PHP Memory issue & Server tuning concepts i did change some ini settings. Now my browser(Internet Exlorer) is working differently. If i open my drupal site and do some operations it works..if i leave the browser idle for sometime and then click on any link in the site, it is not working..the IE seems to be exploring(i.e that internet symbol in the right top most corner seems revolving allways)..Please suggest how i could rectify this issue Thanks Bharathi On Tue, Jun 24, 2008 at 6:49 PM, Daniel Carrera wrote: > Earnie Boyd wrote: > >> Thanks. I have to say that I don't really understand that option. I made > >> the change, but I don't understand what I just did. > > > > From http://php.net/session.configuration we see: > > > > session.use_only_cookies boolean > > session.use_only_cookies specifies whether the module will only use > > cookies to store the session id on the client side. Enabling this > > setting prevents attacks involved passing session ids in URLs. This > > setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP 6.0. > > > Yes. I had read that. But I don't see what that has to do with sessions > expiring. For that matter, I don't know what else PHP would be using > besides cookies. > > Oh oh.... I think I get it. That says that the cookie will only the > session id and and other than that no other information will be > stored.... Is that right? > > Sorry, I'm dumb. When I read that the first time I thought it meant > "session id will be stored in cookies but nowhere else" and my reaction > was "where else would you store it?". > > Daniel. > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/ec8c4bf5/attachment-0001.htm From mangg at yahoo.com Tue Jun 24 14:41:15 2008 From: mangg at yahoo.com (Joseph) Date: Tue, 24 Jun 2008 07:41:15 -0700 (PDT) Subject: [support] Xml Sitemap - including content outside of drupal Message-ID: <935973.12876.qm@web56101.mail.re3.yahoo.com> Hello Everyone, I have XML Sitemap dev snapshot on Drupal 6 and it creates a sitemap for the Drupal content without a problem. The issue I have is that I have some content outside of the /node directories, such as static (PDF's, Documents, Images) content that are not added into the sitemap. I tried to add them with the absolute path and it didn't add it. There is little to no documentation on the module and I am wondering how I add this content properly? Is there a way to add a whole external (to Drupal) directory at once? Thanks! From bharanikumariyerphp at gmail.com Tue Jun 24 17:49:58 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 23:19:58 +0530 Subject: [support] how to use the 2 blocks in single module Message-ID: <2240033d0806241049s67539d83jd7a46c27f056f9bd@mail.gmail.com> Dears i want to use the two blocks in a single module this is my code , in 2 block are displayed in the blocks setting place, i enable both , its not displaying, Any idea.. 'textfield', '#title' => t('Number of Headlines to display'), '#default_value' => variable_get('ptHeadlines_blog_num_posts', 5), ); return $form; case 'save': if ($delta == 0) { variable_set('ptHeadlines_blog_num_posts', (int) $edit['ptHeadlines_blog_num_posts']); } return; case 'view': if (user_access('access content') && $delta == 0 && arg(0)=='user') { $num_posts = variable_get('ptHeadlines_blog_num_posts', 5); // $current_user_profile = arg(1); $result = db_query_range("select cn.nid,cn.title,nr.title,nr.timestamp,nr.body,nr.teaser from node as cn,node_revisions as nr where cn.nid=nr.nid and cn.type='article'ORDER BY nr.timestamp DESC", NULL, 0,$num_posts); drupal_set_message("This is the more headline",$result); if (db_num_rows($result)) { $moreHead = array(); while ($blog_posts = db_fetch_object($result)) { $moreHead[] = "

    ".l(ucwords($blog_posts->title), 'node/'. $blog_posts->nid)."

    ".substr($blog_posts->teaser, 0, 175)."   ".l("More","node/".$blog_posts->nid)."
    "; // $moreHead[]=substr($blog_posts->title, 0, 175)."


    "; } $block['subject'] = t('More Headlines test'); // Theme our array of links as an unordered list $block['content'] = theme('item_list_ameex', $moreHead); // if (db_num_rows($result) == $num_posts) { // //$block['content'] .= '
    '. l(t('View more'), 'blog/'. $current_user_profile, array(), NULL, NULL, FALSE, FALSE) .'
    '; // } } } //this is block for top Headlines if (user_access('access content') && $delta == 0 && arg(0)=='user') { $num_posts = variable_get('ptHeadlines_blog_num_posts', 5); // $current_user_profile = arg(1); $result = db_query_range("select cn.nid,cn.title,nr.title,nr.timestamp,nr.body,nr.teaser from node as cn,node_revisions as nr where cn.nid=nr.nid and cn.type='article'ORDER BY nr.timestamp DESC", NULL, 0,1); drupal_set_message("This is the top headline",$result); if (db_num_rows($result)) { $topHead = array(); while ($blog_posts = db_fetch_object($result)) { $topHead[] = "

    ".l(ucwords($blog_posts->title), 'node/'. $blog_posts->nid)."

    ".substr($blog_posts->teaser, 0, 175)."   ".l("More","node/".$blog_posts->nid)."
    "; // $topHead[]=substr($blog_posts->title, 0, 175)."


    "; } $block['subject'] = t('Top Headlines'); // Theme our array of links as an unordered list $block['content'] = theme('item_list_ameex', $topHead); } } return $block; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/32ec41a9/attachment.htm From earnie at users.sourceforge.net Tue Jun 24 17:53:56 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 13:53:56 -0400 Subject: [support] Session problems In-Reply-To: <4860F44E.8060409@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <20080624090441.amzemrmirrwwog40@mail.progw.org> <4860F44E.8060409@zmsl.com> Message-ID: <20080624135356.6k4rdd8ykmos4c08@mail.progw.org> Quoting Daniel Carrera : > Earnie Boyd wrote: >>> Thanks. I have to say that I don't really understand that option. I made >>> the change, but I don't understand what I just did. >> >> From http://php.net/session.configuration we see: >> >> session.use_only_cookies boolean >> session.use_only_cookies specifies whether the module will only use >> cookies to store the session id on the client side. Enabling this >> setting prevents attacks involved passing session ids in URLs. This >> setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP 6.0. > > > Yes. I had read that. But I don't see what that has to do with sessions > expiring. For that matter, I don't know what else PHP would be using > besides cookies. > > Oh oh.... I think I get it. That says that the cookie will only the > session id and and other than that no other information will be > stored.... Is that right? > No, with a TRUE value this prevents the session id being passed in the $_GET array. PHP used to pass the session id by default appended to the URL. Now by default it only uses cookies to store the session id. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From daniel.carrera at zmsl.com Tue Jun 24 18:09:46 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 20:09:46 +0200 Subject: [support] Session problems In-Reply-To: <20080624135356.6k4rdd8ykmos4c08@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <20080624090441.amzemrmirrwwog40@mail.progw.org> <4860F44E.8060409@zmsl.com> <20080624135356.6k4rdd8ykmos4c08@mail.progw.org> Message-ID: <4861386A.9020009@zmsl.com> Earnie Boyd wrote: > No, with a TRUE value this prevents the session id being passed in the > $_GET array. PHP used to pass the session id by default appended to > the URL. Now by default it only uses cookies to store the session id. Ah. Thanks. So, if I set ini_set('session.use_only_cookies', 0); that means that PHP will then include the session id in $_GET ? How does this make sessions expire more easily? Daniel. From earnie at users.sourceforge.net Tue Jun 24 18:13:12 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 14:13:12 -0400 Subject: [support] Session problems In-Reply-To: <4860F014.4080206@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> <20080624085347.oor5uwvb23k08g8k@mail.progw.org> <4860F014.4080206@zmsl.com> Message-ID: <20080624141312.te09lumy3yio8s0k@mail.progw.org> Quoting Daniel Carrera : > Earnie Boyd wrote: >>> Does this give anyone any ideas as to what might be the root problem? >>> >> >> What version of PHP are you using? What values are in php.ini for the >> session variables? > > Version 5.1.4. Here is phpinfo: > > http://theingots.org/phpinfo.php > > Thanks for the help. > Hum, this looks interesting to the issue: http://bugs.php.net/bug.php?id=24781; especially the last comment. I don't know if that comment still applies or not but sounds similar to your issue. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From jhedstrom at opensourcery.com Tue Jun 24 18:14:52 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Tue, 24 Jun 2008 11:14:52 -0700 Subject: [support] how to use the 2 blocks in single module In-Reply-To: <2240033d0806241049s67539d83jd7a46c27f056f9bd@mail.gmail.com> References: <2240033d0806241049s67539d83jd7a46c27f056f9bd@mail.gmail.com> Message-ID: <4861399C.60606@opensourcery.com> bharani kumar wrote: > Dears i want to use the two blocks in a single module this is my code , > > in 2 block are displayed in the blocks setting place, > > > i enable both , its not displaying, > > Any idea.. > > // $Id$ > /** > * Implementation of hook_block(). > * > * Displays the most recent (x) blog titles on the user profile page. > (x) is set in block configuration admin section. > */ > function ptHeadlines_block($op = 'list', $delta = 0, $edit = array()) { > global $user; > switch ($op) { > case 'list': > $block[0]['info'] = t('More Headline '); > $block[0]['title'] = t('More Headline '); > > $block[1]['info'] = t('Top Headline'); > $block[1]['title'] = t('Top Headline'); Here you are defining $delta. The "More Headline" block is $delta == 0, and the "Top Headline" block is $delta ==1 > [snip] > //this is block for top Headlines > > if (user_access('access content') && $delta == 0 && > arg(0)=='user') { You need to change this line to check for $delta == 1 A more common approach for the 'view' operation is to use a switch on $delta: switch ($delta) { case 0: // do stuff for first block break; case 1: // do stuff for second block break; } return $block; 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/20080624/69225524/attachment-0001.pgp From bharanikumariyerphp at gmail.com Tue Jun 24 18:18:48 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 23:48:48 +0530 Subject: [support] How to restrict the block in all page/URL Message-ID: <2240033d0806241118o7dac5c94kb4db797b610c8c8a@mail.gmail.com> Hi dear I want to restrict the block display in all pages, I want to display my block in home page only, this is my home page URL http://localhost/test ======> i want to display my block when this url is in the address bar, in other place , i dont want to display... this is my code , tell which place i wants to made the changes 'textfield', '#title' => t('Number of pending comments to display'), '#default_value' => variable_get('approval_block_num_posts', 5), ); } return $form; case 'view': if(arg(0)!='node' ||arg(0)!='user'||arg(1)!='user/*'){ // $modpath = drupal_get_path('module', 'cEvents'); //drupal_add_css($modpath .'/cEvents.css', 'module'); $num_rows=db_num_rows(db_query("select nid from node where type='events'")); if($num_rows>0){ if ($delta == 1 ) { //drupal_add_css(drupal_get_path('module', 'cEvents') .'/cEvents.css'); $sql ="select cn.nid,cn.field_contact_person_value,cn.field_sponsor_value,cn.field_location_value,nr.title,nr.body,nr.teaser from content_type_events as cn,node as n ,node_revisions as nr where nr.nid=cn.nid and n.type like 'events' and n.nid=nr.nid"; //$cEvents_block[] = "
    "; $result = db_query_range(db_rewrite_sql($sql), 0, 5); while ($node = db_fetch_object($result)) { $cEvents_block[] .=l($node->title,"node/".$node->nid)."
    Sponser  ".$node->field_sponsor_value."
    contact person  ".$node->field_contact_person_value."
    Location  ".$node->field_location_value; } // $cEvents_block[].="
    "; $block['subject'] = t('Events'); $block['content'] = theme('item_list_ameex', $cEvents_block); } return $block; } } } } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/8c75f3bd/attachment.htm From earnie at users.sourceforge.net Tue Jun 24 18:19:15 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Tue, 24 Jun 2008 14:19:15 -0400 Subject: [support] Session problems In-Reply-To: <62dfedd0806240734t41e2cf35x1c02ddfb8f84560a@mail.gmail.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <20080624090441.amzemrmirrwwog40@mail.progw.org> <4860F44E.8060409@zmsl.com> <62dfedd0806240734t41e2cf35x1c02ddfb8f84560a@mail.gmail.com> Message-ID: <20080624141915.canaen9cccg0ow8w@mail.progw.org> Quoting "bharathi.selvan" : > I am getting an error which is kind of similar to this..After read thru PHP > Memory issue & Server tuning concepts i did change some ini settings. Now my > browser(Internet Exlorer) is working differently. If i open my drupal site > and do some operations it works..if i leave the browser idle for sometime > and then click on any link in the site, it is not working..the IE seems to > be exploring(i.e that internet symbol in the right top most corner seems > revolving allways)..Please suggest how i could rectify this issue > Not the same thing at all. My guess at *your* issue is that it is server resource related. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From bharanikumariyerphp at gmail.com Tue Jun 24 18:27:22 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Tue, 24 Jun 2008 23:57:22 +0530 Subject: [support] how to use the 2 blocks in single module In-Reply-To: <4861399C.60606@opensourcery.com> References: <2240033d0806241049s67539d83jd7a46c27f056f9bd@mail.gmail.com> <4861399C.60606@opensourcery.com> Message-ID: <2240033d0806241127l4afd82am13649c6eb9123308@mail.gmail.com> but u see this is my entire, Already there i used the switch case,for the configure purpose ,view and so, Then how can i use , for the $deleta... 'textfield', '#title' => t('Number of Headlines to display'), '#default_value' => variable_get('ptHeadlines_blog_num_posts', 5), ); return $form; case 'save': if ($delta == 0) { variable_set('ptHeadlines_blog_num_posts', (int) $edit['ptHeadlines_blog_num_posts']); } return; case 'view': if (user_access('access content') && $delta == 0 && arg(0)=='user') { $num_posts = variable_get('ptHeadlines_blog_num_posts', 5); // $current_user_profile = arg(1); $result = db_query_range("select cn.nid,cn.title,nr.title,nr.timestamp,nr.body,nr.teaser from node as cn,node_revisions as nr where cn.nid=nr.nid and cn.type='article'ORDER BY nr.timestamp DESC", NULL, 1, $num_posts); if (db_num_rows($result)) { $items = array(); while ($blog_posts = db_fetch_object($result)) { $items[] = "

    ".l(ucwords($blog_posts->title), 'node/'. $blog_posts->nid)."

    ".substr($blog_posts->teaser, 0, 175)."   ".l("More","node/".$blog_posts->nid)."
    "; // $items[]=substr($blog_posts->title, 0, 175)."


    "; } $block['subject'] = t('More Headlines'); // Theme our array of links as an unordered list $block['content'] = theme('item_list_ameex', $items); // if (db_num_rows($result) == $num_posts) { // //$block['content'] .= '
    '. l(t('View more'), 'blog/'. $current_user_profile, array(), NULL, NULL, FALSE, FALSE) .'
    '; // } } } //this is block for top Headlines return $block; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080624/48e0acdd/attachment.htm From daniel.carrera at zmsl.com Tue Jun 24 18:40:22 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 20:40:22 +0200 Subject: [support] Session problems In-Reply-To: <20080624141312.te09lumy3yio8s0k@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> <20080624085347.oor5uwvb23k08g8k@mail.progw.org> <4860F014.4080206@zmsl.com> <20080624141312.te09lumy3yio8s0k@mail.progw.org> Message-ID: <48613F96.7090801@zmsl.com> Earnie Boyd wrote: > Hum, this looks interesting to the issue: > http://bugs.php.net/bug.php?id=24781; especially the last comment. I > don't know if that comment still applies or not but sounds similar to > your issue. It does indeed. Daniel. From bharanikumariyerphp at gmail.com Tue Jun 24 18:49:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 25 Jun 2008 00:19:28 +0530 Subject: [support] where images are stored Message-ID: <2240033d0806241149j37d35453u96862228c7928045@mail.gmail.com> Hi Dear Am using fck editor for inserting images, May i know where the images are storing, table or any folder... bcoz i want to display the 165 charater in article, If i insert the image, then i assume image also some charater, So i want to display the 165 charcter and also image Any iidea -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/b4d3814d/attachment-0001.htm From daniel.carrera at zmsl.com Tue Jun 24 18:50:50 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Tue, 24 Jun 2008 20:50:50 +0200 Subject: [support] Session problems In-Reply-To: <20080624141312.te09lumy3yio8s0k@mail.progw.org> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> <20080624085347.oor5uwvb23k08g8k@mail.progw.org> <4860F014.4080206@zmsl.com> <20080624141312.te09lumy3yio8s0k@mail.progw.org> Message-ID: <4861420A.70109@zmsl.com> Earnie Boyd wrote: > Hum, this looks interesting to the issue: > http://bugs.php.net/bug.php?id=24781; especially the last comment. I > don't know if that comment still applies or not but sounds similar to > your issue. The last response to that issue suggests a couple of things: 1. The PHP devs don't think this is a bug, hence we can suppose that it was not "fixed" in PHP 5. 2. It says: "The solution is to keep the session expiry times shorts and send headers indicating to the proxies/caches that the pages are not to be cached." So I'll try to follow the advice in the last post. Is there a way to "send headers indicating to the proxies/caches that the pages are not to be cached"? Is there anything else I can do to make sessions expiry times short? I have already set: ini_set('session.cookie_lifetime', 0); ini_set('session.cache_expire', 10); ini_set('session.use_only_cookies', 0); Can I improve on this? Thanks for the help. Incidentally, I do think that this PHP issue is exactly the problem I'm having. The issue talks about proxy servers caching pages and I fully expect the school to be behind a proxy server. Cheers Daniel. From bharanikumariyerphp at gmail.com Tue Jun 24 19:07:50 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 25 Jun 2008 00:37:50 +0530 Subject: [support] remove hyperlinks for anonymous Message-ID: <2240033d0806241207h1b66a367sa94e90eb553861c8@mail.gmail.com> Hi How to remove the Loginor registerto post comments,from anonymous user... Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/d8d19774/attachment.htm From ignorance.is.strength at gmail.com Tue Jun 24 20:06:32 2008 From: ignorance.is.strength at gmail.com (Big Brother) Date: Tue, 24 Jun 2008 15:06:32 -0500 Subject: [support] Severe Hanging (and sometimes MySql crashes) When Approving Comments In-Reply-To: <20080623083251.3ua1gvkjthc00g4c@mail.progw.org> References: <9506cc0a0806152152m357d96dcu922ef947de578ebf@mail.gmail.com> <485611C7.4050800@ziobudda.net> <9506cc0a0806161637l4cb6de67i176dd5f18b8ab06a@mail.gmail.com> <20080617090811.8cvzui8s8e80wscs@mail.progw.org> <9506cc0a0806221807n44a1f51cpf4afc53bb5c21e42@mail.gmail.com> <20080623083251.3ua1gvkjthc00g4c@mail.progw.org> Message-ID: <9506cc0a0806241306p4662811fxc7406b5fd4b6ccc5@mail.gmail.com> Thanks for all your help, Earnie! David B. On Mon, Jun 23, 2008 at 7:32 AM, Earnie Boyd wrote: > Quoting Big Brother : > >> It appears to be a problem with the Karma module we are using. The >> call in questions arise when we call a query for the Top Rated >> Comments, which we display to the user in a sidebar. >> >> Oddly enough, this only happens on the weekends and then doesn't give >> us any problems during the week. >> >> Has anyone ever heard of the Karma module causing a problem? >> > > Check the issues. This one http://drupal.org/node/100266 looks interesting. > > Earnie -- http://for-my-kids.com/ > -- http://give-me-an-offer.com/ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > From larry at garfieldtech.com Wed Jun 25 04:19:49 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Tue, 24 Jun 2008 23:19:49 -0500 Subject: [support] Including files In-Reply-To: References: Message-ID: <200806242319.49831.larry@garfieldtech.com> The file and file path keys are only needed to load the page callback itself. You are correct that url() et al should exist long before you get to the page callback. That suggests something else is wrong. Also note that in D6, you do *not* need to specify a file key if the callback is in the .module file. You only need to do so if it is in a different file. (Mind you, you should be putting your page callback in separate files for performance reasons.) Try moving the callback to a mymodule.pages.inc file and updating the menu item accordingly, or else remove the file key completely and keep the page callback in the .module file. Remember to refresh your menus by hitting the clear cache button on the Performance page. See if it works now. On Tuesday 24 June 2008 7:27:36 am Matt Connolly wrote: > I'm writing a module to custom drupal for our needs. > > My question is about including files. > > I have some page callbacks, which are defined in my hook_menu function > like so: > > $items['mymodule/myaction'] = array( > 'title' => 'Custom Action', > 'page callback' => 'mymodule_myaction', > 'type' => MENU_CALLBACK, > 'file' => 'mymodule.module', > 'access callback' => TRUE, > ); > > However, common functions, such as `url()` cannot be used because they > are not included. > > I would have thought that `/includes/common.inc` would be already > included, since drupal has got far enough to call my page callback > function. > > In my handler function, I have had to include: > > require_once './includes/common.inc'; > require_once './includes/path.inc'; > > to access drupal's functionality that I want. > > Or have I missed something really obvious!!? > > -matt -- Larry Garfield larry at garfieldtech.com From ganeshdrupal at gmail.com Wed Jun 25 05:32:45 2008 From: ganeshdrupal at gmail.com (ganesh ganesh) Date: Wed, 25 Jun 2008 11:02:45 +0530 Subject: [support] based on URL display block Message-ID: How to display the block , When the particular URL is passed in the address bar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/36da4e9b/attachment.htm From neil at esl-lounge.com Wed Jun 25 07:37:41 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Wed, 25 Jun 2008 09:37:41 +0200 Subject: [support] extracting author's UID from URL for use in a block Message-ID: <003301c8d696$59e0c3c0$0301a8c0@Neil> I have given my blog entries URL's in PathAuto like this: /blog/5/200806/389 where: 5 is UID of author 200806 is June, 2008 389 is nid I want to create a block on the right margin which will have links such as member's blog, member's recent entries, member's most read blogs, etc which will all link to Views I've already set up. I thought I could use args to extract the UID from the URL but when I print out all arguments in the block as a test, I get only "node" and "389" so it's not seeing the PathAuto URL but the system URL. What I was hoping to do, paraphrased, is where arg0 is blog and arg1 is numeric arg1 equals $uid Member's Blog also though, in that snippet, how would I load the user's name? I guess what I'd really want to do is load the user so I'm able to extract uid, name, picture, etc and use arg1 to do it, but I can't get the PathAuto created URL parameters, only the core system ones. any help appreciated. Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/8d889320/attachment.htm From fredthejonester at gmail.com Wed Jun 25 09:20:05 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Wed, 25 Jun 2008 11:20:05 +0200 Subject: [support] extracting author's UID from URL for use in a block In-Reply-To: <003301c8d696$59e0c3c0$0301a8c0@Neil> References: <003301c8d696$59e0c3c0$0301a8c0@Neil> Message-ID: <177c0a10806250220s4142e277o22e02a89837acac7@mail.gmail.com> > I thought I could use args to extract the UID from the URL but when I print > out all arguments in the block as a test, I get only "node" and "389" so > it's not seeing the PathAuto URL but the system URL. Correct. To get the uid use node_load to load the node details. If you use print_r() to examine the results, you will see that uid is one of the entries in the returned array. So something like: $node = node_load(arg(1)); $uid = $node['uid']; HTH From matt at cabinetuk.com Wed Jun 25 10:24:35 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Wed, 25 Jun 2008 11:24:35 +0100 Subject: [support] Writing authentication module Message-ID: <2DB0220B-ED8C-4F73-BDC8-705EAD9E03D7@cabinetuk.com> I'm writing a module in drupal to support remote authentication. Basically, our drupal site will have its login/logout controlled by a parent site for the company. This is working for new users. ie: users of the main site who have not yet been to the drupal site. Their user account is automatically created with data retrieved from the main site. However, when the user logs in again (second time - so they now have a "uid" in the "users" table) when they come back from the remote login page, the user hook is called with op = "load" , uid = 0, and the account is set up for an anonymous user. This I don't understand. The code goes basically like this: -- if ( ! mymodule_user_exists( $username ) ) { user_external_login_register( $username, "mymodulename" ) } $account = user_external_load( $username ); -- Any hints appreciated. -Matt From matt at cabinetuk.com Wed Jun 25 10:42:46 2008 From: matt at cabinetuk.com (Matt Connolly) Date: Wed, 25 Jun 2008 11:42:46 +0100 Subject: [support] Writing authentication module - solved In-Reply-To: <2DB0220B-ED8C-4F73-BDC8-705EAD9E03D7@cabinetuk.com> References: <2DB0220B-ED8C-4F73-BDC8-705EAD9E03D7@cabinetuk.com> Message-ID: <7FB4D893-2274-4EFC-961E-80D52CE2C5DF@cabinetuk.com> found it. i need to call: user_external_login which was being called automatically by user_external_login_register, which is why it was working for new users and not existing users. -matt On 25/06/2008, at 11:24 AM, Matt Connolly wrote: > I'm writing a module in drupal to support remote authentication. > Basically, our drupal site will have its login/logout controlled by a > parent site for the company. > > This is working for new users. ie: users of the main site who have not > yet been to the drupal site. Their user account is automatically > created with data retrieved from the main site. > > However, when the user logs in again (second time - so they now have a > "uid" in the "users" table) when they come back from the remote login > page, the user hook is called with op = "load" , uid = 0, and the > account is set up for an anonymous user. This I don't understand. > > > The code goes basically like this: > > -- > > if ( ! mymodule_user_exists( $username ) ) { > > user_external_login_register( $username, "mymodulename" ) > > } > > $account = user_external_load( $username ); > > -- > > Any hints appreciated. > -Matt > > > -- > [ Drupal support list | http://lists.drupal.org/ ] From zblace at gmail.com Wed Jun 25 11:09:42 2008 From: zblace at gmail.com (zeljko blace) Date: Wed, 25 Jun 2008 13:09:42 +0200 Subject: [support] internal messaging among users for Drupal 6.x? Message-ID: Hi folks! Not sure if this fits support or development...sorry for cross-posting. What is the logical solution to providing interface for internal messaging among users for Drupal 6.x? I need just basic inbox & outbox view, and compose, reply & forward forms. Is there a specific Module? something being ported from 5.x or made new for 6.x? Regards - Zeljko From bharanikumariyerphp at gmail.com Wed Jun 25 13:56:26 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Wed, 25 Jun 2008 19:26:26 +0530 Subject: [support] assign block into frompage / home page Message-ID: <2240033d0806250656q55f82d1bl29a14ee2b674c451@mail.gmail.com> How to assign block into home page home page link is localhost/demo -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/8335123a/attachment.htm From earnie at users.sourceforge.net Wed Jun 25 14:10:13 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 25 Jun 2008 10:10:13 -0400 Subject: [support] Session problems In-Reply-To: <4861420A.70109@zmsl.com> References: <485F8C8D.6020505@zmsl.com> <20080623112227.hqzhbkztww9wwckw@mail.progw.org> <485FEE4A.8040301@zmsl.com> <20080623223137.fltnzcsfffb4w484@mail.progw.org> <48609F47.5060801@zmsl.com> <4860B241.6040504@zmsl.com> <20080624085347.oor5uwvb23k08g8k@mail.progw.org> <4860F014.4080206@zmsl.com> <20080624141312.te09lumy3yio8s0k@mail.progw.org> <4861420A.70109@zmsl.com> Message-ID: <20080625101013.oglx9zhyyy8skwcc@mail.progw.org> Quoting Daniel Carrera : > > Is there anything else I can do to make sessions expiry times short? I > have already set: > > ini_set('session.cookie_lifetime', 0); > ini_set('session.cache_expire', 10); > ini_set('session.use_only_cookies', 0); > > Can I improve on this? > You might try setting both of the following in your php.ini file: session.entropy_file string session.entropy_file gives a path to an external resource (file) which will be used as an additional entropy source in the session id creation process. Examples are /dev/random or /dev/urandom which are available on many Unix systems. session.entropy_length integer session.entropy_length specifies the number of bytes which will be read from the file specified above. Defaults to 0 (disabled). The only other thing you might consider is changing the session table primary key to a combination of sid and uid and then modify the queries for sid to also include the uid in the includes/session.inc file. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From ganeshdrupal at gmail.com Wed Jun 25 17:21:14 2008 From: ganeshdrupal at gmail.com (ganesh ganesh) Date: Wed, 25 Jun 2008 22:51:14 +0530 Subject: [support] disable left side bar Message-ID: How to disable the leftside bar, When i view the content............ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/ce030bd2/attachment.htm From dhalik at jla.rutgers.edu Wed Jun 25 17:24:01 2008 From: dhalik at jla.rutgers.edu (David Halik) Date: Wed, 25 Jun 2008 13:24:01 -0400 Subject: [support] updating mysql with Drupal 6 Message-ID: <48627F31.6080200@jla.rutgers.edu> Hi, just a quick question. I've been running Drupal 6 on Centos 5 with mysql 5.0.22 for awhile now, and I'd like to update to the latest version 5.0.45. Is it safe to update the mysql package with an active Drupal database, or do I need to dump it, start fresh, and reload the database. Just curious if anyone has tried this and what the consequences might be. I'm thinking I can just bump the version since it's just a minor revision. Any opinions would be appreciated. Thanks. -- ================================ David Halik System Administrator OIT-CSS Rutgers University dhalik at jla.rutgers.edu ================================ From dhalik at jla.rutgers.edu Wed Jun 25 18:30:29 2008 From: dhalik at jla.rutgers.edu (David Halik) Date: Wed, 25 Jun 2008 14:30:29 -0400 Subject: [support] updating mysql with Drupal 6 In-Reply-To: <61e98d330806251057q7b8dd858y239ea0373c994050@mail.gmail.com> References: <48627F31.6080200@jla.rutgers.edu> <61e98d330806251057q7b8dd858y239ea0373c994050@mail.gmail.com> Message-ID: <48628EC5.2060301@jla.rutgers.edu> Succesfully updated from Centos 5.1 -> 5.2. I left mysql 5.0.45 until last, but it didn't give me any issues. I did have that handy backup just in case in needed to back out though ;) Jens Moewes wrote: > Hi David, > I never did update from MySQL 5.0.22 to 5.0.45 - but I would > definitely back it up and put the site in maintenance mode before trying. > Best, > Jens > > 2008/6/25 David Halik >: > > > Hi, just a quick question. I've been running Drupal 6 on Centos 5 with > mysql 5.0.22 for awhile now, and I'd like to update to the latest > version 5.0.45. > > Is it safe to update the mysql package with an active Drupal database, > or do I need to dump it, start fresh, and reload the database. > > Just curious if anyone has tried this and what the consequences might > be. I'm thinking I can just bump the version since it's just a minor > revision. > > Any opinions would be appreciated. > > Thanks. > > -- > ================================ > David Halik > System Administrator > OIT-CSS Rutgers University > dhalik at jla.rutgers.edu > ================================ > > -- > [ Drupal support list | http://lists.drupal.org/ ] > > -- ================================ David Halik System Administrator OIT-CSS Rutgers University dhalik at jla.rutgers.edu ================================ From earnie at users.sourceforge.net Wed Jun 25 18:34:22 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Wed, 25 Jun 2008 14:34:22 -0400 Subject: [support] updating mysql with Drupal 6 In-Reply-To: <48627F31.6080200@jla.rutgers.edu> References: <48627F31.6080200@jla.rutgers.edu> Message-ID: <20080625143422.735fsn37kv40cs4k@mail.progw.org> Quoting David Halik : > > Any opinions would be appreciated. > Stop the database, do a cold backup, and follow the instructions given by MySql for the upgrade. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From cleveland at winnefox.org Wed Jun 25 22:42:16 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Wed, 25 Jun 2008 17:42:16 -0500 Subject: [support] Different stylesheet based on path Message-ID: I'm running a site with Drupal 6.2 that will have many different sections to the site. Is there a way to define a stylesheet based on path? Sections does a great job defining themes based on path, but that only let's you choose a different theme. I'd love something exactly like that, but with the ability to just choose a different stylesheet. Many of the sections on my site will just use a different header graphic. I'd rather not duplicate the template, just serve it a different stylesheet. Is there a way to do this? - jody From rich at freestylesystems.co.uk Wed Jun 25 22:45:26 2008 From: rich at freestylesystems.co.uk (Richard Burford) Date: Wed, 25 Jun 2008 23:45:26 +0100 Subject: [support] Different stylesheet based on path In-Reply-To: References: Message-ID: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> I've not built a theme for Drupal 6 yet but in Drupal 5 what you can do is add a body class based on what's in arg(). This can be done in template.php. psynaptic http://freestylesystems.co.uk http://api.freestylesystems.co.uk On 25 Jun 2008, at 23:42, Jody Cleveland wrote: > I'm running a site with Drupal 6.2 that will have many different > sections to > the site. > > Is there a way to define a stylesheet based on path? Sections does a > great > job defining themes based on path, but that only let's you choose a > different theme. I'd love something exactly like that, but with the > ability > to just choose a different stylesheet. Many of the sections on my > site will > just use a different header graphic. I'd rather not duplicate the > template, > just serve it a different stylesheet. > > Is there a way to do this? > > - jody > > -- > [ 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/20080625/d4da5f3c/attachment-0001.bin From cleveland at winnefox.org Wed Jun 25 23:03:46 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Wed, 25 Jun 2008 18:03:46 -0500 Subject: [support] Different stylesheet based on path In-Reply-To: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> Message-ID: On 6/25/08 5:45 PM, "Richard Burford" wrote: > I've not built a theme for Drupal 6 yet but in Drupal 5 what you can > do is add a body class based on what's in arg(). This can be done in > template.php. I tried adding this to template.php, but it didn't seem to do anything (body tag still shows up as just : print '"; Do I have that right? - jody From killshot91 at comcast.net Wed Jun 25 23:04:58 2008 From: killshot91 at comcast.net (Steve Edwards) Date: Wed, 25 Jun 2008 16:04:58 -0700 Subject: [support] Different stylesheet based on path In-Reply-To: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> References: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> Message-ID: <4862CF1A.3060201@comcast.net> One way I've seen it done make a region in your template for the banner, and then create a block for each different banner (where the block body is the img tag for the banner graphic). Then, in the "Show block on specific pages" fieldset, check the "Show on only the listed pages" radio button and list the URL for the page where you want that particular banner to be displayed. Steve Richard Burford wrote: > I've not built a theme for Drupal 6 yet but in Drupal 5 what you can > do is add a body class based on what's in arg(). This can be done in > template.php. > > psynaptic > http://freestylesystems.co.uk > http://api.freestylesystems.co.uk > > On 25 Jun 2008, at 23:42, Jody Cleveland wrote: > >> I'm running a site with Drupal 6.2 that will have many different >> sections to >> the site. >> >> Is there a way to define a stylesheet based on path? Sections does a >> great >> job defining themes based on path, but that only let's you choose a >> different theme. I'd love something exactly like that, but with the >> ability >> to just choose a different stylesheet. Many of the sections on my >> site will >> just use a different header graphic. I'd rather not duplicate the >> template, >> just serve it a different stylesheet. >> >> Is there a way to do this? >> >> - jody >> >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080625/3b96964e/attachment.htm From jhedstrom at opensourcery.com Wed Jun 25 23:18:32 2008 From: jhedstrom at opensourcery.com (Jonathan Hedstrom) Date: Wed, 25 Jun 2008 16:18:32 -0700 Subject: [support] Different stylesheet based on path In-Reply-To: References: Message-ID: <4862D248.3030504@opensourcery.com> Jody Cleveland wrote: > On 6/25/08 5:45 PM, "Richard Burford" wrote: > > >> I've not built a theme for Drupal 6 yet but in Drupal 5 what you can >> do is add a body class based on what's in arg(). This can be done in >> template.php. >> > > I tried adding this to template.php, but it didn't seem to do anything (body > tag still shows up as just : > > print ' print theme('onload_attribute'); > print ">"; > > Do I have that right? > > - jody > > What you have there should work. Alternatively, if you want to use different css files based on path, you can do something like this at the top of template.php: switch (arg(0)) { case 'admin': drupal_add_css(path_to_theme() .'/admin.css', 'theme', 'all'); break; case 'somethingelse': drupal_add_css(path_to_theme() .'/another-css-file.css', 'theme', 'all'); break; } 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/20080625/d03b46fc/attachment.pgp From info at koba.be Thu Jun 26 04:49:53 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Thu, 26 Jun 2008 06:49:53 +0200 Subject: [support] Different stylesheet based on path In-Reply-To: <4862CF1A.3060201@comcast.net> References: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> <4862CF1A.3060201@comcast.net> Message-ID: <51a9b8330806252149h55461eb9m8e0745bd8d2a520@mail.gmail.com> You could also use the header_image module if it is just the header that needs to be changed with the path. Or if you stick to sections you could make subthemes where only the css is different. Hans www.koba.be 2008/6/26, Steve Edwards : > One way I've seen it done make a region in your template for the banner, > and then create a block for each different banner (where the block body > is the img tag for the banner graphic). Then, in the "Show block on > specific pages" fieldset, check the "Show on only the listed pages" > radio button and list the URL for the page where you want that > particular banner to be displayed. > > Steve > > Richard Burford wrote: >> I've not built a theme for Drupal 6 yet but in Drupal 5 what you can >> do is add a body class based on what's in arg(). This can be done in >> template.php. >> >> psynaptic >> http://freestylesystems.co.uk >> http://api.freestylesystems.co.uk >> >> On 25 Jun 2008, at 23:42, Jody Cleveland wrote: >> >>> I'm running a site with Drupal 6.2 that will have many different >>> sections to >>> the site. >>> >>> Is there a way to define a stylesheet based on path? Sections does a >>> great >>> job defining themes based on path, but that only let's you choose a >>> different theme. I'd love something exactly like that, but with the >>> ability >>> to just choose a different stylesheet. Many of the sections on my >>> site will >>> just use a different header graphic. I'd rather not duplicate the >>> template, >>> just serve it a different stylesheet. >>> >>> Is there a way to do this? >>> >>> - jody >>> >>> -- >>> [ 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 Thu Jun 26 06:08:57 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Thu, 26 Jun 2008 08:08:57 +0200 Subject: [support] Automate import via XML to CCK content type Message-ID: <787657.86820.bm@omp108.mail.re1.yahoo.com> Hello, I need to automate an import process from an external XML to a CCK content type. Can you tell me where to start? Thank's. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/d2d10c7e/attachment.htm From victorkane at gmail.com Thu Jun 26 08:32:47 2008 From: victorkane at gmail.com (Victor Kane) Date: Thu, 26 Jun 2008 05:32:47 -0300 Subject: [support] Automate import via XML to CCK content type In-Reply-To: <787657.86820.bm@omp108.mail.re1.yahoo.com> References: <787657.86820.bm@omp108.mail.re1.yahoo.com> Message-ID: PHP simplexml, on the one hand, to parse; and the code for http://drupal.org/project/node_import (the part where it imports CSV data into nodes aumented with CCK fields). Maybe you could offer a patch to add XML import for this module. Another line of investigation might be with the services module, where you would have to unmarshall the XML to a PHP hash in order to take advantage of the node.save service (you might have to write a custom service), here you would pipe stuff in via XMLRPC. Victor Kane http://awebfactory.com.ar On Thu, Jun 26, 2008 at 3:08 AM, marolijo - Pol Maresma wrote: > Hello, I need to automate an import process from an external XML to a CCK > content type. > Can you tell me where to start? > > Thank's. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/03bc33bf/attachment.htm From bharanikumariyerphp at gmail.com Thu Jun 26 11:27:28 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 26 Jun 2008 16:57:28 +0530 Subject: [support] removeing welcome page Message-ID: <2240033d0806260427i4bb3e098u7025875d50afe777@mail.gmail.com> How to remove the welcome page , Because am going to assign the block to " node " By Bharani -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/3c4ae4e9/attachment.htm From neil at esl-lounge.com Thu Jun 26 11:28:31 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Thu, 26 Jun 2008 12:28:31 +0100 Subject: [support] extracting author's UID from URL for use in a block References: <003301c8d696$59e0c3c0$0301a8c0@Neil> <177c0a10806250220s4142e277o22e02a89837acac7@mail.gmail.com> Message-ID: <006f01c8d77f$c3bd4a40$0301a8c0@Neil> Thanks Fred. That did the trick. Neil ----- Original Message ----- From: "Fred Jones" To: Sent: Wednesday, June 25, 2008 10:20 AM Subject: Re: [support] extracting author's UID from URL for use in a block >> I thought I could use args to extract the UID from the URL but when I >> print >> out all arguments in the block as a test, I get only "node" and "389" so >> it's not seeing the PathAuto URL but the system URL. > > Correct. > > To get the uid use node_load to load the node details. If you use > print_r() to examine the results, you will see that uid is one of the > entries in the returned array. So something like: > > $node = node_load(arg(1)); > $uid = $node['uid']; > > HTH > -- > [ Drupal support list | http://lists.drupal.org/ ] > From victorkane at gmail.com Thu Jun 26 11:30:16 2008 From: victorkane at gmail.com (Victor Kane) Date: Thu, 26 Jun 2008 08:30:16 -0300 Subject: [support] removeing welcome page In-Reply-To: <2240033d0806260427i4bb3e098u7025875d50afe777@mail.gmail.com> References: <2240033d0806260427i4bb3e098u7025875d50afe777@mail.gmail.com> Message-ID: The welcome page goes away when you create your first conent. On Thu, Jun 26, 2008 at 8:27 AM, bharani kumar < bharanikumariyerphp at gmail.com> wrote: > How to remove the welcome page , > > Because am going to assign the block to " node " > > By > Bharani > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/9086c612/attachment.htm From net at twoedged.org Thu Jun 26 12:20:32 2008 From: net at twoedged.org (John Fletcher) Date: Thu, 26 Jun 2008 22:20:32 +1000 Subject: [support] Different stylesheet based on path In-Reply-To: <51a9b8330806252149h55461eb9m8e0745bd8d2a520@mail.gmail.com> References: <197ED0DA-8AAF-4BA9-8DD9-3138DB6F8D4B@freestylesystems.co.uk> <4862CF1A.3060201@comcast.net> <51a9b8330806252149h55461eb9m8e0745bd8d2a520@mail.gmail.com> Message-ID: <002601c8d787$0bf5e400$23e1ac00$@org> Did you check out the node style module? Maybe that will do the trick? From amont at 5net.hu Thu Jun 26 15:28:14 2008 From: amont at 5net.hu (=?ISO-8859-2?Q?=C1mon_Tam=E1s?=) Date: Thu, 26 Jun 2008 17:28:14 +0200 Subject: [support] Translating english to english Message-ID: <4863B58E.8090305@5net.hu> Hello, I have a multilingual site (but I think this is not important in this situation) and here is an english string in drupal core, for example: "Body". But I like to write this in the forms "Text". How can I make 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 neil at esl-lounge.com Thu Jun 26 15:45:07 2008 From: neil at esl-lounge.com (Neil: esl-lounge.com) Date: Thu, 26 Jun 2008 16:45:07 +0100 Subject: [support] how can I stop a block showing if it's empty? (not a Views block) Message-ID: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> I have blocks called "Related Blogs" or "Related Videos" etc, which list other nodes of the same type if they've been tagged with the same terms. It's working great, just that the block is showing even when there are no related nodes. What I would like is for the block not to show if there are no related nodes. My code is:
    "; 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 .="
    $term->name
      "; while ($anode = db_fetch_object($result)) { $output .= "
    1. ".l($anode->title, "node/$anode->nid")."
    2. "; } $output.="
    "; } } $output .= "
    "; return $output; } ?> and for the moment, the block visibility is set as blog/*, video/*, image/*, etc. How can I use php visibility settings to test to see if any content is returned. Would something as simple as: if $output return TRUE work? Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/2fa4c969/attachment.htm From fredthejonester at gmail.com Thu Jun 26 16:18:43 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Thu, 26 Jun 2008 18:18:43 +0200 Subject: [support] how can I stop a block showing if it's empty? (not a Views block) In-Reply-To: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> References: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> Message-ID: <177c0a10806260918v1ba98cfem413d51771e416a2a@mail.gmail.com> > if $output > return TRUE No, because $output is not accessible AFAIK in the visibility box--it is defined in the content of the block. You would have to write the logic code again in the visibility block, but just the logic to determine if there is or isn't output. And don't forget that you are checking not only that there is output, but also that the path is one of blog/*, video/*, image/*, etc. HTH From bharanikumariyerphp at gmail.com Thu Jun 26 17:27:37 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Thu, 26 Jun 2008 22:57:37 +0530 Subject: [support] how can I stop a block showing if it's empty? (not a Views block) In-Reply-To: <177c0a10806260918v1ba98cfem413d51771e416a2a@mail.gmail.com> References: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> <177c0a10806260918v1ba98cfem413d51771e416a2a@mail.gmail.com> Message-ID: <2240033d0806261027n6fdf53djbc6c2e2206681be6@mail.gmail.com> Do one thing, fine max rows, when greater then 0 means, display the block... On Thu, Jun 26, 2008 at 9:48 PM, Fred Jones wrote: > > if $output > > return TRUE > > No, because $output is not accessible AFAIK in the visibility box--it > is defined in the content of the block. You would have to write the > logic code again in the visibility block, but just the logic to > determine if there is or isn't output. And don't forget that you are > checking not only that there is output, but also that the path is one > of blog/*, video/*, image/*, etc. > > HTH > -- > [ Drupal support list | http://lists.drupal.org/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080626/c8dfcd9c/attachment.htm From kathleen at ceardach.com Thu Jun 26 18:20:31 2008 From: kathleen at ceardach.com (Kathleen Murtagh) Date: Thu, 26 Jun 2008 14:20:31 -0400 Subject: [support] how can I stop a block showing if it's empty? (not a Views block) In-Reply-To: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> References: <011601c8d7a3$9ca80fc0$0301a8c0@Neil> Message-ID: <1d83e3e60806261120t116388a5nfa7118f1732c2cbb@mail.gmail.com> A block won't display if there is no content inside of it to display. Rework your code so no HTML is printed when there are no results to show. For example: tid AND n.nid != $nid ORDER BY RAND() LIMIT 3"; $result = db_query(db_rewrite_sql($sql)); if (db_num_rows($result)) { $output .= "
    $term->name
      "; while ($anode = db_fetch_object($result)) { $output .= "
    1. ".l($anode->title, "node/$anode->nid")."
    2. "; } $output .= "
    "; } } } if($output) { print '
    '; print ''; print $output; print ''; print '
    '; } ?> --- Kathleen Murtagh On Thu, Jun 26, 2008 at 11:45 AM, Neil: esl-lounge.com wrote: > I have blocks called "Related Blogs" or "Related Videos" etc, which list > other nodes of the same type if they've been tagged with the same terms. > It's working great, just that the block is showing even when there are no > related nodes. What I would like is for the block not to show if there are > no related nodes. > > My code is: > >
    > > if (arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2))) { > $nid = (int)arg(1); > $terms = taxonomy_node_get_terms($nid); > $output = ""; > 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 .="
    style='color:#900;font-weight:bold;margin-top:3px;'>$term->name
      class='each-term'>"; > while ($anode = db_fetch_object($result)) { > $output .= "
    1. ".l($anode->title, "node/$anode->nid")."
    2. "; > } > $output.="
    "; > } > } > $output .= "
    "; > return $output; > } > ?> > > > and for the moment, the block visibility is set as blog/*, video/*, image/*, > etc. How can I use php visibility settings to test to see if any content is > returned. Would something as simple as: > > if $output > return TRUE > > work? > > Neil > -- > [ Drupal support list | http://lists.drupal.org/ ] > From Greg at GrowingVentureSolutions.com Thu Jun 26 19:56:39 2008 From: Greg at GrowingVentureSolutions.com (Greg Knaddison - GVS) Date: Thu, 26 Jun 2008 13:56:39 -0600 Subject: [support] Translating english to english In-Reply-To: <4863B58E.8090305@5net.hu> References: <4863B58E.8090305@5net.hu> Message-ID: <3861c6770806261256l4b572926sc7bb6bbe00595e34@mail.gmail.com> 2008/6/26 ?mon Tam?s : > I have a multilingual site (but I think this is not important in this > situation) and here is an english string in drupal core, for example: > "Body". But I like to write this in the forms "Text". > How can I make it? For the string "Body" you should be able to do that at Administer > Content management > Content types. In general, though there is a great writeup in the handbook "HOWTO: Creating a customized language set to replace Drupal terminology" http://drupal.org/node/24593 Regards, Greg -- Greg Knaddison Denver, CO | http://knaddison.com | 303-800-5623 Growing Venture Solutions, LLC | http://growingventuresolutions.com From diodata at UDel.Edu Fri Jun 27 06:44:28 2008 From: diodata at UDel.Edu (John Callahan) Date: Fri, 27 Jun 2008 02:44:28 -0400 Subject: [support] managing pages with lists of information Message-ID: <48648C4C.1060701@udel.edu> I've been looking for a way to easily manage pages that contain a list of information. For example, a single page with a list of US States, capital cities, and current population counts. Or a list of volunteers including their interests and contact info. Or even a list of organizations contributing to a project with a paragraph or two about each. There are some modules that do things like TODO lists, task lists, etc, but nothing quite fits. 1) For maintaining a list of single items with attributes of each (like multiple rows in a table), how could this be done? I'd like the user to edit (modify/add/delete) one item at a time without opening the entire page for editing. You see this on things like Google Calendar, when you click on a field it turns into a text box ready for edits. And maybe open text boxes at the bottom for easily adding new items. For lists that get over 50, 100 items or so, editing the entire page to make one change to one item could be a nightmare. 2) For maintaining a list of items with paragraph descriptions for each (like a staff bio page with sections like interests, current projects, publications, background, etc...), I thought about creating a custom node type with each section being a different CCK field. Users still have to open the entire page for editing but at least they can deal with one section/text box at a time. Of course, this only works if I know the number of sections a priori, unless I allow my content providers the abilit to add more CCK fields! Thanks for any ideas you may have for maintaining this type of content. The best I found so far is to use a filter (like TWikfilter ot flexifilter) module for easy editing. However, this seems to be only part of the solution. - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: john.callahan at udel.edu http://www.dgs.udel.edu **************************************** From marolijo at yahoo.es Fri Jun 27 09:00:45 2008 From: marolijo at yahoo.es (marolijo - Pol Maresma) Date: Fri, 27 Jun 2008 11:00:45 +0200 Subject: [support] Cache and random views Message-ID: <634213.73808.bm@omp202.mail.re3.yahoo.com> Hello, I have a random view for my front page. When I activate Normal Cache the random stop workin for anonymous users. Can I use cache for all but not this page? thank's -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080627/41e73284/attachment.htm From bharanikumariyerphp at gmail.com Fri Jun 27 09:16:09 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Fri, 27 Jun 2008 14:46:09 +0530 Subject: [support] Pagination idea Message-ID: <2240033d0806270216q518bdad8m2777dfb23651b6fd@mail.gmail.com> Dear here i have attached snap shot, In in my home page am having the event block, In that am going to click the event title, Then it show the full view of the event, Now i want to display the 500character only, balance charcter in nextt page so, here bottum i need the pagination ... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080627/43d8a2ca/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: event_title.JPG Type: image/jpeg Size: 121285 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080627/43d8a2ca/attachment-0002.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: event_view.JPG Type: image/jpeg Size: 181135 bytes Desc: not available Url : http://lists.drupal.org/pipermail/support/attachments/20080627/43d8a2ca/attachment-0003.jpeg From earnie at users.sourceforge.net Fri Jun 27 12:12:20 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Fri, 27 Jun 2008 08:12:20 -0400 Subject: [support] managing pages with lists of information In-Reply-To: <48648C4C.1060701@udel.edu> References: <48648C4C.1060701@udel.edu> Message-ID: <20080627081220.ra10tvtyla80c88c@mail.progw.org> Quoting John Callahan : > I've been looking for a way to easily manage pages that contain a list > of information. For example, a single page with a list of US States, > capital cities, and current population counts. Or a list of volunteers > including their interests and contact info. Or even a list of > organizations contributing to a project with a paragraph or two about > each. There are some modules that do things like TODO lists, task > lists, etc, but nothing quite fits. > You probably want to look at the CCK module but maybe http://drupal.org/project/tablemanager will give you more of what you want. An interesting exercise for you would be to go to http://drupal.org/project/Modules/name and execute a browser find ("Find in this page" is the title used by my browse) searching for the word tables. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From cleveland at winnefox.org Fri Jun 27 15:07:26 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Fri, 27 Jun 2008 10:07:26 -0500 Subject: [support] Different stylesheet based on path In-Reply-To: <4862D248.3030504@opensourcery.com> Message-ID: On 6/25/08 6:18 PM, "Jonathan Hedstrom" wrote: > > > Jody Cleveland wrote: >> On 6/25/08 5:45 PM, "Richard Burford" wrote: >> >> >>> I've not built a theme for Drupal 6 yet but in Drupal 5 what you can >>> do is add a body class based on what's in arg(). This can be done in >>> template.php. >>> >> >> I tried adding this to template.php, but it didn't seem to do anything (body >> tag still shows up as just : >> >> print '> print theme('onload_attribute'); >> print ">"; >> >> Do I have that right? >> >> - jody >> >> > What you have there should work. > > Alternatively, if you want to use different css files based on path, you > can do something like this at the top of template.php: > > switch (arg(0)) { > case 'admin': > drupal_add_css(path_to_theme() .'/admin.css', 'theme', 'all'); > break; > case 'somethingelse': > drupal_add_css(path_to_theme() .'/another-css-file.css', 'theme', > 'all'); > break; > } 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 From daniel.carrera at zmsl.com Sat Jun 28 12:37:09 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sat, 28 Jun 2008 14:37:09 +0200 Subject: [support] Navigation Block has vanished Message-ID: <48663075.9050706@zmsl.com> Hello, For some reason, the navigation block has vanished from my website. But when you login (with any account) the block appears again. This just happened today, and I haven't touched Drupal in the last 3 days, so it is not obviously something I did. In addition, all other blocks look just fine. It is only the navigation block that is acting up. Is there a setting somewhere that might make a block appear only for authenticated users? I have Drupal 4.7 btw. Earlier today I also got a note from a user about what looks like a MySQL-related error. I don't know if this is at all related, but I include it below just in case. --------- * user warning: Got error 28 from storage engine query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN (1) in /home/theingot/public_html/community/includes/database.mysqli.inc on line 124. * user warning: Got error 28 from storage engine query: SELECT t.* FROM term_node r INNER JOIN term_data t ON r.tid = t.tid INNER JOIN vocabulary v ON t.vid = v.vid WHERE (t.tid IN ('3','4','9','10','11','12','13')) AND r.nid = 1 ORDER BY v.weight, t.weight, t.name in /home/theingot/public_html/community/includes/database.mysqli.inc on line 124 --------- Line 124 is inside function _db_query() and the relevant lines are: if (!mysqli_errno($active_db)) { return $result; } else { trigger_error(check_plain(mysqli_error($active_db) ."\nquery: ". $query), E_USER_WARNING); return FALSE; } So I guess all we know is that there was some MySQL error. I don't see how this could be connected to the navigation block disappearing, but I thought I'd include it for completeness. I would be grateful for any assistance you may offer. Daniel. From daniel.carrera at zmsl.com Sat Jun 28 17:22:15 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sat, 28 Jun 2008 19:22:15 +0200 Subject: [support] Navigation Block has vanished In-Reply-To: <48663075.9050706@zmsl.com> References: <48663075.9050706@zmsl.com> Message-ID: <48667347.7080305@zmsl.com> I also can't see some pages unless I am logged in. For example, you can't see the blogs. It says "Access Denied" which is ridiculous. Here, see for yourself: http://theingots.org/community/blog Does anyone know why permissions would go berzerk like that? More importantly, where can I reset them so that regular visitors can see the bogs again? I've tested other pages and those can be accessed fine. It looks like it's only blogs that are somehow access-denied. And of course, the navigation bar doesn't appear. These look like a weird sort of permission problem. Because the site works fine when you login. Daniel. Daniel Carrera wrote: > Hello, > > For some reason, the navigation block has vanished from my website. But > when you login (with any account) the block appears again. This just > happened today, and I haven't touched Drupal in the last 3 days, so it > is not obviously something I did. In addition, all other blocks look > just fine. It is only the navigation block that is acting up. > > Is there a setting somewhere that might make a block appear only for > authenticated users? I have Drupal 4.7 btw. > > Earlier today I also got a note from a user about what looks like a > MySQL-related error. I don't know if this is at all related, but I > include it below just in case. > > --------- > * user warning: Got error 28 from storage engine query: SELECT > DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = > r.rid WHERE r.rid IN (1) > in /home/theingot/public_html/community/includes/database.mysqli.inc > on line 124. > * user warning: Got error 28 from storage engine query: SELECT t.* > FROM term_node r INNER JOIN term_data t ON r.tid = t.tid INNER > JOIN vocabulary v ON t.vid = v.vid WHERE (t.tid IN > ('3','4','9','10','11','12','13')) AND r.nid = 1 ORDER BY > v.weight, t.weight, t.name > in /home/theingot/public_html/community/includes/database.mysqli.inc > on line 124 > --------- > > Line 124 is inside function _db_query() and the relevant lines are: > > if (!mysqli_errno($active_db)) { > return $result; > } > else { > trigger_error(check_plain(mysqli_error($active_db) ."\nquery: ". > $query), E_USER_WARNING); > return FALSE; > } > > > So I guess all we know is that there was some MySQL error. > > I don't see how this could be connected to the navigation block > disappearing, but I thought I'd include it for completeness. > > I would be grateful for any assistance you may offer. > > Daniel. From greg at t2media.com Sat Jun 28 17:26:29 2008 From: greg at t2media.com (Greg Holsclaw) Date: Sat, 28 Jun 2008 10:26:29 -0700 Subject: [support] Navigation Block has vanished In-Reply-To: <48667347.7080305@zmsl.com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> Message-ID: <000301c8d944$1aa25970$4fe70c50$@com> Have you been using an access control module, and then turned it off? If so, sometimes the access table isn't updated correctly, it happened to me. Under the Admin > Content > Posts page (/admin/content/node-settings) there is a 'Rebuild Permissions' button. This will force a complete rebuild of the access tables. Greg -----Original Message----- From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On Behalf Of Daniel Carrera Sent: Saturday, June 28, 2008 10:22 AM To: support at drupal.org Subject: Re: [support] Navigation Block has vanished I also can't see some pages unless I am logged in. For example, you can't see the blogs. It says "Access Denied" which is ridiculous. Here, see for yourself: http://theingots.org/community/blog Does anyone know why permissions would go berzerk like that? More importantly, where can I reset them so that regular visitors can see the bogs again? I've tested other pages and those can be accessed fine. It looks like it's only blogs that are somehow access-denied. And of course, the navigation bar doesn't appear. These look like a weird sort of permission problem. Because the site works fine when you login. Daniel. Daniel Carrera wrote: > Hello, > > For some reason, the navigation block has vanished from my website. But > when you login (with any account) the block appears again. This just > happened today, and I haven't touched Drupal in the last 3 days, so it > is not obviously something I did. In addition, all other blocks look > just fine. It is only the navigation block that is acting up. > > Is there a setting somewhere that might make a block appear only for > authenticated users? I have Drupal 4.7 btw. > > Earlier today I also got a note from a user about what looks like a > MySQL-related error. I don't know if this is at all related, but I > include it below just in case. > > --------- > * user warning: Got error 28 from storage engine query: SELECT > DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = > r.rid WHERE r.rid IN (1) > in /home/theingot/public_html/community/includes/database.mysqli.inc > on line 124. > * user warning: Got error 28 from storage engine query: SELECT t.* > FROM term_node r INNER JOIN term_data t ON r.tid = t.tid INNER > JOIN vocabulary v ON t.vid = v.vid WHERE (t.tid IN > ('3','4','9','10','11','12','13')) AND r.nid = 1 ORDER BY > v.weight, t.weight, t.name > in /home/theingot/public_html/community/includes/database.mysqli.inc > on line 124 > --------- > > Line 124 is inside function _db_query() and the relevant lines are: > > if (!mysqli_errno($active_db)) { > return $result; > } > else { > trigger_error(check_plain(mysqli_error($active_db) ."\nquery: ". > $query), E_USER_WARNING); > return FALSE; > } > > > So I guess all we know is that there was some MySQL error. > > I don't see how this could be connected to the navigation block > disappearing, but I thought I'd include it for completeness. > > I would be grateful for any assistance you may offer. > > Daniel. -- [ Drupal support list | http://lists.drupal.org/ ] From daniel.carrera at zmsl.com Sat Jun 28 17:49:34 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sat, 28 Jun 2008 19:49:34 +0200 Subject: [support] Navigation Block has vanished In-Reply-To: <000301c8d944$1aa25970$4fe70c50$@com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> Message-ID: <486679AE.1090209@zmsl.com> Greg Holsclaw wrote: > Have you been using an access control module, and then turned it off? If so, > sometimes the access table isn't updated correctly, it happened to me. I am indeed using the access control module, but I am not aware of doing anything that might have turned it off. > Under the Admin > Content > Posts page (/admin/content/node-settings) there > is a 'Rebuild Permissions' button. This will force a complete rebuild of the > access tables. I go to Admin > Content and I see a list of posts. But I don't see any additional link that says Posts or a button that says "Rebuild Permissions". I go to the URL /admin/content/node-settings and I only get the admin front page (that shows a log of recent activity). I have Drupal 4.7. Is it possible that my version does not have this rebuild-permissions feature? Daniel. From daniel.carrera at zmsl.com Sun Jun 29 00:04:36 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sun, 29 Jun 2008 02:04:36 +0200 Subject: [support] Navigation Block has vanished In-Reply-To: <486679AE.1090209@zmsl.com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> <486679AE.1090209@zmsl.com> Message-ID: <4866D194.3070803@zmsl.com> More information: Actually, you can see the individual blog posts on their own, but you cannot see the "blog" URL that aggregates all the blogs. See here: http://theingots.org/community/node/5194 http://theingots.org/community/blog For some reason, an anonymous user cannot see the '/blog' URL but can see the actual blog post 'node/5194'. Any ideas? Daniel. Daniel Carrera wrote: > Greg Holsclaw wrote: >> Have you been using an access control module, and then turned it off? If so, >> sometimes the access table isn't updated correctly, it happened to me. > > I am indeed using the access control module, but I am not aware of doing > anything that might have turned it off. > >> Under the Admin > Content > Posts page (/admin/content/node-settings) there >> is a 'Rebuild Permissions' button. This will force a complete rebuild of the >> access tables. > > > I go to Admin > Content and I see a list of posts. But I don't see any > additional link that says Posts or a button that says "Rebuild Permissions". > > I go to the URL /admin/content/node-settings and I only get the admin > front page (that shows a log of recent activity). > > I have Drupal 4.7. Is it possible that my version does not have this > rebuild-permissions feature? > > Daniel. From daniel.carrera at zmsl.com Sun Jun 29 00:30:54 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sun, 29 Jun 2008 02:30:54 +0200 Subject: [support] Navigation Block has vanished In-Reply-To: <4866D194.3070803@zmsl.com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> <486679AE.1090209@zmsl.com> <4866D194.3070803@zmsl.com> Message-ID: <4866D7BE.2060205@zmsl.com> Sorry for all the posts. I'm just trying to figure out how to make my site work again. It looks like pages that list nodes are the ones giving "access denied" errors. For example: http://theingots.org/community/node http://theingots.org/community/blog http://theingots.org/community/blog/4 All of these pages are supposed to give you a list of other pages with a summary and a link. But if you are not logged in you get an "access denied" error. I went to "Access Control" > "category permissions" and set "anonymous user"s to be able to "list" all nodes, but that didn't help. Any ideas? I don't know what to do. Daniel. Daniel Carrera wrote: > More information: Actually, you can see the individual blog posts on > their own, but you cannot see the "blog" URL that aggregates all the blogs. > > See here: > > http://theingots.org/community/node/5194 > http://theingots.org/community/blog > > For some reason, an anonymous user cannot see the '/blog' URL but can > see the actual blog post 'node/5194'. > > Any ideas? > > Daniel. > > > Daniel Carrera wrote: >> Greg Holsclaw wrote: >>> Have you been using an access control module, and then turned it off? If so, >>> sometimes the access table isn't updated correctly, it happened to me. >> I am indeed using the access control module, but I am not aware of doing >> anything that might have turned it off. >> >>> Under the Admin > Content > Posts page (/admin/content/node-settings) there >>> is a 'Rebuild Permissions' button. This will force a complete rebuild of the >>> access tables. >> >> I go to Admin > Content and I see a list of posts. But I don't see any >> additional link that says Posts or a button that says "Rebuild Permissions". >> >> I go to the URL /admin/content/node-settings and I only get the admin >> front page (that shows a log of recent activity). >> >> I have Drupal 4.7. Is it possible that my version does not have this >> rebuild-permissions feature? >> >> Daniel. > From bakwashibakwas at gmail.com Sun Jun 29 02:38:31 2008 From: bakwashibakwas at gmail.com (bakwas bakwas) Date: Sun, 29 Jun 2008 08:08:31 +0530 Subject: [support] Navigation Block has vanished In-Reply-To: <486679AE.1090209@zmsl.com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> <486679AE.1090209@zmsl.com> Message-ID: On Sat, Jun 28, 2008 at 11:19 PM, Daniel Carrera wrote: > I go to Admin > Content and I see a list of posts. But I don't see any > additional link that says Posts or a button that says "Rebuild Permissions". What you are looking for is Admin > Content Management > Post Settings > Rebuild Permissions. -- -- B From carlos.zun at gmail.com Sun Jun 29 07:26:18 2008 From: carlos.zun at gmail.com (Carlos Zuniga) Date: Sun, 29 Jun 2008 02:26:18 -0500 Subject: [support] Modify template of node/add/something? Message-ID: Hi, I want to use a bookmarklet that opens a window in node/add/bookmark with the url of the page where I clicked the bookmarklet in a url field I've created with cck. So the bookmarklet opens something like this: http://example.net/node/add/bookmarket?url=http%3A//www.google.com/ Now I want to know if there's a way to modify the template of the node add page so I can populate the url field with that variable. Is it possible? -- If you're not making art with the intention of having it copied, you're not really making art for the 21th century. From daniel.carrera at zmsl.com Sun Jun 29 10:28:29 2008 From: daniel.carrera at zmsl.com (Daniel Carrera) Date: Sun, 29 Jun 2008 12:28:29 +0200 Subject: [support] Navigation Block has vanished In-Reply-To: References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> <486679AE.1090209@zmsl.com> Message-ID: <486763CD.3080808@zmsl.com> I don't understand. Magically the website started working again. I swear I didn't do anything. It wasn't working when I went to bed, and now it is working again. To reply to Bakwas' post: My Drupal 4.7 Admin menu doesn't have a content management option, just Content. And Content doesn't have post settings. There is Admin > Settings > Posts, but that's an unrelated page. It has things like the number of characters in a trimmed post, but nothing about permissions. Anyways, thanks for trying to help. I'll start planning to move to Drupal 5 in the future. Cheers, Daniel. bakwas bakwas wrote: > On Sat, Jun 28, 2008 at 11:19 PM, Daniel Carrera > wrote: > >> I go to Admin > Content and I see a list of posts. But I don't see any >> additional link that says Posts or a button that says "Rebuild Permissions". > > What you are looking for is Admin > Content Management > Post Settings >> Rebuild Permissions. From earnie at users.sourceforge.net Sun Jun 29 14:23:25 2008 From: earnie at users.sourceforge.net (Earnie Boyd) Date: Sun, 29 Jun 2008 10:23:25 -0400 Subject: [support] Navigation Block has vanished In-Reply-To: <486763CD.3080808@zmsl.com> References: <48663075.9050706@zmsl.com> <48667347.7080305@zmsl.com> <000301c8d944$1aa25970$4fe70c50$@com> <486679AE.1090209@zmsl.com> <486763CD.3080808@zmsl.com> Message-ID: <20080629102325.k2c2ba5x130gog8k@mail.progw.org> Quoting Daniel Carrera : > > Anyways, thanks for trying to help. I'll start planning to move to > Drupal 5 in the future. > You should do that ASAP. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/ From brian at brianpuccio.net Sun Jun 29 16:29:51 2008 From: brian at brianpuccio.net (Brian Puccio) Date: Sun, 29 Jun 2008 12:29:51 -0400 Subject: [support] Modify template of node/add/something? In-Reply-To: References: Message-ID: On Jun 29, 2008, at 3:26 AM, Carlos Zuniga wrote: > Hi, I want to use a bookmarklet that opens a window in > node/add/bookmark with the url of the page where I clicked the > bookmarklet in a url field I've created with cck. > > So the bookmarklet opens something like this: > http://example.net/node/add/bookmarket?url=http%3A//www.google.com/ > > Now I want to know if there's a way to modify the template of the node > add page so I can populate the url field with that variable. > > Is it possible? You want http://drupal.org/project/prepopulate From bharanikumariyerphp at gmail.com Sun Jun 29 17:11:43 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Sun, 29 Jun 2008 22:41:43 +0530 Subject: [support] insert node with special character Message-ID: <2240033d0806291011w5734ac6dhac8148411055c65f@mail.gmail.com> Hi dear i have created the article content, which file perform the insert operafiltion... tell with file name and line number -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080629/c25be96c/attachment.htm From info at koba.be Sun Jun 29 18:15:43 2008 From: info at koba.be (KOBA | Hans Rossel) Date: Sun, 29 Jun 2008 20:15:43 +0200 Subject: [support] Different stylesheet based on path In-Reply-To: References: <4862D248.3030504@opensourcery.com> Message-ID: <51a9b8330806291115p61b2bca0u6debfc01d4db1e70@mail.gmail.com> 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 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/ ] > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080629/18cd7ec4/attachment.htm From cog.rusty at gmail.com Sun Jun 29 22:33:05 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Mon, 30 Jun 2008 01:33:05 +0300 Subject: [support] Different stylesheet based on path In-Reply-To: <51a9b8330806291115p61b2bca0u6debfc01d4db1e70@mail.gmail.com> References: <4862D248.3030504@opensourcery.com> <51a9b8330806291115p61b2bca0u6debfc01d4db1e70@mail.gmail.com> Message-ID: 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/ ] > From bharanikumariyerphp at gmail.com Mon Jun 30 11:37:53 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 30 Jun 2008 17:07:53 +0530 Subject: [support] change node name Message-ID: <2240033d0806300437s47771e6esdb66b726967d5e1e@mail.gmail.com> Hi dear am having the three content type, are page,story,event, each content type holding the more then 50 contents, that is story contents is 70, page contents is 80, event content is 80, So what happen u see when ever i click the any content , Then the URL is looked like this manner "localhost/demo/node/20", for page type ,and for story type and event type, for all type , the url is same like " Localhost/demo/node/* " So my thing is, I want to change the node to depends on the content type, Like when user click page replated content , then URL must be like this manner "localhost/demo/page/20" and for story "localhost/demo/story/75" like this maner, i want to change the node ... any ide afor this situation... Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080630/981e15f6/attachment-0001.htm From fredthejonester at gmail.com Mon Jun 30 11:39:03 2008 From: fredthejonester at gmail.com (Fred Jones) Date: Mon, 30 Jun 2008 13:39:03 +0200 Subject: [support] change node name In-Reply-To: <2240033d0806300437s47771e6esdb66b726967d5e1e@mail.gmail.com> References: <2240033d0806300437s47771e6esdb66b726967d5e1e@mail.gmail.com> Message-ID: <177c0a10806300439j53729fe0vda15df7e25d1013b@mail.gmail.com> > Like when user click page replated content , then URL must be like this > manner "localhost/demo/page/20" > > and for story "localhost/demo/story/75" > > like this maner, i want to change the node ... > > any ide afor this situation... http://drupal.org/project/Pathauto From simone.dalmaso at juvox.it Mon Jun 30 11:41:43 2008 From: simone.dalmaso at juvox.it (Simone Dal Maso) Date: Mon, 30 Jun 2008 13:41:43 +0200 Subject: [support] change node name References: <2240033d0806300437s47771e6esdb66b726967d5e1e@mail.gmail.com> Message-ID: <004701c8daa6$454168c0$06000a0a@csa> I think with pathauto module you solve this situation. Bye. -- Simone Dal Maso. Tutti i miei progetti: Spazioausili: consultazione, ricerca e commenti sugli ausili informatici per non vedenti: http://www.spazioausili.net homepage sviluppo comunita' NVDA: www.nvda.it Visita il mio blog! http://simodm.blogspot.com homepage progetto musicale: www.juvox.it ----- Original Message ----- From: "bharani kumar" To: Sent: Monday, June 30, 2008 1:37 PM Subject: [support] change node name > Hi dear > > > am having the three content type, are page,story,event, > > each content type holding the more then 50 contents, > > that is story contents is 70, page contents is 80, event content is 80, > > So what happen u see when ever i click the any content , > > Then the URL is looked like this manner "localhost/demo/node/20", > > for page type ,and for story type and event type, for all type , the url is > same like " Localhost/demo/node/* " > > > So my thing is, > > > I want to change the node to depends on the content type, > > Like when user click page replated content , then URL must be like this > manner "localhost/demo/page/20" > > and for story "localhost/demo/story/75" > > like this maner, i want to change the node ... > > any ide afor this situation... > > > Thanks in advance > -------------------------------------------------------------------------------- > -- > [ Drupal support list | http://lists.drupal.org/ ] From bharanikumariyerphp at gmail.com Mon Jun 30 13:10:55 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 30 Jun 2008 18:40:55 +0530 Subject: [support] Change node name Message-ID: <2240033d0806300610n4d69076cj8137ea4ee405ece3@mail.gmail.com> Is there any way to add a new page.tpl.php to my own customized module in drupal? This is because i want to display a item lists in a separate page.tpl.php file. Is it possible in drupal? On Mon, Jun 30, 2008 at 5:11 PM, Simone Dal Maso wrote: > I think with pathauto module you solve this situation. > Bye. > > > -- > Simone Dal Maso. > Tutti i miei progetti: > Spazioausili: consultazione, ricerca e commenti sugli ausili informatici > per non vedenti: > http://www.spazioausili.net > > > homepage sviluppo comunita' NVDA: > www.nvda.it > Visita il mio blog! > http://simodm.blogspot.com > homepage progetto musicale: > www.juvox.it > > > ----- Original Message ----- > From: "bharani kumar" > To: > Sent: Monday, June 30, 2008 1:37 PM > Subject: [support] change node name > > > > Hi dear > > > > > > am having the three content type, are page,story,event, > > > > each content type holding the more then 50 contents, > > > > that is story contents is 70, page contents is 80, event content is 80, > > > > So what happen u see when ever i click the any content , > > > > Then the URL is looked like this manner "localhost/demo/node/20", > > > > for page type ,and for story type and event type, for all type , the url > is > > same like " Localhost/demo/node/* " > > > > > > So my thing is, > > > > > > I want to change the node to depends on the content type, > > > > Like when user click page replated content , then URL must be like this > > manner "localhost/demo/page/20" > > > > and for story "localhost/demo/story/75" > > > > like this maner, i want to change the node ... > > > > any ide afor this situation... > > > > > > Thanks in advance > > > > > > -------------------------------------------------------------------------------- > > > > -- > > [ 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/20080630/24540af9/attachment.htm From bharanikumariyerphp at gmail.com Mon Jun 30 14:05:38 2008 From: bharanikumariyerphp at gmail.com (bharani kumar) Date: Mon, 30 Jun 2008 19:35:38 +0530 Subject: [support] reg: contents Message-ID: <2240033d0806300705l4f44f7e0mea7aa6de2640fd99@mail.gmail.com> How can i add the most viewed, most emailed, top rated functionality to the contents? This is because i need to list the contents based on most viewed, emailed, top rated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/support/attachments/20080630/5955cbf2/attachment.htm From carlos.zun at gmail.com Mon Jun 30 16:04:09 2008 From: carlos.zun at gmail.com (Carlos Zuniga) Date: Mon, 30 Jun 2008 11:04:09 -0500 Subject: [support] Modify template of node/add/something? In-Reply-To: References: Message-ID: On Sun, Jun 29, 2008 at 11:29 AM, Brian Puccio wrote: > On Jun 29, 2008, at 3:26 AM, Carlos Zuniga wrote: > >> Hi, I want to use a bookmarklet that opens a window in >> node/add/bookmark with the url of the page where I clicked the >> bookmarklet in a url field I've created with cck. >> >> So the bookmarklet opens something like this: >> http://example.net/node/add/bookmarket?url=http%3A//www.google.com/ >> >> Now I want to know if there's a way to modify the template of the node >> add page so I can populate the url field with that variable. >> >> Is it possible? > > You want http://drupal.org/project/prepopulate Great, thank you! Exactly what I needed. -- Video Games used to be bad graphics with great stories, but now it's reversed. From cleveland at winnefox.org Mon Jun 30 16:15:49 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Mon, 30 Jun 2008 11:15:49 -0500 Subject: [support] Different stylesheet based on path In-Reply-To: Message-ID: 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: 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 From cog.rusty at gmail.com Mon Jun 30 16:37:36 2008 From: cog.rusty at gmail.com (Cog Rusty) Date: Mon, 30 Jun 2008 19:37:36 +0300 Subject: [support] Different stylesheet based on path In-Reply-To: References: Message-ID: 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/ ] > From cleveland at winnefox.org Mon Jun 30 23:09:58 2008 From: cleveland at winnefox.org (Jody Cleveland) Date: Mon, 30 Jun 2008 18:09:58 -0500 Subject: [support] Different stylesheet based on path In-Reply-To: Message-ID: 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