In ASP.NET MVC2, if we have 2 action methods with the same name, but differing by the Http Verbs, place the action method with the [HttpGet] first before the method with the [HttpPost] one, the controller fires the action method that comes first only
This option is implemented by checking whether the comment text has a @ and if so, we just indent it and hide the reply link from the user so that this comment cannot be commented. /home/webmaster/public_html/mod/thewire/views/default/object/thewire.php 1. check for the @ in the text [code] $haystack= $vars['entity']->description; $needle = "@"; if($haystack[0] == $needle) $shallIndent = TRUE; else $shallIndent = FALSE; [/code] 2. use the indentation for the div which is a comment or a reply to a post made earlier. [code] if($shallIndent) { ?> <!-- style="margin-left:50px"--> <div class="thewire-singlepage" style="margin-left:50px"> <?php } else { ?> <div class="thewire-singlepage"> ...
Comments
Post a Comment