inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 16, 2014 1:31:50 GMT -8
I've got some code but this only works on headers and i'd like to use it in the post text aswell can some one help me?
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Oct 16, 2014 4:48:55 GMT -8
A description of what the code does and a link to an example will help your request...
|
|
inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 16, 2014 15:18:00 GMT -8
Sorry about that, the objective was to display either a card(<span class="mtgcard">) or a deck list(<div class="deck-list">) in the post depending on the input.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Oct 16, 2014 15:40:07 GMT -8
And then ? I think Todge did a card plugin but I can't remember what it was...
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Oct 16, 2014 16:45:22 GMT -8
I did indeedy, but all that did was to add a five card 'poker' hand to a post.
I think I submitted it to the library, but can't swear to it. Do a search for 'poker' and if it's the I'm sure it'll show up.
|
|
inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 17, 2014 1:18:02 GMT -8
yeah but the objective was to show mtg cards
|
|
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"
9,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Oct 17, 2014 2:19:56 GMT -8
That code might not be compatible with the current version of Proboards cajo2526 because looking at the source code that you've linked tells me it insists on loading jQuery v1.10.1 even if there's a different version of the jQuery library already loaded. Proboards uses jQuery library v1.7.2 so loading a different version will most likely affect the operation of the forum software itself ( read more).
|
|
inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 17, 2014 2:34:46 GMT -8
That code might not be compatible with the current version of Proboards cajo2526 because looking at the source code that you've linked tells me it insists on loading jQuery v1.10.1 even if there's a different version of the jQuery library already loaded. Proboards uses jQuery library v1.7.2 so loading a different version will most likely affect the operation of the forum software itself ( read more). The thing that anoys me is that the plugin works but will only work in the headres of the forum..., but I'll read that and see if I find something out
|
|
inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 19, 2014 7:48:49 GMT -8
That code might not be compatible with the current version of Proboards cajo2526 because looking at the source code that you've linked tells me it insists on loading jQuery v1.10.1 even if there's a different version of the jQuery library already loaded. Proboards uses jQuery library v1.7.2 so loading a different version will most likely affect the operation of the forum software itself ( read more). The thing that anoys me is that the plugin works but will only work in the headres of the forum..., but I'll read that and see if I find something out i read the link but, i don't know if that is the case
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Oct 19, 2014 10:28:28 GMT -8
cajo2526, HTML will not execute if you put it into a post, which is why the code is only working for you in headers. This is for security reasons -- if any member had the ability to place HTML in posts then it would be very easily possible to place malicious code that negatively affects anyone who views the page that the post is on. There is one plugin that allows the main administrator to use HTML in posts (register an account there to download it), but allowing members the same ability does pose a risk. It might be possible for a coder to come up with a plugin that allows the HTML to execute as long as it is specifically in reference to the MTG code, but I don't know of a preexisting solution for that.
|
|
inherit
214944
0
Oct 28, 2014 14:21:28 GMT -8
cajo2526
6
October 2014
cajo2526
|
Post by cajo2526 on Oct 20, 2014 4:12:01 GMT -8
cajo2526, HTML will not execute if you put it into a post, which is why the code is only working for you in headers. This is for security reasons -- if any member had the ability to place HTML in posts then it would be very easily possible to place malicious code that negatively affects anyone who views the page that the post is on. There is one plugin that allows the main administrator to use HTML in posts (register an account there to download it), but allowing members the same ability does pose a risk. It might be possible for a coder to come up with a plugin that allows the HTML to execute as long as it is specifically in reference to the MTG code, but I don't know of a preexisting solution for that. Thanks for the help.
|
|