solved Text box for html

White Agency
White Agency
@white-agency
9 years ago
204 posts
On Ning we have the ability to put a free format text box into the layout which is only editable by admins.

We use this to put banners in advertising stuff etc. We input raw html ie div, a, image tags etc.

Had a look through the modules and can't find anything that does this.

Also tried creating an extra tab in the skin global settings but html tags get stripped out when saving.

Any ideas on how we can achieve this.

Cheers

Dave
updated by @white-agency: 04/03/15 12:54:59PM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Hi Dave- to add text boxes you need to install the site builder package
Here is where to get started on that
https://www.jamroom.net/site-builder/documentation/getting-started/2253/what-is-site-builder
Also Soaring Eagle made a video n it if you prefer to watch instead of read
https://www.jamroom.net/the-jamroom-network/forum/ning-to-jamroom/23533/soaring-eagles-ning-to-jamroom-and-site-builder-video
As for stripping html tags you need to set the tags that are allowed in your ACP here
http://theamericandriller.com/core/admin/quota

Hope this helps
White Agency
White Agency
@white-agency
9 years ago
204 posts
Thanks Derrick !
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
You can also (without using Site Builder) create additional 'admin blogs' similar to your main "About" admin blog. These can be titled and moved to different areas of your page. If you have the two free 'Editor' modules installed, you can embed whatever you like into the textbox of that blog, including source code. These blogs don't need to look bloglike- they can just be blocks of info and media.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Derrick:

If you take a look at the home page of TheChocolateLife.com you will see that I narrowed the "About" blog and added a right-hand column that contains two ads served up by Broadstreet.

What Strumelia suggests is a great approach if you need a block with styled text and you want to edit it with a WYSIWYG editor. However, if what you want to do is insert code for a 3rd party ad server then here is the approach I used.

It might not be the most elegant or concise bit of code, but it works. The key, as either Michael or Brian explained to me, is the use of {literal} {/literal}. This will mean that the parser will ignore what's inside.

<div class="col4 last">
  <div class="container">
  {* ========== BEGIN MARKETPLACE *}
    <div class="item blog-archive-header m10">
      <h2>Member Marketplace</h2>
    </div>
    <div align="center">
      {* BROADSTREET JAVASCRIPT  *} 
      {literal}
        <script type="text/javascript">
          the_script 
        </script>
      {/literal}
      <br /><hr width = "87%"><br />
      {literal}
        <script type="text/javascript">
          the_script 
        </script>
      {/literal}
      {* END BROADSTREET JAVASCRIPT *} 
    </div>
    {* END MARKETPLACE *}
  </div>
</div>

The Broadsreet server requires support scripts to be loaded in in the head to work, and those are put in meta.tpl.
White Agency
White Agency
@white-agency
9 years ago
204 posts
Many Thanks - Gone with Strumelia's admin blogs method !

Tags