Computers 'n Stuff: Customizing Blogger "Post a comment" link and open it in a Popup Window

I here share the resolutions for my Linux problems so they might safe somebody some time.

Tuesday, May 29, 2007 parmanent link to this post

Customizing Blogger "Post a comment" link and open it in a Popup Window


The "post a comment line" can not be customized using the classical layout in blogger unless you hack your template as described here. So if you like the "post a comment" form open in a new Window than this solution is ok. The option to open it in a popup window is not documented. Here I discribe how the customized link can be hacked to open the blogger comment form in a a popup window on click.
First you have to follow the instructions of bloger help and find out your Blog ID. If you want to open the post comment field in a new window you could use the code as suggested by blogger. It should look similar to this:
<a href="http://www.blogger.com/comment.g?blogID=1234567&postID=<$BlogItemNumber$>">You want to talk to me?</a>


where 1234567 should be replaced by you blog id and "You want to talk to me?" by the line you want to appear as the link to you comments form of you blog.
However, there is no way documented to open that form in a pop up window with a customized link. To do that you have to replace <$BlogItemCreate$> with the following code in your template:
<a class="comment-link" href="http://www.blogger.com/comment.g?blogID=1234567&postID=<$BlogItemNumber$>&amp;isPopup=true" onclick="window.open(this.href, 'bloggerPopup', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=400,height=450');return false;">You want to talk to me?</a>

Again, you have to edit 1234567 to match your blog ID and replace "You want to talk to me?" by the text you want to appear as the link to your comments input form.
Try yourself >> You want to talk to me?
Et voilá, if you now click on the link your comments form will open in a popup
window.

Labels: ,

2 Comments:

Blogger Unknown said...

In his series Archaeological Teasures from the Tigris Valley he performed excavations at battlefield sites and photographed the objects found in an improvised studio on site.
Cheap Nike NFL Jerseys

Friday, September 06, 2013 11:54:00 PM

 
Blogger Unknown said...

That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.antivirus online shopping

Tuesday, September 24, 2013 12:21:00 AM

 

Post a Comment

<< Home