IP.Board Tutorials

Add Guidelines to footer that opens in new window

Submitted by Mr_Joker, , Thread ID: 4474

Thread Closed
02-06-2015, 04:04 PM
#1
This tutorial is for IPB 4.x

This tutorial will allow you to add a guidelines link to footer of your site and have it open in a new lightbox window and also make the privacy policy do the same.

Go to ACP -> Customization -> themes

Click the </> code button on the theme you want to edit, this case been the default.

go to Templates -> Core -> Front -> Global -> Footer

find the code..
Code:
{{if \IPS\Settings::i()->privacy_type != "none"}}
    ..
{{endif}}

change with..
Code:
{{if \IPS\Settings::i()->privacy_type != "none"}}
    <li><a href='{{if \IPS\Settings::i()->privacy_type == "internal"}}{url="app=core&module=system&controller=privacy" seoTemplate="privacy"}{{else}}{setting="privacy_link"}{{endif}}' data-ipsdialog data-ipsdialog-title="{lang="privacy"}">{lang="privacy"}</a></li>
{{endif}}
{{if \IPS\Settings::i()->gl_type != "none"}}
    <li><a href='{{if \IPS\Settings::i()->gl_type == "internal"}}{url="app=core&module=system&controller=guidelines" seoTemplate="guidelines"}{{else}}{setting="gl_link"}{{endif}}' data-ipsdialog data-ipsdialog-title="{lang="guidelines"}">{lang="guidelines"}</a></li>
{{endif}}


your privacy policy should now open in a lightbox window and also have a new guidelines link that opens the guidelines in a new lightbox window also.

RE: Add Guidelines to footer that opens in new window

Warned
#2
thank you good information.

i need it... ^^;

RE: Add Guidelines to footer that opens in new window

#3
thank you good tutorial

Users browsing this thread: 1 Guest(s)