collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 85
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM
  • phantomm: and from what I see only patch is broken, full install package is fine
    October 21, 2016, 03:44:44 PM

* Recent Posts

Re: v 2.3.3 to v2.3.7 by ♦ Ninja ZX-10RR ♦
[December 11, 2018, 04:14:48 PM]


v 2.3.3 to v2.3.7 by rollingrock
[December 11, 2018, 09:36:20 AM]


[Block] Help with editing few lines on Simpleportal by Wallen
[December 09, 2018, 05:10:34 AM]


Re: LinkTree by Chen Zhen
[November 15, 2018, 02:24:51 PM]


Re: blocks showing user avatars by hulapyk
[November 15, 2018, 01:47:11 PM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: SP Navigation Block.  (Read 47393 times)

0 Members and 1 Guest are viewing this topic.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
SP Navigation Block.
« on: February 21, 2009, 07:20:40 AM »
Information:
The attached mod will install the SP Forum Navigation Block.

SimplePortal MUST be installed, you can download it here.

Make sure that you uninstall this mod before uninstalling SimplePortal. If you don't then errors may occur.

SimplePortal block created by LHVWB.

Versions:
1.00:  Created/Tested for SMF 1.1.8/2 RC1 and SP 2.1.1.
1.01:  Created/Tested for SMF 1.1.8/2 RC1 and SP 2.2.

You can easily customize the appearance of this block in two ways.
1) You can add some css to the end of your themes 'style.css' file that uses the 'sp_navigation_block_cat' and 'sp_navigation_block_board' classes.
Code: (Example) [Select]
/* This css code changes the SP Forum Navigation Block styles. */
.sp_navigation_block_cat a
{
font-size: 15px;
color: #00DDDD;
}
.sp_navigation_block_board a
{
font-size: 12px;
color: blue;
}
Attached are examples of how this block looks before and after that css is applied.

2) Do a search for the code below in your 'SPortalX.php' file (it should be very close to the end of the file; replace the 'X' with '2' or '1-1' depending on your forum version).
Code: [Select]
$prefix .= '-';
You can change the '-' value to customize the symbol/image/html that is used to separate categories from boards and boards from their child boards.

For SP 2.2 versions and above, this code will add a random colored 'dot':
Code: [Select]
$prefix .= sp_embed_image('dot');
« Last Edit: April 20, 2009, 07:25:18 AM by LHVWB »
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline dabeer

  • Semi Newbie
  • *
  • Posts: 11
Re: [Mod] SP Navigation Block.
« Reply #1 on: February 21, 2009, 03:02:42 PM »
a very nice mod, thank you!

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: [Mod] SP Navigation Block.
« Reply #2 on: February 21, 2009, 04:01:49 PM »
It might be nice to have an extra break between the last board of a category and the next category title. Where might I go to add that, if possible?

In your example...

New Category
 - New Board
General Category
 - General Discussion

Would be...
New Category
 - New Board

General Category
 - General Discussion

I guess I could adjust it with margin in the CSS?
I Post You Post - Forum Owners Helping Forum Owners

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP Navigation Block.
« Reply #3 on: February 21, 2009, 07:01:37 PM »
You should be able to do it with css, but if you want to edit the function itself then ydo a search for the 'sp_forum_navigation' funcion at the very bottom of you 'SPortalX.php' file (replace X with forum version, ie '1-1' or '2').

Replace this code:
Code: [Select]
echo '
', $prefix, '<span class="sp_navigation_block_board"><a href="', $scripturl, '?board=', $boards[$boardid]['id'], '">', $boards[$boardid]['name'], '</a></span><br />';
}

