Topic Options
#43648 - 05/30/13 11:02 AM Format elements of a protected fonction
Tom R. Offline
OL Newbie

Registered: 10/27/11
Posts: 20
Loc: France
Hello,

I'm trying to create an advanced template.
In order to customize some simples things, i saw that the function who generate the user-info block is not fully coded to do what i want.

The function "generateUserInfo();" give that : (when i'm connected obviously)
Code:
<ul>
<li>firstname lastname</li>
<li><a href="site.php?pageid=public_person_my_account">Mon compte</a></li>
<li><a href="site.php?formid=logoff_check">Déconnexion</a></li>
<li class="last-child">[...language selector...]</li>
</ul>

I want to skin the "logoff" button, the "User ID" and the "my account" button with different design.
But the li and the a tags are not classed.

I would need something like that :
Code:
<ul>
<li class="userid">firstname lastname</li>
<li class="myaccount_button"><a href="site.php?pageid=public_person_my_account">Mon compte</a></li>
<li class="logoff_button"><a href="site.php?formid=logoff_check">Déconnexion</a></li>
<li class="last-child">[...language selector...]</li>
</ul>


But the fonction, (and sure, i understand why) is under zendguard protection.
Can you provide me the modified fonction like i want, or an open UserInfo that i can modify myself?

I think its not a critical function, intellectual rights speaking, and i'm sure you can bring it to your todo list for the next update. smile

regards,
Tom

Top
#43654 - 05/31/13 09:28 AM Re: Format elements of a protected fonction [Re: Tom R.]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
Tom,

As you said, the functions are protected, and not manually editable. Therefore, posting an "unprotected" version of the function on the newsgroup is probably not an option. Also, please note that the manual editing of the code is not supported, and you basically do so at your own risks.

You may try to call your sales rep, and ask if there's any ways you could obtain the custom modification that you need for your system. They will tell you what options are available to you.

Regards,
Raphaël Lalonde Lefebvre

Top
#43671 - 06/03/13 04:48 AM Re: Format elements of a protected fonction [Re: Tom R.]
Tom R. Offline
OL Newbie

Registered: 10/27/11
Posts: 20
Loc: France
ok, thnkyou Raphael.
obviously I suspected that the answer smile

Top