phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

How to put little notes to myself in TPL files?


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Sun Feb 15, 2009 9:52 pm 
Post subject: How to put little notes to myself in TPL files?

Hy!

I was wondering how can I let little notes to myself in files like viewtopic_body.tpl.
I've tryed something like
Code:
// This is a text to myself

Before the first line
Code:
<table width="100%" cellspacing="2" cellpadding="2" border="0">

But some of the text is showing up on viewtopic, so it's no good. icon_sad.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 666
Location: Texas


flag
PostPosted: Sun Feb 15, 2009 9:58 pm 
Post subject: Re: How to put little notes to myself in TPL files?

Template file are html, so just use the html comment syntax.
_________________
phpBBDoctor Blog
Back to top
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Mon Feb 16, 2009 9:57 am 
Post subject: Re: How to put little notes to myself in TPL files?

For who else would like to know, it seems that it should be something like this:
Code:
<!-- This is a note to me -->
<!-- Oh boy, I hope I will not forget anything -->
<!-- I'll put this text on top of the file -->
<!-- I should see it this way -->

Thanks for your answear, Dave. icon_wink.gif Like I was saying previously, I am more of a n00b, but I like to lern. icon_smile.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
Daz
Board Member



Joined: 17 Dec 2008

Posts: 32
Location: Yorkshire, England


flag
PostPosted: Mon Feb 16, 2009 12:48 pm 
Post subject: Re: How to put little notes to myself in TPL files?

Hi,

Just make sure you don't make a note that is interpreted as a template switch.

Daz
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 666
Location: Texas


flag
PostPosted: Mon Feb 16, 2009 1:48 pm 
Post subject: Re: How to put little notes to myself in TPL files?

Right, I should have mentioned that. icon_smile.gif Template switches start with BEGIN or END so as long as your comments do not include those words you should be fine.

By the way, you can wrap more than one line...
Code:
<!-- This is a comment.
I like writing notes to myself.
That way I can remember what I have done.
Maybe. -->

_________________
phpBBDoctor Blog
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 224


flag
PostPosted: Mon Feb 16, 2009 3:56 pm 
Post subject: Re: How to put little notes to myself in TPL files?

yep, I have seen one errant --> cause half a page to disappear and then spent a long time trying to figure out why.

just a little FYI, if you ever have this problem, FF view source will show comments in a different color. therefore, if the code is there but in that comment color , you will know where the problem is.


robert
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 430
Location: Québec


flag
PostPosted: Thu Feb 19, 2009 5:17 pm 
Post subject: Re: How to put little notes to myself in TPL files?

drathbun wrote:
Right, I should have mentioned that. icon_smile.gif Template switches start with BEGIN or END so as long as your comments do not include those words you should be fine.

There are also IF and ENDIF if you use eXtreme Styles (probably a few others as well).


Edited : for the eXtreme Styles precision.
Back to top
drathbun
Board Member



Joined: 24 Jul 2008

Posts: 666
Location: Texas


flag
PostPosted: Thu Feb 19, 2009 6:42 pm 
Post subject: Re: How to put little notes to myself in TPL files?

Salvatos wrote:
There are IF and ENDIF as well.

Not in a standard template. icon_smile.gif This require eXtreme Styles, if my memory is correct.

_________________
phpBBDoctor Blog
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 430
Location: Québec


flag
PostPosted: Thu Feb 19, 2009 6:54 pm 
Post subject: Re: How to put little notes to myself in TPL files?

That would make much sense, since I didn't remember seeing those in a .tpl file until yesterday! Well then I'm grateful I have eXtreme Styles, otherwise I don't know how I would have completed my new MOD ^^

I will edit my previous post for future reference.
Back to top
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Sat Feb 21, 2009 9:22 pm 
Post subject: Re: How to put little notes to myself in TPL files?

I put this:
Code:
<!-- This file modified for Post Associator ModCP Addon -->
<!-- FIND
{postrow.IP_IMG}
IN LINE, AFTER ADD
{postrow.POSTASSOC_IMG} -->

No problems so far. icon_smile.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0282 seconds using 15 queries. (SQL 0.0022 Parse 0.0009 Other 0.0251)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo