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: Re: Adding Links  (Read 2899 times)

0 Members and 1 Guest are viewing this topic.

again

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Adding Links
« on: February 10, 2006, 02:14:13 pm »

Hey, I'd like to add a link which opens in a popup, or at least in a new window.
Can anyone tell me waht I have to change? ???
Logged

again

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Adding a pop-up link to the menu?
« Reply #1 on: February 10, 2006, 10:21:32 pm »

I'd like to add a link to the menu which should open in a popup.
I added this code to the theme.php, but I have no idea what I have to do to get a pop-up.  :(

Code: [Select]
addbutton($sub_menu_buttons,'My Button 1','This is the First Custom Button','http://url','custom1',$template_sub_menu_spacer);
Can anyone help me?  :)
Logged

Blueiris

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 170
  • Horse poor!
    • Saddlebred World Gallery
Re: Adding a pop-up link to the menu?
« Reply #2 on: February 11, 2006, 05:35:04 pm »

You need javascript to open a pop-up. Google for "pop-up window". There's a ton of pre-made scripts out there, and there are a few free programs that will create the script for you from your input.
Logged
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.