Hi guys,
I finally figured out how to get at the CCK field values I've created and output them onto the page. But when I output $content or $body it contains the content of the extra fields as well - not only that but it's all in one string so I can't even grab the bits I need as I can from an Array. Is there any way to access the information the person typed into the description field without anything else?
thanks
Hi all,
I am having a spot of trouble after upgrading to 5.2 from 4.7. On my site, I have a search box on the upper right. It worked fine in 4.7 but now it sends you to a page that says content error, but if you click "content" tab, it works fine. I have played with the form a bit but can't figure out how to send the info from my form to the results page.
http://www.centernetworks.com/
Any ideas are very much appreciated.
-- Allen
On Sep 12, 2007, at 2:43 PM, Allen Stern wrote:
I am having a spot of trouble after upgrading to 5.2 from 4.7. On my site, I have a search box on the upper right. It worked fine in 4.7 but now it sends you to a page that says content error, but if you click "content" tab, it works fine. I have played with the form a bit but can't figure out how to send the info from my form to the results page.
Have you tried emptying your search index and rebuilding it?
Laura
I don't know how to do that Laura plus it works fine when i hit "content" tab. I just want to send the search directly there.
Thanks, Allen
Laura Scott wrote:
On Sep 12, 2007, at 2:43 PM, Allen Stern wrote:
I am having a spot of trouble after upgrading to 5.2 from 4.7. On my site, I have a search box on the upper right. It worked fine in 4.7 but now it sends you to a page that says content error, but if you click "content" tab, it works fine. I have played with the form a bit but can't figure out how to send the info from my form to the results page.
Have you tried emptying your search index and rebuilding it?
Laura
Looks like it works fine for me. I can search for terms and it the generated page either displays them (if found) or says otherwise (if not).
Was there some other behavior expected or functionality that you were referring to?
Hi - I am having trouble using iframes in drupal - this has been an issue since the day I installed drupal 1 year ago and I hoped it would be fixed in 5.2 but alas, no.
When I attempt to use iframe code either in a story, in a module, anything, I get a 403 error. If I use an iframe hardcoded in my template, works fine. Also, whats really weird is if I just use the word iframe in a story "john loves iframes" it also 403's.
Any ideas would be very much appreciated as this has become a huge issue as an advertiser can only provide iframe code and I need it to be in a block.
my site is: http://www.centernetworks.com
Thanks, Allen
On 9/14/07, Allen Stern allen@centernetworks.com wrote:
Hi - I am having trouble using iframes in drupal - this has been an issue since the day I installed drupal 1 year ago and I hoped it would be fixed in 5.2 but alas, no.
I have been using iframes since before Drupal 5, no problem.
When I attempt to use iframe code either in a story, in a module, anything, I get a 403 error. If I use an iframe hardcoded in my template, works fine. Also, whats really weird is if I just use the word iframe in a story "john loves iframes" it also 403's.
Ohoh... Probably mod_security is installed on your server. Pretty dumb. Try this in your .htaccess file:
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
If it doesn't work, ask your host to loosen it.
Any ideas would be very much appreciated as this has become a huge issue as an advertiser can only provide iframe code and I need it to be in a block.
my site is: http://www.centernetworks.com
Thanks, Allen
-- [ Drupal support list | http://lists.drupal.org/ ]
Thank you so much! - this appears to have worked! At least I could make a block - will try a post later.
-- Allen
Cog Rusty wrote:
On 9/14/07, Allen Stern allen@centernetworks.com wrote:
Hi - I am having trouble using iframes in drupal - this has been an issue since the day I installed drupal 1 year ago and I hoped it would be fixed in 5.2 but alas, no.
I have been using iframes since before Drupal 5, no problem.
When I attempt to use iframe code either in a story, in a module, anything, I get a 403 error. If I use an iframe hardcoded in my template, works fine. Also, whats really weird is if I just use the word iframe in a story "john loves iframes" it also 403's.
Ohoh... Probably mod_security is installed on your server. Pretty dumb. Try this in your .htaccess file:
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
If it doesn't work, ask your host to loosen it.
Any ideas would be very much appreciated as this has become a huge issue as an advertiser can only provide iframe code and I need it to be in a block.
my site is: http://www.centernetworks.com
Thanks, Allen
-- [ Drupal support list | http://lists.drupal.org/ ]
sander-martijn schrieb:
Hi guys,
I finally figured out how to get at the CCK field values I've created and output them onto the page. But when I output $content or $body it contains the content of the extra fields as well - not only that but it's all in one string so I can't even grab the bits I need as I can from an Array. Is there any way to access the information the person typed into the description field without anything else?
Hi. Try to output the node with <code>print_r($node)</code> and you'll see all of its attributes. The one you would like to have is <code>$node->content['body']['#value']</code>.
hth,
Stefan
Thanks! I had done the first part but still couldn't get it - I think that I didn't include the # before the value.
Stefan Borchert wrote:
sander-martijn schrieb:
Hi guys,
I finally figured out how to get at the CCK field values I've created and output them onto the page. But when I output $content or $body it contains the content of the extra fields as well - not only that but it's all in one string so I can't even grab the bits I need as I can from an Array. Is there any way to access the information the person typed into the description field without anything else?
Hi. Try to output the node with <code>print_r($node)</code> and you'll see all of its attributes. The one you would like to have is <code>$node->content['body']['#value']</code>.
hth,
Stefan