forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dEnA on February 13, 2006, 06:16:27 pm
-
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"
-
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.
-
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 :/
-
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}"> </a>
-
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?
-
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.
-
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.
-
$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}"> </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