News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

User Control Panel ( User CP ) V3.0

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

Previous topic - Next topic

Kindred

you have to put it before the closing ?>
Сл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."

Alan S

Yes , the modifications.portugese.php  , Go down to the very end and place the text strings before ?>
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

LinkinParkBoy

It's already working, my bad lol here's a better Pt traduction:


Quote$txt['usercp'] = 'Perfil';
$txt['usercp_account_info'] = 'Meu Perfil';
$txt['usercp_account_info_summary'] = 'Clique aqui se desejar alterar informacoes como o seu username, e-mail, password ou outros dados da sua conta.';
$txt['usercp_look_and_layout'] = 'Preferencias do Layout';
$txt['usercp_look_and_layout_summary'] = 'Alterar forma de visualizacao do Forum, topicos e mensagens.';
$txt['usercp_my_theme'] = 'Os meus Temas';
$txt['usercp_my_theme_summary'] = 'Escolher tema por defeito, se desactivado pela administracao nao podes efectuar nehuma alteracao.';
$txt['usercp_my_profile'] = 'Meu Perfil';
$txt['usercp_my_profile_summary'] = 'Alterar perfil visivel.';
$txt['usercp_my_stats'] = 'Ver Estatisticas';
$txt['usercp_my_stats_summary'] = 'Tuas estatisticas gerais no Forum.';
$txt['usercp_my_posts'] = 'Ver Mensagens';
$txt['usercp_my_posts_summary'] = 'Mostra as tuas mensagens colocadas neste Forum.';
$txt['usercp_my_notifications'] = 'Notificacoes e Email';
$txt['usercp_my_notifications_summary'] = 'Esta pagina vai permitir-lhe mudar o tipo e frequencia das notificacoes que recebes via email quando participas nos topicos.';
$txt['usercp_buddies'] = 'Lista de Amigos';
$txt['usercp_buddies_summary'] = 'Esta pagina vai permitir-lhe que escolhas os amigos a adicionar a tua lista.';
$txt['usercp_message_options'] = 'Opcoes das Mensagens Pessoais';
$txt['usercp_message_options_summary'] = 'Esta pagina permite que modifiques as tuas preferencias para PMs recebidas e tambem para ignorar pessoas que nao desejes receber PMs.';
$txt['usercp_search'] = 'Procurar';
$txt['usercp_search_summary'] = 'Esta pagina ira permitir que efectues uma busca por mensagens criadas neste Forum.';
$txt['usercp_contact_admin'] = 'Contactar Administracao';
$txt['usercp_contact_admin_summary'] = 'Confuso? Ou tem alguma duvida? Contacte o Admininstrador via email aqui';
$txt['usercp_guest'] = 'Desculpa Visitante, nao tens permissao para aceder ao teu Perfil';
$txt['usercp_login'] = 'Entrar';
$txt['usercp_or'] = 'our';
$txt['usercp_register'] = 'Registar-se';
$txt['usercp_copyright'] = 'User Cp V1.3 | Created By Alan S';
$txt['usercp_welcome'] = 'Bem Vindo ';



Nice mod man, u rox  ;)

Alan S

Thanks for the translation , has been added to the front page.
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

iyeru42

#184
This won't work with the scribbles theme, due to the below code
<a href="', $scripturl, '?action=profile">' , $txt[79] , '</a>

changing to

<a href="', $scripturl, '?action=usercp">' , $txt['usercp'] , '</a>

Not obeyed. (Instead, it uses $current_action=='profile', even if I change it to usercp, nothing will change.)

And on the SAF Multi-Color Theme, the profile link is replaced with blank text, and all of the images are blank. All the UserCP images are blank for the Christmas Season 1.1 skin as well. It seems, the images only work on the SMF Core theme >>; Even the Babylon Theme shows blank images.

Snow Wolf

I flipped through all 10 pages and if I missed this question then I am sorry for asking.

I have my own custom theme, I followed the directions and got the User CP up and going. My problem is with my forum background the text in the CP is hard to read. Is there an easy way to say fill in the background of the text with a solid color?
www.MythicSoftware.com

Software for the Pagan community

Alan S

Well you could try to add <font> tags to the url code.

so it would be like

<a href="' , $scripturl ,'?action=usercp"><font color="yourcolour">User CP</font></a>

Or instead of using hardcoded text you could try the font tags with the $txt string. I am not sure if those tags will work though , The other option would be to edit the stylesheet , but then you would have to change the colour for all the links.
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

Snow Wolf

Quote from: Alan S on December 05, 2007, 01:32:08 PM
Well you could try to add <font> tags to the url code.

so it would be like

<a href="' , $scripturl ,'?action=usercp"><font color="yourcolour">User CP</font></a>

Or instead of using hardcoded text you could try the font tags with the $txt string. I am not sure if those tags will work though , The other option would be to edit the stylesheet , but then you would have to change the colour for all the links.

