News:

Wondering if this will always be free?  See why free is better.

Main Menu

facebook theme

Started by menil, December 07, 2010, 12:54:47 PM

Previous topic - Next topic

menil

Dear, i used SMF2.0 RC3 and the theme is facebook theme when i try to install any package there r error displayed so i want to know that how to modifi   ./Themes/default/index.template.php   
please give me solution of this problem please guide me...
                                                                     

                                                                   thanks.

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

menil

installation errors some file needs to modification....so i want to learn how to modifi..?

Deaks

yeh you arent giving us any useful information, what errors do you get?
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

kat

Let's assume, first, that the mods you're trying to install are for the version of SMF that you're using...

They ARE, aren't they?

If so, the errors are probably being caused by code having been modified, already, by another mod.

So, BACKUP FIRST!

Then, make any of the failed edits, manually.

To see what those edits are, you need to look on the mod's page.

Just below the download link, you'll see a parser.

Select the version that you're using and click "Parse".

Clicking "Select", just above a block of code, will select the code, with it's correct formatting.

Then, you just need to right-click and select "Copy".

When you paste the code to where it's supposed to go, the correct formatting will be maintained.

menil

i try to install this http://custom.simplemachines.org/mods/index.php?mod=2610 and also want to edit ./Themes/default/index.template.php

kat

Find:

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


and add, on the next line:

    if (!empty ($modSettings['randombannerlogoOnOff']))       
        echo '
    <div id="random_banner"><a href="'. $scripturl .'"><img src="' . $settings['images_url'] .'/LogoImages/random_logo.php" alt=""/></a></div>';
        else '';



kat

As long as you keep backups, before installing mods and themes, you'll be OK. :)

Backups are REALLY important.

menil

i do it manually but problem still there me unable to install random banner image rotator mod plz any one help me

kat

What problem?

You install the mod.

The errors that show, mean you need to make those edits, manually.

What more can I tell you?

Advertisement: