The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML Error in Default Template

3 posters

Go down

HTML Error in Default Template Empty HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 2:19 am

Hello Staff, @Buttercup I found this error in the default template of privmsg_topic_review (forum version punbb) not sure if all other forum versions are affected.

Here is the Default Template (with error)
Code:
<div class="main">
   <!-- BEGIN switch_inline_mode -->
   <div class="main-head">
      <h1 class="page-title">{L_TOPIC_REVIEW}</h1>
   </div>
   <!-- END switch_inline_mode -->
<style type="text/css" media="screen">
<!--
.useravatar {
position:static;
margin-top:1px;
margin-bottom:150px;
padding-bottom:150px;
padding-top:1px;
clear:both;}
-->
</style>
   <!-- BEGIN postrow -->
   <div class="main-content topic">
      <div class="post">
         <div class="postmain">
            <div class="posthead">
               <h2>{postrow.POST_SUBJECT_NEW} - {postrow.POST_DATE}</h2>
            </div>

            <div class="postbody">
               <div class="user online">
                  <h4 class="user-ident">
                     <span class="username">{postrow.POSTER_NAME}</span>
                     <div class="user-basic-info">
                        {postrow.POSTER_AVATAR}<br />
                        {postrow.POSTER_NAME}
                     </div>
                  </h4>
               </div>

               <div class="post-entry">
                  <div class="entry-content">
                     <p>{postrow.MESSAGE}</p>
                  </div>
               </div>
               <div class="postfoot">
               {L_ATTACH_SIGNATURE}
               </div>
            </div>
         </div>
      </div>
   </div>
   <!-- END postrow -->
</div>



The error
Code:
<style type="text/css" media="screen">
<!--
.useravatar {
position:static;
margin-top:1px;
margin-bottom:150px;
padding-bottom:150px;
padding-top:1px;
clear:both;}
-->
</style>

Hope this helps!

Best Regards
FrOsTyXi


Last edited by FrOsTyXi on May 20th 2015, 5:48 am; edited 1 time in total
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by Sir. Mayo May 20th 2015, 3:08 am

That line is in there as an HTML comment, Not a CSS comment so it will still take effect in your forum.
You can see here that it still works, when i added Color:red; to the css, and assigned a div with the id useravatar, it changes the text there. Which tells you that the it is working:

HTML Error in Default Template Screen15
Smile

Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 4:19 am

@Sir. Mayo this is across my screen before fixing this issue <style type="text/css" media="screen">
<!--
.useravatar {
position:static;
margin-top:1px;
margin-bottom:150px;
padding-bottom:150px;
padding-top:1px;
clear:both;}
-->
</style>

see it here in the picture
HTML Error in Default Template Captur18

That was an issue for me and to see it is on a default template makes it Forumotion's issue now

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by Sir. Mayo May 20th 2015, 5:12 am

Oh! My fault i was confused as to what you meant, How ever you solution does not include a closing <div> tag! With that said, as far as i know you cannot Use Div to identify css. And basically all you did was cause an error in the template.

Just paste whats below in between the two <style> </style> tags. And your problem should be gone.

For some reason who ever made the template, used an HTML comment where a CSS comment should go away
Code:
/* 
.useravatar {
position:static;
margin-top:1px;
margin-bottom:150px;
padding-bottom:150px;
padding-top:1px;
clear:both;}
  */
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 5:32 am

@Sir. Mayo Thank you kindly sir! Hope they can fix the error in the template. Smile

Best Regards
FrOsTyXi


Last edited by FrOsTyXi on May 20th 2015, 5:50 am; edited 3 times in total
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by SLGray May 20th 2015, 5:37 am

So on your forum that code appeared?


HTML Error in Default Template Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51583
Reputation : 3526
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 5:41 am

@SLGray Yes sir, that was the default template i just removed
Code:
<style type="text/css" media="screen">
<!--
.useravatar {
position:static;
margin-top:1px;
margin-bottom:150px;
padding-bottom:150px;
padding-top:1px;
clear:both;}
-->
</style>

@Sir. Mayo fix worked but for one line, but that was fine removing the snippet seems to have fixed any error.

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by SLGray May 20th 2015, 5:44 am

No. I mean on the forum itself?


HTML Error in Default Template Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51583
Reputation : 3526
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 5:52 am

@SLGray Yes that was there and I never edited the template, it was punBB Default privmsg_topic_review Template.

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by Sir. Mayo May 20th 2015, 5:52 am

Did you have a custom theme installed?
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by SLGray May 20th 2015, 5:56 am

Well I can tell you on my punBB forums that messages does not appear.


HTML Error in Default Template Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51583
Reputation : 3526
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 5:57 am

@Sir. Mayo Yes my theme is not from http://en.hitskin.com/

Do you think it is due to the custom theme? Funny thing is today was the first time I ever saw the error, and I do use the message system quite offten. I really think I would have seen it, but then again scratch

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by Sir. Mayo May 20th 2015, 6:00 am

Maybe.

I use punbb and have a custom theme, but no edited privmsg_topic_review and like @SLGray it does not show up for me. IT may have been the Theme
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 6:01 am

SLGray wrote:Well I can tell you on my punBB forums that messages does not appear.

@SLGray Yes it was strange to see, and thank you for confirming no error on your forums.

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

HTML Error in Default Template Empty Re: HTML Error in Default Template

Post by FrOsTyXi May 20th 2015, 6:02 am

Sir. Mayo wrote:Maybe.

I use punbb and have a custom theme, but no edited privmsg_topic_review and like @SLGray it does not show up for me. IT may have been the Theme

@Sir. Mayo Very possible, strange I have never seen it and thank you as well for confirmation of no error.

Regards
FrOsTyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum