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

* Navigator

Expand - Collapse

* Statistic

  • *Total Posts: 14942
  • *Total Topics: 2271
  • *Online Today: 10
  • *Most Online: 292
(2016 November 12, 09:37:31 am)

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

Started by Cool Chimp, 2010 November 13, 09:16:45 am

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

Cool Chimp

2010 November 13, 09:16:45 am
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
2010 November 13, 09:26:11 am
/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
2010 November 13, 10:31:03 am
Quote from: Cool ,  2010 November 13, 09:26:11 am
/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
2010 November 13, 05:44:01 pm
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
2010 November 14, 01:02:59 pm
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!