JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Oct 2, 2019 9:11:28 GMT -8
URL: aeipathy.forums.net/Posted this originally in templates but was directed this way as apparently this is only something that can be done with Javascript?... Is it possible for tags to trigger in templates? I'm created our face claims list in a template but the tags aren't turning into links... I'm wondering if it's possible for this to be automatic? This is a screenshot from my members page, where I'm creating the list in question...
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 2, 2019 10:07:37 GMT -8
For whichever coder looks into this:
@ tags aren't available in the templates, all we have are $[user] and $[current_user] variables so this isn't possible on that end.
I was thinking that this could use JS to convert an @[username] into a proper link but where I see a potential issue is that the URLs to profiles are no longer &user=username but /user/userid.
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,856
December 2005
horace
|
Post by Chris on Oct 2, 2019 11:26:43 GMT -8
support.proboards.com/username/kamiyakaoru is also a valid link to get to a profile but just creating a profile link obviously won't issue a notification. The problem here is that tagging notification is done server side while converting that @ tag to an actual link and is only issued from areas where BBCODE can be entered by the user and only in areas where such notifications would make sense. If you tag someone in your signature or in the title of a board (both accepts BBCODE) they will obviously convert to the display name linking to a profile but the notification would not be sent out *. Layout templates accepts HTML not BBCODE so would be a non-starter, a plugin would have to invent and manage its own tagging system separate from the one provided by the forum software
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 2, 2019 12:34:48 GMT -8
support.proboards.com/username/kamiyakaoru is also a valid link to get to a profile but just creating a profile link obviously won't issue a notification. The problem here is that tagging notification is done server side while converting that Tag to an actual link and is only issued from areas where BBCODE can be entered by the user and only in areas where such notifications would make sense. If you tag someone in your signature or in the title of a board (both accepts BBCODE) they will obviously convert to the display name linking to a profile but the notification would not be sent out *. Layout templates accepts HTML not BBCODE so would be a non-starter, a plugin would have to invent and manage its own tagging system separate from the one provided by the forum software Since this is a list of accepted face claims, I don't think that a notification would be necessary. I'm sure JD can confirm. If the notif isn't necessary, would this be possible without building a database of users?
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,856
December 2005
horace
|
Post by Chris on Oct 2, 2019 21:59:12 GMT -8
Going by the posted image and the use of the word "trigger" I gather the reasoning behind the request entailed giving notification to the users that have been accepted on the face claims, perhaps the OP could clarify.
If the request indeed has no notification requirement then the other bbcode accepter field that comes to mind would be a custom profile field set to light-bbcode but that obviously has limitations of where and when that could be displayed.
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 2, 2019 23:41:38 GMT -8
I think "trigger" here is being used in a layman's sense -- the way I understood the request, especially in context (the face claims are being listed in the side section of what appears to be a board or possibly thread, that shows a detailed directory of characters) that what is being "triggered" is the @ tag automatically turning into a link as opposed to staying plain text.
Hopefully OP can clarify soon (:
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Oct 3, 2019 6:03:07 GMT -8
I think "trigger" here is being used in a layman's sense -- the way I understood the request, especially in context (the face claims are being listed in the side section of what appears to be a board or possibly thread, that shows a detailed directory of characters) that what is being "triggered" is the @ tag automatically turning into a link as opposed to staying plain text. Hopefully OP can clarify soon (: Yes this is exactly it! No notifications would be necessary. I just want them change from @ tag to a linked username automatically, so that I don't have to type in <a href="/user/ID">Name</a> for each one <3 Apologies for my layman terms >..<"
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 3, 2019 7:20:10 GMT -8
I think "trigger" here is being used in a layman's sense -- the way I understood the request, especially in context (the face claims are being listed in the side section of what appears to be a board or possibly thread, that shows a detailed directory of characters) that what is being "triggered" is the @ tag automatically turning into a link as opposed to staying plain text. Hopefully OP can clarify soon (: Yes this is exactly it! No notifications would be necessary. I just want them change from @ tag to a linked username automatically, so that I don't have to type in <a href="/user/ID">Name</a> for each one <3 Apologies for my layman terms >..<" It might also help to clarify where these @ tags are appearing so that you can be directed to the best way (if possible) to achieve this.
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Oct 6, 2019 2:18:09 GMT -8
Yes this is exactly it! No notifications would be necessary. I just want them change from @ tag to a linked username automatically, so that I don't have to type in <a href="/user/ID">Name</a> for each one <3 Apologies for my layman terms >..<" It might also help to clarify where these @ tags are appearing so that you can be directed to the best way (if possible) to achieve this. Currently my system works thusly... 1. The tag is placed in a thread or profile input - e.g. "@ alehandros" 2. I have used the Censored Words system to replace all tags that have no account attached (for all canon characters and wanted characters) with a link - e.g. @ alehandros --> [*a href="/page/npcalehandros"]Alehandros of Antonis[*a]. The page it sends you to is the full canon/wanted ad for the character. Whilst, if this character was in play, it would just be @ alehandros --> @ alehandros and turn *into* a link as normal. 3. When a character is accepted, if it was a wanted or a canon character, I simply go into the Censored Words and alter the replacement text, updating the links all over the site to go to the approved character application rather than the canon/wanted ad page. This then means that members can link up to characters that aren't currently taken and the links with either go directly to the appropriate account or to their wanted/canon ad, depending on which is the relevant one. Whilst this sounds very roundabout, I find it's the best way of having the least member edits required. This all works perfectly hunky dory when I'm using profile input fields or threads and posts. But I would like this system to also work in templates. Currently I have the tags used in some custom pages and in the members page template. I know that there is a code where you can basically instruct the html to read like text rather than active html. Is there one that could make it read like UBBC? like - everything between these tags, read as it would a profile input or a thread post? In my objective/ignorant view this would solve the problem, but I don't know if this kind of thing even exists....? I'm hoping I've described that okay >..<"
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 6, 2019 8:44:18 GMT -8
That was probably a little too much information; the description sounds like you want to take the tags that you put into a post / thread and make them automatically appear in a template.
If that isn't what you want, we don't actually need the backstory behind how you've used tags thus far -- we just need to know where you are putting these tags so we know what the script function should be.
If that is what you want, then this is a much different request from what you originally posted and I'm not entirely sure if it's possible.
Regarding making a script to treat text like UBBC, that is what Chris was saying earlier -- the UBBC functionality isn't available outside of posting areas, which would be a much bigger plugin than you said you were requesting.
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Oct 6, 2019 8:54:23 GMT -8
That was probably a little too much information; the description sounds like you want to take the tags that you put into a post / thread and make them automatically appear in a template. If that isn't what you want, we don't actually need the backstory behind how you've used tags thus far -- we just need to know where you are putting these tags so we know what the script function should be. If that is what you want, then this is a much different request from what you originally posted and I'm not entirely sure if it's possible. Regarding making a script to treat text like UBBC, that is what Chris was saying earlier -- the UBBC functionality isn't available outside of posting areas, which would be a much bigger plugin than you said you were requesting. I'm sorry. I clearly don't have the experience to explain. I'm not trying to give too much info or unnecessary backstory - I'm trying to describe how my set up currently functions in the hope that someone can find a solution. If my suggestion of "treat it like UBBC" isn't possible then I wanted to be transparent so that other solutions could be suggested. Basically, I would like for the censored words to be able to affect templates and for the tags that are normal (and not replaced with links via the censored words) to become the links that they might in a thread or post. I'm not sure what you meant by "location" given I already said that these are in my members page template. I figured I needed to be more detailed/explanatory. I'm sorry >..<" I really do appreciate any and all help that can be given on this >..<" If this isn't possible, I can go in and make these face claim lists manually. It just means I would need to edit both the template and the censored word lists whenever I accepted a character. If that's the case, that's fine - I was just trying to save myself and my staff a step in the process <3
|
|
Kami
Forum Cat
Posts: 40,029
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,029
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 6, 2019 9:02:52 GMT -8
Sorry, this request has become very convoluted. You say that its on the members page but you are also talking about censored words and "normal" tags which sounds like a very different request from what you originally stated.
Let's back this up a bit; forget about UBBC and censored words and posts and whatever else you use in conjunction with this.
1. Do you want a script to change @ tags in the templates to change into a properly linked URL to a member account?
Or
2. Do you want a script to change @ tags in the templates into properly linked member account OR a custom page, whichever is appropriate?
Or
3. Neither [please explain in as short a description as possible: where you want the script, what you want it to target, and where you would want the linked text to lead]
[Please note that we cannot affect the admin panel with a plugin, so regardless of your answers you will have to manually update both your templates and the censored words list]
|
|
inherit
216224
0
Feb 7, 2024 9:48:11 GMT -8
Quozzo
407
November 2014
quozzo
|
Post by Quozzo on Oct 10, 2019 23:52:15 GMT -8
I've created an automatic text replacer which sounds like this is what is needed. support.proboards.com/thread/569991/plugin-request-specific-words-hyperlinks?page=1&scrollTo=6563215It uses regular expressions so you can use brackets, called groups, to match certain text with the whole of the matched text being group 1. For example: If I'm searching for Quozzo then I could use <b>$1</b> to replace the text with bold text. You're probably looking for this in the plugin above: Find text: @(.+) Replace with: <a href='/username/$2'>$2</a> Type: Custom HTML Let me know if you need any help.
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Jan 4, 2020 2:45:01 GMT -8
Sorry, this request has become very convoluted. You say that its on the members page but you are also talking about censored words and "normal" tags which sounds like a very different request from what you originally stated. Let's back this up a bit; forget about UBBC and censored words and posts and whatever else you use in conjunction with this. 1. Do you want a script to change @ tags in the templates to change into a properly linked URL to a member account? Or 2. Do you want a script to change @ tags in the templates into properly linked member account OR a custom page, whichever is appropriate? Or 3. Neither [please explain in as short a description as possible: where you want the script, what you want it to target, and where you would want the linked text to lead] [Please note that we cannot affect the admin panel with a plugin, so regardless of your answers you will have to manually update both your templates and the censored words list] Sorrryyyy >..<" Okay, bottom line is.... I would like to be able to type @theodora (for example) into a Layout Template in HTML and IF there is an account by that username, it auto becomes the tag/link to that member's account. If there is NOT an account by that username, I want it to auto become a link to the /page/npctheodora with the wording Theodora of Leventi (eg. <a href="/page/npctheodora">Theodora of Leventi</a> ). And I want this to auto adjust back and forth if and when an account with the username @theodora is created or deleted, so that it doesn't have to be edited every time someone takes up the character. I would also like this to work in exactly the same way in custom pages. And exactly the same in Headers and Footers coding. I basically, would like this to be a global thing on the forum. I am already using the Censored Words function in order to do this to the BBcode of posts (but I have to update it every time an account is created/deleted). Is that clearer? >..<" I'm so sorry - I clearly don't know the proper info/jargon to make myself clear and am confusing the situation - sorry!!! >..<"
|
|
JD
Full Member
Posts: 771
inherit
180643
0
Aug 17, 2023 0:37:07 GMT -8
JD
771
June 2012
obsidian92
|
Post by JD on Jan 4, 2020 2:46:24 GMT -8
I've created an automatic text replacer which sounds like this is what is needed. support.proboards.com/thread/569991/plugin-request-specific-words-hyperlinks?page=1&scrollTo=6563215It uses regular expressions so you can use brackets, called groups, to match certain text with the whole of the matched text being group 1. For example: If I'm searching for Quozzo then I could use <b>$1</b> to replace the text with bold text. You're probably looking for this in the plugin above: Find text: @(.+) Replace with: <a href='/username/$2'>$2</a> Type: Custom HTML Let me know if you need any help. Sorry Quozzo, this hasn't worked. I think this only does what I'm already using the Censored Words for <3
|
|