*Help* error after installing effects MOD
-----
| Author | Message | |
|---|---|---|
|
HB. |
||
| Sun Jan 21, 2007 4:20 pm Post subject: *Help* error after installing effects MOD | ||
|
Hello,
I ran into an error after installing the effects MOD for shop version 3. I have an older version of CH, cash and shop MODs installed just fine, but after adding the effects I get this error when I attempt to view a topic Quote: Parse error: syntax error, unexpected '*' in /home/mysite/public_html/phpbb/viewtopic.php on line 1527
Here is my viewtopic.php from lines 1448 to 1585. If you need to see the entire viewtopic, I'll post it. I hope someone can help me with this. Code: /*------------------------------------------------------------------------------
// Effects Store for Shop 3 - Begin Code Alteration // Added: $shop_effects = $effects->post_check($postrow[$i]); // Added: array_merge( // Original phpBB Code: $template->assign_block_vars('postrow', array( */ $shop_effects = $effects->post_check($postrow[$i]); $template->assign_block_vars('postrow', array_merge(array( // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'POSTER_NAME' => $poster, 'POSTER_RANK' => $poster_rank, 'RANK_IMAGE' => $rank_image, 'POSTER_JOINED' => $poster_joined, 'POSTER_POSTS' => $poster_posts, 'POSTER_FROM' => $poster_from, 'POSTER_AVATAR' => $poster_avatar, 'POST_DATE' => $post_date, 'POST_SUBJECT' => $post_subject, 'MESSAGE' => $message, 'SIGNATURE' => $user_sig, 'EDITED_MESSAGE' => $l_edited_by, 'ITEMSNAME' => $usernameurl, 'ITEMS' => $user_items, 'MINI_POST_IMG' => $mini_post_img, 'PROFILE_IMG' => $profile_img, 'PROFILE' => $profile, 'REFER_IMG' => $refer_img, // Referral Plus 'SEARCH_IMG' => $search_img, 'SEARCH' => $search, 'PM_IMG' => $pm_img, 'PM' => $pm, 'EMAIL_IMG' => $email_img, 'EMAIL' => $email, 'WWW_IMG' => $www_img, 'WWW' => $www, 'ICQ_STATUS_IMG' => $icq_status_img, 'ICQ_IMG' => $icq_img, 'ICQ' => $icq, 'AIM_IMG' => $aim_img, 'AIM' => $aim, 'MSN_IMG' => $msn_img, 'MSN' => $msn, 'YIM_IMG' => $yim_img, 'YIM' => $yim, 'EDIT_IMG' => $edit_img, 'EDIT' => $edit, 'QUOTE_IMG' => $quote_img, 'QUOTE' => $quote, 'IP_IMG' => $ip_img, 'IP' => $ip, 'DELETE_IMG' => $delpost_img, 'DELETE' => $delpost, 'L_MINI_POST_ALT' => $mini_post_alt, 'U_MINI_POST' => $mini_post_url, //-- mod : categories hierarchy ------------------------------------------------ //-- delete /* /*------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // Added: , $shop_effects) // Original phpBB Code: 'U_POST_ID' => $postrow[$i]['post_id']) */ 'U_POST_ID' => $postrow[$i]['post_id']), $shop_effects) // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ ); } */ //-- add 'U_POST_ID' => $postrow[$i]['post_id'], 'U_UNREAD_POST' => $config->url('viewtopic', array(POST_POST_URL => $postrow[$i]['post_id'], 'unmark' => 'post'), true), )); //-- mod : cash mod ------------------------------------------------ //-- add $cm_viewtopic->post_vars($postrow[$i],$userdata,$forum_id); //-- fin mod : cash mod -------------------------------------------- $template->set_switch('postrow.light', !($i % 2)); $template->set_switch('postrow.unmark_read', $cookie_setup['keep_unreads']); // enhance the topic title $front_title->set('postrow', array_merge($forum_topic_data, $postrow[$i]), $forum_topic_data['topic_first_post_id'] == $postrow[$i]['post_id'], $highlight_match); // post buttons switches $post_buttons = array('profile', 'pm', 'email', 'www', 'icq', 'aim', 'msn', 'yim', 'quote', 'search', 'edit', 'ip', 'delpost'); $count_post_buttons = count($post_buttons); for ( $j = 0; $j < $count_post_buttons; $j++ ) { $button = $post_buttons[$j] . '_img'; $template->set_switch('postrow.' . $button, !empty($$button)); } } $forums->display_nav($forum_id); $moderators = new moderators(); $moderators->read(); $moderators->display('moderators', $forum_id); $pagination = new pagination('viewtopic', array(POST_TOPIC_URL => $topic_id, 'postdays' => $post_days, 'postorder' => $post_order, 'highlight' => $highlight)); $pagination->display('pagination', $total_replies, $config->data['posts_per_page'], $start, true, 'Posts_count'); $watch_mode = $is_watching_topic ? 'unwatch' : 'watch'; $l_watch_mode = $is_watching_topic ? 'Stop_watching_topic' : 'Start_watching_topic'; $watch_img = $is_watching_topic ? 'topic_un_watch' : 'topic_watch'; $template->assign_vars(array( 'U_WATCH_TOPIC' => $config->url('viewtopic', array(POST_TOPIC_URL => $topic_id, $watch_mode => 'topic', 'start' => $start, 'postdays' => $post_days, 'postorder' => $post_order, 'highlight' => $highlight), true), 'L_WATCH_TOPIC' => $user->lang($l_watch_mode), 'I_WATCH_TOPIC' => $user->img($watch_img), 'U_UNREAD_TOPIC' => $config->url('viewtopic', array(POST_TOPIC_URL => $topic_id, 'unmark' => 'topic'), true), 'L_UNREAD_TOPIC' => $user->lang('Topic_unmark_read'), 'I_UNREAD_TOPIC' => $user->img('topic_unmark_read'), 'L_UNREAD_POST' => $user->lang('Post_unmark_read'), 'I_UNREAD' => $user->img('icon_unmark_read'), 'I_VIEW_PREVIOUS_TOPIC' => $user->img('topic_previous'), 'I_VIEW_NEXT_TOPIC' => $user->img('topic_next'), 'I_BACK_TO_TOP' => $user->img('icon_go_top'), )); $template->set_switch('watch', $can_watch_topic); if ( $can_watch_topic ) { $template->set_switch('watch.image', !empty($images[$watch_img])); } |
||
|
HB. |
||
| Sun Jan 21, 2007 7:51 pm Post subject: | ||
|
im deleting this post, but still need help
|
||
|
ikabiki |
||
| Sun Jan 21, 2007 9:07 pm Post subject: | ||
|
Just delete the * in
Code: $template->assign_block_vars('postrow', array( */ $shop_effects = $effects-> and that should fix it, but I'm not an expert in coding. |
||
|
HB. |
||
| Sun Jan 21, 2007 9:19 pm Post subject: | ||
|
that changes the error to
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/mysite/public_html/phpbb/viewtopic.php on line 1519 |
||
|
ikabiki |
||
| Sun Jan 21, 2007 9:28 pm Post subject: | ||
|
hold on I miss under stood your post...
I'm sorry I have no clue... you'll have to wait for Thoul. change it back to the way it was, sorry... Last edited by ikabiki on Sun Jan 21, 2007 11:39 pm; edited 1 time in total |
||
|
HB. |
||
| Sun Jan 21, 2007 9:41 pm Post subject: Re: *Help* error after installing effects MOD | ||
|
no problem
|
||
|
Thoul |
||
| Sun Jan 21, 2007 10:56 pm Post subject: Re: *Help* error after installing effects MOD | ||
|
It looks like one area had already been edited by CH and that caused a conflict. Change this section of viewtopic.php:
Code: 'U_MINI_POST' => $mini_post_url,
//-- mod : categories hierarchy ------------------------------------------------ //-- delete /* /*------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // Added: , $shop_effects) // Original phpBB Code: 'U_POST_ID' => $postrow[$i]['post_id']) */ 'U_POST_ID' => $postrow[$i]['post_id']), $shop_effects) // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ ); } */ //-- add 'U_POST_ID' => $postrow[$i]['post_id'], 'U_UNREAD_POST' => $config->url('viewtopic', array(POST_POST_URL => $postrow[$i]['post_id'], 'unmark' => 'post'), true), )); //-- mod : cash mod ------------------------------------------------ //-- add $cm_viewtopic->post_vars($postrow[$i],$userdata,$forum_id); //-- fin mod : cash mod -------------------------------------------- $template->set_switch('postrow.light', !($i % 2)); $template->set_switch('postrow.unmark_read', $cookie_setup['keep_unreads']); Replace it with: Code: 'U_MINI_POST' => $mini_post_url,
//-- mod : categories hierarchy ------------------------------------------------ //-- delete /* ); } */ //-- add 'U_POST_ID' => $postrow[$i]['post_id'], 'U_UNREAD_POST' => $config->url('viewtopic', array(POST_POST_URL => $postrow[$i]['post_id'], 'unmark' => 'post'), true), /*------------------------------------------------------------------------------ // Effects Store for Shop 3 - Begin Code Alteration // Added: , $shop_effects) // Original phpBB Code: 'U_POST_ID' => $postrow[$i]['post_id']) */ 'U_POST_ID' => $postrow[$i]['post_id']), $shop_effects) // // Effects Store for Shop 3 - End Code Alteration //------------------------------------------------------------------------------ ); //-- mod : cash mod ------------------------------------------------ //-- add $cm_viewtopic->post_vars($postrow[$i],$userdata,$forum_id); //-- fin mod : cash mod -------------------------------------------- $template->set_switch('postrow.light', !($i % 2)); $template->set_switch('postrow.unmark_read', $cookie_setup['keep_unreads']); That should get you going. |
||
|
HB. |
||
| Sun Jan 21, 2007 11:20 pm Post subject: Re: *Help* error after installing effects MOD | ||
|
Thoul,
Thank you, Thank you, Thank you. I am extremely happy!! |
||
Page 1 of 1