Loading...
 
Skip to main content

Comments

  • Adding ads to Tikiwiki
    dogshed

    So how do I do it?
    Do I use site identity?
    Do I make a module for each kind of ad?
    Do I edit the theme?
    Do I edit something else?

    I want a half banner at the top.
    I want some smaller ads on either side.
    Maybe one somewhere in the center or at the
    end.

    • Re: Adding ads to Tikiwiki
      luciash d' being 🧙

      > So how do I do it?
      > Do I use site identity?
      > Do I make a module for each kind of ad?
      > Do I edit the theme?
      > Do I edit something else?
      >
      > I want a half banner at the top.
      > I want some smaller ads on either side.
      > Maybe one somewhere in the center or at the
      > end.

      1. Create banner zone and put your banner there on Admin → Banners
      2. Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox


      Example code to put in the Content area:

      Copy to clipboard
      <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>


      For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.

      • Re: Re: Adding ads to Tikiwiki
        dogshed

        > > So how do I do it?
        > > Do I use site identity?
        > > Do I make a module for each kind of ad?
        > > Do I edit the theme?
        > > Do I edit something else?
        > >
        > > I want a half banner at the top.
        > > I want some smaller ads on either side.
        > > Maybe one somewhere in the center or at the
        > > end.
        >
        > # Create banner zone and put your banner there on Admin → Banners
        > # Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox
        >
        > Example code to put in the Content area:

        >
        Copy to clipboard
        <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>

        >
        > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.

        I got this:
        Fatal error: Smarty error: in evaluated template line 1: syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095

        Do we need the locations if we are using site identity?

        • Re: Re: Re: Adding ads to Tikiwiki
          dogshed

          > > > So how do I do it?
          > > > Do I use site identity?
          > > > Do I make a module for each kind of ad?
          > > > Do I edit the theme?
          > > > Do I edit something else?
          > > >
          > > > I want a half banner at the top.
          > > > I want some smaller ads on either side.
          > > > Maybe one somewhere in the center or at the
          > > > end.
          > >
          > > # Create banner zone and put your banner there on Admin → Banners
          > > # Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox
          > >
          > > Example code to put in the Content area:

          > >
          Copy to clipboard
          <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>

          > >
          > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.
          >
          > I got this:
          > Fatal error: Smarty error: in evaluated template line 1: syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095
          >
          > Do we need the locations if we are using site identity?

          it needed id=something
          I thought that was optional

          • Re: Re: Re: Re: Adding ads to Tikiwiki
            dogshed

            > > > > So how do I do it?
            > > > > Do I use site identity?
            > > > > Do I make a module for each kind of ad?
            > > > > Do I edit the theme?
            > > > > Do I edit something else?
            > > > >
            > > > > I want a half banner at the top.
            > > > > I want some smaller ads on either side.
            > > > > Maybe one somewhere in the center or at the
            > > > > end.
            > > >
            > > > # Create banner zone and put your banner there on Admin → Banners
            > > > # Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox
            > > >
            > > > Example code to put in the Content area:

            > > >
            Copy to clipboard
            <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>

            > > >
            > > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.
            > >
            > > I got this:
            > > Fatal error: Smarty error: in evaluated template line 1: syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095
            > >
            > > Do we need the locations if we are using site identity?
            >
            > it needed id=something
            > I thought that was optional

            Copy to clipboard
            <div id=htb style="margin-top:2px; margin-right:3px; position:absolute; top:0;right:0; ">{banner zone=home top banner}</div>
            • Re: Re: Re: Re: Re: Adding ads to Tikiwiki
              dogshed>dogshed

              Replied to

              > >...

              > > > > > So how do I do it?
              > > > > > Do I use site identity?
              > > > > > Do I make a module for each kind of ad?
              > > > > > Do I edit the theme?
              > > > > > Do I edit something else?
              > > > > >
              > > > > > I want a half banner at the top.
              > > > > > I want some smaller ads on either side.
              > > > > > Maybe one somewhere in the center or at the
              > > > > > end.
              > > > >
              > > > > # Create banner zone and put your banner there on Admin → Banners
              > > > > # Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox
              > > > >
              > > > > Example code to put in the Content area:

              > > > >
              Copy to clipboard
              <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>

              > > > >
              > > > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.
              > > >
              > > > I got this:
              > > > Fatal error: Smarty error: in evaluated template line 1: syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095
              > > >
              > > > Do we need the locations if we are using site identity?
              > >
              > > it needed id=something
              > > I thought that was optional
              >

              >
              Copy to clipboard
              <div id=htb style="margin-top:2px; margin-right:3px; position:absolute; top:0;right:0; ">{banner zone=home top banner}</div>

              That didn't work either.

              • Re: Re: Re: Re: Re: Re: Adding ads to Tikiwiki
                dogshed>dogshed

                Replied to

                > >...

                > > > > > > So how do I do it?
                > > > > > > Do I use site identity?
                > > > > > > Do I make a module for each kind of ad?
                > > > > > > Do I edit the theme?
                > > > > > > Do I edit something else?
                > > > > > >
                > > > > > > I want a half banner at the top.
                > > > > > > I want some smaller ads on either side.
                > > > > > > Maybe one somewhere in the center or at the
                > > > > > > end.
                > > > > >
                > > > > > # Create banner zone and put your banner there on Admin → Banners
                > > > > > # Put the on SI and enable the checkbox "Site ads and banners" and Publish checkbox
                > > > > >
                > > > > > Example code to put in the Content area:

                > > > > >
                Copy to clipboard
                <div style="margin-top: 2px; margin-right: 3px; position: absolute; top: 0; right: 0;">{banner zone=Firefox}</div>

                > > > > >
                > > > > > For left/right column you can use another banner zone banners using the in custom module which you have to create on Admin → Modules.
                > > > >
                > > > > I got this:
                > > > > Fatal error: Smarty error: in evaluated template line 1: syntax error: expecting '=' after attribute name 'top' (Smarty_Compiler.class.php, line 1555) in /home/dogshed/public_html/lib/smarty/libs/Smarty.class.php on line 1095
                > > > >
                > > > > Do we need the locations if we are using site identity?
                > > >
                > > > it needed id=something
                > > > I thought that was optional
                > >

                Copy to clipboard
                <div id=htb style="margin-top:2px; margin-right:3px; position:absolute; top:0;right:0; ">{banner zone='home top banner'}</div>

                apostrophes around 'home top banner'

  • Use tikiwiki.org forums for support
    Gary Cunningham-Lee

    Comments here should be about the documentation itself. For questions about how to use TikiWiki, etc., please post at http://tikiwiki.org/tiki-forums.php. More people will see the questions there.

    -- Gary