Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
999
Regular
Regular



Joined: Sep 12, 2006
Posts: 58
Location: Dsm, IA

PostPosted: Thu Nov 12, 2009 10:52 am Reply with quote

I didn't notice this 'till now but since the 2.4 update, anytime someone tries to edit their forum profile it doesn't work correctly. When you go to the page, there's a fullscreen dark boxover that you have to click on to make it go away. After that, anything you edit within the profile doesn't save.

Just wondering if anyone else is having this issue or if it's just me? I commented out the jquery code in profile.php which got rid of the boxover, but any changes in the profile still aren't saved.
 
View user's profile Send private message Visit poster's website MSN Messenger
eldorado
Involved
Involved



Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Thu Nov 12, 2009 3:12 pm Reply with quote

Yep , and it's normal. You shouldn't use the forum profile but the Your_Account one Smile
the boxover explains it I think Smile

_________________
United-holy-dragons.net (My RN site)- Rejekz(cod4 clan) - gamerslounge 
View user's profile Send private message Visit poster's website MSN Messenger
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Thu Nov 12, 2009 8:32 pm Reply with quote

Ya, but on my upgrade, I need to scroll way down to be able to see what the boxover displays. On a fresh install this is not the case - boxover text is visible without scrolling.
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Nov 13, 2009 6:53 am Reply with quote

Doulos, If it works on a fresh install and not on your upgrade, one of two things come to mind:

1. You have not uploaded all the new and modified 2.40.00 scripts, or

2. You have a JavaScript conflict somewhere.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Nov 13, 2009 7:11 am Reply with quote

I agree with Montego. My upgrade works just like fresh install.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
hamrdeye
Hangin' Around



Joined: Aug 20, 2008
Posts: 28

PostPosted: Mon Apr 05, 2010 2:42 pm Reply with quote

I am having the same problem. I see the box with the spinning loading logo, and the x to close it at the bottom and nothing ever happens. If I close the box, it continues to my forum profile and I do believe it allows changes. I dont know what files I need to re upload to fix it.
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon Apr 05, 2010 5:59 pm Reply with quote

I can confirm what Montego and Nuken have said. Testing, if you click continue on the "thing" that says unless you are uploading an avatar you should use Your Account, you will get the Forum Profile but all input except the avatar is disabled. The screen is there but you can't make any changes in it.

In terms of what files to reupload, use something like Beyond Compare if you can't get the job done with a normal FTP client. All your files need to be in synch with 2.40.01 and all the old gunk needs to be cleaned out.

It may look like Forum profile allows changes, but try it and see. I don't think so.
 
View user's profile Send private message Visit poster's website
myrtletrees
Involved
Involved



Joined: Sep 13, 2005
Posts: 259
Location: Cornfields of Indiana

PostPosted: Wed Feb 23, 2011 4:41 pm Reply with quote

So what you all are saying is the only options that can be changed when editing your profile through the Forums is Avatar settings?

If that is the case then why can you make changes to your Profile through the Forum here at Ravenphpscipts?

I found the change in the changelog:

0001562: [Module - Forums] Make fields in forum profile readonly/disabled and add message about using YA (Palbin) - resolved.


This happened in version 2.40.00 RC1

Can I ask why it was disabled?

Because now I have a Forum Profile with all these fields and changes can't be edited. I have confused members.

I'm not sure about any black box. I've uploaded all upgraded files and I don't get any message telling me or my members to NOT use the Forum Profile to edit their information.
 
View user's profile Send private message
myrtletrees







PostPosted: Wed Feb 23, 2011 7:53 pm Reply with quote

For everyone's info: I just did a fresh install of 2.40.1 on a test site. I get nothing telling me to not use the Forum Profile for editing my info.

Any ideas?
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Wed Feb 23, 2011 9:29 pm Reply with quote

Just to trouble shoot have you tried with a default theme?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
myrtletrees







PostPosted: Wed Feb 23, 2011 9:58 pm Reply with quote

