Drupal is up and running but how do I ...?

Getting Flexinode values in PHP code

I have a content type specified by the Flexinode module. This consists of a few fields with text values and a textarea with PHP code.

When the item is displayed I would like to use the Flexinode field values in the PHP code. I think I should be able do this without performing a seperate SQL query?

Are the returned Flexinode values available from PHP code?

Thanks
Martin

How to localize primary and secondary links?

I'm working on a bilingual (English/Japanese) site, and need to find a way to have the primary and secondary links display in the same language as the rest of the interface.

- Is there a config for this, or is it a template hack?

- Would it work to use one of the theme systems (which one?) and insert the text using t("my text here") ? Would localization.module even be aware of that text? If not, what would i use for a flag to determine which language to print?

Thanks in advance for your help...

Forum Help

Hi,

How do I set it so that when someone replies to a forum topic, there post is at the bottom of the page instead of the top of the page?

Thanks for your help!

th3gh05t

HELP: "http://mydrupalserver.com/taxonomy/term/78/0/feed" DOES NOT WORK (for me!)

In the aggregator module, when updating feeds based on taxonomy terms, the module says it syndicated content from the category, but never registers the fact that there is any content there. It always stays at "0 items" no matter how many items I add to the category. What is up? Am I missing something?

I am running Drupal 4.5. Would really appreciate any insight as my sight hinges on being able to syndicate local content and place it in blocks.

PHPSuExec and php parameters

My ISP switched to something called PHPSuExec in order to be more secure and avoid attacks. What it does is execute the php scripts using your user ID, and not the Apache user ID.

For Drupal users, the symptom will be that no cookies would be set for your site in the browser. If you create a file called phpinfo.php and put the following in it:

phpinfo() ;

And then execute it by visiting your web site http://example.com/phpinfo.php, you will find that under the session section, the session.cookie_lifetime and session.gc_maxlifetime will not be set to 200000.

If this is the case, then contact your ISP and confirm that they are using PHPSuExec. If they are, you need to create a new file called php.ini and put it in the same directory that you have .htaccess in.

This file will contain the following:

; This php.ini files is required when using PHPSuExec. 
;
register_globals                = 0
track_vars                      = 1
short_open_tag                  = 1
magic_quotes_gpc                = 0
magic_quotes_runtime            = 0
magic_quotes_sybase             = 0
arg_separator.output            = "&"
session.cache_expire            = 200000
session.gc_maxlifetime          = 200000
session.cookie_lifetime         = 604800
session.auto_start              = 0
session.save_handler            = user
session.cache_limiter           = none

Putting large quotation marks around text

I've seen somewhere on this site where there are large quotation marks surrounding quoted text. Does anyone know where I can find the code/css to do that nifty trick?

Pages

Subscribe with RSS Subscribe to RSS - Post installation