TheCripZone SMF Themes Site

All Things Public => Theme Support => Topic started by: schumi on Sep 11, 11, 01:20:44 PM

Title: Blackhead 2.0 Theme
Post by: schumi on Sep 11, 11, 01:20:44 PM
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
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 11, 11, 01:41:59 PM
hi,
I know what you mean ... i will need to check it ASAP!
-------------------------------------------------------------
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 12, 11, 08:36:40 AM
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]
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 12, 11, 08:48:54 AM
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?

Title: Re: Blackhead 2.0 Theme
Post by: 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*/
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 12, 11, 12:29:18 PM
The Member approval link works correct on my demo-site , so ??
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 12, 11, 04:18:42 PM
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
Title: Re: Blackhead 2.0 Theme
Post by: 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
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 12, 11, 06:28:28 PM
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
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 13, 11, 10:33:06 AM
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.
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 15, 11, 05:23:30 PM
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?
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 15, 11, 05:58:49 PM
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'])
{


         }
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 15, 11, 07:20:10 PM
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

Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 16, 11, 06:28:52 AM
Sure ,
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 16, 11, 04:39:29 PM
Thanks Crip, really appreciate your help
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 16, 11, 05:30:09 PM
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...
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 17, 11, 03:59:30 PM
apologies, attached as a zip.

[attachment deleted by admin]
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 17, 11, 04:02:46 PM
thnks.
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 17, 11, 06:31:57 PM
Title: Re: Blackhead 2.0 Theme
Post by: schumi on Sep 17, 11, 07:16:59 PM
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 ! :)
Title: Re: Blackhead 2.0 Theme
Post by: Crip on Sep 17, 11, 07:26:39 PM
Marked solved!