PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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: 414
Location: France,Translator

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

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
View user's profile Send private message Visit poster's website MSN Messenger
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

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

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: 9136
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

I agree with Montego. My upgrade works just like fresh install.
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 Back to top

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
Moderator


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

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

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 Back to top

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
Involved
Involved


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

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

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?
View user's profile Send private message
Palbin
Site Admin


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

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

Just to trouble shoot have you tried with a default theme?
View user's profile Send private message
myrtletrees
Involved
Involved


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

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

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
Palbin
Site Admin


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

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

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.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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).
View user's profile Send private message Send e-mail Visit poster's website
myrtletrees
Involved
Involved


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

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

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.
View user's profile Send private message
Palbin
Site Admin


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

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

I'll tell you how to change it back if you want and if I have time tonight.
View user's profile Send private message
myrtletrees
Involved
Involved


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

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

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


Change what back? Confused
View user's profile Send private message
Palbin
Site Admin


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

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

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.
View user's profile Send private message
myrtletrees
Involved
Involved


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

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

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.
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


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

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

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
myrtletrees
Involved
Involved


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

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

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
View user's profile Send private message
myrtletrees
Involved
Involved


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

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

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?
View user's profile Send private message
Palbin
Site Admin


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

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

I have reproduced this, and am currently looking into it.
View user's profile Send private message
myrtletrees
Involved
Involved


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

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

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...
View user's profile Send private message
Palbin
Site Admin


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

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

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);
               }
            //}
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum