Latest topics
» [HELP] About Profile Cover Code
by MaHwOs Yesterday at 18:54

» bloquer un membre
by berlingo Fri 17 Nov 2017, 18:19

» IconSkouliki Graphics
by skouliki Fri 17 Nov 2017, 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» Auto-suggest @mentions as You Type
by skouliki Wed 15 Nov 2017, 14:56

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Hello everyone this is Adam from France
by Adam Mon 13 Nov 2017, 13:32

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

» Control pannel issue
by Ange Tuteur Sun 12 Nov 2017, 09:49

» BUG... forum members birthday's
by Ape Sat 11 Nov 2017, 11:44

» Display a Preview of Groups on Hover
by ThunderTB Fri 10 Nov 2017, 21:56

» Search box only visible on hover
by Ange Tuteur Mon 06 Nov 2017, 09:57

» [GAME] Animal Game
by SLGray Sun 05 Nov 2017, 15:04

Recent Tutorials
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Admin Panel Links

View previous topic View next topic Go down

avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2151
Points : 2950
Reputation : 88
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Sun 20 Aug 2017, 01:38

Ever feel too lazy to navigate the ACP to get to places you frequently visit? Then this plugin's for you. It places a few links below "Administration Panel".

To install it, all you need to do is create a new Javascript enabled in all the pages with the following code:

Code:
$(function() {
  'Admin Panel Links ©️ 2017';
  ' -- ';
  'Just something useful for forum admins';

  if (_userdata.user_level != 1) return;
 
  var lang = {
        templates: 'General Templates',
        css: 'CSS Stylesheet',
        js: 'JS Management'
      },
   
      tooltipstered = false,
 
      admin = $('.copyright a[href^="/admin/index.forum"]'),
      session_id = admin[0].href.replace(/.*\&tid=(.*)/, '$1'),
      template_link = '/admin/index.forum?mode=main&part=themes&sub=templates',
      css_link = '/admin/index.forum?part=themes&sub=logos&mode=css&extended_admin=1',
      js_link = '/admin/index.forum?part=modules&sub=html&mode=js&extended_admin=1',
      separator = '<span class="admin-separator">|</span>',
      admin_html = '<a href="' + css_link + '&tid=' + session_id + '" class="admin-link">' + lang.css + '</a>' + separator + '<a href="' + js_link + '&tid=' + session_id + '" class="admin-link">' + lang.js + '</a>';
 
  if (_userdata.user_id == 1) {
    admin_html = '<a href="' + template_link + '&tid=' + session_id + '" class="admin-link">' + lang.templates + '</a>' + separator + admin_html;
  }
 
  if (tooltipstered) {
    admin.parent().tooltipster && admin.parent().tooltipster({
      interactive: true,
      contentAsHTML: true,
      delay: 500,
      content: admin_html
    });
  } else {
    admin.parent().append(admin_html);
  }
  $('head').append('<style type="text/css" name="admin-links">.admin-separator{display:inline-block;margin:0 5px}</style>');
});

There are a few modifications with this script.

lang
Code:
      lang = {
        templates: 'General Templates',
        css: 'CSS Stylesheet',
        js: 'JS Management'
      },
Code:
templates
- General templates text
Code:
css
- CSS stylesheet text
Code:
js
- JS management text


tooltipstered
Code:
      tooltipstered = false,

Change this value to
Code:
true
if you want the links to appear in a tooltip (as opposed to underneath).


Last edited by Ace 1 on Fri 29 Sep 2017, 14:37; edited 2 times in total
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 22
Posts : 4712
Points : 9586
Reputation : 2341
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 22 Aug 2017, 10:01

Nice addition ! Definitely saves time getting to where you need to go. Cool
avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2151
Points : 2950
Reputation : 88
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Wed 23 Aug 2017, 07:13

I'll be revising this in a bit (since not all admins can access the templates).
avatar
Ace 1
Valued Member
Title :

Beta Tester
Gender : Unspecified
Age : 18
Posts : 2151
Points : 2950
Reputation : 88
Location : USA
Language : English ?
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Fri 29 Sep 2017, 14:37

Updated the code lol.

Spoiler:
@Ange Tuteur whats with the copyright stuffs in the code

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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