Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Templates, Stylesheets, Page Layout / Message stack customization

Message stack customization

Locked

Started by stevensmedia on 20 Sep 2006, 10:36 PM · Views: 2,843

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Sep 2006, 10:36 PM
#1
stevensmedia avatar

stevensmedia

New Zenner

Join Date:
Jan 2006
Posts:
88
Plugin Contributions:
0

Message stack customization

Having the message stack at the top of the page doesn't work for one of my sites, so I moved it to the bottom of the header. I can't seem to style it though. I gather that tpl_message_stack_default.php is called by the messageStack class. As a test, I modified the code of this template like so:

<div <?php echo $output[$i]['params']; ?> class="BOOGIEMAN"><?php echo $output[$i]['text']; ?></div>

Now, when I run a CC test using a card I know will fail, I expect to see the message stack displayed and its code should show my class="BOOGIEMAN" as above, but this isn't what I get--the message stack has no DIV tags surrounding it at all.

So, which file actually generates the output for the message stack error on the checkout-payment page?

Perhaps the answer to this question will also answer this one: how to remove the leading dash before the message stack?

  • Your card has been declined...

The dash is not in the payment module language file.

20 Sep 2006, 11:52 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Message stack customization

/*warnings, errors, messages*/
.messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
	line-height: 1.8em;
	padding: 0.2em;
	border: 1px solid #000000;
	}

.messageStackWarning, .messageStackError {
	background-color: #ff0000;
	color: #ffffff;
	}

.messageStackSuccess {
	background-color: #99FF99;
	color: #000000;
	}

.messageStackCaution {
	background-color: #FFFF66;
	color: #000000;
	}

The above classes style the messagestack.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 Sep 2006, 4:23 AM
#3
stevensmedia avatar

stevensmedia

New Zenner

Join Date:
Jan 2006
Posts:
88
Plugin Contributions:
0

Re: Message stack customization

Thanks Kim! However, I already have that in my CSS file--the styles don't appear though. I don't even see any message stack classes in the outputted page:

<!--eof-branding display-->

<!--eof-header logo and navigation display-->



<!--bof-header ezpage links-->
<!--eof-header ezpage links-->
</div>

 - Your card has been declined.  Please re-enter in your card information, try another card, or contact the store owner for assistance.
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">

I'm curious as to what template controls this so that I can take a closer look. Maybe this is actually generated by the PSiGate XML payment module...

21 Sep 2006, 2:31 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Message stack customization

Hhmmm, without seeing it in action it is difficult to tell, but it could be the module is not using the message stack correctly.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Nov 2006, 4:09 AM
#5
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Message stack customization

Hi,

Ehm, actually I want to change the message stack background color in the Admin page but I don't know which CSS file control those colors as its hard to see the text written in it when my Admin are black in color (I used the Green Tea Admin mod!)...:lookaroun

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

1 Dec 2006, 8:52 AM
#6
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Message stack customization

anyone out there knows how to change the message stack background color?!!!!!!! :sleepy:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!