But isn't that for the main link to GET to the CP? I'm talking about editing the text once your in the CP. The following is to hard to read on my forum because of my background. I wanted to know where the tag is so I could do a <style="background-color:#whatEver;"> so the text has its own background and is easy to read. My problem is I am not sure where the "container" is that formats the text.

Example of what I cant read because of my background:

QuoteClick here if you want to change your account related information such as username, email, password or other sensitive details.
www.MythicSoftware.com

Software for the Pagan community

Kindred

I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...
Сл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."

Snow Wolf

Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?
www.MythicSoftware.com

Software for the Pagan community

Alan S

Quote from: Snow Wolf on December 05, 2007, 10:55:02 PM
Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?

Its not pulling from a stylesheet , it uses the default stylesheet. I am at school now , When i get home in 6 hours or so i will explain in further detail.
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

Snow Wolf

Quote from: Alan S on December 06, 2007, 04:47:03 AM
Quote from: Snow Wolf on December 05, 2007, 10:55:02 PM
Quote from: Kindred on December 05, 2007, 05:12:18 PM
I suggest that you install Firefox with the web developer toolbar. This lets you display the exact CSS container(s) that any element is in...

I just tried that and it does not seem to be pulling from a style sheet. Maybe its pulling from the index.template.php file?

Its not pulling from a stylesheet , it uses the default stylesheet. I am at school now , When i get home in 6 hours or so i will explain in further detail.


Just a reminder that you were going to tell me how it works. Sorry, I say that because you said 6 hours and its been 15. Just thought that maybe you forgot, I mean 6 hours is a long time and sometimes I forget what I had for breakfast.
www.MythicSoftware.com

Software for the Pagan community

Alan S

LOl sorry i was busy.


The user cp uses the same stylesheet as all the other files , If you wanted to edit the colour of the tables , You could try adding a div instead of a td.

Please Note , This has NOT been tested , Backup files before trying this.

So in the style.css ( Themes/yourtheme/style.css )

Add this to the top of the file ( obviously using your own background colour )

#usercp1 {
background-color: #000000;
font-family: Verdana, Helvetica, Arial, geneva, sans-serif;
padding: 0;
margin: 100px 0 10px 0;
text-align: left;
}


And then in the usercp.template.php , Find the td of what you want to change the background colour of.

It would be something like

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></font></td>


Replace it with

<div id="usercp1"><a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=theme"><img border="0" src="',$settings['images_url'],'/usercp/kivio.png" width="80" height="80"></a></div>

So you basicaly remove the

<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">


And replace it with

<div id="usercp1">

And then remove this code at the end

</font></td>

And replace it with

</div>

And that should work. Please get back to me if it doesn't. I might include its own stylesheet in the next version ( 1.4 ) for ease of colour customisation.
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

Snow Wolf

...well it worked....for the picture not the text. I tried putting what looks like the text portion in the div tag but it did nothing.

<div id="usercp1">


<td align="center" width="25%" valign="top">

<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=account"><b>',$txt['usercp_account_info'],'</a><br>

</b></font><font face="Verdana" size="1">',$txt['usercp_account_info_summary'],'</font></td>


</div>
www.MythicSoftware.com

Software for the Pagan community

Alan S

That code wont work , your using <td> and <div>

Try this.


<div id="usercp1">
<a href="', $scripturl, '?action=profile;u=', $ID_MEMBER, ';sa=account"><b>',$txt['usercp_account_info'],'</a><br>
</b>',$txt['usercp_account_info_summary'],'
</div>
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

Snow Wolf

Nope, not working. That just made the text vanish. Like there was a "frame" hiding it.
www.MythicSoftware.com

Software for the Pagan community

Matthew Schenker

This modification looks very interesting!  I've been wanting to simplify and organize the member area of my forum for a while now.
Can anyone comment on how well this works in 1.1.4?  Also, is this going to be a basic feature of 2.0?
Thanks,
Matt

Snow Wolf

Quote from: Matthew Schenker on December 10, 2007, 09:45:31 AM
This modification looks very interesting!  I've been wanting to simplify and organize the member area of my forum for a while now.
Can anyone comment on how well this works in 1.1.4?  Also, is this going to be a basic feature of 2.0?
Thanks,
Matt

Well, I can tell you I use it for smf 1.1.4 and it works wonderfully. Ignore the problems I am having, its all due to my custom theme, on a solid background color it works great as you can read the text.

No idea about the 2.0 but I hope so.
www.MythicSoftware.com

Software for the Pagan community

Webbyman

Yep, works a treat in 1.1.4, and adding new buttons is easy.

Thumbs up to the creator.

Alan S

No , it will not be a default feature of SMF 2.0 , SMF 2.0 is in beta now , as most people now , so all the main features are after being added. Do not worry though , I have updated the UserCP to work with 2.0 ( I used to be a Charter Member ) , And i will continue to support it for 2.0 for as long as i am able.
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

Advertisement: