Image button in Blogs Made Simple comment form

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
memerson
Forum Members
Forum Members
Posts: 14
Joined: Mon Mar 23, 2009 5:03 pm

Image button in Blogs Made Simple comment form

Post by memerson »

Hi everyone

I'm making a CMSMS site for a client and he would like the comment form that comes with the Blogs Made Simple module to be an image instead of a basic button. Does anyone know how to access this? In the Comment Form Template tab in BMS all I find is the HTML with a {$submit} tag but I have no idea where it is getting the content from.

Any help appreciated, thanks in advance,

Michael
Frankie

Re: Image button in Blogs Made Simple comment form

Post by Frankie »

I am also not able to find where this value is changed. I just want to change it from "Send Message" to a different text.
kendo451

Re: Image button in Blogs Made Simple comment form

Post by kendo451 »

The standard for CMSMS modules is to find the [language].php file and change the value there.

It is usually placed in the directory like this:

root/modules/module-in-question/lang/en-us.php

This will change the text of the button.

If you want to change the image of the button, try this:

1. In the language file change the value for the submit button to whatever you want it to say, like "Subscribe".

2. In form builder submission template, change the class for the div surrounding the submit button from class="submit" to something unique for this form like class="subscribeButton".

2. In your css use two rules to give the button your desired image:

.subscribeButton input {
  background-image:url(images/cms/whatever.jpg);
}

This still prints the label of the button which can be styled using the css above.  If you want to completely replace the button with an image, there are some complicated ways to do it.
Post Reply

Return to “Modules/Add-Ons”