I know, everybody hates ads. But you dislike to pay for something too. I would like to give everything for free, but it's impossible because costs are too much. If you know how Google ads work, you know how to help. It's on you. I can detect income by country, so... Australia rocks now! Thanks

where to put found code with note: put it in head tags


outlaw16151 » 1 year ago

we were talking about a slide out chat box code, and i found it! but the problem i am having is. it says to put it in the head section of your page. , i cant find it. where is the head section to place the code.


outlaw16151
Level 1

Jimako » 1 year ago

Hi,

there are more options.

1. open e107_core/templates/header_template.php  - find  correct place - NOT RECOMMENDED, just for testing purpose, it will be overriden with next update.  Some people say you can copy this file to your theme and it will woek, but I didn't test this.

2. use theme_head() function in theme.php  with echo () function, but correct unescaping '' and "" is important

3.  use e107::js() / e107::css() in theme.php , if you use inline parameter, correct unescaping '' and "" is important too

3. create plugin for this using e_header.php with e107::js() and e107::css() functionality

More info:

https://e107.org/developer-manual#javascript

https://e107.org/developer-manual#css

https://e107.org/developer-manual#plugin-builder


JMadmin

Jimako
Main Admin
JMadmin

Jimako » 1 year ago

Example how to do this with menu and plugin (option 3)

TUTORIAL


JMadmin

Jimako
Main Admin
JMadmin

Jimako » 1 year ago
What option is too difficult?


JMadmin

Jimako
Main Admin
JMadmin

Moderator(s): Jimako