To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Statistic


  • *Total Posts: 16431
  • *Total Topics: 2522
  • *Online Today: 10
  • *Most Online: 292
(12. Nov 2016, 09:37:31)
  • *Users: 0
  • *Guests: 0
  • *Spiders: 2
  • *Total: 2

  • *Google (2)

* Calendar

Mo
Tu
We
Th
Fr
Sa
Su
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Birthdays
Apr 23: klein.michael (41)
Apr 24: Poet1960 (57)

Where is the file containing<head><body> for the portal located?

Started by Cool Chimp, 13. Nov 2010, 09:16:45

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Cool Chimp

13. Nov 2010, 09:16:45
I have some jScripts to install but in order for them to work I need to place a code before the </head> tag.

Where can I find these tags for the portal? Where do you find these tags period lol?

Thanks!

Cool

#1
13. Nov 2010, 09:26:11
/Themes/default/PortaMx/
|I Use: SMF 2.0.5 | PortaMx 1.51
Q: What do you do when you see a bear in the woods?
A: Play Dead!
H-A-H-L = Happy Admins Have Linux

Cool Chimp

#2
13. Nov 2010, 10:31:03
Quote from: Cool on 13. Nov 2010, 09:26:11
/Themes/default/PortaMx/


That gets me part of the way there lol. Which file is it located in?

What I'm trying to do should work right (if I do it correctly)? I'm installing 'sliding boxes' jScript and paste some code before </head> and then another code before </body>. I think I can just add the <body> code in to a script block, so I'll only be adding the one code before </head>.

Thanks for the help!!!

feline

#3
13. Nov 2010, 17:44:01
you can add css and javascript in the SMF variable $context['html_headers'] like:
$context['html_headers'] .= '<script type="text/javascript" src="'. $settings['default_theme_url'] .'/myjava.js"></script>

But .. this MUST be done before the header is send.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

Cool Chimp

#4
14. Nov 2010, 13:02:59
Getting a bit beyond my comfort level lol. I'll have to either hire someone or not pursue the jScripts.

Thanks for the input though!