With this code:
Code: [Select]
echo '
', $prefix, '<span class="sp_navigation_block_board"><a href="', $scripturl, '?board=', $boards[$boardid]['id'], '">', $boards[$boardid]['name'], '</a></span><br />';
}
echo '<br />';
}
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: [Mod] SP Navigation Block.
« Reply #4 on: February 22, 2009, 02:08:47 AM »
Again, thank you very much!!
I Post You Post - Forum Owners Helping Forum Owners

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: [Mod] SP Navigation Block.
« Reply #5 on: April 02, 2009, 01:19:38 PM »
Any chance you would upgrade this for 2.2? I was surprised that 2.2 used the top navi bar for their menu box instad of this style navi box.
I Post You Post - Forum Owners Helping Forum Owners

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP Navigation Block.
« Reply #6 on: April 02, 2009, 04:48:08 PM »
Noted, I will do an update for 2.2 sometime.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP Navigation Block.
« Reply #7 on: April 08, 2009, 03:06:22 AM »
Updated this mod.

Version 1.01 is compatible with SP 2.2.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: [Mod] SP Navigation Block.
« Reply #8 on: April 08, 2009, 12:11:18 PM »
I was missing this block very much, thanks!!  :D
I Post You Post - Forum Owners Helping Forum Owners

Offline Geri

  • Jr. Member
  • **
  • Posts: 50
  • SMF Version: 1.1.10
  • SP Version: 2.3
Re: [Mod] SP Navigation Block.
« Reply #9 on: April 15, 2009, 06:40:24 AM »
I was missing this block very much, thanks!!  :D

The same here. :)
Thanks LHVWB

Offline xxnine

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.9
  • SP Version: 2.2
Re: [Mod] SP Navigation Block.
« Reply #10 on: June 02, 2009, 04:45:43 AM »

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: SP Navigation Block.
« Reply #11 on: June 12, 2009, 09:14:26 PM »
Any chance for a 2.2.2 update?
I Post You Post - Forum Owners Helping Forum Owners

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: SP Navigation Block.
« Reply #12 on: June 12, 2009, 10:10:14 PM »
@KahneFan,
I haven't tried it with 2.2.2, but it should still work...
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: SP Navigation Block.
« Reply #13 on: June 12, 2009, 10:43:06 PM »
I used the 2.2.2 upgrade feature and when I looked at my portal it was throwing an error... and no... I didn't copy it, sorry :(
I Post You Post - Forum Owners Helping Forum Owners

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: SP Navigation Block.
« Reply #14 on: June 13, 2009, 12:19:13 AM »
The SP 2.2.2 overwrites some of the files that this block/mod edits. If you uninstall and then reinstall the mod then the issue should go away.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Offline KahneFan

  • Jr. Member
  • **
  • Posts: 83
    • I Post You Post
  • SMF Version: 2 RC1.2
  • SP Version: 2.3.1
Re: SP Navigation Block.
« Reply #15 on: June 13, 2009, 12:32:01 AM »
Gotcha. Thanks!

So, next time I upgrade SP:

1) Uninstall this mod
2) Install/upgrade SP
3) Reinstall this mod
I Post You Post - Forum Owners Helping Forum Owners

Offline lucrece

  • Just Registered
  • Posts: 1
  • SMF Version: None
  • SP Version: None
Re: SP Navigation Block.
« Reply #16 on: July 22, 2009, 03:06:07 PM »
installed this mod but nothing seems to happen. should I see it? what's going on?

Offline ディン1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: SP Navigation Block.
« Reply #17 on: July 23, 2009, 06:26:19 AM »
Look at the Add Block there is a new block =).
Again... I'm having time problems...

Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Pete.Bennett

  • Just Registered
  • Posts: 1
  • SMF Version: None
  • SP Version: None
Re: SP Navigation Block.
« Reply #18 on: August 25, 2009, 07:20:39 AM »
Hi there, I'd like to download a copy of this mod but the download link is not working. Is it still available please?

Thanks

Pete

Offline SPARK

  • Semi Newbie
  • *
  • Posts: 16
  • Gender: Male
    • IDK GAMING
  • SMF Version: 2 RC1
  • SP Version: 2.2
Re: SP Navigation Block.
« Reply #19 on: September 02, 2009, 07:28:15 PM »
Hey guys just upgraded to 2.3 and went to install this mod again and it show a heap of errors.

can some please help.