IP.Board Tutorials

Add Guidelines to footer that opens in new window

Submitted by Mr_Joker, , Thread ID: 4474

Thread Closed
Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
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

zardkim
Newbie
Level:
0
Reputation:
0
Posts:
14
Likes:
0
Credits:
15
05-06-2015, 07:22 AM
Warned
#2
thank you good information.

i need it... ^^;

RE: Add Guidelines to footer that opens in new window

TestBg
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
7
Credits:
17
23-08-2017, 04:12 PM
#3
thank you good tutorial

Users browsing this thread: 1 Guest(s)