Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: {Javascript}'s PHP equavilent  (Read 3292 times)

0 Members and 1 Guest are viewing this topic.

Sw0rDz

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 5
{Javascript}'s PHP equavilent
« on: July 23, 2010, 03:58:45 am »

I'm designing a custom theme.  Which I have a header function in the theme.php that overrides the default.  However, it won't include the required javascript scripts.  If i have {Javascript} in my header function, it won't show the javascript but just the text "{Javascript}". 
Logged

Sw0rDz

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 5
Re: {Javascript}'s PHP equavilent
« Reply #1 on: July 23, 2010, 04:08:42 am »

I don't see an edit ability, but I found the solution.
All I did was add this:
Code: [Select]
echo theme_javascript_head();
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15757
Re: {Javascript}'s PHP equavilent
« Reply #2 on: July 23, 2010, 09:38:37 am »

If i have {Javascript} in my header function, it won't show the javascript but just the text "{Javascript}". 
The correct token name is {JAVASCRIPT}, not {Javascript}.
Logged

torgasm

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: {Javascript}'s PHP equavilent
« Reply #3 on: September 05, 2010, 03:04:37 pm »

I'm having the same issue.

The Pop-Up function doesn't work for full-size and it shows the text {JAVASCRIPT} at the top of my gallery which -all it does is- push the template down.

http://conradfan.com/gallery/index.php
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15757
Re: {Javascript}'s PHP equavilent
« Reply #4 on: September 05, 2010, 05:26:24 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.