Forums / Cotonti / Support / Where is the message.tpl styled?

foxhound
#1 2012-09-12 22:40

I have a weird problem with the message.tpl and than specifically the pop-up it generates to confirm for example when you want to delete a page. When you use the nemesis or the symisun-03 themes and you choose to delete a page a pop-up comes in the middle of the screen asking if you are sure you want to do this.
You than choose yes or no.

I am making a new skin reworking all those tpl's and with this one I am stuck and I can not see how to fix it. Instead of a popup I get a screenwide screwed up streched popup at the top of my screen (so it pushes the header down) with a missing yes button and a not working no button.
I have tried using the default (nemesis) message.tpl as well as the symisun-03 message.tpl and although those work when I select those themes in my profile those tpl's do not work if I choose my own custom theme.

What I am wondering mainly is, where is this tpl getting the style from? I checked all css files I could think of and nowhere can I find the classes specified in the tpl. Can anyone shine a light on this? I am really stumped and noticed I started talking to my screen tonight trying to fix it. So..........I am at a dead end smiley

Here is the default nemesis tpl:

<!-- BEGIN: MAIN -->

		<div class="col first">
			<div class="block">
				<h2 class="warning">{MESSAGE_TITLE}</h2>
				<div class="warning">
					{MESSAGE_BODY}
					<!-- BEGIN: MESSAGE_CONFIRM -->
					<table class="inline" style="width:80%">
						<tr>
							<td><a id="confirmYes" href="{MESSAGE_CONFIRM_YES}" class="confirmButton">{PHP.L.Yes}</a></td>
							<td><a id="confirmNo" href="{MESSAGE_CONFIRM_NO}" class="confirmButton">{PHP.L.No}</a></td>
						</tr>
					</table>
					<!-- END: MESSAGE_CONFIRM -->
				</div>
			</div>
		</div>

<!-- END: MAIN -->


The classes I can not find anywhere are "inline" and "confirmButton".
Also the "confirmYes" and the "confirmNo" id's I can not find.

Any help is very much appreciated.

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Twiebie
#2 2012-09-12 23:04

Do you have the following in your stylesheet?

.jqmWindow {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: auto;
    background-color: #EEE;
    color: #333;
    border: 3px solid white;
    padding: 7px;
    text-align: center;
    z-index: 9999;
}

.jqmWindow h4 {
	border-bottom: 1px dotted #b0c4de;
	font-size: 14px;
	margin: 0 0 7px 0;
	padding: 0 0 5px 0;
	text-align: left;
	color: #3E606F;
}

.jqmWindow p{
	text-align: right;
	margin: 15px 0 0 0;
	font-size: x-small;
	text-transform: lowercase;
}

.jqmOverlay { background-color: #000; }

/* Background iframe styling for IE6. Prevents ActiveX bleed-through (<select> form elements, etc.) */
* iframe.jqm {
	position:absolute;
	top:0;
	left:0;
	z-index:-1;
	width: expression(this.parentNode.offsetWidth+'px');
	height: expression(this.parentNode.offsetHeight+'px');
}

/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html .jqmWindow {
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}

 

foxhound
#3 2012-09-13 11:42

Thank you very much for your reply.
No, none of those styles are in my css so it is those that I am missing I guess.
After I read your reply I delved into the nemesis folder again and I now see there is a style sheet called modalbox.css with the above styles in it.
I saw it but since the classes were not what i was looking for I did not realise it was this sheet  I needed.

Going to add this and will get back to you and let you know if this solves it.


Do you happen to know wether the reset sheet is required as well? I know what the reset sheet is for but I also read contradicting info about it. Some swear for it, others say you do not need it.
I actually have no issues really with this new skin other than my own mistakes so far so I thought the reset was not required. What would you do?

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Kingsley
#4 2012-09-13 13:32

^^ this is why there should be a no nonsense basic skin which contains all most/all used tags without 'hidden' things like this.. modelbox.css was the first file I threw out when creating a skin.

No offence to the Nemesis creator off course..

Kort
#5 2012-09-13 14:01
#35442 Kingsley:

^^ this is why there should be a no nonsense basic skin which contains all most/all used tags without 'hidden' things like this.. modelbox.css was the first file I threw out when creating a skin.

No offence to the Nemesis creator off course..

No offence, but why would anyone want to through out anything thoughtlessly just like you did? Since adding all / most tags makes absolutely no sense for a normal / above average developer, I cannot think of anything to help you with in such situations.

As regards reset.css, try cross-browser HTML-coding without it and see what happens. If it works for you, just remove the string from the resource file & delete reset.css.

Nemesis is the basic theme that you are supposed to use as a startup. But if you start with throughing away stuff, you guys are in trouble.

SED.by - создание сайтов, разработка плагинов и тем для Котонти
Twiebie
#6 2012-09-13 14:14

I do agree with most of what Kort just said.

If you build on the Nemesis theme but already start deleting stuff at the start, you will end up missings bits and bobs.
Personally I prefer to build with a minimal setup and add tags as I progress. Cotonti's TPL debug provides a very good source of information about what tags are available.

#35442 Kingsley:

^^ this is why there should be a no nonsense basic skin which contains all most/all used tags without 'hidden' things like this.. modelbox.css was the first file I threw out when creating a skin.

What exactly is hidden about any of this? The modelbox.css file is included through the resource file, it isn't there for no reason. ;)

foxhound
#7 2012-09-13 15:31

But, I did not delete a thing.
I simply did not add that css file since I saw in the tpl's I am using (which are all copied 100% from nemesis and than changed to my new skin) the styles specified in there were not in my tpl's so I simply assumed it was for some special nemesis feature........like there is the slider for example. I use a different slider so I did not copy that part of the css neither.

And may i be so free to tell you symisan does not contain the above mentioned css neither? But it does have a working popup, even using the classes which I was looking for which are also not in the css of symisan.

Call me stupid as much as you want, I simply never assumed I needed that file when not seeing any reference to it.
I also did not include the js file which nemesis uses.........I guess that too is always required? But if so........why does symisan not have it than? And why does it not cause issues disabling it?

Maybe get rid of symisan from the default package as I am working mainly with Nemesis but comparing to symisan all the time when I have issues or wonder how things are changed. Symisan is a wrong example than.

 

#35443 Kort:

As regards reset.css, try cross-browser HTML-coding without it and see what happens. If it works for you, just remove the string from the resource file & delete reset.css.

Thanks, I will triple check (I am working with 3 browsers by standard).




 

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Twiebie
#8 2012-09-13 17:32
#35445 foxhound: 

Call me stupid as much as you want, I simply never assumed I needed that file when not seeing any reference to it.
I also did not include the js file which nemesis uses.........I guess that too is always required? But if so........why does symisan not have it than? And why does it not cause issues disabling it?

Nobody is calling you stupid. ;)

