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

OG not picking translated content type name

Hello!

The OG module shows a block for every group with 'create %type' link in it. Even though the content types are translated, the 'create %type' link still shows english names for %type, for example 'story'.

Also the fieldset on group homepage shows english version of content type.

Even when english language is disabled the result is same.

I believe the 'create %type' is generated in 'og_og_create_links' function in og.module

This is from original module

function og_og_create_links($group) {
  foreach (node_get_types() as $type => $name) {
    $exempt = array_merge(variable_get('og_node_types', array('og')), variable_get('og_omitted', array()));
    if (!in_array($type, $exempt) && node_access('create', $type)) {
      $links[] = l(t('create %type', array('%type' => $name)), "node/add/$type", array('title' => t('Add a new %s in this group.', array('%s' => $name))), "edit[og_groups][]=$group->nid");
    }
  }
  return $links ? $links : array();
}

Though was not sure, I tried adding 'node_get_name($name)' , but without any effect


function og_og_create_links($group) {
foreach (node_get_types() as $type => $name) {
$exempt = array_merge(variable_get('og_node_types', array('og')), variable_get('og_omitted', array()));
if (!in_array($type, $exempt) && node_access('create', $type)) {

Loops

I am trying to create a page that contains a loop. For some reason the page blows up whenever I use a loop. I removed everything except the loop attempting to isolate the problem and this is what I have. Does anyone have any ideas on why this causes the page to crash? I placed this inside the body of the page.


$ten = 0;

for ($i = 0;i < 5;$i++)
{
     $ten = $ten + 10;
}


Is pagination supported during node creation?

Anyone out there know if there is a drop in (module) way to allow node creation to be divided over multiple pages?

I'd be interested in a PREVIOUS/NEXT setup, much like a wizard that would culminate at a summary view. This would be superb. Even more superb would be if I knew how to code it myself.

I figure the summary view would be like the current PREVIEW functionality being used now just before submitting, but a difference would be that the user can click BACK or EDIT in order to go through the wizard and modify content again.

Suddenly extremely slow load times

I installed drupal just a week or so ago when I moved hosts, and I transferred most of my former content.

Suddenly I am getting unreal load times of 10-20 seconds! No one goes to my site except my family, so it's not getting any traffic.
If I access content from my domain that is not under drupal's control speed is fantastic.
Seems like something is hanging somewhere, but I don't see anything in the logs, where can I look?

URL is http://morelweb.com

Canada Post shipcalc sometimes works, sometimes it won't

I have installed the E-commerce module for my drupal site with the intention that I use the Canada Post shipcalc with it.
When I first registered for the VentureOne small business program by Canada Post. For a week, the IP address : http://206.191.4.228:30000
which was part of the canadapost.inc code to access the Canada Post server works. However, after a week, I keep getting fsockopen error "access denied" whenever I test my shopping cart and I am in the part where a shipping calculation is done.

Drupal 5: TinyMCE = resizable text boxes - any others?

Folks,

I'm trying to determine the best text editor addon for a new Drupal 5.0 site. The TinyMCE module's functionality is VERY reduced over the 4.7 version (you can't customize the buttons and addins for TinyMCE without hacking the config files), but it seems to be the only variety that allows you to drag the text box around to resize it.

I've tried FCKEditor and HTMLArea, and neither can do this.

Has anyone gotten resizing to work using another package? If so, which one and how'd you do it?

Thanks SO much - this is a big holdup for me.

John

Pages

Subscribe with RSS Subscribe to RSS - Post installation