![]() |
Table in customer area
I have moved my Customer menu to appear in a different place.
How would I include this info in a table that is only visible when a customer logs in? Everything works fine, I would like to put it in a table with a different bg color to beautify it. :lol: EXAMPLE: Before Mod Http://www.spookyplanet.com/defaULT1.jpg After Mod Http://www.spookyplanet.com/defaULT2.jpg Code:
{if $active_modules.Wishlist ne "" and |
Just wrap the code with a table and add a class to use a background image or color.
|
not sure how to do that
|
Code:
<table class="membertable" width="x" height="x" cellpadding="0" cellspacing="0"><tr><td> Replace width and height with the actual width and height you want (should match the size of the image). Then add this to skin1.css: .membertable {BACKGROUND: URL(images/imagename.jpg); background-repeat: no-repeat;} Replace imagename.jpg with the name of the image you want to use as a background. Upload it to skin1/images. That should do it![/code] |
Good work balinor. One more question, Is it possible for this backround image to disappear when a customer is not logged in?
|
Yes, just replace this:
class="membertable" with this: {if $login ne ""} class="membertable" {/if} |
Ok, works great. Although I have one more question. The box Appears right before my Dialog table. It works great when a customer is logged in, but when there not .. a nice space is there there. I guess what I'm asking is there a way to
Code:
{if $login ne ""} SWEET! Logged in! http://www.spookyplanet.com/demo111.jpg SPACE ( Not logged in) :cry: http://www.spookyplanet.com/demo111_1.jpg |
Got ya...this will do the trick:
Code:
{if login ne ""}<table class="membertable" width="x" height="x" cellpadding="0" cellspacing="0"><tr><td> |
hmm... Didn't seem to work ...The Image appears if your not logged in.. Only the text disappears and reappears when logged in or out. =(
|
Oh I got it !!!
you forgot the $ Code:
{if login ne ""} to Code:
{if $login ne ""} |
All times are GMT -8. The time now is 02:04 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.