how do I change the description in the block

dafeder - January 11, 2008 - 03:09
Project:Request Invitation
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:buddhika
Status:active
Description

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

#1

buddhika - January 11, 2008 - 09:40
Assigned to:Anonymous» 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

#2

Christefano - January 26, 2008 - 05:55
Priority:normal» critical
Status:active» needs review

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.

AttachmentSize
requestinvitation_description_208702.patch 491 bytes

#3

buddhika - February 3, 2008 - 08:38
Status:needs review» fixed

Hi christefano,

Thanks for the patch. It's committed.

#4

Anonymous (not verified) - February 17, 2008 - 08:42
Status:fixed» closed

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

#5

csc4 - March 20, 2008 - 16:43
Status:closed» 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?

#6

buddhika - March 20, 2008 - 19:53
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.

#7

Anonymous (not verified) - April 3, 2008 - 20:04
Status:fixed» closed

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

#8

greggles - May 8, 2008 - 13:22
Category:support request» feature request

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.

#9

buddhika - May 10, 2008 - 07:50
Version:5.x-2.x-dev» 5.x-1.1
Status:closed» fixed

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

Thanks for pointing this out.

#10

Summit - May 10, 2008 - 09:47

Great! Thanks for this great module! greetings, Martijn

#11

greggles - May 10, 2008 - 12:49
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

 
 

Drupal is a registered trademark of Dries Buytaert.