problem about blogs-Collection of common programming errors
Suresh Pattu
Mr C
javascript html css comments blogs
Blog URL: http://theforeigntwo.blogspot.com.auURL of concern: http://theforeigntwo.blogspot.com.au/2012/07/steve-nash-post.html?showComment=1344125682577#c3764506429069823377In the comments, there is a second “Reply” button at the bottom, filling about 400px, and an “Add comment” button about the same size, which I would like to remove. The “Add comment” button seems redundant since there is already a comment form in place – it loads a larger comment form when clicked.I’m not sure on which code to remove/modify, since it’s so long. Could someone please tell me how to remove these extra buttons?EDIT: I wasn’t sure it was appropriate to share the code since it’s so long, but here it is:/* Comments ———————————————– */span#commie {margin:0 0;font-weight: bold;line-height: 1.4em;color:#000000;font:15pt arial;background: #ffffff;padding:5px; -moz-box-shadow: 5px 5px 5px #939393; -webkit-box-shadow: 5px 5px 5px #939393; box-shadow: 5px 5px 5px #939393; -moz-border-radius: 5px; border-radius: 5px;}.comments {width:565px;background:none;float:right;margin:0 25px 0 0;font:13pt arial; }.comments-content {font:13pt arial; }.comments .continue a, .comments .comment .comment-actions a { /* THIS IS THE REPLY AND DELETE BUTTONS*/font:13pt arial;padding:5px;color: #000000;margin:0px 30px 20px 0;font-weight:bold;text-transform:uppercase;background: #e9e9e9; -moz-border-radius: 2px; border-radius: 2px; }.comments .continue a:hover, .comments .comment .comment-actions a:hover { }.comments .continue a:active, .comments .comment .comment-actions a:active { }.comments .comments-content .comment-thread ol {list-style-type: none;padding: 0;text-align: none; }.comments .comments-content .inline-thread {padding: 0px 0px 0 50px; }.comments .comments-content .comment-thread {margin: 8px 0px 0px 0px; }.comments .comments-content .comment-thread:empty {display: none; }.comments .comments-content .comment-replies {margin-top: 1em;margin-left: 0px;font-size: 12px; }.comments .comments-content .comment {padding-bottom: 8px;margin-bottom: 0px; }.comments .comments-content .comment:first-child { }.comments .comments-content .comment:last-child {border-bottom: 0;padding-bottom: 0; }.comments .comments-content .comment-body {position: relative; }.comments .comments-content .comment-content { /* THIS IS THE BODY OF EACH COMMENT, THE TEXT ITSELF */font:13pt arial;margin:10px 0 20px 0; }.comments .comment-block { /* THIS IS EACH COMMENT BOX FROM AUTHOR TO DELETE */margin:0 0 50px 48px;position: relative;padding: 5px 5px 10px 5px;background:#ffffff;overflow: hidden; -moz-box-shadow: 5px 5px 5px #939393; -webkit-box-shadow: 5px 5px 5px #939393; box-shadow: 5px 5px 5px #939393; -moz-border-radius: 5px; border-radius: 5px; }.comments .comments-content .user { }.comments .comments-content .user a { }.comments .comments-content .user a:hover {text-decoration: none;color: #000000; }.comments .comments-content .icon.blog-author {background:purple;width: 18px;height: 18px;display: inline-block;margin: 0 0 -4px 6px; }.comments .comments-content .datetime {padding:5px;margin-left: 6px; font-style: italic;font-size: 11px;float: right; }.comments .comments-content .owner-actions {position: absolute;right: 0;top: 0; }.comments .comments-replybox {border: none;height: 250px;width: 100%; }.comments .comment-replybox-single {margin:5px 0 0 0; }.comments .comment-replybox-thread {margin-top: 5px; }.comments .comments-content .loadmore a {display: block;padding: 10px 16px;text-align: center; }.comments .thread-toggle {cursor: pointer;display: inline-block; }.comments .comments-content .loadmore {cursor: pointer;max-height: 3em;margin-top: 3em; }.comments .comments-content .loadmore.loaded {max-height: 0px;opacity: 0;overflow: hidden; }.comments .thread-chrome.thread-collapsed {display: none; }.comments .thread-toggle {display: inline-block; }.comments .thread-toggle .thread-arrow {display: inline-block;height: 6px;width: 7px;overflow: visible;margin: 0.3em;padding-right: 4px; }.comments .thread-expanded .thread-arrow {data: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAc AAAAHCAYAAADEUlfTAAAAG0lEQVR42mNgwAfKy8v/48I4FeA0AacVDFQBAP9wJkE/KhUMAAAAAElFTkSuQmCC”) no-repeat scroll 0 0 transparent; }.comments .thread-collapsed .thread-arrow {data: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA AcAAAAHCAYAAADEUlfTAAAAJUlEQVR42mNgAILy8vL/DLgASBKnApgkVgXIkhgKiNKJ005s4gDLbCZBiSxfygAAAAB JRU5ErkJggg==”) no-repeat scroll 0 0 transparent; }.comments .avatar-image-container {float: left;overflow: hidden; }.comments .avatar-image-container img {width: 70px; }.deleted-comment {font-style:italic;color:gray;}(function() {var items = ;var msgs = ;var config = ;// 0) {cursor = parseInt(items[items.length – 1].timestamp) + 1;}var bodyFromEntry = function(entry) {if (entry.gd$extendedProperty) {for (var k in entry.gd$extendedProperty) {if (entry.gd$extendedProperty[k].name == ‘blogger.contentRemoved’) {return ” + entry.content.$t + ”;}}}return entry.content.$t;}var parse = function(data) {cursor = null;var comments = [];if (data && data.feed && data.feed.entry) {for (var i = 0, entry; entry = data.feed.entry[i]; i++) {var comment = {};// comment ID, parsed out of the original id formatvar id = /blog-(\d+).post-(\d+)/.exec(entry.id.$t);comment.id = id ? id[2] : null;comment.body = bodyFromEntry(entry);comment.timestamp = Date.parse(entry.published.$t) + ”;if (entry.author && entry.author.constructor === Array) {var auth = entry.author[0];if (auth) {comment.author = {name: (auth.name ? auth.name.$t : undefined),profileUrl: (auth.uri ?
Vieenay
ruby-on-rails ruby blogs
I am trying to get user who edits article in blog. I am able to get user who create article but got stuck while getting user who edits it. I tried with putting it in articles/show.html.erb(basically I am trying to show editing user on show page of articles). I have put this def update@article = Article.find(params[:id])if @article.update_attributes(params[:article])flash.notice = “Article ‘#{@article.title}’ Updated!”redirect_to article_path(@article)@article.user_id = current_user.idelse render ‘edit’endendin update action of article. Here I tried with @article.user_id = current_user.id and used it in show page of article but It throws me NoMethodError in Articles#showShowing f:/kuta/billi/app/views/articles/show.html.erb where line #36 raised:undefined method `username’ for 2:Fixnumerror.articles_controller.rbclass ArticlesController < ApplicationControllerbefore_filter :is_user_admin, only: [:new, :create, :edit, :destroy]before_filter :log_impression, :only=> [:show]def is_user_adminredirect_to(action: :index) unless
Rajesh
ruby-on-rails activerecord blogs runtime-error declarative-authorization
I am trying to configure declarative authorization to my rails blog app. After doing all as required, I did rails s to start the server. I have got stuck with the following error.rails s /var/lib/gems/1.8/gems/activerecord-3.2.9/lib/active_record/dynamic_matchers.rb:50:in `method_missing’: undefined local variable or method `scopes’ for ActiveRecord::Base:Class (NameError)from /var/lib/gems/1.8/gems/declarative_authorization-0.5.2/lib/declarative_authorization/in_model.rb:37:in `included’from /var/lib/gems/1.8
Ahmad Alfy
php joomla blogs addthis custom-url
I’ve overwritten the “blog.php”, for Category Blog to put the AddThis social media sharing plugin at the bottom of each article. Working on joomla 3.0The Category blog layout displays many articles per page. By default AddThis uses your current page to share/like/tweet/etc.My add this code looks like this: What I of course want is to change the URL being used to the corresponding article. This is possible (http://support.addthis.com/customer/portal/articles/381242-url-title#.Ucd1HevmT2x).The code should look like this (only with dynamic urls): Would be great if someone could help me understand a bit better how I go about doing this.addthis:url=”http://example.com/blog/my-article-about-horses” addthis:title=”The title of my article” addthis:description=”The short article description”Here is the full blog.php code.
Originally posted 2013-11-10 00:15:14.