Palbin wrote:
Just to trouble shoot have you tried with a default theme?


Per my post above. Yes. Smile

Fresh install, default themes. Tried RavenIce and FiSubice.

I noticed on ravenphpscripts.COM it works. It looks like it uses colorbox. I am using colorbox in other areas of my "working" website and it works there. I have not tried to use colorbox on the Fresh install website. I just want to see if this so-called forum edit profile pop-up works and it does not appear to on a fresh install for me.

Again, bear in mind. I have done a fresh default install of Raven 2.4.01 and I get no pop up warning when modifying profile through forum.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Feb 24, 2011 4:12 am Reply with quote

myrtletrees wrote:
So what you all are saying is the only options that can be changed when editing your profile through the Forums is Avatar settings?

If that is the case then why can you make changes to your Profile through the Forum here at Ravenphpscipts?

Because as has been stated many times, this site does not use RavenNuke (tm) at the moment.
 
View user's profile Send private message Send e-mail
Palbin







PostPosted: Thu Feb 24, 2011 6:29 am Reply with quote

myrtletrees wrote:
Palbin wrote:
Just to trouble shoot have you tried with a default theme?


Per my post above. Yes. Smile

Fresh install, default themes. Tried RavenIce and FiSubice.

I noticed on ravenphpscripts.COM it works. It looks like it uses colorbox. I am using colorbox in other areas of my "working" website and it works there. I have not tried to use colorbox on the Fresh install website. I just want to see if this so-called forum edit profile pop-up works and it does not appear to on a fresh install for me.

Again, bear in mind. I have done a fresh default install of Raven 2.4.01 and I get no pop up warning when modifying profile through forum.


I will do a fresh install and check tonight.
 
Guardian2003







PostPosted: Thu Feb 24, 2011 10:01 am Reply with quote

