inherit
188870
0
May 2, 2015 7:52:39 GMT -8
Newby
138
January 2013
danielsilk
|
Post by Newby on Jun 28, 2022 21:42:11 GMT -8
Sorry to ask so many questions. I have tried already but failed to get this to work. It it possible to have a link in every post that shows the board it's posted in? Just small beside the posts time maybe? Example Jan 10, 2021 at 10:45pm posted in Main Board.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,986
December 2005
horace
Wormo's Mini-Profile
|
Post by Chris on Jun 29, 2022 16:13:54 GMT -8
I use the following code as a browser userscript to add that feature to any Proboards forum I am currently viewing Code:// ==UserScript== // @name Proboards Show boards on Post // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @include /https\:\/\/.*\.(proboards\.com|(boards|freeforums).net)\/(posts|user|search)(\/.*)?\/(recent|results\?.*display_as=0).*/ // @icon https://www.google.com/s2/favicons?domain=proboards.com // @grant none // ==/UserScript==
(function ($) { 'use strict'; function addBoard() { $('.info a.thread-link').after(function () { let b = pb.item('thread', +$(this).idFromClass('thread')); let c = $('.nav-tree-board-' + b.board_id + '> a') return 'in <a target="_blank" href="' + c[0].href + '">' + c.find('.item-text').html() + '</a> board '; }) }; if (pb.data('proboards.post')) { addBoard(); pb.events.on('afterSearch', addBoard); }
})(window.jQuery);
Preview:
|
|
inherit
188870
0
May 2, 2015 7:52:39 GMT -8
Newby
138
January 2013
danielsilk
|
Post by Newby on Jun 29, 2022 16:22:20 GMT -8
Sorry I'm dumb 🤡
It that a code I can add in css? Or is that something just just works for an individual.
Thank you, look perfect! 👏🏻 Hope it does work as a css add.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,986
December 2005
horace
Wormo's Mini-Profile
|
Post by Chris on Jun 29, 2022 20:19:33 GMT -8
Sorry I'm dumb 🤡 It that a code I can add in css? Or is that something just just works for an individual. Thank you, look perfect! 👏🏻 Hope it does work as a css add. That posted code would be JavaScript and can be used as a personal userscript code (the way I use it) or can be globally installed in your forum global footer sandwiched between <script> and </script> to add the feature for everybody not just you.
|
|