Latest topics
» Reputation System - Only want the plus sign to Show
by Jlh73 Today at 21:13

» How to install the color on all pages
by white Today at 14:02

» AWC chat in the FM Toolbar on Edge
by Samantha Today at 08:07

» Star in navbar
by Samantha Today at 04:47

» Mobile Version
by  Yesterday at 21:03

» Icons
by  Yesterday at 21:03

» Change the style of tooltips with tooltipster !
by white Yesterday at 05:25

» [GAME] What are you doing right now?
by Valoish Mon 16 Jan 2017, 21:24

» Chit Chat Thread
by  Mon 16 Jan 2017, 12:25

» Starred Forums
by Milouze14 Mon 16 Jan 2017, 12:11

» [GAME] Post a random picture
by  Sun 15 Jan 2017, 22:31

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Valoish Sun 15 Jan 2017, 17:23

» [GAME] What are you listening to right now?
by Valoish Sun 15 Jan 2017, 17:23

» Flat Browser Buttons
by  Sun 15 Jan 2017, 12:15

» #12 Pick a Theme
by SLGray Sat 14 Jan 2017, 20:07

Recent Tutorials
Top posting users this month
Who is online?
In total there are 11 users online :: 0 Registered, 0 Hidden and 11 Guests :: 1 Bot

None

[ View the whole list ]


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

Change the Path ::

View previous topic View next topic Go down

Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2069
Points : 2537
Reputation : 70
Location : druid hill Park
Language : Eng, Fr, Loud
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 25 Sep 2016, 14:55

With this tutorial you can change the path separator on your forum.





Installation


Administration Panel >> Modules >> HTML and Javascript >> Javascript codes management >> Create new javascript

Title: Path Changer
Placement: In all the pages

Code:
Code:
$(function() {
  var path = '::',
 
  paths = {
    'forum' : $('p.nomargin.path'),
    'topic' : $('div.pathname-box p'),
    'mcp' : $('form div.topic-actions p'),
    'search' : $('div.topic-actions p')
  },
 
  i;

  for ( i in paths ) {
    if ( paths[i][0] ) paths[i].html(paths[i].html().replace(/::/g, path));
  }
});

Old Code:
Code:
$(function() {
  var urls = [/\/f\d+/, /\/t\d+/, /\/modcp/, /\/search/],
 
  paths = {
    'forum' : $('p.nomargin.path'),
    'topic' : $('div.pathname-box p'),
    'mcp' : $('form div.topic-actions p'),
    'search' : $('div.topic-actions p')
  },
 
  path = '::',
 
  i, j, k;
 
  for ( i = 0; i < urls.length; i++ ) {
    for ( j in paths ) {
      j == 'forum' ? k = 0 : ( j == 'topic' ? k = 1 : ( j == 'mcp' ? k = 2 : k = 3 ) );
 
      if ( i == k && urls[i].test(window.location.href) ) paths[j].html(paths[j].html().replace(/::/g, path));
    }
  }
});


Modification


Basically this is what you need to change if you want to change the path separator.

Code:
  path = '::'

Hope you guys like it..



This only works on phpbb3 forums. If you want it on another version or any bugs come up with the code, then just post the issue with your forum link below.


Last edited by Ace 1 on Mon 26 Dec 2016, 04:33; edited 3 times in total
Ace 1
Valued Member
Title :
God of Creation
Gender : Male
Age : 17
Posts : 2069
Points : 2537
Reputation : 70
Location : druid hill Park
Language : Eng, Fr, Loud
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile http://fmdesign.forumotion.com/u190

PostAce 1 on Mon 31 Oct 2016, 11:21

Updated the code. Newer version is shorter.

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