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? - Page 3

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


    Go to page : Previous  1, 2, 3

  • Please log in to Reply

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

#21

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Sun Jun 01, 2014 9:32 pm

 
Is there a way to be visible only for the admins? Etc. userdata variables in a javascript? Something like this javascript?

Code:

jQuery(window).load(function() {
if (typeof _userdata === "undefined") return;
if ((_userdata['user_level'] == '1') || (_userdata["user_level"] == '2'))...

#22

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Sun Jun 01, 2014 9:48 pm

 
Hi, I'm going to clarify everything a bit more.

1. You can't add links to the toolbar at the very top of the page.
2. That tutorial was for your menu/navigation bar displayed under the forum logo.
3. I'm currently looking deeper into the user_auth.

Code:
    <!-- BEGIN switch_user_level -->
Add that right before the Admin Cp menu code.
and
Code:
<!-- END switch_user_level -->
right after.

I figured out it has something to do with user_level, now we just have to incorporate 1 into that somehow.

#23

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Sun Jun 01, 2014 10:18 pm

 
I add this code

Code:

            <!-- BEGIN switch_user_level -->
                      <li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
            <!-- END switch_user_level -->
but it isnt working. Probably it needs a javascript to control the userdata level.

#24

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Sun Jun 01, 2014 10:40 pm

 
Note: You have to change URL to the HTML page, like I stated before.

I'm just going out on a limb here, but try this code:

Code:
<!-- BEGIN switch_auth_user -->
 <div class="user_level"><span class="level">LV.admin</span></div>
  <li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
 <!-- END switch_auth_user -->

But yeah you're probably right about it needing a Javacript to control the userdata level.

You know where that goes, right?

#25

OfflineDark-Avenger

Dark-Avenger
 
Advance Member
Advance Member

Posted Sun Jun 01, 2014 11:08 pm

 
I solved it I added as a widget, change the permissions to admins, mods only and I developed the CSS to fix its position.
Problem solved by this way.

Best Regards,
Dark-Avenger

#26

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Sun Jun 01, 2014 11:12 pm

 

*
POPULAR

Thanks for posting the solution.

left Topic solved & archived

#27

OfflineSponsored content


 

Posted

 

Message (Page 3 of 3)


    Go to page : Previous  1, 2, 3


Share Topics Url

Url
BBcode
HTML

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

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


Social Academy Forum
© Social Academy 2013-2022