Hello,

Sorry keeping you busy with this module. I noticed (and fixed) this minor issue: in the comment area the registered users are not linked to their profile (clicking their name does not do anything). Here's a patch for that; I'm still not a Drupal guru, but this works for me. Feel free to tweak the code.

The other thing is that in this patch the registered user identification _really_ works.

---
--- a/template.php
+++ b/template.php
@@ -105,9 +105,13 @@ function admire_grunge_node_submitted($node) {

function admire_grunge_comment_submitted($comment) {
- if ($comment->pid == "0") {
+ if ($comment->uid == "0") {
$comment->name=$comment->name." (not verified)";
}
+ else {
+ global $base_url;
+ $comment->name="name)."\">".$comment->name."";
+ }

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thejaba’s picture

Ok, so pasting the code with tags was not a good idea :D

---
--- a/template.php
+++ b/template.php
@@ -105,9 +105,13 @@ function admire_grunge_node_submitted($node) {

function admire_grunge_comment_submitted($comment) {
- if ($comment->pid == "0") {
+ if ($comment->uid == "0") {
$comment->name=$comment->name." (not verified)";
}
+ else {
+ global $base_url;
+ $comment->name="<a href=\"".$base_url."/".drupal_get_path_alias("users/".$comment->name)."\">".$comment->name."</a>";
+ }

sakib000’s picture

No such issue I see. When I am logged in as admin, I can see user names as links. May be you have some permission problem.

sakib000’s picture

Go to permission page
under Users section check access user profiles and save.

thejaba’s picture

Oh, thanks. :D Silly me, didn't thought this could be an access problem ...

sakib000’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.