From vishakhatambe.mcs at gmail.com Tue Aug 19 08:05:53 2008 From: vishakhatambe.mcs at gmail.com (Vishakha Tambe) Date: Tue, 19 Aug 2008 13:35:53 +0530 Subject: [themes] Creating and updating theme Message-ID: Hi, I am vey new person using drupal. I am just trying to update the existing drupl theme. But i have achieved only changing the background color. I want to give complete new look to the theme. Can anybody help me out? I've tried taking help on google, all efforts were in vain. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/21a66df4/attachment.htm From theswolf at gmail.com Tue Aug 19 08:07:39 2008 From: theswolf at gmail.com (Christian Geymonat) Date: Tue, 19 Aug 2008 10:07:39 +0200 Subject: [themes] Creating and updating theme In-Reply-To: References: Message-ID: Hello, I'would be very happy to help you, just tell me :) Chris. 2008/8/19 Vishakha Tambe > Hi, > I am vey new person using drupal. I am just trying to update the existing > drupl theme. But i have achieved only changing the background color. I want > to give complete new look to the theme. Can anybody help me out? I've tried > taking help on google, all efforts were in vain. > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/7e535524/attachment.htm From vishakhatambe.mcs at gmail.com Tue Aug 19 08:27:46 2008 From: vishakhatambe.mcs at gmail.com (Vishakha Tambe) Date: Tue, 19 Aug 2008 13:57:46 +0530 Subject: [themes] Smarty Theme engine Message-ID: Hi, Can anybody tell me how to use Smarty Theme Engine. I'v copied it into drupal-5.9/themes/engines/. But i dont know how to use it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/f0f1d1af/attachment.htm From theswolf at gmail.com Tue Aug 19 08:37:37 2008 From: theswolf at gmail.com (Christian Geymonat) Date: Tue, 19 Aug 2008 10:37:37 +0200 Subject: [themes] Smarty Theme engine In-Reply-To: References: Message-ID: I don't know Smarty Theme Engine, I use PHPTemplate as Drupal Native engine to develop and port themes. The easy way to understand theming in drupal, in my opinion, is to start porting a well-known theme, the first times it's not so easy but from the 4th or 5h theme is very very easy. Cheers, Chris ;) 2008/8/19 Vishakha Tambe > Hi, > Can anybody tell me how to use Smarty Theme Engine. I'v copied it into > drupal-5.9/themes/engines/. But i dont know how to use it. > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/7da59187/attachment.htm From stingna at raincitystudios.com Tue Aug 19 08:46:41 2008 From: stingna at raincitystudios.com (Stingna Zhou) Date: Tue, 19 Aug 2008 16:46:41 +0800 Subject: [themes] Creating and updating theme In-Reply-To: References: Message-ID: Hi, I'm doing the theming for drupal, and have more than 7 years doing web design and theming, I think I can help u. Feel free to contact me~~~ Stingna mail: stingna at gmail.com On Tue, Aug 19, 2008 at 4:07 PM, Christian Geymonat wrote: > Hello, I'would be very happy to help you, just tell me :) > Chris. > > 2008/8/19 Vishakha Tambe > >> Hi, >> I am vey new person using drupal. I am just trying to update the >> existing drupl theme. But i have achieved only changing the background >> color. I want to give complete new look to the theme. Can anybody help me >> out? I've tried taking help on google, all efforts were in vain. >> >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes >> >> > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -- Stingna Raincity Studios Inc. Designer / Themer M: 136 819 000 65 E: stingna at raincitystudios.com W: www.raincitystudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/db54cd47/attachment.htm From stingna at raincitystudios.com Tue Aug 19 08:49:09 2008 From: stingna at raincitystudios.com (Stingna Zhou) Date: Tue, 19 Aug 2008 16:49:09 +0800 Subject: [themes] Smarty Theme engine In-Reply-To: References: Message-ID: Hi, The smarty Theme engine is not support Durpal 5.x, it works on Drupal 6.x On Tue, Aug 19, 2008 at 4:37 PM, Christian Geymonat wrote: > I don't know Smarty Theme Engine, I use PHPTemplate as Drupal Native engine > to develop and port themes. > The easy way to understand theming in drupal, in my opinion, is to start > porting a well-known theme, the first times it's not > so easy but from the 4th or 5h theme is very very easy. > > Cheers, Chris ;) > > > 2008/8/19 Vishakha Tambe > >> Hi, >> Can anybody tell me how to use Smarty Theme Engine. I'v copied it into >> drupal-5.9/themes/engines/. But i dont know how to use it. >> >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes >> >> > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -- Stingna Raincity Studios Inc. Designer / Themer M: 136 819 000 65 E: stingna at raincitystudios.com W: www.raincitystudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/79b7199d/attachment.htm From adrinux at perlucida.com Tue Aug 19 09:20:17 2008 From: adrinux at perlucida.com (Adrian Simmons) Date: Tue, 19 Aug 2008 10:20:17 +0100 Subject: [themes] Smarty Theme engine In-Reply-To: References: Message-ID: <48AA9051.3040709@perlucida.com> Vishakha Tambe wrote: > Can anybody tell me how to use Smarty Theme Engine. I'v copied it into > drupal-5.9/themes/engines/. But i dont know how to use it. Assuming you've downloaded the correct version of the smarty engine for your drupal version, you now create your theme using smarty tags. So make a folder in sites/all/themes that's the name of your theme and get coding. If you don't know how to use smarty at all then I recommend you don't bother to learn, just learn some basic php required to use the Drupal's phptemplate engine - there's lots more documentation and help available for phptemplate. For a beginner the only difference between php and smarty is angle brackets vs curly brackets for { smarty }. -- Adrian Simmons (aka adrinux) e-mail From adrinux at perlucida.com Tue Aug 19 09:33:16 2008 From: adrinux at perlucida.com (Adrian Simmons) Date: Tue, 19 Aug 2008 10:33:16 +0100 Subject: [themes] Creating and updating theme In-Reply-To: References: Message-ID: <48AA935C.5070503@perlucida.com> Vishakha Tambe wrote: > I am vey new person using drupal. I am just trying to update the > existing drupl theme. But i have achieved only changing the background > color. I want to give complete new look to the theme. Can anybody help > me out? I've tried taking help on google, all efforts were in vain. Drupal theme's are built using HTML and CSS (with a smattering of PHP and Javascript), you need to start by learning those basics. Some tutorials: http://www.w3schools.com/xhtml/default.asp http://www.w3schools.com/css/default.asp Some references: http://reference.sitepoint.com/html http://reference.sitepoint.com/css And when you have a grasp of the basics then look at the Drupal theme handbook for version 5: http://drupal.org/theme-guide/5 or 6: http://drupal.org/theme-guide Good luck. -- Adrian Simmons (aka adrinux) e-mail From stingna at raincitystudios.com Tue Aug 19 09:37:39 2008 From: stingna at raincitystudios.com (Stingna Zhou) Date: Tue, 19 Aug 2008 17:37:39 +0800 Subject: [themes] Smarty Theme engine In-Reply-To: <48AA9051.3040709@perlucida.com> References: <48AA9051.3040709@perlucida.com> Message-ID: yes, Vishakha is right, I just mixed the smart theme engine to another one, and don't forget to change the 'theme_' to your theme name. On Tue, Aug 19, 2008 at 5:20 PM, Adrian Simmons wrote: > Vishakha Tambe wrote: > > Can anybody tell me how to use Smarty Theme Engine. I'v copied it into > > drupal-5.9/themes/engines/. But i dont know how to use it. > Assuming you've downloaded the correct version of the smarty engine for > your > drupal version, you now create your theme using smarty tags. So make a > folder in sites/all/themes that's the name of your theme and get coding. > > If you don't know how to use smarty at all then I recommend you don't > bother > to learn, just learn some basic php required to use the Drupal's > phptemplate > engine - there's lots more documentation and help available for > phptemplate. > > For a beginner the only difference between php and smarty is angle brackets > vs curly brackets for { smarty }. > > > -- > Adrian Simmons (aka adrinux) > e-mail > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -- Stingna Raincity Studios Inc. Designer / Themer M: 136 819 000 65 E: stingna at raincitystudios.com W: www.raincitystudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/685e54eb/attachment.htm From Agus.Hardjanto at ytljt.com Tue Aug 19 09:02:10 2008 From: Agus.Hardjanto at ytljt.com (Agus.Hardjanto at ytljt.com) Date: Tue, 19 Aug 2008 16:02:10 +0700 Subject: [themes] Agus Hardjanto is out of the office. Message-ID: I will be out of the office starting 08/14/2008 and will not return until 08/20/2008. I will respond to your message when I return. You may reach me at my mobilephone 0811356668. From stingna at raincitystudios.com Tue Aug 19 09:44:37 2008 From: stingna at raincitystudios.com (Stingna Zhou) Date: Tue, 19 Aug 2008 17:44:37 +0800 Subject: [themes] Creating and updating theme In-Reply-To: <48AA935C.5070503@perlucida.com> References: <48AA935C.5070503@perlucida.com> Message-ID: sitepoint.com is a good site to learn web design, it has own books for web area. you also can download lots of PDF files on that site. if u need to search something, like how to write php, www.php.net is also a choice. On Tue, Aug 19, 2008 at 5:33 PM, Adrian Simmons wrote: > Vishakha Tambe wrote: > > I am vey new person using drupal. I am just trying to update the > > existing drupl theme. But i have achieved only changing the background > > color. I want to give complete new look to the theme. Can anybody help > > me out? I've tried taking help on google, all efforts were in vain. > > Drupal theme's are built using HTML and CSS (with a smattering of PHP and > Javascript), you need to start by learning those basics. > > Some tutorials: > http://www.w3schools.com/xhtml/default.asp > http://www.w3schools.com/css/default.asp > > Some references: > http://reference.sitepoint.com/html > http://reference.sitepoint.com/css > > And when you have a grasp of the basics then look at the Drupal theme > handbook for version 5: > http://drupal.org/theme-guide/5 > > or 6: > http://drupal.org/theme-guide > > Good luck. > > -- > Adrian Simmons (aka adrinux) > e-mail > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -- Stingna Raincity Studios Inc. Designer / Themer M: 136 819 000 65 E: stingna at raincitystudios.com W: www.raincitystudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/fde5fee6/attachment.htm From Alcindo.DaCosta at edipresse.ch Tue Aug 19 13:07:22 2008 From: Alcindo.DaCosta at edipresse.ch (Da Costa Alcindo) Date: Tue, 19 Aug 2008 15:07:22 +0200 Subject: [themes] Secondary link References: Message-ID: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> Hi! when I display the details of an article, the menu disappears. someone knows how to make it appear? thx From advancec at gmail.com Tue Aug 19 13:31:14 2008 From: advancec at gmail.com (chi i) Date: Tue, 19 Aug 2008 09:31:14 -0400 Subject: [themes] Secondary link In-Reply-To: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> Message-ID: Do you have it set to display on all pages? On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo wrote: > Hi! > > when I display the details of an article, the menu disappears. > someone knows how to make it appear? > > thx > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/3177a491/attachment.htm From Alcindo.DaCosta at edipresse.ch Tue Aug 19 13:48:44 2008 From: Alcindo.DaCosta at edipresse.ch (Da Costa Alcindo) Date: Tue, 19 Aug 2008 15:48:44 +0200 Subject: [themes] Secondary link References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> Message-ID: <70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> Yes, in all details. De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:31 ? : A list for theme developers Objet : Re: [themes] Secondary link Do you have it set to display on all pages? On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo wrote: Hi! when I display the details of an article, the menu disappears. someone knows how to make it appear? thx _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/0a9337a5/attachment-0001.htm From advancec at gmail.com Tue Aug 19 13:54:54 2008 From: advancec at gmail.com (chi i) Date: Tue, 19 Aug 2008 09:54:54 -0400 Subject: [themes] Secondary link In-Reply-To: <70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> <70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> Message-ID: And the permissions are set correctly? On Tue, Aug 19, 2008 at 9:48 AM, Da Costa Alcindo wrote: > Yes, in all details. > > > > > > *De :* themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] *De la > part de* chi i > *Envoy? :* mardi, 19. ao?t 2008 15:31 > *? :* A list for theme developers > *Objet :* Re: [themes] Secondary link > > > > Do you have it set to display on all pages? > > On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo > wrote: > > Hi! > > when I display the details of an article, the menu disappears. > someone knows how to make it appear? > > thx > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/8acb1202/attachment.htm From Alcindo.DaCosta at edipresse.ch Tue Aug 19 13:56:25 2008 From: Alcindo.DaCosta at edipresse.ch (Da Costa Alcindo) Date: Tue, 19 Aug 2008 15:56:25 +0200 Subject: [themes] Secondary link References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net><70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> Message-ID: <70D65090AAD69746ABB882EE6F85C4FD0913D736@LSMAIL01.edipresse.net> Yes, all users have the permissions to see the menu De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:55 ? : A list for theme developers Objet : Re: [themes] Secondary link And the permissions are set correctly? On Tue, Aug 19, 2008 at 9:48 AM, Da Costa Alcindo wrote: Yes, in all details. De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:31 ? : A list for theme developers Objet : Re: [themes] Secondary link Do you have it set to display on all pages? On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo wrote: Hi! when I display the details of an article, the menu disappears. someone knows how to make it appear? thx _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/017d396b/attachment.htm From Alcindo.DaCosta at edipresse.ch Tue Aug 19 14:02:34 2008 From: Alcindo.DaCosta at edipresse.ch (Da Costa Alcindo) Date: Tue, 19 Aug 2008 16:02:34 +0200 Subject: [themes] Secondary link References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net><70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> Message-ID: <70D65090AAD69746ABB882EE6F85C4FD0913D737@LSMAIL01.edipresse.net> In page-node.tpl.php var_dump($secondary_links); == NULL and in page.tpl.php var_dump($secondary_links); == array(6) { ["menu-2-1-85"]=> array(3) { ["title"]=> string(4) "Actu" ["href"]=> string(16) "taxonomy/term/20" ["attributes"]=> array(0) { } } ["menu-2-2-85"]=> array(3) { ["title"]=> string(15) "Vid?os et sons" ["href"]=> string(6) "actu-2" ["attributes"]=> array(0) { } } ["menu-2-3-85"]=> array(3) { ["title"]=> string(17) "Galeries d'images" ["href"]=> string(15) "galeries/geneve" ["attributes"]=> array(0) { } } ["menu-2-4-85"]=> array(3) { ["title"]=> string(7) "M?t?o" ["href"]=> string(39) "http://www.edicom.ch/fr/meteo/index.php" ["attributes"]=> array(0) { } } ["menu-2-5-85"]=> array(3) { ["title"]=> string(6) "Forums" ["href"]=> string(8) "forum/48" ["attributes"]=> array(0) { } } ["menu-2-6-85"]=> array(3) { ["title"]=> string(8) "Dossiers" ["href"]=> string(15) "dossiers/geneve" ["attributes"]=> array(0) { } } } De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:55 ? : A list for theme developers Objet : Re: [themes] Secondary link And the permissions are set correctly? On Tue, Aug 19, 2008 at 9:48 AM, Da Costa Alcindo wrote: Yes, in all details. De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:31 ? : A list for theme developers Objet : Re: [themes] Secondary link Do you have it set to display on all pages? On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo wrote: Hi! when I display the details of an article, the menu disappears. someone knows how to make it appear? thx _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/fc3a27eb/attachment-0001.htm From advancec at gmail.com Tue Aug 19 14:05:31 2008 From: advancec at gmail.com (chi i) Date: Tue, 19 Aug 2008 10:05:31 -0400 Subject: [themes] Secondary link In-Reply-To: <70D65090AAD69746ABB882EE6F85C4FD0913D737@LSMAIL01.edipresse.net> References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net> <70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net> <70D65090AAD69746ABB882EE6F85C4FD0913D737@LSMAIL01.edipresse.net> Message-ID: BTW you wouldnt happen to be using localizer would you On Tue, Aug 19, 2008 at 10:02 AM, Da Costa Alcindo wrote: > In page-node.tpl.php > > > > var_dump($secondary_links); == NULL > > > > and in page.tpl.php > > > > var_dump($secondary_links); == array(6) { ["menu-2-1-85"]=> array(3) { > ["title"]=> string(4) "Actu" ["href"]=> string(16) "taxonomy/term/20" > ["attributes"]=> array(0) { } } ["menu-2-2-85"]=> array(3) { ["title"]=> > string(15) "Vid?os et sons" ["href"]=> string(6) "actu-2" ["attributes"]=> > array(0) { } } ["menu-2-3-85"]=> array(3) { ["title"]=> string(17) "Galeries > d'images" ["href"]=> string(15) "galeries/geneve" ["attributes"]=> array(0) > { } } ["menu-2-4-85"]=> array(3) { ["title"]=> string(7) "M?t?o" ["href"]=> > string(39) "http://www.edicom.ch/fr/meteo/index.php" ["attributes"]=> > array(0) { } } ["menu-2-5-85"]=> array(3) { ["title"]=> string(6) "Forums" > ["href"]=> string(8) "forum/48" ["attributes"]=> array(0) { } } > ["menu-2-6-85"]=> array(3) { ["title"]=> string(8) "Dossiers" ["href"]=> > string(15) "dossiers/geneve" ["attributes"]=> array(0) { } } } > > > > > > > > > > *De :* themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] *De la > part de* chi i > *Envoy? :* mardi, 19. ao?t 2008 15:55 > *? :* A list for theme developers > *Objet :* Re: [themes] Secondary link > > > > And the permissions are set correctly? > > On Tue, Aug 19, 2008 at 9:48 AM, Da Costa Alcindo > wrote: > > Yes, in all details. > > > > > > *De :* themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] *De la > part de* chi i > *Envoy? :* mardi, 19. ao?t 2008 15:31 > *? :* A list for theme developers > *Objet :* Re: [themes] Secondary link > > > > Do you have it set to display on all pages? > > On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo > wrote: > > Hi! > > when I display the details of an article, the menu disappears. > someone knows how to make it appear? > > thx > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > > > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/99c81380/attachment.htm From Alcindo.DaCosta at edipresse.ch Tue Aug 19 14:07:59 2008 From: Alcindo.DaCosta at edipresse.ch (Da Costa Alcindo) Date: Tue, 19 Aug 2008 16:07:59 +0200 Subject: [themes] Secondary link References: <70D65090AAD69746ABB882EE6F85C4FD0913D734@LSMAIL01.edipresse.net><70D65090AAD69746ABB882EE6F85C4FD0913D735@LSMAIL01.edipresse.net><70D65090AAD69746ABB882EE6F85C4FD0913D737@LSMAIL01.edipresse.net> Message-ID: <70D65090AAD69746ABB882EE6F85C4FD0913D738@LSMAIL01.edipresse.net> I have not understood? (i speak french, and a litle english) De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 16:06 ? : A list for theme developers Objet : Re: [themes] Secondary link BTW you wouldnt happen to be using localizer would you On Tue, Aug 19, 2008 at 10:02 AM, Da Costa Alcindo wrote: In page-node.tpl.php var_dump($secondary_links); == NULL and in page.tpl.php var_dump($secondary_links); == array(6) { ["menu-2-1-85"]=> array(3) { ["title"]=> string(4) "Actu" ["href"]=> string(16) "taxonomy/term/20" ["attributes"]=> array(0) { } } ["menu-2-2-85"]=> array(3) { ["title"]=> string(15) "Vid?os et sons" ["href"]=> string(6) "actu-2" ["attributes"]=> array(0) { } } ["menu-2-3-85"]=> array(3) { ["title"]=> string(17) "Galeries d'images" ["href"]=> string(15) "galeries/geneve" ["attributes"]=> array(0) { } } ["menu-2-4-85"]=> array(3) { ["title"]=> string(7) "M?t?o" ["href"]=> string(39) "http://www.edicom.ch/fr/meteo/index.php" ["attributes"]=> array(0) { } } ["menu-2-5-85"]=> array(3) { ["title"]=> string(6) "Forums" ["href"]=> string(8) "forum/48" ["attributes"]=> array(0) { } } ["menu-2-6-85"]=> array(3) { ["title"]=> string(8) "Dossiers" ["href"]=> string(15) "dossiers/geneve" ["attributes"]=> array(0) { } } } De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:55 ? : A list for theme developers Objet : Re: [themes] Secondary link And the permissions are set correctly? On Tue, Aug 19, 2008 at 9:48 AM, Da Costa Alcindo wrote: Yes, in all details. De : themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] De la part de chi i Envoy? : mardi, 19. ao?t 2008 15:31 ? : A list for theme developers Objet : Re: [themes] Secondary link Do you have it set to display on all pages? On Tue, Aug 19, 2008 at 9:07 AM, Da Costa Alcindo wrote: Hi! when I display the details of an article, the menu disappears. someone knows how to make it appear? thx _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes _______________________________________________ themes mailing list themes at drupal.org http://lists.drupal.org/mailman/listinfo/themes -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080819/ed54d3e4/attachment.htm From vishakhatambe.mcs at gmail.com Wed Aug 20 05:01:47 2008 From: vishakhatambe.mcs at gmail.com (Vishakha Tambe) Date: Wed, 20 Aug 2008 10:31:47 +0530 Subject: [themes] Theming in Drupal Message-ID: Hi, Thanx for your help. The information you have given is really helpful. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080820/31fcf387/attachment-0001.htm From stingna at raincitystudios.com Wed Aug 20 06:53:14 2008 From: stingna at raincitystudios.com (Stingna Zhou) Date: Wed, 20 Aug 2008 14:53:14 +0800 Subject: [themes] Theming in Drupal In-Reply-To: References: Message-ID: no problem : ) On Wed, Aug 20, 2008 at 1:01 PM, Vishakha Tambe wrote: > Hi, > Thanx for your help. The information you have given is really helpful. > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes > > -- Stingna Raincity Studios Inc. Designer / Themer M: 136 819 000 65 E: stingna at raincitystudios.com W: www.raincitystudios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080820/49b7fdb6/attachment.htm From max.linuxtime at gmail.com Wed Aug 20 12:07:14 2008 From: max.linuxtime at gmail.com (Massimiliano Marini) Date: Wed, 20 Aug 2008 14:07:14 +0200 Subject: [themes] How to include and use jquery plugin in my theme Message-ID: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> Hi all, I'm working on a new relase of my theme for Drupal 6.x and all the blocks have rounded corners. I want to use this plugin to achieve this. http://malsup.com/jquery/corner/ I don't know where I must put this script, I don't know how to include this script inside my theme and then after how can I use it. Someone can help me to achieve this with some links, resources, suggestions? Thanks -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay From kkaefer at gmail.com Wed Aug 20 12:51:14 2008 From: kkaefer at gmail.com (=?ISO-8859-1?Q?Konstantin_K=E4fer?=) Date: Wed, 20 Aug 2008 14:51:14 +0200 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> Message-ID: http://api.drupal.org/api/function/drupal_add_js As soon as you add a JS file with that function, jQuery gets added automatically. Konstantin On 20.08.2008, at 14:07, Massimiliano Marini wrote: > Hi all, > > I'm working on a new relase of my theme for Drupal 6.x and all the > blocks have rounded corners. > > I want to use this plugin to achieve this. > > http://malsup.com/jquery/corner/ > > I don't know where I must put this script, I don't know how to include > this script inside my theme and then after how can I use it. > > Someone can help me to achieve this with some links, resources, > suggestions? > > Thanks > -- > Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ > "It's easier to invent the future than to predict it." -- Alan Kay > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From max.linuxtime at gmail.com Wed Aug 20 22:50:41 2008 From: max.linuxtime at gmail.com (Massimiliano Marini) Date: Thu, 21 Aug 2008 00:50:41 +0200 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> Message-ID: <441bcae80808201550j7824da2eh3cf9aa2711d98edd@mail.gmail.com> Hi Konstantin, > http://api.drupal.org/api/function/drupal_add_js > > As soon as you add a JS file with that function, jQuery gets added > automatically. Thanks 1k -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay From max.linuxtime at gmail.com Wed Aug 20 23:50:42 2008 From: max.linuxtime at gmail.com (Massimiliano Marini) Date: Thu, 21 Aug 2008 01:50:42 +0200 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> Message-ID: <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> > As soon as you add a JS file with that function, jQuery gets added > automatically. where I must wrote drupal_add_js? I've tried into my page.tpl.php example: but it doesn't work ... why? Where I'm in error? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay From forums at ipwa.net Thu Aug 21 00:44:08 2008 From: forums at ipwa.net (Nicolas Borda) Date: Thu, 21 Aug 2008 01:44:08 +0100 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> Message-ID: in your template php: drupal_add_js(path_to_theme().'/js/plugin.js', 'theme', 'header'); if you want it for a specific node: /** * Add JavaScript */ if ($nid = 14){ drupal_add_js(path_to_theme().'/js/plugin.js', 'theme', 'header'); } you need to add your plugin to a folder named js in your theme folder. HTH Nicolas On 21 Aug 2008, at 00:50, Massimiliano Marini wrote: >> As soon as you add a JS file with that function, jQuery gets added >> automatically. > > where I must wrote drupal_add_js? > > I've tried into my page.tpl.php > > example: > > but it doesn't work ... why? Where I'm in error? > > -- > Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ > "It's easier to invent the future than to predict it." -- Alan Kay > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes -- Nicolas Borda ------------------------- http://nic.ipwa.net/ http://www.linkedin.com/in/nborda -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080821/af541999/attachment.htm From max.linuxtime at gmail.com Sun Aug 24 09:04:29 2008 From: max.linuxtime at gmail.com (Massimiliano Marini) Date: Sun, 24 Aug 2008 11:04:29 +0200 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> Message-ID: <441bcae80808240204j57ca3db3v1a8d25fba5b59e33@mail.gmail.com> Hi Nicolas, > in your template php: > drupal_add_js(path_to_theme().'/js/plugin.js', 'theme', 'header'); > if you want it for a specific node: > /** > * Add JavaScript > */ > if ($nid = 14){ > drupal_add_js(path_to_theme().'/js/plugin.js', 'theme', 'header'); > } > > you need to add your plugin to a folder named js in your theme folder. It works. Thanks for your great help. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay From kkaefer at gmail.com Sun Aug 24 13:28:15 2008 From: kkaefer at gmail.com (=?ISO-8859-1?Q?Konstantin_K=E4fer?=) Date: Sun, 24 Aug 2008 15:28:15 +0200 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> Message-ID: Hi, page.tpl.php is too late because the scripts are already generated (and available in $scripts) in that template. You should add it in either a module or a preprocess function in template.php. Konstantin On 21.08.2008, at 01:50, Massimiliano Marini wrote: >> As soon as you add a JS file with that function, jQuery gets added >> automatically. > > where I must wrote drupal_add_js? > > I've tried into my page.tpl.php > > example: > > but it doesn't work ... why? Where I'm in error? > > -- > Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ > "It's easier to invent the future than to predict it." -- Alan Kay > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From sergey at seoecom.com Sun Aug 24 14:28:25 2008 From: sergey at seoecom.com (Sergei Stryukov) Date: Sun, 24 Aug 2008 17:28:25 +0300 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <441bcae80808201650o662dff76ve7816333581c9d94@mail.gmail.com> Message-ID: <1410430721.20080824172825@seoecom.com> Hello Konstantin, You can include this script in page.tpl.php: Add this code before tag. Sunday, August 24, 2008, 4:28:15 PM, you wrote: > Hi, > page.tpl.php is too late because the scripts are already generated > (and available in $scripts) in that template. You should add it in > either a module or a preprocess function in template.php. > Konstantin > On 21.08.2008, at 01:50, Massimiliano Marini wrote: >>> As soon as you add a JS file with that function, jQuery gets added >>> automatically. >> >> where I must wrote drupal_add_js? >> >> I've tried into my page.tpl.php >> >> example: >> >> but it doesn't work ... why? Where I'm in error? >> >> -- >> Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ >> "It's easier to invent the future than to predict it." -- Alan Kay >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes -- Best regards, Sergei mailto:sergey at seoecom.com From larry at garfieldtech.com Sun Aug 24 18:05:34 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Sun, 24 Aug 2008 13:05:34 -0500 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <1410430721.20080824172825@seoecom.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <1410430721.20080824172825@seoecom.com> Message-ID: <200808241305.34503.larry@garfieldtech.com> On Sunday 24 August 2008 9:28:25 am Sergei Stryukov wrote: > Hello Konstantin, > > You can include this script in page.tpl.php: > > > > Add this code before tag. No, don't do that. That skips all of Drupal's JS handling and compression and caching mechanisms, and is totally not portable across different sites. Hard coded paths are never correct. If you're on Drupal 5, then call drupal_add_js from a module or at the top of your template.php file. If you're on Drpual 6, it's even easier. Simply add the following line to your theme's .info file: scripts[] = jquery.corner.js And then visit the themes admin page to refresh the info cache. Drupal will handle it from there. -- Larry Garfield larry at garfieldtech.com From tfarsheed at yahoo.com Sun Aug 24 18:09:30 2008 From: tfarsheed at yahoo.com (Farsheed) Date: Sun, 24 Aug 2008 11:09:30 -0700 (PDT) Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <1410430721.20080824172825@seoecom.com> Message-ID: <190696.9107.qm@web54505.mail.re2.yahoo.com> > From: Sergei Stryukov > Subject: Re: [themes] How to include and use jquery plugin in my theme > To: "A list for theme developers" > Date: Sunday, August 24, 2008, 10:28 AM > Hello Konstantin, > > You can include this script in page.tpl.php: > > > > Add this code before tag. That doesn't guarantee that jquery.js is loaded. If you do drupal_add_js(path_to_theme() . '/js/jquery.corner.js'); in your template file than you can be sure that both jquery.js and jquery.corner.js are automatically loaded. > Sunday, August 24, 2008, 4:28:15 PM, you wrote: > > > Hi, > > > page.tpl.php is too late because the scripts are > already generated > > (and available in $scripts) in that template. You > should add it in > > either a module or a preprocess function in > template.php. > > > Konstantin > > > > On 21.08.2008, at 01:50, Massimiliano Marini wrote: > > >>> As soon as you add a JS file with that > function, jQuery gets added > >>> automatically. > >> > >> where I must wrote drupal_add_js? > >> > >> I've tried into my page.tpl.php > >> > >> example: drupal_add_js('scripts/jquery.corner.js') ?> > >> > >> but it doesn't work ... why? Where I'm in > error? > >> > >> -- > >> Massimiliano Marini - > http://www.linuxtime.it/massimilianomarini/ > >> "It's easier to invent the future than to > predict it." -- Alan Kay > >> _______________________________________________ > >> themes mailing list > >> themes at drupal.org > >> http://lists.drupal.org/mailman/listinfo/themes > > > _______________________________________________ > > themes mailing list > > themes at drupal.org > > http://lists.drupal.org/mailman/listinfo/themes > > > > -- > Best regards, > Sergei > mailto:sergey at seoecom.com > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From sergey at seoecom.com Sun Aug 24 19:04:04 2008 From: sergey at seoecom.com (Sergei Stryukov) Date: Sun, 24 Aug 2008 22:04:04 +0300 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <200808241305.34503.larry@garfieldtech.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <1410430721.20080824172825@seoecom.com> <200808241305.34503.larry@garfieldtech.com> Message-ID: <1185734267.20080824220404@seoecom.com> Hello Larry, Sunday, August 24, 2008, 9:05:34 PM, you wrote: > On Sunday 24 August 2008 9:28:25 am Sergei Stryukov wrote: >> Hello Konstantin, >> >> You can include this script in page.tpl.php: >> >> >> >> Add this code before tag. > No, don't do that. That skips all of Drupal's JS handling and compression and > caching mechanisms, and is totally not portable across different sites. Hard > coded paths are never correct. Do you mean that this hard coded path is not correct? I don't think so. Yes, maybe drupal_add_js is better, but this hard coded path is correct. > If you're on Drupal 5, then call drupal_add_js from a module or at the top of > your template.php file. > If you're on Drpual 6, it's even easier. Simply add the following line to > your theme's .info file: > scripts[] = jquery.corner.js > And then visit the themes admin page to refresh the info cache. Drupal will > handle it from there. -- Best regards, Sergei mailto:sergey at seoecom.com From larry at garfieldtech.com Sun Aug 24 19:07:04 2008 From: larry at garfieldtech.com (Larry Garfield) Date: Sun, 24 Aug 2008 14:07:04 -0500 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <1185734267.20080824220404@seoecom.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <200808241305.34503.larry@garfieldtech.com> <1185734267.20080824220404@seoecom.com> Message-ID: <200808241407.05071.larry@garfieldtech.com> On Sunday 24 August 2008 2:04:04 pm Sergei Stryukov wrote: > Hello Larry, > > Sunday, August 24, 2008, 9:05:34 PM, you wrote: > > On Sunday 24 August 2008 9:28:25 am Sergei Stryukov wrote: > >> Hello Konstantin, > >> > >> You can include this script in page.tpl.php: > >> > >> > >> > >> Add this code before tag. > > > > No, don't do that. That skips all of Drupal's JS handling and > > compression and caching mechanisms, and is totally not portable across > > different sites. Hard coded paths are never correct. > > > > Do you mean that this hard coded path is not correct? I don't think > so. > > Yes, maybe drupal_add_js is better, but this hard coded path is > correct. That's not what you posted above. :-) If you have to reference a file in the template directly, yes, use path_to_theme() to avoid hard coding the path. However, as Farsheed pointed out even that is insufficient because it won't trip Drupal's JS routines and you therefore may not have jQuery itself available to you. That makes the jQuery plugin rather useless. :-) -- Larry Garfield larry at garfieldtech.com From design at bibleinfo.com Sun Aug 24 19:10:19 2008 From: design at bibleinfo.com (Brent Hardinge) Date: Sun, 24 Aug 2008 12:10:19 -0700 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: <1185734267.20080824220404@seoecom.com> References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <1410430721.20080824172825@seoecom.com> <200808241305.34503.larry@garfieldtech.com> <1185734267.20080824220404@seoecom.com> Message-ID: Sergei, Your second post is correct in that it will always point to the current theme but your original post implies a hard coded link, as it makes not mention of the php snip. Cheers, Brent On Aug 24, 2008, at 12:04 PM, Sergei Stryukov wrote: > Hello Larry, > > Sunday, August 24, 2008, 9:05:34 PM, you wrote: > >> On Sunday 24 August 2008 9:28:25 am Sergei Stryukov wrote: >>> Hello Konstantin, >>> >>> You can include this script in page.tpl.php: >>> >>> >>> >>> Add this code before tag. > >> No, don't do that. That skips all of Drupal's JS handling and >> compression and >> caching mechanisms, and is totally not portable across different >> sites. Hard >> coded paths are never correct. > > > > Do you mean that this hard coded path is not correct? I don't think > so. > > Yes, maybe drupal_add_js is better, but this hard coded path is > correct. > > >> If you're on Drupal 5, then call drupal_add_js from a module or at >> the top of >> your template.php file. > >> If you're on Drpual 6, it's even easier. Simply add the following >> line to >> your theme's .info file: > >> scripts[] = jquery.corner.js > >> And then visit the themes admin page to refresh the info cache. >> Drupal will >> handle it from there. > > > > > -- > Best regards, > Sergei mailto:sergey at seoecom.com > > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes From sergey at seoecom.com Sun Aug 24 21:07:53 2008 From: sergey at seoecom.com (Sergei Stryukov) Date: Mon, 25 Aug 2008 00:07:53 +0300 Subject: [themes] How to include and use jquery plugin in my theme In-Reply-To: References: <441bcae80808200507u615ec031mf4350f4b2cf07d8b@mail.gmail.com> <1410430721.20080824172825@seoecom.com> <200808241305.34503.larry@garfieldtech.com> <1185734267.20080824220404@seoecom.com> Message-ID: <362983616.20080825000753@seoecom.com> Hello Brent, Yes, my bug. Sorry :) Sunday, August 24, 2008, 10:10:19 PM, you wrote: > Sergei, > Your second post is correct in that it will always point to the > current theme but your original post implies a hard coded link, as it > makes not mention of the php snip. > Cheers, > Brent > On Aug 24, 2008, at 12:04 PM, Sergei Stryukov wrote: >> Hello Larry, >> >> Sunday, August 24, 2008, 9:05:34 PM, you wrote: >> >>> On Sunday 24 August 2008 9:28:25 am Sergei Stryukov wrote: >>>> Hello Konstantin, >>>> >>>> You can include this script in page.tpl.php: >>>> >>>> >>>> >>>> Add this code before tag. >> >>> No, don't do that. That skips all of Drupal's JS handling and >>> compression and >>> caching mechanisms, and is totally not portable across different >>> sites. Hard >>> coded paths are never correct. >> >> >> >> Do you mean that this hard coded path is not correct? I don't think >> so. >> >> Yes, maybe drupal_add_js is better, but this hard coded path is >> correct. >> >> >>> If you're on Drupal 5, then call drupal_add_js from a module or at >>> the top of >>> your template.php file. >> >>> If you're on Drpual 6, it's even easier. Simply add the following >>> line to >>> your theme's .info file: >> >>> scripts[] = jquery.corner.js >> >>> And then visit the themes admin page to refresh the info cache. >>> Drupal will >>> handle it from there. >> >> >> >> >> -- >> Best regards, >> Sergei mailto:sergey at seoecom.com >> >> _______________________________________________ >> themes mailing list >> themes at drupal.org >> http://lists.drupal.org/mailman/listinfo/themes > _______________________________________________ > themes mailing list > themes at drupal.org > http://lists.drupal.org/mailman/listinfo/themes -- Best regards, Sergei mailto:sergey at seoecom.com From vishakhatambe.mcs at gmail.com Mon Aug 25 11:31:56 2008 From: vishakhatambe.mcs at gmail.com (Vishakha Tambe) Date: Mon, 25 Aug 2008 17:01:56 +0530 Subject: [themes] Error Message-ID: *Hello all, I am getting following error in drupal while clicking on "Administer" module. Fatal error*: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in * /opt/lampp/htdocs/drupal-5.9/modules/system/system.install* on line *2790 Can anybody tell me about how to solve this error. Regards, Vishakha. * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080825/c18f9c0d/attachment.htm From sergey at seoecom.com Mon Aug 25 11:44:15 2008 From: sergey at seoecom.com (Sergei Stryukov) Date: Mon, 25 Aug 2008 14:44:15 +0300 Subject: [themes] Error In-Reply-To: References: Message-ID: <1541999557.20080825144415@seoecom.com> An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080825/c92a0e36/attachment.htm From j.sintjago at xs4all.nl Mon Aug 25 11:40:11 2008 From: j.sintjago at xs4all.nl (Joop Sint Jago) Date: Mon, 25 Aug 2008 13:40:11 +0200 Subject: [themes] Error In-Reply-To: Message-ID: <000601c906a7$55e7f5e0$9800000a@JoopVNVLaptop> You have to increase the memory allocation in php.ini. Clivesj _____ Van: themes-bounces at drupal.org [mailto:themes-bounces at drupal.org] Namens Vishakha Tambe Verzonden: maandag 25 augustus 2008 13:32 Aan: themes at drupal.org Onderwerp: [themes] Error Hello all, I am getting following error in drupal while clicking on "Administer" module. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /opt/lampp/htdocs/drupal-5.9/modules/system/system.install on line 2790 Can anybody tell me about how to solve this error. Regards, Vishakha. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.drupal.org/pipermail/themes/attachments/20080825/cbf121fb/attachment.htm From jweiss7 at hotmail.com Wed Aug 27 19:20:12 2008 From: jweiss7 at hotmail.com (Jeremy Weiss) Date: Wed, 27 Aug 2008 14:20:12 -0500 Subject: [themes] setting class on primary links Message-ID: Currently I'm calling the primary nav in my theme like so: 'links primary-links')) ?> But when it's displayed Drupal is assigning what appear to be random classes to the list items, like: What's the easiest way to go about applying the desired css to these links? Is there a way to tell Drupal what class to assign? Thanks, Jeremy _________________________________________________________________ See what people are saying about Windows Live. Check out featured posts. http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008 From jweiss7 at hotmail.com Wed Aug 27 19:22:55 2008 From: jweiss7 at hotmail.com (Jeremy Weiss) Date: Wed, 27 Aug 2008 14:22:55 -0500 Subject: [themes] setting class on primary links In-Reply-To: References: Message-ID: seems much of my code got cut, let's try that again: > Currently I'm calling the primary nav in my theme like so: print theme('links', $primary_links, array('class' => 'links primary-links')) > But when it's displayed Drupal is assigning what appear to be random classes to the list items, like: li class="menu-144 > What's the easiest way to go about applying the desired css to these links? Is there a way to tell Drupal what class to assign? > > Thanks, > Jeremy _________________________________________________________________ Get thousands of games on your PC, your mobile phone, and the web with Windows?. http://clk.atdmt.com/MRT/go/108588800/direct/01/ From mike at michaelfbooth.com Thu Aug 28 00:06:06 2008 From: mike at michaelfbooth.com (Michael Booth) Date: Wed, 27 Aug 2008 20:06:06 -0400 Subject: [themes] setting class on primary links In-Reply-To: References: Message-ID: <7E425112-515A-4DF2-AD3A-A1C37F7BD3E9@michaelfbooth.com> On Aug 27, 2008, at 3:22 PM, Jeremy Weiss wrote: > >> Currently I'm calling the primary nav in my theme like so: > > print theme('links', $primary_links, array('class' => 'links primary- > links')) > >> But when it's displayed Drupal is assigning what appear to be >> random classes to the list items, like: > > li class="menu-144 > >> What's the easiest way to go about applying the desired css to >> these links? Is there a way to tell Drupal what class to assign? >> If I'm reading the theme_links() source code correctly, those class names are coming from the keys in the $primary_links array. Try printing out the $primary_links array and see what it looks like -- I like to install Devel module and then do something like dpm($primary_links); or if that doesn't work, try using dprint_r($primary_links) or drupal_set_message(dprint_r($primary_links, TRUE)) If I'm right, you'll find your "apparently random" class names as keys in that array. As for changing the classes, one way would be to fiddle around with the $primary_links array before you call the theming function. Another way, which might be better, is to write a custom theming function for your links. You can either call that function directly from your theme or give it a name like phptemplate_links() or yourthemenamehere_links() to override Drupal's default definition of theme_links(). You can find theme_links() itself in includes/themes.inc if you want to steal ideas from it. mechfish