Connecting Tech Pros Worldwide Help | Site Map

Parse error

Member
 
Join Date: Sep 2009
Posts: 56
#1: Sep 17 '09
Hi, how are you folks?



I`m trying too add a link to my whmcs website but I`m receiving the following error

Parse error: syntax error, unexpected T_SL in /home/mghosped/public_html/portal/messenger.php on line 23




Here goes the code:

Expand|Select|Wrap|Line Numbers
  1. <?
  2.  
  3. define("CLIENTAREA",true);
  4.  
  5. require("dbconnect.php");
  6. require("includes/functions.php");
  7. require("includes/clientareafunctions.php");
  8.  
  9. $pagetitle = $_LANG['messengertitle'];
  10. $pageicon = "http://bytes.com/images/messenger.gif";
  11. $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
  12. $breadcrumbnav .= '<a href="http://mghospedagem.com/portal/messenger.php">messenger</a>'; 
  13.  
  14. initialiseClientArea($pagetitle,$pageicon,$breadcrumbnav);
  15.  
  16. if ($_SESSION['uid']) {
  17.   # User is Logged In - put any code you like here
  18.  
  19.  
  20. # Define the template filename to be used without the .tpl extension
  21.  
  22. $templatefile = "messenger";  << change this to the name of your tpl file.
  23.  
  24. outputClientArea($templatefile);
  25.  
  26. ?>

I tried removing quoatas from line 11 and 12 but even so got the same error, help me please.


PS: I`m having another trouble, I add categories and articles inside whcms admnistration, and they works (only in admin)
But they doesnt work on the site frontend

See here, just click on the folder icons behind ¨Categorias¨:

http://mghospedagem.com/portal/knowledgebase.php



Thanks
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,741
#2: Sep 17 '09

re: Parse error


Hey.

Is the "<< change this to the name of your tpl file." on line #23 really a part of your code, or did it get in there by accident?

If it is there, that would be your problem. It should be removed.
TheServant's Avatar
Expert
 
Join Date: Feb 2008
Location: Australia
Posts: 913
#3: Sep 17 '09

re: Parse error


Yeah, PHP's comments are not "<<" but instead "//". I am guessing that that line was meant to be removed when you changed the name of your tpl file.

Have a look here if you want to know more about comments.
Member
 
Join Date: Sep 2009
Posts: 56
#4: Sep 17 '09

re: Parse error


¬¬" that was really it, I had forget how comments begin and ignored that part XP

Removed it, it's working fine now XD


Thanks guys, u helped a lot. XD

Sorry for that, but...

There's just one more thing, what about the trouble with whmcs?
TheServant's Avatar
Expert
 
Join Date: Feb 2008
Location: Australia
Posts: 913
#5: Sep 17 '09

re: Parse error


Glad that's solved.

You should start a new topic, and be a bit more specific with your question on whmcs. Remember, they do have their own customer support, we help people with PHP.
Member
 
Join Date: Sep 2009
Posts: 56
#6: Sep 18 '09

re: Parse error


yup, u right, thnks for all again. see ya

^^
Reply