1 sakeenah Dec 04, 2006 22:30
3 balupton Dec 05, 2006 00:27
Parse error: syntax error, unexpected '}' in /home/a018/2861JA53/htdocs/mlr/skins/rewarding/_main.php on line 183
I'll take a bet that on line 183 in you 'rewarding' skin's _main.php file their is a '}' character in the wrong place or that shouldn't be there at all ;)
4 sakeenah Dec 05, 2006 09:09
Hi my link is riskfree-profits.com/mlr
and the code I have on line 183 is:
<!-- =================================== START OF MAIN AREA =================================== --> <?php // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- if( empty( $preview ) ) $Messages->disp( ); // --------------------------------- END OF MESSAGES --------------------------------- ?> <?php // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- request_title( '<h2>', '</h2>' ); // ------------------------------ END OF REQUEST TITLE ----------------------------- ?> <?php // ------------------------------------ START OF POSTS ---------------------------------------- if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post if( isset($MainList) ) while( $Item = $MainList->get_item() ) { $MainList->date_if_changed(); ?> <div class="bPost bPost<?php $Item->status( 'raw' ) ?>" lang="<?php $Item->lang() ?>"> <?php locale_temp_switch( $Item->locale ); // Temporarily switch to post locale $Item->anchor(); // Anchor for permalinks to refer to ?> <div class="bSmallHead"> <?php $Item->permanent_link( '#icon#' ); echo ' '; $Item->issue_time(); echo ', by '; $Item->author(); $Item->msgform_link( $Blog->get('msgformurl') ); echo ', '; $Item->wordcount(); echo ' ', T_('words'); echo ', '; $Item->views(); echo ' '; locale_flag( $Item->locale, 'h10px' ); echo '<br /> ', T_('Categories'), ': '; $Item->categories(); ?> </div> <h3 class="bTitle"><?php $Item->title(); ?></h3> <div class="bText"> <?php $Item->content(); ?> <?php link_pages() ?> </div> <div class="bSmallPrint"> <?php $Item->permanent_link( '#', '#', 'permalink_right' ); ?> <?php $Item->feedback_link( 'comments' ) // Link to comments ?> <?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?> <?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?> <?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?> <?php $Item->trackback_rdf() // trackback autodiscovery information ?> </div> <?php // ------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ------------- $disp_comments = 1; // Display the comments if requested $disp_comment_form = 1; // Display the comments form if comments requested $disp_trackbacks = 1; // Display the trackbacks if requested $disp_trackback_url = 1; // Display the trackbal URL if trackbacks requested $disp_pingbacks = 1; // Display the pingbacks if requested require( dirname(__FILE__).'/_feedback.php' ); // ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ---------------- locale_restore_previous(); // Restore previous locale (Blog locale) ?> </div> <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> <p class="center"><strong> <?php posts_nav_link(); ?> <?php // previous_post( '<p class="center">%</p>' ); // next_post( '<p class="center">%</p>' ); ?> </strong></p> <?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, ETC. ---------------- switch( $disp ) { case 'comments': // this includes the last comments if requested: require( dirname(__FILE__).'/_lastcomments.php' ); break; case 'arcdir': // this includes the archive directory if requested require( dirname(__FILE__).'/_arcdir.php'); break; case 'profile': // this includes the profile form if requested require( dirname(__FILE__).'/_profile.php'); break; case 'msgform': // this includes the email form if requested require( dirname(__FILE__).'/_msgform.php'); break; case 'subs': // this includes the subscription form if requested require( dirname(__FILE__).'/_subscriptions.php'); break; } // ------------------- END OF INCLUDES FOR LAST COMMENTS, ETC. ------------------- ?>
thanks
Haleemah
Note; wrapping the above code in a code/php tag just stretches the page a insane amount
5 balupton Dec 05, 2006 09:19
Actually stick this in and it should fix it;
<!-- =================================== START OF MAIN AREA =================================== -->
<?php
// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
if( empty( $preview ) ) $Messages->disp( );
// --------------------------------- END OF MESSAGES ---------------------------------
?>
<?php
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title( '<h2>', '</h2>' );
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
<?php // ------------------------------------ START OF POSTS ----------------------------------------
if( isset($MainList) ) $MainList->display_if_empty();
// Display message if no post
if( isset($MainList) ) while( $Item = $MainList->get_item() ) {
$MainList->date_if_changed(); ?>
<div class="bPost bPost<?php $Item->status( 'raw' ) ?>" lang="<?php $Item->lang() ?>">
<?php locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
$Item->anchor(); // Anchor for permalinks to refer to ?>
<div class="bSmallHead">
<?php $Item->permanent_link( '#icon#' ); echo ' '; $Item->issue_time(); echo ', by '; $Item->author(); $Item->msgform_link( $Blog->get('msgformurl') ); echo ', '; $Item->wordcount(); echo ' ', T_('words'); echo ', '; $Item->views(); echo ' '; locale_flag( $Item->locale, 'h10px' ); echo '<br /> ', T_('Categories'), ': '; $Item->categories(); ?>
</div>
<h3 class="bTitle">
<?php $Item->title(); ?>
</h3>
<div class="bText">
<?php $Item->content(); ?>
<?php link_pages() ?>
</div>
<div class="bSmallPrint">
<?php $Item->permanent_link( '#', '#', 'permalink_right' ); ?>
<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
</div>
<?php // ------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. -------------
$disp_comments = 1; // Display the comments if requested
$disp_comment_form = 1; // Display the comments form if comments requested
$disp_trackbacks = 1; // Display the trackbacks if requested
$disp_trackback_url = 1; // Display the trackbal URL if trackbacks requested
$disp_pingbacks = 1; // Display the pingbacks if requested
require( dirname(__FILE__).'/_feedback.php' );
// ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------
locale_restore_previous();
// Restore previous locale (Blog locale) ?>
</div>
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<p class="center"><strong>
<?php posts_nav_link(); ?>
<?php
// previous_post( '<p class="center">%</p>' );
// next_post( '<p class="center">%</p>' );
?>
</strong></p>
<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, ETC. ----------------
switch( $disp ) { case 'comments':
// this includes the last comments if requested:
require( dirname(__FILE__).'/_lastcomments.php' ); break; case 'arcdir': // this includes the archive directory if requested
require( dirname(__FILE__).'/_arcdir.php'); break; case 'profile': // this includes the profile form if requested
require( dirname(__FILE__).'/_profile.php'); break; case 'msgform': // this includes the email form if requested
require( dirname(__FILE__).'/_msgform.php'); break; case 'subs': // this includes the subscription form if requested
require( dirname(__FILE__).'/_subscriptions.php'); break; }
// ------------------- END OF INCLUDES FOR LAST COMMENTS, ETC. ------------------- ?>
Whatever happened somehow all the code went on one line and because the skin uses // thigns instead of /* */ things it causes all the php code to become comments as well. Try redownloading the skin...
6 sakeenah Dec 05, 2006 09:27
Hi balupton
Thank you so much for your quick response, I tried the second coding and it work.
Haleemah
have a link we can look at ?