News:

Wondering if this will always be free?  See why free is better.

Main Menu

User Control Panel ( User CP ) V3.0

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

Previous topic - Next topic

prottoy

#420
hi Alan S can u plz help me? i want to do this mod for 'kelo-it' theme...how to do it canu plz give me the instruction....

i try to do as like i do for default theme but i faced a prblm that in the menu top it didnt show  logout,search,calender....this options vanished....so can u give me the full instructions plz...

Marcus Forsberg

Open Themes/kelo-lt/index.template.php

Then, find

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'profile' ? 'current' : '' , '"><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';


And replace it whit

// Edit Profile... [profile] if usercp is enabled
       if ($context['allow_edit_profile'] && $modSettings['usercp_enable'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'profile' ? 'current' : '' , '"><a href="', $scripturl, '?action=usercp;u=',$ID_MEMBER,'">' , $txt['usercp'] , '</a></li>';


prottoy

#422
THX FOR REPLY....i have done this edit....all works fne bt 1 major prblm...there is no 'usercp' option in menu top...all optns are ok like home help search logout but no option for usercp.....how can i make this optn plz plz plz help :(

perplexed

the edits are all explained here http://custom.simplemachines.org/mods/index.php?mod=698

just click your version and follow the info for the theme edits :)  your edit is most likely in the index.template.php file as it is with the default theme

Kindred

prottoy,

I'll bet that, if you had bothered to read the rest of this thread, you would have noticed about 20 people with the same complaint...   and, invariably, the problem was:  The mod only installs automatically in the default theme and English. (English UTF-8 is different from English).

So... try switching your board over to the default theme and English language.  If it works then... then you will have to manually apply the edits to your custom theme and/or your non-English langauge.

(and before you ask, the description for how to manually apply the mod is linked directly from the mod download page...  that perplexed linked you to.)


Next time, please try reading and/or using search? When a thread is this long, the chances are your question was answered.
Сл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."

MissyNL

hello,

Is it possible to add a code so that only certain membergroups can view the profile or photo's?
The problem for me is.. that girls on my forum put pictures in, that are sometimes naughty  O:)

So i have made a membergroup VIP members. To become a vipmember the first have to do a camcheck, so that i know that it is a girls behind the profile and not a old men of 77. They do not mind showing the foto's to other girls.. but not dirty old men :D

I know that you can choose only friends.. but... if they can choose a membergroup.. that would be great!

Thanks!
Sorry for my poor English, but i think it's probably better then your Dutch :)

Kindred

again...   almost anything is POSSIBLE.
However, this would require some major coding to allow USERS to determine who can view their profile.

On the other hand, in the standard permissions, *YOU* can prevent groups from viewing or allow groups to view profiles
Сл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."

LLStarks



Alan S

Quote from: LLStarks on May 23, 2008, 09:36:16 PM
Any news on a SMF 2.0 version?

Well i had nearly everything done , There was just the admin side and the menu button to do , Unluckly the P.C that contained those files broke a few days ago and i havent had time to retrieve the files yet , So currently i have no ETA on the realse date of a 2.0 version.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

lesmond

Hi I have added this mod to a custom theme, and I am getting these errors..

I am using tp 0.98 and smf 1.1.5 I have added the menu code to the index.template file for the theme.

when you click on the link to the usercp, this is the url   ./index.php?action=usercp;u=  notice no user id #


/index.php?action=viewErrorLog;desc
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 1257

/index.php?action=admin
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 1257


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

Alan S

Quote from: lesmond on May 31, 2008, 08:12:45 PM
Hi I have added this mod to a custom theme, and I am getting these errors..

I am using tp 0.98 and smf 1.1.5 I have added the menu code to the index.template file for the theme.

when you click on the link to the usercp, this is the url   ./index.php?action=usercp;u=  notice no user id #


/index.php?action=viewErrorLog;desc
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Login.template.php (main_above sub template - eval?)
Line: 1257

/index.php?action=admin
8: Undefined variable: ID_MEMBER
File: /home/xxxxx/public_html/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 1257


Hey , Well it sounds to me like your missing a global statement ,

Search for this code


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context,


Directly after the $context, there should be


$ID_MEMBER, $modSettings,


If that is not there add them in so that total line of code should be

global $context, $ID_MEMBER, $modSettings,
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P


Kindred

run the mod parser (i.e. "manual install instructions") from the mod site where you downloaded this mod.
Сл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."

Lady Night Owl

I'm getting this error on 1.1.5 whenever I try to go to Features/Options:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in Sources/ModSettings.php on line 206

Which keeps pointing to:

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---


:(
Running SMF 2.0.1

Alan S

Quote from: ladynightowl on July 05, 2008, 02:15:13 PM
I'm getting this error on 1.1.5 whenever I try to go to Features/Options:

Parse error: syntax error, unexpected T_DOUBLE_ARROW in Sources/ModSettings.php on line 206

Which keeps pointing to:

// --- Begin modification - SMFBlog ---
'usercp' => 'ModifyUserCPSettings',
// --- End modification ---


:(

Hmmm , Try undoing all the changes to Modsettings.php and add them again manualy

Use the mod parser to get the edits ( http://custom.simplemachines.org/mods/index.php?mod=698  )
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Alan S

Quote from: Lafemme on May 07, 2008, 01:35:15 PM
hello,

Is it possible to add a code so that only certain membergroups can view the profile or photo's?
The problem for me is.. that girls on my forum put pictures in, that are sometimes naughty  O:)

So i have made a membergroup VIP members. To become a vipmember the first have to do a camcheck, so that i know that it is a girls behind the profile and not a old men of 77. They do not mind showing the foto's to other girls.. but not dirty old men :D

I know that you can choose only friends.. but... if they can choose a membergroup.. that would be great!

Thanks!


Sorry for a late reply from me , It is possible , but as Kindred said it would require extra coding. If you are still intrested in doing this let me know and i can talk about a few options with you.
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

b33z

i installed this manually due to custom theme, with no problems at all! works perfect, looks great! as soon as i installed it, i pm'd another site owner friend of mine who uses smf and told him to check it out. as soon as he did he pm'd me back and absolutely had to have my user cp!! couple more have grabbed it due to our word of mouth. thanks for the works!!!! (and by the works i mean it! you get the works with this mod!!)

khamseen

Hi there, I like the mod but the problem I'm having is getting it to work with the "Enterprise" theme. My site uses that and I did try manually installing it to the site and got it showing in the admin panel for the settings page and I got it so that if I manually enter the link URL I can see it (Though without any of the images on it).

However, my menu bar at the top of the site shows "Profile" sitting above all the other buttons and it still links to the default profile. Any information on incorporating it to the Enterprise theme?
"In hope we find despair and in despair we find truth." - Myself

Kindred

you have to modify the button in your theme's index.template.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."

Advertisement: