displayimage.php: how to make username of comment author clickable? displayimage.php: how to make username of comment author clickable?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

displayimage.php: how to make username of comment author clickable?

Started by dEnA, February 13, 2006, 06:16:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dEnA


Nibbler

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.

dEnA

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 :/

Nibbler

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


        $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']
            );



<b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}">&nbsp;</a>

dEnA

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?

jerx

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.

Nibbler

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.

dEnA

Quote from: Nibbler on February 13, 2006, 06:36:54 PM



        $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']
            );



<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