Recent Topics

Members
Stats
  • Total Posts: 10,749
  • Total Topics: 1,374
  • Online today: 486
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 506
Total: 506

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 all.

Wonder if you can help me.  Is there anyway I can remove the avatar in this area?  ( See image below ) When enabled it overlaps the forum logo I have put in.  I would like tio have the forum avatars enabled. 

Also any reason why when logged in as admin clicking on "show unread topics" "Show replies to topics" redirects you to the index.php page rather than the following pages?

/forum/index.php?action=unread
forum/index.php?action=unreadreplies

One final thing, it seems when I have admin approval enabled for new registrations, when I click on the approve new members in the top right corner it also does not bring you to the correct page.

Thanks for your time



http://www.freeimagehosting.net/8fb83

Crip

hi,
I know what you mean ... i will need to check it ASAP!
-------------------------------------------------------------
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

#2
Quote from: schumi on Sep 11, 11, 01:20:44 PM
Also any reason why when logged in as admin clicking on "show unread topics" "Show replies to topics" redirects you to the index.php page rather than the following pages?

These Links work correct on my demo-site , i will also check the member approval Links... & yes the Avatar can be removed!
Pic:::

[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

Thanks Crip, not sure why my links dont work.  I havent amended anything really.  I shall reinstall then and see.  Could you tell me how I remove the avatar from just this area?  Is this okay with yourself?


Crip

Sure , fine by me :)

I'll fetch u the code to remove the Avatar , or you can just ==>  /*comment it out*/
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

The Member approval link works correct on my demo-site , so ??
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

#6
Quote from: Crip on Sep 12, 11, 09:43:06 AM
Sure , fine by me :)

I'll fetch u the code to remove the Avatar , or you can just ==>  /*comment it out*/
Thanks Crip, would appreciate that as I dont know which part of code it is.  Also which php file it is in.  I am fine editing code as long as I know the code I am removing and replacing and the .php file to edit.  Not sure how to comment out either, all new to this

Maxx

Crip will probably not be back today, and I do not have this theme at present, so if you check tomorrow, Crip will help U out!

That is if you did not fix this already!

regards,
maxx

schumi

Quote from: Maxx on Sep 12, 11, 05:26:58 PM
Crip will probably not be back today, and I do not have this theme at present, so if you check tomorrow, Crip will help U out!

That is if you did not fix this already!

regards,
maxx
Thanks maxx, to scared to edit .php, only thing I learnt is to rename the files .old before I edit them so i can put them back after I have annihalated it..  I shall wait until tomorrow.

schumi

Crip

BACKUP 1st......................................................
**********
Code for removing Avatar:::
---------------------------------
index.template.php


Look For:
<div id="userarea" class="smalltext">';
                if (!empty($context['user']['avatar']))
               echo '
                    <div id="my-avatar" class="clearfix">
                  '.$context['user']['avatar']['image'].'
               </div>';



Replace With::::
------------------

<div id="userarea" class="smalltext">';
   echo '


..any problems post it here.
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

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 ! :)

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.