Timeline for Displaying the username of the user who created the node in the node template file
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 14, 2013 at 17:43 | comment | added | Ram | @user19455: it was unchecked from being answer few moments ago, so i asked. again back as answer | |
Aug 14, 2013 at 17:30 | comment | added | user19455 | Why do you think is something wrong? Your answer was helpful. | |
Aug 14, 2013 at 17:30 | vote | accept | user19455 | ||
Aug 14, 2013 at 16:26 | comment | added | Ram | @user19455: what was wrong with my answer ??? | |
S Aug 14, 2013 at 16:09 | history | post merged (destination) | |||
Aug 14, 2013 at 12:12 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
improved formatting
|
Aug 14, 2013 at 9:31 | comment | added | user19455 | I ask similar question. If you may, look here please. | |
Aug 14, 2013 at 9:26 | comment | added | user19455 | That's right. I'm stupid. Now, it works perfectly :) | |
Aug 14, 2013 at 9:26 | vote | accept | user19455 | ||
S Aug 14, 2013 at 16:09 | |||||
Aug 14, 2013 at 9:24 | comment | added | Ram | @user19455: You are already inside an php script, why again using php inside echo statement? | |
Aug 14, 2013 at 9:15 | comment | added | Ram | @user19455: what problem ? | |
Aug 14, 2013 at 9:13 | comment | added | user19455 | I've problem with it. In php code I've echo "<div class=\"custom-buy-button\"> <button onclick='buyPhoto(\"<?php print $node->name; ?>\")'>Buy</button> </div>"; and I have function in JS <script> function buyPhoto(user) { alert(user); } </script> Unfortunalety on the sreen appears <?php echo admin; ?> I don't know why in the alert is php tag. | |
Aug 14, 2013 at 9:04 | comment | added | NewToDrupal | @Ram: thanks i too got it. For me it was coming as links, while printing $name. After i printed $node->name i got as string. cool :) | |
Aug 14, 2013 at 7:47 | comment | added | Ram | Yes I know that,since you want to display that as a literal string I gave you $node->name. If you want the name with link you can print $name itself. | |
Aug 14, 2013 at 7:44 | comment | added | user19455 | Thanks for your answer. Yet, if I coded <?php print $name; ?>, on the page appears term to the author. Doesn't it matter? | |
Aug 14, 2013 at 7:40 | history | edited | Ram | CC BY-SA 3.0 |
added 33 characters in body
|
Aug 14, 2013 at 7:34 | history | answered | Ram | CC BY-SA 3.0 |