SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



SocialAcademy • Forum » Support Section » Ask Question 's & Problems » Solved & Trash Files  →   [Solved] How can I add IPB Admin Control Panel in menu?

[Solved] How can I add IPB Admin Control Panel in menu?


    Go to page : 1, 2, 3  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 1 of 3]

#1

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Fri May 30, 2014 7:15 am

 
Details: IPB Admin Control Panel
Forum Address: http://linux-team.forumgreek.com/
Forum Version: PunBB

How can I add IPB Admin Control Panel in menu? I want to add it on my navbar but I dont want to be visible to guests/members. Is there a way to fix this issue?

With Best Regards,
Dark-Avenger

#2

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Fri May 30, 2014 7:20 am

 
Hi,

When creating a new menu you have the option to set the rights.

[Solved] How can I add IPB Admin Control Panel in menu? 3n6RoXx

Just uncheck members & guests and they shouldn't be able to see it. :)

#3

Offlineerchima

erchima
 
Member
Member

Posted Fri May 30, 2014 7:20 am

 
Dark-Avenger wrote:[link="/t228-how-can-i-add-ipb-admin-control-panel-in-menu#1349"]Details: IPB Admin Control Panel
Forum Address: http://linux-team.forumgreek.com/
Forum Version: PunBB

How can I add IPB Admin Control Panel in menu? I want to add it on my navbar but I dont want to be visible to guests/members. Is there a way to fix this issue?

With Best Regards,
Dark-Avenger
JS
Code:


jQuery(window).load(function() {
if (typeof _userdata === "undefined") return;
if ((_userdata['user_level'] == '1') || (_userdata["user_level"] == '2')) {
 jQuery('body').append('<div id="fa_modtable" class="select" style="visibility:hidden;width:auto;text-align:left;"><div class="rndmtablex" id="rndmtable1">Solved/Accept</div><div class="rndmtablex" id="rndmtable2">Warning</div><div class="rndmtablex" id="rndmtable3">Information</div>');
 jQuery('.sceditor-group:last-child').after('<div class="sceditor-group" id="fa_modtools"><a class="sceditor-button" title="Mod Tables" onclick="selectWysiwyg(this, \'fa_modtable\');"><div style="background:url(http://i56.servimg.com/u/f56/18/45/41/65/modera10.png) no-repeat center;"></div></a></div>');
 jQuery('#rndmtable1').click(function() { jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="alert-x solvedbox"][tr][td class="alert-y"]','[/td][/tr][/table]');});
jQuery('#rndmtable2').click(function() { jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="alert-x warningbox"][tr][td class="alert-y"]','[/td][/tr][/table]');});
 jQuery('#rndmtable3').click(function() { jQuery('#text_editor_textarea').sceditor('instance').insertText('[table class="alert-x informbox"][tr][td class="alert-y"]','[/td][/tr][/table]'); });
 jQuery('.rndmtablex').click(function() { jQuery('#fa_modtable').css('visibility','hidden'); });
 }
});

CSS
Code:

.alert-x {
padding: 14px 17px;
color: #fefefe;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.4);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.4);
-khtml-box-shadow: 0 1px 5px rgba(0,0,0,0.4);
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
border-style: solid;
border-width: 0;
position: relative;
width: 100%;
font: 14px/20px Museo300Regular,Helvetica,Arial,sans-serif;
}
.alert-y {
padding: 0 20px 0 40px;
}
.informbox {
background: #2fa9f6 url(http://w3lessons.info/demo/metro-style-alert-box/images/info.png) no-repeat 14px 14px;
}
.solvedbox {
background: #7EB62E url(http://w3lessons.info/demo/metro-style-alert-box/images/success.png) no-repeat 14px 14px;
}
.warningbox {
background: #BE1B00 url(http://w3lessons.info/demo/metro-style-alert-box/images/error.png) no-repeat 14px 14px;
}

The level of users are as follows :
0 = Member
1 = Administrator
2 = Moderator

Preview:
[Solved] How can I add IPB Admin Control Panel in menu? Asd11

Credit:
AngeTuteur

http://www.erchima.net/
#4

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Fri May 30, 2014 7:32 am

 
Hello Erchima,
No this is a different thing. I was follow this tutorial https://socialacademy.forumotion.com/t93-html-ipb-style-admin-panel and I want to add a link for ACP in that point http://prntscr.com/3nxm0x but this link mustn't be visible on guests or members, it must be visible to admins/mods which have access in acp.

Best Regards,
Dark-Avenger

#5

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Fri May 30, 2014 7:39 am

 
Illest wrote:[link="/t228-how-can-i-add-ipb-admin-control-panel-in-menu#1351"]Hi,

When creating a new menu you have the option to set the rights.

[Solved] How can I add IPB Admin Control Panel in menu? 3n6RoXx

Just uncheck members & guests and they shouldn't be able to see it. :)
Hi,
I have a customized navbar and menu bar. How can i fix it?

#6

Offlineerchima

erchima
 
Member
Member

Posted Fri May 30, 2014 7:46 am

 
looolll xD
you can make button on overal header
then put code
Code:
<!-- BEGIN switch_auth_user -->
This is your button
<!-- END switch_auth_user -->
Then it just moderator and administrator can see this button

http://www.erchima.net/
#7

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Fri May 30, 2014 1:14 pm

 
Hi all,
I am adding the following code in my overall_header template but the link its not displayed on nav menu:

Code:

<!-- BEGIN switch_auth_user -->
<li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
<!-- END switch_auth_user -->

#8

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri May 30, 2014 1:17 pm

 
Try this

Code:
<!-- BEGIN switch_user_logged_in -->
<li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
<!-- END switch_user_logged_in -->

https://socialacademy.forumotion.com
#9

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Fri May 30, 2014 1:27 pm

 
Hi Red,
I am using already this code for nav menu but the registered members can see the link Admin CP as the other links like Profile, PM, Notifications and Signout.

#10

Offlineerchima

erchima
 
Member
Member

Posted Fri May 30, 2014 1:35 pm

 
Red™ wrote:[link="/t228-how-can-i-add-ipb-admin-control-panel-in-menu#1391"]Try this

Code:
<!-- BEGIN switch_user_logged_in -->
<li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
<!-- END switch_user_logged_in -->
i think use switch_user_logged_in its showing all member

http://www.erchima.net/
#11

OfflineSponsored content


 

Posted

 

Message (Page 1 of 3)


    Go to page : 1, 2, 3  Next


Share Topics Url

Url
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Create a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022