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: e-card bbcode  (Read 4798 times)

0 Members and 1 Guest are viewing this topic.

glenc

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 31
e-card bbcode
« on: January 17, 2006, 03:24:51 pm »

there is [url], [email] etc… how about [iqc] [aim] [msn] this holds true for the description field in the upload screen. When navigating the files theses links show up below the files and in the bottom left corner of the ecard.
Logged
Quote
Find a common need and do it uncommonly well.

bozUNtu

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: e-card bbcode
« Reply #1 on: November 17, 2006, 11:45:17 pm »

OPEN

displayimage.php

FIND

Code: [Select]
    // Create the absolute URL for display in info
    //$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
    // with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] no trailing slash in the configure

AFTER ADD

Code: [Select]
    $info['E-Card Link']='<input class="textinput" type=text name=text size="70" value="[url='.$CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/'). "ecard.php" ."?pid=$CURRENT_PIC_DATA[pid]".']E-CARD[/url]">';
for phpBB..
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.