News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

User Control Panel ( User CP ) V3.0

Started by Alan S, April 28, 2007, 12:59:54 PM

Previous topic - Next topic

carbonize

#720
It was only bots in my case or rather one particular spider. I have now banned Yahoo! Slurp spider from my forum as I was getting thousands of hits a day from it. The day before I blocked them (using robots.txt) I had over 3000 hits. Yahoo seriously needs to fix it's stuff but as someone who has used Yahoo stuff for years (chat, email, messenger) I don't expect them to fix it anytime soon.
C a r b o n i z e

Keith Tysinger

Your suggestion nearly fixed all of my problems, however errors are still generated when a member uses the spell checker or (I believe) post preview.

The $txt['usercp'] must be missing somewhere else besides the wireless language file. Any thoughts?

Quote from: carbonize on November 14, 2008, 05:25:48 PM
There is a problem with version 3 that stops captcha from working. I just spent effing hours tracking down why captcha wasn't working just to find it was because you had a load of white space after the closing ?> in your language files.

I also turned on error logging and discovered that usercp was creating an error when someone viewed an entry using wap. I fixed it by adding the $txt['usercp'] = 'User CP'; to the wireless language file.
Contact me for all of your website design needs.

carbonize

What's the url from the error message?
C a r b o n i z e

Keith Tysinger

#723
I am still getting these types of errors:

http://www.mysite.com/forum/index.php?action=spellcheck
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969

http://www.mysite.com/forum/index.php?action=register;sa=usernamecheck;xml;username=tutu
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969


Here is 3968 in Subs: (second line is problem). 3967 is a blank line, but I guess that is ok?

           'usercp' => array(
            'title' => $txt['usercp'],
            'href' => $scripturl . '?action=usercp',
            'show' => $context['usercp_enable'],
            'sub_buttons' => array(
            ),
               ),'pm' => array(
            'title' => $txt['pm_short'],
            'href' => $scripturl . '?action=pm',
            'show' => $context['allow_pm'],
            'sub_buttons' => array(
               'pm_read' => array(
                  'title' => $txt['pm_menu_read'],
                  'href' => $scripturl . '?action=pm',
                  'show' => allowedTo('pm_read'),
               ),
               'pm_send' => array(
                  'title' => $txt['pm_menu_send'],
                  'href' => $scripturl . '?action=pm;sa=send',
                  'show' => allowedTo('pm_send'),
               ),
            ),
         ),

Also, could someone tell me how to turn on the sub-menu items? I've never seen them. I am using 2.0 B 4.
Contact me for all of your website design needs.

BillyBob31

Are you gonna make this compatible with 1.1.7? I was using it with 1.1.6 and upgraded now it doesn't work on 1.1.7 and im really really bummed about that.

BillyBob31

If anyone has gotten this to work for 1.1.7 can someone help me to get it to work on mine. I am using default theme and when i try to install through packages only error that comes up is test failed in file ./sources/ModSettings.php  everything else passes so can anyone help get this to work for me please?

Keith Tysinger

I added $txt['usercp'] to index.english.php and all is well. It is a bug in the install or my permission was not set correctly.

Quote from: kc2002 on November 20, 2008, 05:19:00 PM
I am still getting these types of errors:

http://www.mysite.com/forum/index.php?action=spellcheck
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969

http://www.mysite.com/forum/index.php?action=register;sa=usernamecheck;xml;username=tutu
8: Undefined index: usercp
File: /var/www/vhosts/mysite.com/httpdocs/forum/Sources/Subs.php
Line: 3969


Here is 3968 in Subs: (second line is problem). 3967 is a blank line, but I guess that is ok?

           'usercp' => array(
            'title' => $txt['usercp'],
            'href' => $scripturl . '?action=usercp',
            'show' => $context['usercp_enable'],
            'sub_buttons' => array(
            ),
               ),'pm' => array(
            'title' => $txt['pm_short'],
            'href' => $scripturl . '?action=pm',
            'show' => $context['allow_pm'],
            'sub_buttons' => array(
               'pm_read' => array(
                  'title' => $txt['pm_menu_read'],
                  'href' => $scripturl . '?action=pm',
                  'show' => allowedTo('pm_read'),
               ),
               'pm_send' => array(
                  'title' => $txt['pm_menu_send'],
                  'href' => $scripturl . '?action=pm;sa=send',
                  'show' => allowedTo('pm_send'),
               ),
            ),
         ),

Also, could someone tell me how to turn on the sub-menu items? I've never seen them. I am using 2.0 B 4.
Contact me for all of your website design needs.

BillyBob31

