Greetings
I am trying to make it so people can only view their docuements themselves once they have paid for them. Basically they can only click on the title of the document in "Your Content" and get a result once it has been published.
I have been working on the ms_paypublish_list_content section of the module but to no avail. I would like all the output to appear in one table or alternative one table below the other.
Below is not workable but may give you the jist:
if ($status == 'Published')
$rows[] = array(
l($node->title, 'node/'. $node->nid),
$status,
$expireString,
l(t('Edit'), 'node/'. $node->nid .'/edit'),
$publishString
);
}
if ($status != 'Published')
$rows[] = array(
l($node->title),
$status,
$expireString,
l(t('Edit'), 'node/'. $node->nid .'/edit'),
$publishString
);
}
$output .= theme('table', $headers, $rows, $attr);
print theme('page', $output);
}
It would be good if the title only appears and not a path for the unpublished.
Just not sure how to merge them. Tried if else statements. Tried merging arrays etc.
Any help would be greatly appreciated.








Poindog,
If the users aren't able to view their content, then what happens if they want to change it? Since they are the author, they will be able to view the content before it is published, but other users won't be able to view it. If really want to stop the link from showing for non-published content, you can do this:
$rows[] = array(
($node->status) ? $link = l($node->title, 'node/'. $node->nid) : $node->title,
$status,
$expireString,
l(t('Edit'), 'node/'. $node->nid .'/edit'),
$publishString
);
Sincerely,
Leighton Whiting