I have just installed 2.4.01 on a live domain and on my localbox, both show the modal box when accessing the Profile link within the forums. Tested with FF and Opera (I don't have IE installed).
 
myrtletrees







PostPosted: Thu Feb 24, 2011 11:49 am Reply with quote

Guardian2003 wrote:
I have just installed 2.4.01 on a live domain and on my localbox, both show the modal box when accessing the Profile link within the forums. Tested with FF and Opera (I don't have IE installed).


I'll d/l the package again and try another fresh install. If I cant get it to work, I'll just put a line of text at the top of the Forum profile page that says:

USE THIS SCREEN ONLY FOR CHANGING AVATAR - ALL OTHER CHANGES TO SETTINGS WILL NOT BE SAVED

I'd rather have the ability for my users to modify their account settings in both places.
 
Palbin







PostPosted: Thu Feb 24, 2011 12:17 pm Reply with quote

I'll tell you how to change it back if you want and if I have time tonight.
 
myrtletrees







PostPosted: Thu Feb 24, 2011 2:19 pm Reply with quote

Palbin wrote:
I'll tell you how to change it back if you want and if I have time tonight.


Change what back? Confused
 
Palbin







PostPosted: Thu Feb 24, 2011 2:21 pm Reply with quote

So you can edit your profile in the forums. It shouldn't be to hard to change back. I just need to refresh my self on what exactly we did.
 
myrtletrees







PostPosted: Thu Feb 24, 2011 7:51 pm Reply with quote

Guardian2003 wrote:
myrtletrees wrote:

If that is the case then why can you make changes to your Profile through the Forum here at Ravenphpscipts?

Because as has been stated many times, this site does not use RavenNuke (tm) at the moment.


No offense but wouldn't that be the same as the owner of Ford Motor Company driving a Mazda? Razz

This is the craziest thing. I just downloaded a fresh 2.40.1 package from here. I just got done uploading and installing everything I still don't get the pop up message when editing the Forum Profile.

Tried FF, and IE and IE tab in FF.

Something is sure fishy.
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Thu Feb 24, 2011 9:32 pm Reply with quote

Do you see code for the #ya_warning in modules/Forums/profile.php ??

Do you see it added to the HTML source when you view the page?

Looks like the profile fields are set to read-only via jQuery, so if the modal warning isn't working in this situation, the "read-only" probably isn't either.
 
View user's profile Send private message Visit poster's website
myrtletrees







PostPosted: Thu Feb 24, 2011 10:44 pm Reply with quote

spasticdonkey wrote:
Do you see code for the #ya_warning in modules/Forums/profile.php ??

Do you see it added to the HTML source when you view the page?

Looks like the profile fields are set to read-only via jQuery, so if the modal warning isn't working in this situation, the "read-only" probably isn't either.


Yes I do see the code for #ya_warning in profile.php and I also see it when viewing the source of that webpage.

The read-only appears to be working as I cannot edit any info via the Forum Profile.

EDIT: I think we might be onto something.
The java script in profile.php is stripped when viewing the page.

When I view source at ravennuke.com I see the java in the header. When I view it at my site, java is gone.

This is just plain crazy!~

I think I would rather have my users be able to edit their profile through the Forums than try to figure this out. It's obvious this won't work for me on my server since I just proved that fact by installing a fresh install 2 times now with the same results both times.

FYI My server runs Linux CentOS 5.2, PHP Version 5.2.10, Apache 2, MySQL 5.0.77
 
myrtletrees







PostPosted: Fri Feb 25, 2011 10:03 am Reply with quote

FYI: Here's the information from the Source when editing Profile in Forums at ravennuke.com:

Code:
<link rel="StyleSheet" href="./themes/ravennuke.css" type="text/css" />

<link rel="StyleSheet" href="./themes/fisubice/style/style.css" type="text/css" />
<link rel="StyleSheet" href="themes/fisubice/style/Forums.css" type="text/css" />
<link rel="StyleSheet" href="includes/nukeSEO/nukePIE.css" type="text/css" />
<link rel="StyleSheet" href="includes/jquery/css/nukeNAV.css" type="text/css" />
<link rel="StyleSheet" href="themes/fisubice/style/nukeNAV.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.js"></script>
<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.colorbox-min.js"></script>

      <script type="text/javascript">
         $(document).ready(function(){
            if ($("input[name=\"submit\"]").length != 0 && $("input[name=\"reset\"]").length != 0) {
               $.fn.colorbox({ open:true, inline:true, href:"#ya_warning", width:"600px", height:"300px" });
            }
            $("a.close").click(function() {
               $.fn.colorbox.close()
            });
            $("input[name=\"username\"],input[name=\"email\"],input[name=\"cur_password\"],input[name=\"new_password\"],input[name=\"password_confirm\"],input[name=\"confirm_code\"],input[name=\"icq\"],input[name=\"aim\"],input[name=\"msn\"],input[name=\"yim\"],input[name=\"website\"],input[name=\"location\"],input[name=\"occupation\"],input[name=\"interests\"],input[name=\"dateformat\"]").attr("readonly", true);
            $("textarea[name=\"signature\"]").attr("readonly", true);
            $("select[name=\"language\"],select[name=\"style\"],select[name=\"timezone\"]").attr("disabled", true);
            $("input[name=\"viewemail\"],input[name=\"hideonline\"],input[name=\"notifyreply\"],input[name=\"notifypm\"],input[name=\"popup_pm\"],input[name=\"attachsig\"],input[name=\"allowbbcode\"],input[name=\"allowhtml\"],input[name=\"allowsmilies\"]").each(function() {
               if (!this.checked) {
                  $(this).attr("disabled", true);
               }
            });
         });
      </script><script type="text/javascript" language="JavaScript" src="includes/rn.js"></script>

<script type="text/javascript">
<!--
function openwindow(){
   window.open ('modules/Forums/copyright.php','Copyright','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200');
}
//-->
</script>

<script type="text/javascript">
   $(document).ready(function(){
      $(".colorbox").colorbox({opacity:0.65, current:"{current} of {total}"});
      $(".colorboxSEO").colorbox({opacity:0.50, width:"750", height:"300", iframe:true});
   });
</script>



Here's mine on a BRAND new fresh install of RN 2.40.1:

Code:
<link rel="StyleSheet" href="./themes/fisubice/style/style.css" type="text/css" />

<link rel="StyleSheet" href="themes/fisubice/style/Forums.css" type="text/css" />
<link rel="StyleSheet" href="includes/jquery/css/colorbox.css" type="text/css" />
<link rel="StyleSheet" href="includes/nukeSEO/nukePIE.css" type="text/css" />
<link rel="StyleSheet" href="includes/jquery/css/nukeNAV.css" type="text/css" />
<link rel="StyleSheet" href="themes/fisubice/style/nukeNAV.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="includes/rn.js"></script>
<script type="text/javascript">
<!--
function openwindow(){
   window.open ('modules/Forums/copyright.php','Copyright','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200');
}
//-->
</script>

<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.js"></script>

<script type="text/javascript" language="JavaScript" src="includes/jquery/jquery.colorbox-min.js"></script>
<script type="text/javascript">
   $(document).ready(function(){
      $(".colorbox").colorbox({opacity:0.65, current:"{current} of {total}"});
      $(".colorboxSEO").colorbox({opacity:0.50, width:"750", height:"300", iframe:true});
   });
</script>


If you do a side by side comparison, you will see what is missing from head tags. The keys to this problem, that's what is missing. Why? Is it my webserver?
 
Palbin







PostPosted: Fri Feb 25, 2011 4:12 pm Reply with quote

I have reproduced this, and am currently looking into it.
 
myrtletrees







PostPosted: Fri Feb 25, 2011 4:45 pm Reply with quote

Palbin wrote:
I have reproduced this, and am currently looking into it.


OMG, thank goodness, I'm NOT crazy! Well, then again..crazy like a fox...
 
Palbin







PostPosted: Fri Feb 25, 2011 4:50 pm Reply with quote

OK, first to fix the problem of not getting the pop-up.

Open modules/Forums/profile.php and find line 27
Code:


if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) {

Replace it with the following:
Code:


if ( isset($_GET['mode']) || isset($_POST['mode']) ) {



Second if you want to allow users to edit their profiles in the forums you need to do the following two edits.

Open modules/Forums/profile.php and find line 51
Code:


addJSToHead($inlineJS, 'inline');

Replace it with the following:
Code:


//addJSToHead($inlineJS, 'inline');


Open modules/Forums/includes/usercp_register.php and find lines 523-542
Code:


            if ($avatar_sql != '') {
               $avatar_sql = substr($avatar_sql, 2);
               $sql = 'UPDATE ' . USERS_TABLE . '
                     SET ' . $avatar_sql . '
                     WHERE user_id = ' . $user_id;

               //$sql = "UPDATE " . USERS_TABLE . "
               //      SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
               //      WHERE user_id = $user_id";

               if ( !($result = $db->sql_query($sql)) ) {
                  message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
               }

               // We remove all stored login keys since the password has been updated
               // and change the current one (if applicable)
               if ( !empty($passwd_sql) ) {
                  session_reset_keys($user_id, $user_ip);
               }
            }

Replace it with the following:
Code:


            //if ($avatar_sql != '') {
               $avatar_sql = substr($avatar_sql, 2);
               //$sql = 'UPDATE ' . USERS_TABLE . '
               //      SET ' . $avatar_sql . '
               //      WHERE user_id = ' . $user_id;

               $sql = "UPDATE " . USERS_TABLE . "
                     SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
                     WHERE user_id = $user_id";

               if ( !($result = $db->sql_query($sql)) ) {
                  message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
               }

               // We remove all stored login keys since the password has been updated
               // and change the current one (if applicable)
               if ( !empty($passwd_sql) ) {
                  session_reset_keys($user_id, $user_ip);
               }
            //}
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©