Does someone  need my old version from the 1.1.6 smf to be able to edit it to work on 1.1.7? If anyone can do this please tell me. Its only 1 file that fails on the install so it cant be too bad.

Keith Tysinger

A lot of changes are made in the ModSettings.php file. How many errors are you getting in that one file?

The best thing is to install as usual, and then go in and manually do whatever fails. Are all of the changes failing in the modsettings file or just one?

Quote from: BillyBob31 on November 23, 2008, 06:22:29 PM
Does someone  need my old version from the 1.1.6 smf to be able to edit it to work on 1.1.7? If anyone can do this please tell me. Its only 1 file that fails on the install so it cant be too bad.
Contact me for all of your website design needs.

BillyBob31

jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/

carbonize

Strange thought but why does SMF load the language files when all it is going to do is display a captcha image? Seems like a waste of resources to me.
C a r b o n i z e

Keith Tysinger

Isn't CP 3.0 only for SMF 2.0? Maybe not. But if you will click on install, it will list all of the "Installations actions." Click on the little triangle before each file to see all actions.

Now how many errors are you getting for that one file?

Quote from: BillyBob31 on November 24, 2008, 01:09:02 AM
jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/
Contact me for all of your website design needs.

BillyBob31

Quote from: kc2002 on November 25, 2008, 04:25:06 PM
Isn't CP 3.0 only for SMF 2.0? Maybe not. But if you will click on install, it will list all of the "Installations actions." Click on the little triangle before each file to see all actions.

Now how many errors are you getting for that one file?

Quote from: BillyBob31 on November 24, 2008, 01:09:02 AM
jsut the modsettings u know when u tell it to install and that warning comes up and shows the problem file modsettings in red ... thats all i went to the mod and click the manual setup say for 1.1.6 and it wouldnt open so i couldnt even do that =/

This is what i get for Install Actions after Clicking Apply Mod:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Themes/default/index.template.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test successful
6.    Extract Tree    ./Themes/default/images/usercp   
7.    Extract File    ./Sources/usercp.php   
8.    Extract File    ./Themes/default/usercp.template.php   
9.    Execute Code    install.php

Kindred

I thought that v3.0 was only for SMF 2.0 as well...

but if it fails on one of the files, then take a look at the manual installation instructions for that file and do the changes yourself...

BTW: I'm not sure *WHY* the error is happening with the language files (the usercp should not be called at all from the XML view of the forum), but I now know the easiest way to fix it...   add the error strings into modifications.english.php in addition to usercp.english.php.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

RoH

its a great MOD, can the author please code it to work on NEW 1.1.7 installation please.

Thanks

BillyBob31

Just got it to work on 1.1.7  I went and said install (even tho i had that 1 error) then i went and edited that 1 error file modsettings.php manually went to the manual install and found the part for that file and i went and seen what the auto install didnt edit and put in and with a lil common sense and search i edited it and got it to work took maybe 15 min of editing. So it does work on 1.1.7!

taha116

Please make a version that will work for 1.1.7 I do know how to edit but i do not want to take any risks, Once i spent hours and hours for weeks and when my site was complete I was still unsatisfied (big mistake) I edited a little and mus have forgoten a tag here or there and bam, whole theme got jacked up and I could not find the tiniest little issue
"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116


taha116

Looking for a manual edit for V3.... I need to modify my subs.php file to install this can anyone do it?

       Type     Action     Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Add Before    ./index.php    Test successful
*    2.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Add After    ./Themes/default/index.template.php    Test successful
*    3.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test failed

      2.    Add Before    ./Sources/Subs.php    Test successful
*    4.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add Before    ./Sources/Admin.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
   6.    Extract Tree    ./Themes/default/images/usercp    
   7.    Extract File    ./Sources/usercp.php    
   8.    Extract File    ./Themes/default/usercp.template.php    
   9.    Extract File    ./Themes/default/languages/usercp.english.php    
   10.    Extract File    ./Themes/default/languages/usercp.english-utf8.php    
   11.    Execute Code    install.php

As you can see only one part failed in subs.php


Find [Select]

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));

Replace [Select]

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
$context['usercp_enable'] = !$user_info['is_guest'] && $modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));
  $context['allow_edit_profile'] = !$user_info['is_guest'] && !$modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));

"The man who smiles when things go wrong has though of someone to blame things on"
I forgot the name
BUY electronic cigarettes with rechargeable batteries as well as flavored refills for cheap prices and only 1-2 dollars of shipping!
http://www.ngcigarettes.com/
~Taha116

LadyC

i'd like to add a custom field to view reputation, which is (of course) user specific. i found the instructions for doing this manually for version 2.0, but i'm using the 3.0. could someone point me to some updated instructions if they've been posted?

Advertisement: