Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post CMS And ACP Link In A CMS HTML Block 
 
Hi all,


I'm trying to put in a CMS HTML Block the two links "ACP" and "CMS" an show this two only to who is authorized to see that, the problem is that some parts of this block must be visible to all users...

It's possible to do what i want?? If yes, how???


thanks

o/
 



 
MarfoSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
You should have a look at the original navquicklinks.tpl o overall_header.tpl

they are set like this:

Code: [Download] [Hide]
  1. <!-- IF S_ADMIN -->  
  2.                 <tr>  
  3.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  4.                     <td class="genmed" align="left">{U_ACP}</td>  
  5.                 </tr>  
  6.                 <tr>  
  7.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  8.                     <td class="genmed" align="left"><a href="{U_CMS}">{L_CMS}</a></td>  
  9.                 </tr>  
  10.                 <!-- ENDIF --> 


of course you can change the links.

The important thing is <!-- IF S_ADMIN --> and <!-- ENDIF -->
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
spydie wrote: [View Post]
You should have a look at the original navquicklinks.tpl o overall_header.tpl

they are set like this:

Code: [Download] [Hide]
  1. <!-- IF S_ADMIN -->  
  2.                 <tr>  
  3.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  4.                     <td class="genmed" align="left">{U_ACP}</td>  
  5.                 </tr>  
  6.                 <tr>  
  7.                     <td align="left" width="8">{IMG_NAV_MENU_SEP}</td>  
  8.                     <td class="genmed" align="left"><a href="{U_CMS}">{L_CMS}</a></td>  
  9.                 </tr>  
  10.                 <!-- ENDIF --> 


of course you can change the links.

The important thing is <!-- IF S_ADMIN --> and <!-- ENDIF -->



ok, but i must have a file to import...
which one??

only with the code that you've posted it doesn't work and i see {U_CMS} and {U_ACP}
 



 
MarfoSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
should be : includes/page_header.php . That is the file with all definitions of {U_xxx} and {L_xxx}


Try with this:

<!-- INCLUDE ../includes/page_header.php -->
 




____________
Out of Order
 
spydieSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
spydie wrote: [View Post]
should be : includes/page_header.php . That is the file with all definitions of {U_xxx} and {L_xxx}


Try with this:

<!-- INCLUDE ../includes/page_header.php -->


it doesn't work
 



 
MarfoSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
Marfo wrote: [View Post]
Hi all,


I'm trying to put in a CMS HTML Block the two links "ACP" and "CMS" an show this two only to who is authorized to see that, the problem is that some parts of this block must be visible to all users...

It's possible to do what i want?? If yes, how???


thanks

o/

Why not make two CMS HTML Block? close to each other...
In the first (with ACP and CMS) u give permissions to see it the admin only, and the second permissions for all ....
 



 
CostaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
Costa wrote: [View Post]
Marfo wrote: [View Post]
Hi all,


I'm trying to put in a CMS HTML Block the two links "ACP" and "CMS" an show this two only to who is authorized to see that, the problem is that some parts of this block must be visible to all users...

It's possible to do what i want?? If yes, how???


thanks

o/

Why not make two CMS HTML Block? close to each other...
In the first (with ACP and CMS) u give permissions to see it the admin only, and the second permissions for all ....


do you mean create two html block in the same position???

yes i can do but for the generation of the ACP link?? this depends from the user session... how can i do whit this problem??
 



 
MarfoSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
Put yourself the link for ACM


Quote:
do you mean create two html block in the same position???


yes you can do so. In the same place. In this case, the first block text contains the ACM link to be seen by admin only, and the second everyone else can see from all, except from the admin.
It depending from you, and what do you want to write there
 



 
CostaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
Costa wrote: [View Post]
Put yourself the link for ACM


Quote:
do you mean create two html block in the same position???


yes you can do so. In the same place. In this case, the first block text contains the ACM link to be seen by admin only, and the second everyone else can see from all, except from the admin.
It depending from you, and what do you want to write there


yes i can do in this way, but for the generation of ACP Link?? how can I do??
 



 
MarfoSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
I do not know if there is a way in existing ACP with the existing funcions.
Or if there is a better way without having to make use of Code.
 



 
CostaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
Marfo wrote: [View Post]
I'm trying to put in a CMS HTML Block the two links "ACP" and "CMS" an show this two only to who is authorized to see that, the problem is that some parts of this block must be visible to all users..


I would do that with dynamic menu in CMS
http://www.icyphoenix.com/viewtopic...ighlight=menu#3

You can give each link a permision for a usergroup
and you can put the dyn menu on every site you would like: portal, forum and so on
 




____________
TheSteffen
Often SEARCH is the quickest way to get support.
IcyPhoenix German Support
 
TheSteffenSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: CMS And ACP Link In A CMS HTML Block 
 
TheSteffen wrote: [View Post]
Marfo wrote: [View Post]
I'm trying to put in a CMS HTML Block the two links "ACP" and "CMS" an show this two only to who is authorized to see that, the problem is that some parts of this block must be visible to all users..


I would do that with dynamic menu in CMS
http://www.icyphoenix.com/viewtopic...ighlight=menu#3

You can give each link a permision for a usergroup
and you can put the dyn menu on every site you would like: portal, forum and so on



Ok,

thank you
 



 
MarfoSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron