View Single Post
  #1 (permalink)  
Old 02-08-2008, 05:29 AM
AnAlienHolakres3's Avatar
AnAlienHolakres3 AnAlienHolakres3 is offline
Send a message via ICQ to AnAlienHolakres3
Pligg Developer
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Downloads: 24
Uploads: 1
Thanks: 7
Thanked 111 Times in 40 Posts
[SOLVED] Simple messaging bug

I have discovered problem with sending message in Simple messaging module v 0.1.

Affected users:
Users who translated lang.conf for this module to NON english language.

Symptoms:
Message can not be send - blank page appears and nothing happens.

Reasons:
In compose.tpl is set value of submit button to {#PLIGG_MESSAGING_Send#} which reffers to lang.conf. In english there is "send" but in non-english language there is something else.
And there is the problem, because in simple_messaging_main.php file there is condition based on this value and if it changes, it will fail.

Solution:
Replace original code in compose.tpl:
Code:
<input type = "submit" name="view" value="{#PLIGG_MESSAGING_Send#}" tabindex="3">
with:
Code:
<input type = "submit" value="{#PLIGG_MESSAGING_Send#}" tabindex="3">
  <input type = "hidden" name="view" value="send">
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org
Reply With Quote
The Following 2 Users Say Thank You to AnAlienHolakres3 For This Useful Post:
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.