Loading...
 
Architecture / Installation

Architecture / Installation


Can I add advertising to the top of the forum page?

posts: 6

Hi everyone,

Sorry If I have posted in the wrong section, also I have tried searching but have not found the answer prob using the wrong search terms :-)

What I want to know is

Is it possible/how to, Add an advertising area above the forum in the tiki install i have?

I mean actually above the forum, on the forum page only, and not the site wide advertising in the top right of every page.

Could anyone explain in simple terms for me please or point me to some documentation?

Many thanks
Russell

ps i'm using version 6.1

posts: 3665 United States

Yes. You could:

  1. Create a banner/banner zone for your ad
  2. Use the custom center column area (on Admin L&F) to display the banner zone only for the forum. Something like this should work:
    Copy to clipboard
    {if $section eq 'forums'}{banner zone="MyBanneZone}{/if}


HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Now Available: Tiki Essentials, the #1 (and only) book for Tiki! Learn more...

Need more help? Try Tiki for Dummies Smarties: A beginner's guide and Tiki Essentials: What all Smarties need to know about Tiki Wiki CMS Groupware.


posts: 6

Ooops i've done that and my site has gone blank, everything has gone except the headers.

Which file did that go into so that I can delete it via FTP (and what am I looking for in the file?)

Thanks

Edit - I'll try using the 'upgrade over existing' using the 'replace if source newer' option on my FTP and let you know if it corrects this error.

EDIT - This DID NOT Solve the problem


posts: 3665 United States

Oops, I'm sorry. My code example was missing the end ":

+
Copy to clipboard
{if $section eq 'forums'}{banner zone="MyBanneZone"}{/if}


To remove the offending code, you'll need to edit the database directly. See http://twessentials.keycontent.org/Updating+Tiki+Preferences — you'll need to edit the feature_custom_center_column_header row.

Sorry about that,


- Rick | My Tiki Blog | My Tiki UserPage

Now Available: Tiki Essentials, the #1 (and only) book for Tiki! Learn more...

Need more help? Try Tiki for Dummies Smarties: A beginner's guide and Tiki Essentials: What all Smarties need to know about Tiki Wiki CMS Groupware.

posts: 6

Thats ok, I'm grateful for the help.

OK so I tried
1, Editing the code as suggested = Made no difference
2, Deleting the feature_custom_center_column_header part = Made no difference

Forgot to mention before this is the same both logged in (and out) of the site

Is there any other steps to take?

thanks again
Russell

ps i'll try running the 'upgrade' installer again with that part of the database removed?


posts: 6

Update - Managed to get my site back, forgot to clear TIKI cache.

will now try again with the forum banner


posts: 6

Thank you RICKS99 for all your help.

I can now see the banner advertising within my forums.

Just a couple more questions.

1, How do I 'centre' the banner? (currently it aligns to the left)

2, How do I also put this banner (or create a new one) that displays on the forum home page? (eg the first page you get to on the forums where the forum list is displayed)

Thank you again anyway for all of your help.

Russell

posts: 3665 United States

>
>1, How do I 'centre' the banner? (currently it aligns to the left)
>

You could use a DIV around the BANNER to center it.


>
>2, How do I also put this banner (or create a new one) that displays on the forum home page?
>

Odd, it should have worked. Looks like a possible bug — the SECTION is not set properly on the tiki-forums.php page. Try this as a workaround:

Copy to clipboard
{if ($section eq 'forums') or ($mid eq 'tiki-forums.tpl'}{banner.......} {/if}


HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Now Available: Tiki Essentials, the #1 (and only) book for Tiki! Learn more...

Need more help? Try Tiki for Dummies Smarties: A beginner's guide and Tiki Essentials: What all Smarties need to know about Tiki Wiki CMS Groupware.