How can i add flag counter

Started by DrBlack, September 19, 2014, 10:05:16 AM

Previous topic - Next topic

DrBlack

i have flag counter.

how to add it in my SMF forum ?

where to add this code <a href="http://info.flagcounter.com/hmVN"><img src="http://s11.flagcounter.com/count2/hmVN/bg_800011/txt_FFFFFF/border_820000/columns_8/maxflags_250/viewers_0/labels_1/pageviews_1/flags_1/" alt="Free counters!" border="0"></a>

in which template

thank you

kat

Depends where you want it...

index.template.php?

Where you'd add it, in the file, depends where you want it displayed.

Keep a copy of the original file and try a bit of trial'n'error? That's what I do, usually. ;)

Kindred

DrBlack,

We have been trying to answer your many questions as best we can. However you do not sem to have even the most basic understanding of how to ASK a question. If english is not your primary language, mighti suggest checking out our support boards which do use your primary language?

If English IS your primary language and/or you wish to continue posting questions here in the English support section, then I recommend that you start providing full and descriptive information of what your questions actually are....  Not one liners with a bit of code.

What is this flag template that you speak of?
What is the purpose?
What do you want it to do?
Where do you want it to display?
Why?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

kat

Just had a thought... If you want to, you could have a portal and add that as an html block. Or, a php one, come to that.

DrBlack

Quote from: Kindred on September 19, 2014, 10:09:00 AM
1-What is this flag template that you speak of?
2-What is the purpose?
3-What do you want it to do?
4-Where do you want it to display?
5-Why?

1- its a counter of visitors
2- count the visitors
3- it count the visitors
4- in the bottom of main page ( forum )
5- because its good

thank you

mashby

Quote from: DrBlack on September 19, 2014, 10:05:16 AM
i have flag counter.

how to add it in my SMF forum ?

where to add this code <a href="http://info.flagcounter.com/hmVN"><img src="http://s11.flagcounter.com/count2/hmVN/bg_800011/txt_FFFFFF/border_820000/columns_8/maxflags_250/viewers_0/labels_1/pageviews_1/flags_1/" alt="Free counters!" border="0"></a>

in which template

thank you
For every page, the index.template.php file for every theme you have on your site.
Always be a little kinder than necessary.
- James M. Barrie

DrBlack

i want to add it at bottom of the page


so where to add it in the index.template.php

mashby

Depends on the theme you are using. Which one is it? I think it would be somewhere in here regardless of the theme though:
function template_body_below()
Always be a little kinder than necessary.
- James M. Barrie

Mstcool

Quote from: K@ on September 19, 2014, 10:13:22 AM
Just had a thought... If you want to, you could have a portal and add that as an html block. Or, a php one, come to that.

Dr black,  I'd say this is the best option because it'll save you the time of editing every single theme. Download a portal, and just use the footer block. I know Simple portal has this feature and simple portal is used by many many people. Also is the number one popular mod on our site at the moment.  :P

DrBlack

yes i use it

but how to add the flag counter ( at bottom of page )?

i use style : Inferno Design By DzinerStudio

Kindred

you have just been told two ways to do it.

1- add it into index.template.php, just below function template_body_below()
2- install a portal mod and add the code into a block, wherever you want it placed.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: