Display if not logged in

Mods etc.

Moderator: Integra Moderator

Display if not logged in

PostAuthor: maddocks » Wed Aug 02, 2006 2:33 am

Hi,

how do i make a button only display when the user is not logged in. It is a (register) button and is displayed next to post reply and new topic in the viewtopic.php file. Thanks

Maddocks
Last edited by maddocks on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]PCHelpWorld - Free Windows & PC Support Forum[/url]

[url=http]EzyRewards -- Free Domain Name And More (It Works)[/url]

maddocks
Members
Members
 
Posts: 59
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 05, 2006 11:55 am
Cash on hand: 0.00

Re: Display if not logged in

PostAuthor: Teelk » Wed Aug 02, 2006 2:38 am

In templates/yourtheme/viewtopic_body.tpl you can add the switches...

<BEGIN>

and

<END>

...around the image.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Display if not logged in

PostAuthor: maddocks » Wed Aug 02, 2006 3:00 am

omg, yes i completely forgot about that. Thanks Mate for reminding me!

maddocks
Last edited by maddocks on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]PCHelpWorld - Free Windows & PC Support Forum[/url]

[url=http]EzyRewards -- Free Domain Name And More (It Works)[/url]

maddocks
Members
Members
 
Posts: 59
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 05, 2006 11:55 am
Cash on hand: 0.00

PostAuthor: maddocks » Wed Aug 02, 2006 3:17 am

hi,

that is not working, here is my code:

<BEGIN>
<a><img></a>
<END>

Thanks

maddocks
Last edited by maddocks on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http]PCHelpWorld - Free Windows & PC Support Forum[/url]

[url=http]EzyRewards -- Free Domain Name And More (It Works)[/url]

maddocks
Members
Members
 
Posts: 59
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 05, 2006 11:55 am
Cash on hand: 0.00

Re: Display if not logged in

PostAuthor: Teelk » Wed Aug 02, 2006 8:41 pm

Try putting it around the cell <td> tags, or if your code isn't using those just around that image, you can add <span></span> around it and see if that works. I believe it must be around a cell though.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot]