Member Only Items

I have a custom HTML set for the Promo block, but there is some stuff I want to only be visible to members.

How do I do this? I assume some sort of If then statement, but I am not a programmer.

Greatly appreciate any help.

Cory

Quote · 15 Aug 2009

It would actually be nice to have one thing that is viewable by guest, and then something else when a member logs in.

Thanks.

Cory

Quote · 15 Aug 2009

Any ideas? As I have mentioned before, I am not a programmer, so anyone who can tell me the actually code to do this would be very much appreciated.

Thanks

Cory

Quote · 21 Aug 2009

I just figured this out , so that's why I didn't respond to this post earlier.

Login to your dolphin admin panel. Next, go to "Builders" in your menu, then click on page builder.

When you come to the "Page Builder" page, click on home page. The look down at the "Samples" blocks and there should be on that says "HTML Block".

Drag that upwards to what ever column you want this html block in and wait about 30 seconds. Now click on it and you will be able to add custom HTML content and even be able to choose if a guest can view it or not.

(As a side note, you can arrange the blocks how you want your items to appear on the page. hence, if you want that new custom HTML Block at the top of either column, then that's where you drag it, to the top. Then on your hompage it will be where you put it.)

Hope this helps.

Quote · 24 Aug 2009

Thanks Kaution. Yeah, I already knew how to do that, though.

What I am actually looking for is not the page blocks in the builder, but somthing that will be appear in the header, or a custom floating footer I have that will be able to have some items be for members only, and other that will only show if you are not a members.

Such as:

Thanks again though.

Cory

Quote · 24 Aug 2009

In the header:

You can add code to templates/tmpl_uni/scripts/functions.php

.

function LoginSection($logged)

.

You will have here if( $logged['member'] ) to members and to guest you will have the else function

else
{
$ret .= '<div class="login_block">';

.

You need also to edit some css... (height on the topBlock, depend of what you shall have here)

=============================================================

.

You can also do it this way, you can then add it to templates/tmpl_uni/_footer.html or _header.html

.

File templates/tmpl_uni/_header.html or templates/tmpl_uni/_footer.html add this code

__member_guest__


File inc/design.inc.php
1) add code bellow after: case 'hello_member':

case 'member_guest':      $sRet = getMemberGuest(); break;



2) add code bellow after: function getMainLogo()


function getMemberGuest()
{

global $logged;
global $site;

$ret = '';

if( $logged['member'] )
{
$ret .= '<b>Member view</b>';
$ret .= '<br>';
$ret .= 'Add Member code here...';
}
else
{
$ret .= '<b>Guest view</b>';
$ret .= '<br>';
$ret .= 'Add Guest code here...';
}
return $ret;
}

---------------------------------------------------------

_header.html

.

<div class="topBlock">
__main_logo__                    
__hello_member__
<div style="position:absolute;top:55px;right:200px;">__member_guest__</div>
</div>

.

.

_footer.html

.

<div class="clear_both"></div>
<div>__member_guest__</div>
</div>
<!-- end of body -->

.

You need to edit style/css here to...

Hope it will help you some..

Quote · 25 Aug 2009

OkWeb, you are also a genius. THank you so much, that is exactly what I have been looking. This is going to make all the difference on my site.

Thanks again.

Quote · 25 Aug 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.