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: insert digg in coppermine!?  (Read 4196 times)

0 Members and 1 Guest are viewing this topic.

daniell

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Central Wallpapers
insert digg in coppermine!?
« on: April 23, 2007, 03:03:36 am »

im trying to insert digg into my coppermine gallery

the code is and i now where i can insert it!

<script type="text/javascript">
digg_url = 'DIGG_PERMALINK_URL';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

but i have to get a code to place at DIGG_PERMALINK_URL that will give the page link...

anyone knows!??

Nibbler

  • Guest
Re: insert digg in coppermine!?
« Reply #1 on: April 23, 2007, 01:41:56 pm »

Try this code

Code: [Select]

echo <<< EOT

<script type="text/javascript">
digg_url = '{$_SERVER['REQUEST_URI']}';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

EOT;


As a custom header or footer.
Logged

daniell

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Central Wallpapers
Re: insert digg in coppermine!?
« Reply #2 on: April 23, 2007, 02:31:33 pm »

thankz but dindt work

 ;)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: insert digg in coppermine!?
« Reply #3 on: April 23, 2007, 02:38:46 pm »

elaborate "didn't work". What happened? Did you get an error message? Post a link to your gallery and a deep link to your custom_header include for a start.
Logged

daniell

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Central Wallpapers
Re: insert digg in coppermine!?
« Reply #4 on: April 23, 2007, 02:43:15 pm »

take a look gaugau

http://www.superimagens.com.br/displayimage-2-9.html

under delicious button

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: insert digg in coppermine!?
« Reply #5 on: April 23, 2007, 02:47:11 pm »

Post [...] a deep link to your custom_header include for a start.
Obviously, you haven't used the custom_header include. Without seeing your actual code modifications it's impossibel to advice. If you edited theme.php, rename it to theme.php.txt and attach it to your posting, or even better: zip your entire custom theme and attach it to your posting.
Logged

daniell

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Central Wallpapers
Re: insert digg in coppermine!?
« Reply #6 on: April 23, 2007, 02:58:11 pm »

i use the themes.inc.php

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: insert digg in coppermine!?
« Reply #7 on: April 23, 2007, 03:01:46 pm »

Undo your changes. Never edit include/themes.inc.php. Always edit themes/yourtheme/theme.php instead!
Try adding
Code: [Select]
document.write('{$_SERVER['REQUEST_URI']}');temporarily into a new line before
Code: [Select]
digg_url = '{$_SERVER['REQUEST_URI']}';
Also try disabling the SEF_URL plugin.
« Last Edit: April 23, 2007, 03:32:49 pm by GauGau »
Logged

daniell

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • Central Wallpapers
Re: insert digg in coppermine!?
« Reply #8 on: April 23, 2007, 03:17:56 pm »

hmm ok

Code: [Select]
<?php

/*************************

  Coppermine Photo Gallery

  ************************

  Copyright (c) 2003-2006 Coppermine Dev Team

  v1.1 originally written by Gregory DEMAR



  This program is free software; you can redistribute it and/or modify

  it under the terms of the GNU General Public License as published by

  the Free Software Foundation; either version 2 of the License, or

  (at your option) any later version.

  ********************************************

  Coppermine version: 1.4.9

  $Source$

  $Revision: 3125 $

  $Author: gaugau $

  $Date: 2006-06-16 08:48:03 +0200 (Fr, 16 Jun 2006) $

**********************************************/



define('THEME_IS_XHTML10_TRANSITIONAL',1); // Remove this if you edit this template until

                                           // you have validated it. See docs/theme.htm.



// HTML template for template sys_menu spacer

$template_sys_menu_spacer ='<img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />';



?>

<script type="text/javascript">
digg_url = '{$_SERVER['REQUEST_URI']}';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

its very little it work  -> http://www.superimagens.com.br/displayimage-2-10.html

but stay on top how can i put below the middle-image

Nibbler

  • Guest
Re: insert digg in coppermine!?
« Reply #9 on: April 23, 2007, 04:55:56 pm »

Use a custom header or footer as suggested - put the code provided into a new file, upload it into the coppermine directory and enter the name of the file in config. Don't edit any existing files.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.