Hi, I am not a theming or module whiz. I am trying to figure out how to edit the request invitation block - the descriptive text, the size of the text input, and the text on the submit button. I can do it by editing the theme itself but it seems like there should be a way to set these things via the theme or drupal config screens. Am I missing something?

Thanks

Comments

buddhika’s picture

Assigned: Unassigned » buddhika

Hi dafeder,

To change the description of the block follow this.

At the top of "requestinvitation.module" script there are two lines like this.

//Give a description about your site here
$description = "You can give a brief description of your site or what you intended to do through this module here." ;

Replace "You can give a brief description of your site or what you intended to do through this module here." with your welcome blurb.

To edit the theme you will have to use your own theme as only a general theme is given with the module.

Cheers,
Laknath

Christefano-oldaccount’s picture

Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new491 bytes

I don't like having to edit the module and would prefer a setting. Until that happens, the strings should at least be translatable with either the Locale module or the method described at #131061. This patch does that.

buddhika’s picture

Status: Needs review » Fixed

Hi christefano,

Thanks for the patch. It's committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

csc4’s picture

Status: Closed (fixed) » Active

How is it fixed? It doesn't seem to be in the downloadable versions of the files??

If it is truly a description of the site - could it perhaps default to the site slogan or mission if nothing else is defined?

buddhika’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Priority: Critical » Normal
Status: Active » Fixed

Oops...Forgot to make a new release :-) Thanks for reminding me.

Added for a new release and should be downloadable within few hours.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

greggles’s picture

Category: support » feature

Just for the record, this was committed with the message "Security: ..." which implies that it fixes a security bug. In fact, it fixes no security bugs.

@buddhika - if you have questions about writing secure code please read the handbook http://drupal.org/writing-secure-code if there are areas which you are still unsure about please ask the security team.

buddhika’s picture

Version: 5.x-2.x-dev » 5.x-1.1
Status: Closed (fixed) » Fixed

Now description text can be modified from within the module in 5.x-1.1 release.

Thanks for pointing this out.

summit’s picture

Great! Thanks for this great module! greetings, Martijn

greggles’s picture

Status: Fixed » Active

Yes, but, you are now using t() inappropriately and have introduced an xss security hole. User entered data should not be simply passed through to end users. In this case, I suggest that you get rid of the t() function in t(getDescription()); and instead use filter_xss_admin(get_description());

Please do carefully read the writing secure code section of the handbook http://drupal.org/writing-secure-code

buddhika’s picture

Status: Active » Closed (fixed)

Thanks @greggles for noting the security hole. Fixed.