insert digg in coppermine!? insert digg in coppermine!?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

insert digg in coppermine!?

Started by daniell, April 23, 2007, 03:03:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daniell

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

Try this code



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.

daniell


Joachim Müller

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.


Joachim Müller

Quote from: GauGau on April 23, 2007, 02:38:46 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.

daniell

i use the themes.inc.php


Joachim Müller

#7
Undo your changes. Never edit include/themes.inc.php. Always edit themes/yourtheme/theme.php instead!
Try addingdocument.write('{$_SERVER['REQUEST_URI']}');temporarily into a new line beforedigg_url = '{$_SERVER['REQUEST_URI']}';

Also try disabling the SEF_URL plugin.

daniell

hmm ok

<?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

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.