Advanced search  

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

Pages: [1]   Go Down

Author Topic: displayimage.php: how to make username of comment author clickable?  (Read 4227 times)

0 Members and 1 Guest are viewing this topic.

dEnA

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20

Works on cpg 1.3x (http://forum.coppermine-gallery.net/index.php?topic=23131.0)
But anyone got this working for 1.43 ?
Thanks
"dEnA"
Logged

Nibbler

  • Guest
Re: displayimage.php: how to make username of comment author clickable?
« Reply #1 on: February 13, 2006, 06:22:13 pm »

Same principle applies, only the code you need to change should now be copied from themes/sample/theme.php into your theme's theme.php and then modified.
Logged

dEnA

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: displayimage.php: how to make username of comment author clickable?
« Reply #2 on: February 13, 2006, 06:31:04 pm »

Quote
Think I need an eye check. Ok, now I really solved it:

open displayimage.php:

search for (line 387):

Code:
$params = array('{MSG_AUTHOR}' => $row['msg_author'],

after add:

Code:
'{AUTHOR_ID}' => $row['author_id'],

open theme.php:

replace:

Code:
<b><a href="../profile.php?mode=viewprofile&u={MSG_AUTHOR}">{MSG_AUTHOR}</a></b>

with:

Code:
<b><a href="../profile.php?mode=viewprofile&u={AUTHOR_ID}">{MSG_AUTHOR}</a></b>

Yes... but if this is the one i should follow... Then I cant find that text in displayimage.php nor the text that should be in this case in themes/sample/theme.php
Sorry for the trouble im causing.
noob as I am :/
Logged

Nibbler

  • Guest
Re: displayimage.php: how to make username of comment author clickable?
« Reply #3 on: February 13, 2006, 06:36:54 pm »

The code is in themes/sample/theme.php, search for it.

Code: [Select]
        $params = array('{MSG_AUTHOR}' => $row['msg_author'],
            '{MSG_ID}' => $row['msg_id'],
            '{PID}' => $row['pid'],
            '{EDIT_TITLE}' => &$lang_display_comments['edit_title'],
            '{CONFIRM_DELETE}' => &$lang_display_comments['confirm_delete'],
            '{MSG_DATE}' => localised_date($row['msg_date'], $comment_date_fmt),
            '{MSG_BODY}' => bb_decode($comment_body),
            '{MSG_BODY_RAW}' => $row['msg_body'],
            '{OK}' => &$lang_display_comments['OK'],
            '{SMILIES}' => $smilies,
            '{IP}' => $ip,
            '{REPORT_COMMENT_TITLE}' => &$lang_display_comments['report_comment_title'],
            '{WIDTH}' => $CONFIG['picture_table_width']
            );

Code: [Select]
<b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}">&nbsp;</a>
Logged

dEnA

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: displayimage.php: how to make username of comment author clickable?
« Reply #4 on: February 13, 2006, 07:19:49 pm »

hmm thanks for your answer but i gotta admit I didnt get what I should do.
Yes I found those codes in themes/sample/theme.php
But what shall I replace them with?
And should I leave displayimage.php untouched?
Logged

jerx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 85
Re: displayimage.php: how to make username of comment author clickable?
« Reply #5 on: February 17, 2006, 03:52:54 am »

I think you just have to edit functions.inc.php and themes.inc.php.

include/functions.inc.php:
in line 876 replace "profile.php?uid" with "../profile.php?mode=viewprofile&u".
My gallery is located in forum root.

include/themes.inc.php:
in line 775 replace "profile.php?uid" with "../profile.php?mode=viewprofile&u".

By the way, shouldn' t this be moved to the bridging forum?!

I just found another solution:
http://forum.coppermine-gallery.net/index.php?topic=27265.0

Comment out the view_profile funcion in the phpbb bridge file (bridge/phpbb218.inc.php) in line 218.
« Last Edit: February 17, 2006, 04:48:34 am by jerx »
Logged

Nibbler

  • Guest
Re: displayimage.php: how to make username of comment author clickable?
« Reply #6 on: February 17, 2006, 12:14:57 pm »

This has nothing whatsoever to do with bridging. include/themes.inc.php should not be modified, instead you should copy the code into your own theme.php as suggested.
Logged

dEnA

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: displayimage.php: how to make username of comment author clickable?
« Reply #7 on: February 18, 2006, 07:31:46 pm »



Code: [Select]
        $params = array('{MSG_AUTHOR}' => $row['msg_author'],
            '{MSG_ID}' => $row['msg_id'],
            '{PID}' => $row['pid'],
            '{EDIT_TITLE}' => &$lang_display_comments['edit_title'],
            '{CONFIRM_DELETE}' => &$lang_display_comments['confirm_delete'],
            '{MSG_DATE}' => localised_date($row['msg_date'], $comment_date_fmt),
            '{MSG_BODY}' => bb_decode($comment_body),
            '{MSG_BODY_RAW}' => $row['msg_body'],
            '{OK}' => &$lang_display_comments['OK'],
            '{SMILIES}' => $smilies,
            '{IP}' => $ip,
            '{REPORT_COMMENT_TITLE}' => &$lang_display_comments['report_comment_title'],
            '{WIDTH}' => $CONFIG['picture_table_width']
            );

Code: [Select]
<b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}">&nbsp;</a>

I copied theese lines to my themes theme.php
---> Parse error: parse error, unexpected '<' in /services2/webpages/m/o/motorfreaks.org/public/gallery/themes/caliSkinV6/theme.php on line 40
Yes I know Im noob, still I would be very greatful if you would tell me what im still doing wrong
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.