By default the JS file in the Nemesis theme actually doesn't really do anything.
It's just there for theme builders to include their scripts there. The JS file is included in to the theme through the resource file (nemesis.rc.php), just like the CSS files.

Symisun-03 does have the above mentioned CSS rules. Look in symisun-03.css at line 963.

This post was edited by Twiebie (2012-09-13 20:35, 12 years ago)
Kingsley
#9 2012-09-13 19:13

Pardon me for doing a suggestion.. it's perfectly clear that you, kort, couldnt care less about hobbyist.. you never said it out loud, but you can always read it between the lines

 

...

foxhound
#10 2012-09-13 21:03
#35446 Twiebie:
By default the JS file in the Nemesis theme actually doesn't really do anything.
It's just there for theme builders to include their scripts there. The JS file is included in to the theme through the resource file (nemesis.rc.php), just like the CSS files.

Symisun-03 does have the above mentioned CSS rules. Look in symisun-03.css at line 963.

Thanks for both infos, that was very helpfull!
And yes, I stand corrected, I see symisun included that in its CSS as well, I didnt see that as I was mainly concentrating on the class used in the tpl.
By adding the css you pointed me at I have completely fixed this issue. Thanks for that!

@Kingsley
Sometimes he is helpfull and other times he can come across very unfriendly. I am sure others say that about me on my website. I can understand how hard it is for a pro coder like Kort to not go completely nuts over the questions us hobbyist ask here. A developer framework..........I mean...........what are we thinking smiley

But I like the framework, I like it here and there are a lot of friendly and helpfull people here as well, maybe some day we will be pro's as well.........maybe never wink

 

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Twiebie
#11 2012-09-14 03:13
#35448 foxhound: 

@Kingsley
Sometimes he is helpfull and other times he can come across very unfriendly. I am sure others say that about me on my website. I can understand how hard it is for a pro coder like Kort to not go completely nuts over the questions us hobbyist ask here. A developer framework..........I mean...........what are we thinking smiley

But I like the framework, I like it here and there are a lot of friendly and helpfull people here as well, maybe some day we will be pro's as well.........maybe never wink

According to the poll most Cotonti users are using it for hobby projects. ;)

Neagd.png

There's absolutely nothing wrong with asking questions like these, guys. That's what these forums are for, regardless of what knowledge you have.

Kingsley
#12 2012-09-14 15:38

Sure, but in the mean time I kinda am getting fed up with his additude towards us. Although I personally use Cotonti for private projects, over the years I have recommended it to dozens of people, including companies.

If he feels that we do not have a place in this project, just say so, and he should refrain himself from reacting on such forumposts. I mean I can imagine that trust/hengeveld sometimes get nuts from us too, but they dont act like we're any less than normal/above average programmers. The man doesnt seem to understand that  not every one in the freaking world is a full time programmer. Look at his reaction at the slimbox plugin a while back.  reacting with a superior additude, but not realizing that you cant say a without mentioning b. After multiple people (me included) gave him 'hell' about that he reluctantly came with an article.

Serious man, I would never, ever act like that to some one that is learning/working in my profession. We are all human, but he somehow thinks he's better.

diablo
#13 2012-09-15 11:22

Geef een rust hij is viertig jaars oud :) hij lijdt aan middelbare leeftijd crisis

no need to freak out when people point out mistakes and lack of info or usefullness instead try to fix and and learn from it.

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."