You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 22-04-2014 11:09:11

Jekis
Contributors
Registered: 10-04-2014
Posts: 31

Meta

Please, suggest how to add to my page:

[== Undefined ==]
meta property="fb:app_id"
meta property="fb:admins"

Last edited by Jekis (22-04-2014 11:09:48)

Offline

#2 22-04-2014 17:43:26

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Meta

function theFunctionName(){ //theFunctionName can be whatever you want, but must be unique!
    	/* Run php code on the event, or echo something*/
?>
meta property="fb:app_id"
meta property="fb:admins"
<?php
    }
 onEvent("headStart","theFunctionName");

in for example

plugins/custom/plugin.php

Offline

#3 24-04-2014 09:29:43

Jekis
Contributors
Registered: 10-04-2014
Posts: 31

Re: Meta

Error!!!

Offline

#4 24-04-2014 17:35:05

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Meta

Sorry, forgot to add the begin and end php tags.

Btw, where does it need to be placed? In the code I've posted it will place that in the head but I realize now that that's not a valid meta tag for in the head.

Offline

#5 25-04-2014 08:49:20

Jekis
Contributors
Registered: 10-04-2014
Posts: 31

Re: Meta

I need not on the main page, and on page support.

Offline

#6 25-04-2014 08:51:19

Jekis
Contributors
Registered: 10-04-2014
Posts: 31

Re: Meta

In addition, added still "content"!   

[== Undefined ==]
    <meta property="fb:admins" content="0000000000000000">   
    <meta property="fb:app_id" content="0000000000000000">

Last edited by Jekis (25-04-2014 08:51:38)

Offline

#7 25-04-2014 10:56:56

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Meta

If you put it on the main oage, it would still apply. Did you already try?

Offline

#8 25-04-2014 13:19:15

Jekis
Contributors
Registered: 10-04-2014
Posts: 31

Re: Meta

I placed on the main page everything works thanks!

Offline

Board footer

Powered by FluxBB