katya
New Member
Posts: 55
inherit
187642
0
Oct 27, 2015 6:48:39 GMT -8
katya
55
December 2012
liaku
|
Post by katya on May 20, 2013 12:47:11 GMT -8
Basically, I'd like a plugin that can give me something like $[stuff1], $[stuff2], $[stuff3], that I could insert anywhere into my forum wrapper templates for different site themes. A $[stuff#] would be customized to contain whatever html content I'd need. I don't really need unlimited stuffs, just like 5 would be enough, 10 would be ideal.
See, I want to have multiple skins up for my site, but there's a lot of info (stuff that would usually go in sidebars, but for some skins, it's up top in tables, or in the footers by the site info, or in a static floating div, etc etc) that I need to regularly update, and I sure don't want to edit 5+ templates just to add an affiliate to every skin.
So yeah, I just need a way to make unified content appear in different places on different skins. I haven't the foggiest idea how to write a plugin though, so I have no idea if this would be simple or difficult to code. If anyone could give this a shot, I'd hugely appreciate it!
|
|
inherit
163663
0
Sept 18, 2019 16:22:26 GMT -8
omgpink
28
February 2011
omgpink
|
Post by omgpink on Jun 16, 2013 18:20:10 GMT -8
Hey loves, just bumping this because it would be super useful *^*
|
|
inherit
163663
0
Sept 18, 2019 16:22:26 GMT -8
omgpink
28
February 2011
omgpink
|
Post by omgpink on Sept 9, 2013 11:17:10 GMT -8
bumps!
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Sept 9, 2013 11:46:24 GMT -8
the only way I could see this actually working, and to keep someone from doing something sneaky in a post, would be to use span tags in the templates and not just placeholders. otherwise placeholders run the risk of getting replaced directly in a message. members being able to force their own html content into a post is already a security risk (which is why doHTML requests keep getting shot down).
so I was thinking you could do this
<span id="Stuff_1" style="display:none"></span>
as the placeholder. the display:none is to keep it hidden until it actually gets content.
or if you wanted to target multiple spans with the same content, you could do
<span class="Stuff_1" style="display:none">
and then all spans with that class would get the extra content.
|
|
inherit
163663
0
Sept 18, 2019 16:22:26 GMT -8
omgpink
28
February 2011
omgpink
|
Post by omgpink on Nov 29, 2013 11:25:34 GMT -8
The point of this plug in wouldn't be to create skins with shared classnames. The point would be, as far as role-play forums are concerned, is to have one place to update what's new on the forum on all skins. It would also be useful for having one place to update affiliates while being more flexible stylistically than keeping them in global footers.
I'd like to bump this again. CJink has an equivalent to this with their pages feature, which allows you to give name to content placed in their page that you can directly input into any forum wrapper with a name prescribe.
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 26, 2024 4:57:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 29, 2013 15:29:00 GMT -8
if you put it in your header/footers, it'd show on all themes
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Nov 29, 2013 16:21:18 GMT -8
Since ₪» ⅀ ƪ Ƒ «₪ replied, bumped this topic up, it brought my attention to this request, which I'd not noticed before. I did help with something similar to what you are asking (I think) in this thread: support.proboards.com/thread/487630/infoWhere the javascript part in that thread says... $("#my_affies").insertAfter(".shoutbox.container.full"); ...you could give it a generic name like: $("#my_affies").insertAfter(" .insert_affies"); And then whatever area you want that content (in that thread it was for affiliates) to appear you'd just put a simple div with that class and your affiliates/content will appear after that div. <div class="insert_affies"></div> So then it would be a matter of just updating the actual content (affiliates) in your main or global headers. Would something like that work?
|
|
inherit
163663
0
Sept 18, 2019 16:22:26 GMT -8
omgpink
28
February 2011
omgpink
|
Post by omgpink on Dec 12, 2013 14:09:02 GMT -8
if you put it in your header/footers, it'd show on all themes the problem with this is that affiliates will appear above the cbox on most role-play skins, which isn't very aesthetically pleasing. My point is, headers and footers do not give me enough freedom to create the designs i want to create that have a global affiliates area. For example, what if I want affiliates in a sidebar on one skin? If the cbox ends up in global footers too to be above the affiliates, that limits my cbox's design as well.
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 26, 2024 4:57:30 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 12, 2013 14:11:04 GMT -8
|
|
inherit
163663
0
Sept 18, 2019 16:22:26 GMT -8
omgpink
28
February 2011
omgpink
|
Post by omgpink on Dec 12, 2013 14:13:47 GMT -8
Since ₪» ⅀ ƪ Ƒ «₪ replied, bumped this topic up, it brought my attention to this request, which I'd not noticed before. I did help with something similar to what you are asking (I think) in this thread: support.proboards.com/thread/487630/infoWhere the javascript part in that thread says... $("#my_affies").insertAfter(".shoutbox.container.full"); ...you could give it a generic name like: $("#my_affies").insertAfter(" .insert_affies"); And then whatever area you want that content (in that thread it was for affiliates) to appear you'd just put a simple div with that class and your affiliates/content will appear after that div. <div class="insert_affies"></div> So then it would be a matter of just updating the actual content (affiliates) in your main or global headers. Would something like that work? YES THANK YOU this is exactly the kind of code i was looking for <3 <3 AH ty so much you have no idea!
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Dec 12, 2013 19:42:47 GMT -8
Hey, omgpink, glad you found it useful since the original poster never came back. lol Let me know if you have any issues.
|
|