Closed (cannot reproduce)
Project:
Boldy
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2012 at 22:50 UTC
Updated:
22 Jun 2012 at 23:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
ericking commentedComment #2
the_g_bomb commentedIn the instructions, I hint at what is needed to get the desired effect.
What this essentially means is that when the code is output on the screen, like in your screenshot. Open up firebug or examine the source code and look for the form id.
What you are looking for is a line that looks like:
<input id="edit-contact-mail-page-1" type="hidden" value="contact_mail_page_1" name="form_id">Your id may be something slightly different in which case you may need to change the function name in the template.php file.
For example if your id is edit-contact-mail-page, look at the value="contact_mail_page" you need to change the function name to be
function boldy_contact_mail_page($form) {The formula for changing would be:
drop the word edit
replace dashes with underscores
from the id=
or take the value of that input
I think this all stems from the way the contact block module outputs the contact form. You may also find that the for id changes if you enable a contact page as I think it will take the "edit-contact-mail-page" id and force the block up one to edit-contact-mail-page-1.
But it is all speculation as to why it happens, hopefully you can find a solution with the pointers I have provided and we can just hope that Drupal 7 is better. :-)
Comment #3
ericking commentedThanks for the reply. I already read the documentation but english is not my first language :(
I tried to do what you mentioned but I failed, I found the id on the template.php and I changed it but not success
Comment #4
the_g_bomb commentedOnce you have changed the template.php file you will also need to flush the caches to see the changes take effect.
Comment #5
the_g_bomb commentedClosing this issue as 8 weeks is a long time with no response. Please reopen it if you are still having a problem.