Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Casual Pligger MobileFreak's Avatar
    Joined
    Mar 2007
    Posts
    30
    Thanks
    Received:0
    Given: 0

    Messaging Usability

    While sending a private message, if the user does not enter the subject and the message and presses the send button, a message is displayed "there was an error. error number -" and the only way the user can leave that frame is by pressing the browser back button.

    I made a minute modification to indicate the failure of sending and displaying the cross button. the changes where :
    1. In messaging_main.php, in the "if ($msg_result != 0){" condition, put the following code -

    Code:
    if(messaging_fade_lightbox){
    $main_smarty->assign('js_close', "Effect.Fade('overlay');Effect.Fade('view_message' , {afterFinish: function(){document.getElementById('view_message') .innerHTML='loading...';}});");
    }else{
    $main_smarty->assign('js_close', "document.getElementById('overlay').style.display = 'none';document.getElementById('view_message').sty le.display = 'none';document.getElementById('view_message').innerHTML='loading...';");
    }
    //echo "there was an error. error number " . $msg_result;
    $main_smarty->display(messaging_tpl_path . 'small_send_fail.tpl');
    2. create small_send_fail.tpl similar to small_send_success.tpl in templates folder.

  2. #2
    Casual Pligger TrailofDead's Avatar
    Joined
    Mar 2007
    Posts
    46
    Thanks
    Received:0
    Given: 0
    You will get an error message if either the message subject or message body are empty. I think a better option is to alert the user that they must enter a subject and message body. Therefore, edit your ./modules/messaging/templates/messaging_lightbox.tpl file and modify the messaging_ajax_send() function and add the following after the variables declaration:

    Code:
    			if (msg_subj == "") 
    			{
    				alert ("You must enter a subject");
    				return;
    			}
    			if (msg_body == "") 
    			{
    				alert ("You're message is blank");
    				return;
    			}

  3. #3
    Banned Geoserv's Avatar
    Joined
    Feb 2007
    Posts
    796
    Thanks
    Received:0
    Given: 0
    I just realized that nothing happens when I try to message someone.

    I click on "send (username) a message", but nothing happens. heres the link associated with it:

    Geoserv.

  4. #4
    Constant Pligger Simon's Avatar
    Joined
    Mar 2006
    Posts
    537
    Thanks
    Received:0
    Given: 0
    Do you get any javascript errors when clicking? I went to the link above, and there are a couple or errors associated with lightbox.js

  5. #5
    Banned Geoserv's Avatar
    Joined
    Feb 2007
    Posts
    796
    Thanks
    Received:0
    Given: 0
    I have lightbox errors throughout, same 2 errors I think according to FF error log. So far the messaging is the only thing not working that I know of.

    Geoserv.

  6. #6
    Constant Pligger Simon's Avatar
    Joined
    Mar 2006
    Posts
    537
    Thanks
    Received:0
    Given: 0
    Has it never worked, or did it stop working when you installed something in particular?

  7. #7
    Banned Geoserv's Avatar
    Joined
    Feb 2007
    Posts
    796
    Thanks
    Received:0
    Given: 0
    I'm not sure, I have never used it before. To my kknowledge everything was working at one time.

    Here are the 2 errors I get:

    Error: Effect is not defined
    Source File: http://www.newsdots.com/templates/di.../js/misc.js.gz
    Line: 71
    Effect.DropIn = function(element) {
    Error: Event.observe is not a function
    Source File: http://www.newsdots.com/modules/lightbox/js/lightbox.js
    Line: 60
    Event.observe(window, 'load', initialize, false);
    I'm not sure if they have anything to do with this or not.

    Geoserv

  8. #8
    Banned Geoserv's Avatar
    Joined
    Feb 2007
    Posts
    796
    Thanks
    Received:0
    Given: 0
    I have Googled this two things, but wasn't aboe to come up with anything that would solve the errors.

    Geoserv

  9. #9
    Constant Pligger Simon's Avatar
    Joined
    Mar 2006
    Posts
    537
    Thanks
    Received:0
    Given: 0
    It could be because your lightbox.js file is loading before the prototype.js files - you might want to try switching them around. Something like:

    prototype.js (plus all the files that come with it)
    jquery.js
    thickbox.js
    lightbox.js
    misc.js.gz

    Just a guess, but sometimes loading order can break scripts.

  10. #10
    Banned Geoserv's Avatar
    Joined
    Feb 2007
    Posts
    796
    Thanks
    Received:0
    Given: 0
    I can't find the file that changes the order, I was looking at it earlier, it isn't pligg.tpl, theres another one.

    Geoserv

Page 1 of 2 12 LastLast

Similar Threads

  1. Messaging bug
    By fingerprn in forum Questions & Comments
    Replies: 10
    Last Post: 03-03-2010, 07:05 AM
  2. Mysuggestion as newbie is: improve the usability of this webpage.
    By Berlinerin in forum Questions & Comments
    Replies: 4
    Last Post: 04-10-2008, 06:20 AM
  3. Usability Bug: Make it clear when I voted
    By PierreB in forum Questions & Comments
    Replies: 2
    Last Post: 10-18-2007, 11:06 PM
  4. iframe link - usability?
    By canadapc in forum Questions & Comments
    Replies: 1
    Last Post: 06-25-2007, 05:42 PM
  5. Usability Bug: Confirming "Discard"
    By PierreB in forum Questions & Comments
    Replies: 0
    Last Post: 04-17-2007, 08:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg