News:

Keeping Crip's dream alive is our mission! :)

 

Recent Topics

Members
Stats
  • Total Posts: 10,783
  • Total Topics: 1,380
  • Online today: 44
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 40
Total: 40

Blackhead 2.0 Theme

Started by schumi, Sep 11, 11, 01:20:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

schumi

Hi Crip and others.  Have done this on the new install by selecting and deleting and selecting and pasting the new code and get the following:

Template Parse Error!
There was a problem loading the /Themes/BlackHead_20/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'

function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="wrapper">
<div id="header">
  <div id="head-l">
<div id="head-r">
<div id="userarea" class="smalltext">';
   echo '

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{


Have I done it correctly?

Crip

#11
You've left out a curly bracket:: {   }

{   }

Quote
function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo '
<div id="wrapper">
    <div id="header">
        <div id="head-l">
            <div id="head-r">
                <div id="userarea" class="smalltext">';
   echo '
   
          // If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
   {

Should Be:


function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="wrapper">
<div id="header">
  <div id="head-l">
<div id="head-r">
<div id="userarea" class="smalltext">';
   echo '

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{


         }
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

schumi

Thanks Cripm sorry I have wasted your time there.  I just copied that section up albeit wrongly.  I am using the standard index.template.php ( file size 16,300 ) that ships with the download.  Would you be so kind to as edit it?  I cannot upload it

Schumi


Crip

Sure ,
  • attach the "(index.template.php)" that your using NOw..
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

schumi

#14
Thanks Crip, really appreciate your help

Crip

Quote from: schumi on Sep 16, 11, 04:39:29 PM
Thanks Crip, really appreciate your help
sorry , i can't open .RAR files on a mac , must be a ZIP...
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

schumi

apologies, attached as a zip.

[attachment deleted by admin]

Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

Crip

  • BACK-up 1st..
    ..try this one??

    [attachment deleted by admin]
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

schumi

Quote from: Crip on Sep 17, 11, 06:31:57 PM
  • BACK-up 1st..
    ..try this one??
You sir, I take my hat off to you   O0

Wonderful ! :)