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
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 |
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 |
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. |
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. |
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 |
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 . 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__
--------------------------------------------------------- _header.html . <div class="topBlock"> . . _footer.html . <div class="clear_both"></div> . You need to edit style/css here to... Hope it will help you some.. |
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. |