Adding to Login page's sidebar

Makyar

Joined: 2005-09-16
Posts: 145
Posted: Fri, 2006-07-07 16:25

Hi, quick question:

What is the file that I need to modify so that Google Ads are displayed on the sidebar of the login page. Someone told me how to do it for the sidebar of the gallery but I don't know what file to edit to do it for the login page.

Thanks!

Makar

 
Makyar

Joined: 2005-09-16
Posts: 145
Posted: Sun, 2006-07-09 05:19

If anyone has any ideas, please let me know.

Makar

 
Makyar

Joined: 2005-09-16
Posts: 145
Posted: Sun, 2006-07-16 04:02

Does that put the adsense code in the sidebar in the login page?

Makar

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sun, 2006-07-16 05:39

There are smarty variables so if you want to wrap the Adsense stuff with an if statement and make it where only people that aren't logged in can see it would keep you within the Google TOS.

As to change the login page you need to edit modules/core/templates/userlogin.tpl. Copy it to modules/core/templates/local folder and edit it from there so you don't lose your changes when you upgrade.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2006-07-17 21:26

The smarty variables for users are
$user.isGuest
$user.isRegisteredUser
$user.isAdmin
So the code would be

{if $user.isGuest == 1}
Adsense code goes here
{/if}