>>  Site Map >>  Forums >>  Modules 6x

Forum module - topics in forum:



Modules 6x - Discussions regarding PHP-Nuke Modules.



Editing reviews section but get this error

I'm trying to create a tracklist section on my website and began editing the 'Reviews/language/lang-english.php' to make it look better, but I got this error message:

Parse error: parse error, unexpected T_FOR in /home2/vinyluk/public_html/dj/modules/Reviews/language/lang-english.php on line 76

I've put a link to my site for you to look at www.vinyljunkieuk.com/dj then goto 'essential mix tracklisting' on the menu.

Can you please help???

Code: :
define("_PREVIOUS","Previous Page");
define("_NEXT","Next Page");
define("_YOURNAME","Your Name");
define("_SORTASC","Sort Ascending");
define("_SORTDESC","Sort Descending");
define("_CANCEL","Cancel");
define("_YES","Yes");
define("_NO","No");
define("_SCORE","Score:");
define("_REPLYMAIN","Post Comment");
define("_ALLOWEDHTML","Allowed HTML:");
define("_POSTANON","Post Anonymously");
define("_WRITEREVIEW","Enter A Tracklisting");
define("_WRITEREVIEWFOR","Tracklist for");
define("_ENTERINFO","Please enter information according to the specifications");
define("_PRODUCTTITLE","Artist or Venue & Date (yyyy/mm/dd)");
define("_NAMEPRODUCT","");
define("_REVIEW","Tracklist");
define("_CHECKREVIEW","Your tracklist, OK? You may also use HTML tags only if you know how to use them.");
define("_FULLNAMEREQ","Your User Name. Required.");
define("_REMAIL","Your Email");
define("_REMAILREQ","Your E-mail address. Required.");
define("_SELECTSCORE","This Product Score");
define("_RELATEDLINK","Related Link");
define("_PRODUCTSITE","Product Official Website. Make sure your URL starts with \"http://\"");
define("_LINKTITLE","Link Title");
define("_LINKTITLEREQ","Required if you have a related link, otherwise not required.");
define("_RIMAGEFILE","Image Filename");
define("_RIMAGEFILEREQ","Name of the cover image, located in images/reviews/. Not required.");
define("_CHECKINFO","Please make sure that the information entered is 100% valid and uses proper grammar and capitalization. For instance, please do not enter your text in ALL CAPS, as it will be rejected.");
define("_INVALIDTITLE","Invalid Title... Can't be blank");
define("_INVALIDSCORE","Invalid Score... Must be between 1 and 10");
define("_INVALIDTEXT","Invalid Review Text... Can't be blank");
define("_INVALIDHITS","Hits must be a positive integer");
define("_CHECKNAME","You must enter both your name and your email");
define("_INVALIDEMAIL","Invalid email (eg: you@hotmail.com)");
define("_INVALIDLINK","You must enter BOTH a link title and a related link or leave both blank");
define("_ADDED","Added:");
define("_REVIEWER","Reviewer:");
define("_REVIEWID","Review ID");
define("_HITS","Hits");
define("_LOOKSRIGHT","Does this looks right?");
define("_RMODIFIED","modified");
define("_RADDED","added");
define("_ADMINLOGGED","Currently logged in as admin... this review will be immediately");
define("_RTHANKS","Thanks for submitting this tracklist");
define("_MODIFICATION","modification");
define("_ISAVAILABLE","It is now available in the reviews database.");
define("_EDITORWILLLOOK","The editors will look at your submission. It should be available soon!");
define("_RBACK","Back to Tracklist Index");
define("_RWELCOME","Welcome to the Tracklist Section");
define("_10MOSTPOP","10 most popular mixes");
define("_10MOSTREC","10 most recent mixes");
define("_THEREARE","There are");
define("_REVIEWSINDB","Mixes in the Database");
define("_REVIEWS","Reviews");
define("_REVIEWSLETTER",Mixes for letter");
define("_NOREVIEWS","There isn't any mixes for letter");
define("_TOTALREVIEWS","Total Mix(s) found.");
define("_RETURN2MAIN","Return to Main Menu");
define("_REVIEWCOMMENT","Comment on the Mix:");
define("_YOURNICK","Your Nickname:");
define("_RCREATEACCOUNT","<a href=modules.php?name=Your_Account>Create</a> an account");
define("_YOURCOMMENT","Your Comment:");
define("_MYSCORE","My Score:");
define("_REVIEWMOD","Review Modification");
define("_RDATE","Date:");
define("_RTITLE","Title:");
define("_RTEXT","Text:");
define("_REVEMAIL","Email:");
define("_RLINK","Link:");
define("_RLINKTITLE","Link Title:");
define("_COVERIMAGE","Cover Image:");
define("_PREMODS","Preview Modifications");
define("_PAGE","Page");
define("_PAGEBREAK","If you want multiple pages you can write <b>&lt;!--pagebreak--&gt;</b> where you want to cut.");
define("_PREVIEW","Preview Tracklist");
define("_LANGUAGE","Language");

?>







Firstly - please don't double post - I have deleted the extra one for you.

Secondly - there is no error message there.... the code you supplied is the language file definitions.. Can you post us the error message you are getting?






sorry, that was a mistake. it said it timed-out when I entered the first one so I assumed it didn't work.

I've also amended the message to include the error.

Embarassed






When adding defines you should just add the defines, nothing else, no php tags, just

Code: :
define("_PREVIOUS","Previous Page");
define("_NEXT","Next Page");
define("_YOURNAME","Your Name");
define("_SORTASC","Sort Ascending");
define("_SORTDESC","Sort Descending");
define("_CANCEL","Cancel");
define("_YES","Yes");
define("_NO","No");
define("_SCORE","Score:");
define("_REPLYMAIN","Post Comment");
define("_ALLOWEDHTML","Allowed HTML:");
define("_POSTANON","Post Anonymously");
define("_WRITEREVIEW","Enter A Tracklisting");
define("_WRITEREVIEWFOR","Tracklist for");
define("_ENTERINFO","Please enter information according to the specifications");
define("_PRODUCTTITLE","Artist or Venue & Date (yyyy/mm/dd)");
define("_NAMEPRODUCT","");
define("_REVIEW","Tracklist");
define("_CHECKREVIEW","Your tracklist, OK? You may also use HTML tags only if you know how to use them.");
define("_FULLNAMEREQ","Your User Name. Required.");
define("_REMAIL","Your Email");
define("_REMAILREQ","Your E-mail address. Required.");
define("_SELECTSCORE","This Product Score");
define("_RELATEDLINK","Related Link");
define("_PRODUCTSITE","Product Official Website. Make sure your URL starts with \"http://\"");
define("_LINKTITLE","Link Title");
define("_LINKTITLEREQ","Required if you have a related link, otherwise not required.");
define("_RIMAGEFILE","Image Filename");
define("_RIMAGEFILEREQ","Name of the cover image, located in images/reviews/. Not required.");
define("_CHECKINFO","Please make sure that the information entered is 100% valid and uses proper grammar and capitalization. For instance, please do not enter your text in ALL CAPS, as it will be rejected.");
define("_INVALIDTITLE","Invalid Title... Can't be blank");
define("_INVALIDSCORE","Invalid Score... Must be between 1 and 10");
define("_INVALIDTEXT","Invalid Review Text... Can't be blank");
define("_INVALIDHITS","Hits must be a positive integer");
define("_CHECKNAME","You must enter both your name and your email");
define("_INVALIDEMAIL","Invalid email (eg: you@hotmail.com)");
define("_INVALIDLINK","You must enter BOTH a link title and a related link or leave both blank");
define("_ADDED","Added:");
define("_REVIEWER","Reviewer:");
define("_REVIEWID","Review ID");
define("_HITS","Hits");
define("_LOOKSRIGHT","Does this looks right?");
define("_RMODIFIED","modified");
define("_RADDED","added");
define("_ADMINLOGGED","Currently logged in as admin... this review will be immediately");
define("_RTHANKS","Thanks for submitting this tracklist");
define("_MODIFICATION","modification");
define("_ISAVAILABLE","It is now available in the reviews database.");
define("_EDITORWILLLOOK","The editors will look at your submission. It should be available soon!");
define("_RBACK","Back to Tracklist Index");
define("_RWELCOME","Welcome to the Tracklist Section");
define("_10MOSTPOP","10 most popular mixes");
define("_10MOSTREC","10 most recent mixes");
define("_THEREARE","There are");
define("_REVIEWSINDB","Mixes in the Database");
define("_REVIEWS","Reviews");
define("_REVIEWSLETTER",Mixes for letter");
define("_NOREVIEWS","There isn't any mixes for letter");
define("_TOTALREVIEWS","Total Mix(s) found.");
define("_RETURN2MAIN","Return to Main Menu");
define("_REVIEWCOMMENT","Comment on the Mix:");
define("_YOURNICK","Your Nickname:");
define("_RCREATEACCOUNT","<a href=modules.php?name=Your_Account>Create</a> an account");
define("_YOURCOMMENT","Your Comment:");
define("_MYSCORE","My Score:");
define("_REVIEWMOD","Review Modification");
define("_RDATE","Date:");
define("_RTITLE","Title:");
define("_RTEXT","Text:");
define("_REVEMAIL","Email:");
define("_RLINK","Link:");
define("_RLINKTITLE","Link Title:");
define("_COVERIMAGE","Cover Image:");
define("_PREMODS","Preview Modifications");
define("_PAGE","Page");
define("_PAGEBREAK","If you want multiple pages you can write <b>&lt;!--pagebreak--&gt;</b> where you want to cut.");
define("_PREVIEW","Preview Tracklist");
define("_LANGUAGE","Language");





Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS