inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 7, 2016 1:45:36 GMT -8
I run a football forum and have custom pages that I'd like to link to, to help promote the exploration of it.
For example - all players have their own profile page, so it would be cool if everytime 'Player X' was mentioned, his name linked to his profile page, and so on.
I tried using the swear filter, but it corrupted the title bars.
If proboards could get that to ignore title bars it would work great, but thought seeing as thousands of websites have this facility, it might be something easy for a plugin developer to create, so thought I'd ask.
Any response would be appreciated.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jan 7, 2016 2:05:25 GMT -8
Could you not use Barkley (I did that by alt clicking on your name - it links automatically to your username and gives you a notification of tagging) Alternately would the [#]Hashtag plugin work with the Hash cloud by Wormopolis
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 7, 2016 3:43:46 GMT -8
Could you not use Barkley (I did that by alt clicking on your name - it links automatically to your username and gives you a notification of tagging) Alternately would the [#]Hashtag plugin work with the Hash cloud by Wormopolis Thanks for the tag idea, although the profile pages for the players aren't accounts, but custom pages. For example : David Henen's profile page : loveevertonforum.com/page/david-henenI need something that is going to identify the name 'David Henen' and turn that into a hyperlink, that when pressed takes the user to the profile page. I can't do it individually / manually by adding a tag, as we have 3 years worth of threads. It's not just people either, as I'd want to use words such as 'tables' and 'fixtures' and so on. I'll take a look at the hashtag thing you mentioned.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 7, 2016 6:57:23 GMT -8
Just to update, I took a look at the #hash plugin and it appears to be more search related.
I need a plugin that will let me enter a key-word, or name, such as 'Tom Jones' or 'Fixture list' and add a link, and every example on the website (not title bars) will turn into a hyperlink.
Maybe somebody could copy the swear filter, but edit it as described above?
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on Jan 8, 2016 7:19:37 GMT -8
If you would be willing to manually add what word should be autolinked then I could knock something up. Something like:
var arr = [ ["Tom Jones","http://somedomain.com/thing"], ["Fixture List","http://loveevertonforum/pages/Fixture List"] ]; Actually, I think a plugin could use the autoform for that.
On a side note, I'm from Liverpool myself, are you too?
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 8, 2016 8:27:06 GMT -8
If you would be willing to manually add what word should be autolinked then I could knock something up. Something like: var arr = [ ["Tom Jones","http://somedomain.com/thing"], ["Fixture List","http://loveevertonforum/pages/Fixture List"] ];
Actually, I think a plugin could use the autoform for that. On a side note, I'm from Liverpool myself, are you too? Hi Quozzo. Thanks for your reply. I'm originally from there yes, although I've since moved away. Nice to meet you mate. I'm willing to have a bash at anything by all means. Would that go in the global header, or the wrapper, or? I probably have just under 60 players names, a dozen or so coaches, some ex managers, that kind of thing. Then whatever springs to mind from then in, that I can promote the website pages, such as tables, fixtures, and so on. I can understand basic codes, but self taught with the help of the staff and members here, so do have 'some' limitations lol so if it comes in the form of a plugin, that would be cool. Appreciate the rely.
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on Jan 8, 2016 19:51:23 GMT -8
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 9, 2016 1:53:44 GMT -8
Hi Quozzo. Firstly, thanks very much for your effort. A little feedback : I just tested it on my test forum, and created some test threads, and also installed Yootil in case it required it, but that I can see, there is no change to any text in the threads. In the advanced section, it says .widget-content (not sure what that refers to but presume that's the target is it?). I see options for using images, url, and html, which sounds like it could be a fantastic plugin once it works. Appreciated.
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on Jan 9, 2016 13:35:30 GMT -8
Sorry yeah. It replaces text in the pages, I forgot to add the selector for posts. I can't remember what that is off the top of my head and I can't find out. Hopefully someone else can find it for you.
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jan 9, 2016 20:01:37 GMT -8
Try the class .message
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 9, 2016 22:47:55 GMT -8
Sorry yeah. It replaces text in the pages, I forgot to add the selector for posts. I can't remember what that is off the top of my head and I can't find out. Hopefully someone else can find it for you. OK, Now I'm seeing some results using .message, but the results are being corrupted. 1. The images are now working, but are not working for every instance, and after setting out 3 instances, the best I achieved was 2, and then 1, after experimenting with the other settings. 2. The Link works on the first instance within the text, but doesn't recognise any further instances. 3. HTML doesn't work at all. 4. Replacing the order also had an effect, and placing an html example in the first box, and image in the last killed the images altogether. I can't read any code regarding the plugin so fairly blind but they are my findings so far. We're on the right track though. Many thanks.
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on Jan 11, 2016 0:22:09 GMT -8
I missed off the global flag. It should work for multiple instances within the same post/page. I've updated the upload in my post above.
I've just realized it doesn't work on page changes due to the ajax. What was the callback function called for that. The best bet is `set_on` but I've checked the documentation for that but it only has `thread_new` and `post_new` as hooks.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 11, 2016 2:44:56 GMT -8
I missed off the global flag. It should work for multiple instances within the same post/page. I've updated the upload in my post above. I've just realized it doesn't work on page changes due to the ajax. What was the callback function called for that. The best bet is `set_on` but I've checked the documentation for that but it only has `thread_new` and `post_new` as hooks. I'll check it out and report back, thanks very much. I can't help with your questions though mate.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,591
December 2012
avinalaff
|
Post by Barkley on Jan 11, 2016 3:17:39 GMT -8
QuozzoOK, this is what I've noticed. 1. Images were slow to kick in on the first useage, but then started to work once I'd edited the html with a new command. (coincidence I think) 2. Everything then worked fine, or appeared to. 3. Upon editing the html to use CSS, that worked ok too, at least as far as a basic colour change was concerned. 4. Then the errors ....... 5. Upon testing a second post, I noticed that the 2nd post contained styling from the first useage, and hadn't updated with the new command, leaving me with text I couldn't change. 6. I then went back to the simplified <b>222</b> and the first post that had originally used the html changed with the new command, but none of the newer posts, or any text in a 2nd test thread changed. It appeared to remember the html, and only changed the html of the first post, but any posts that had been done since the first post remained untouched. Does that make sense?
|
|
inherit
216224
0
Aug 1, 2024 1:18:46 GMT -8
Quozzo
408
November 2014
quozzo
|
Post by Quozzo on Jan 11, 2016 4:36:05 GMT -8
I'm not entirely sure what you mean. Could you maybe link me to the post, or post the contents in a spoiler with post1, post2 etc.
It's just dawned on me that there may be an issue using special characters in the "Find text" field, like \ ? or . as I didn't escape those. If you're not using any special characters then I won't change it until I fix the current issue, as to not add extra parameters into the equation.
|
|