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."";
+ }
Comment | File | Size | Author |
---|---|---|---|
#2 | Antehabeo illum tincidunt quidne vulpes iriure. - Worthapost_1266554288767.png | 765.16 KB | sakib000 |
Comments
Comment #1
thejaba CreditAttribution: thejaba commentedOk, 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>";
+ }
Comment #2
sakib000 CreditAttribution: sakib000 commentedNo 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.
Comment #3
sakib000 CreditAttribution: sakib000 commentedGo to permission page
under Users section check access user profiles and save.
Comment #4
thejaba CreditAttribution: thejaba commentedOh, thanks. :D Silly me, didn't thought this could be an access problem ...
Comment #5
sakib000 CreditAttribution: sakib000 commented