Add Guidelines to footer that opens in new window

by Mr_Joker - 02-06-2015, 04:04 PM
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
32
Credits:
333
Reputation:
3
2 Years of Service
#1
OP
Posted: 02-06-2015, 04:04 PM
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.
Newbie
Posts:
14
Joined:
May 2015
Likes:
0
Credits:
15
Reputation:
0
2 Years of Service
#2
User got warned for this post
Posted: 05-06-2015, 07:22 AM
thank you good information.

i need it... ^^;
Newbie
Posts:
15
Joined:
Aug 2017
Likes:
0
Credits:
17
Reputation:
0
#3
Posted: 23-08-2017, 04:12 PM
thank you good tutorial
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)