News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF 2.1 Default Theme

Started by banks, July 22, 2015, 02:37:49 PM

Previous topic - Next topic

banks

Is there anyway to keep the same blue background image on the categories as well as the topic pages

The Home Page :



then when you click on Member introductions you get this page :



hope i said this right

marg edit: fixed images

Kindred

I would assume that you would need to change the css class in the template...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antes

If this is a request to core, I'm not positive to grant it. But if you are asking for yourselves. Find #description_board and add;

background: #557EA0;

banks

Antes Thanks That definitely pointed me in the right direction and i was able to change the color. any info on changing the color of the text there?

Antes

you can add color to same ID, and you need to define #description_board h3 as well it won't change h3's color on default (not recommended to change h3's color on generic).

banks

Woohoo That Worked Now I am Rocking And Rolling.

Thank You For Your Time


banks

I just notice when i made those changes i got some errors in the error log


OneManClanBruh
Today at 11:05 PM
100.00.00.0 
1787307a53d16e9cf9c5887a0326d4c2
Type of error: General
2: file_get_contents(/css/index.php): failed to open stream: No such file or directory
http://www.example.com/index.php?action=admin;area=theme;th=1;d8c712f2=1787307a53d16e9cf9c5887a0326d4c2;sa=edit;filename=css/index.php
File: /home/onemancl/public_html/example.com/Sources/Themes.php
Line: 1848

OneManClanBruh
Today at 11:05 PM
100.00.00.0   
1787307a53d16e9cf9c5887a0326d4c2
Type of error: Undefined
8: Undefined index: theme_dir
http://www.example/index.php?action=admin;area=theme;th=1;d8c712f2=1787307a53d16e9cf9c5887a0326d4c2;sa=edit;filename=css/index.php
File: /home/onemancl/public_html/example.com/Sources/Themes.php
Line: 1848

OneManClanBruh
Today at 10:49 PM
100.00.00.0
1787307a53d16e9cf9c5887a0326d4c2
Type of error: General
2: file_get_contents(/css/index.php): failed to open stream: No such file or directory
http://www.example/index.php?action=admin;area=theme;th=1;d8c712f2=1787307a53d16e9cf9c5887a0326d4c2;sa=edit;filename=css/index.php
File: /home/onemancl/public_html/example.com/Sources/Themes.php
Line: 1848

OneManClanBruh
Today at 10:49 PM
100.00.00.0 
1787307a53d16e9cf9c5887a0326d4c2
Type of error: Undefined
8: Undefined index: theme_dir
http://www.examplecom/index.php?action=admin;area=theme;th=1;d8c712f2=1787307a53d16e9cf9c5887a0326d4c2;sa=edit;filename=css/index.php


but the site looks to be working fine

Antes

if its missing index.php in that root, create index.php and use this as its content.

<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;

?>

banks

that's what i don't understand, the file is already there.


Antes

Can't say for sure but maybe permission/chmod issue ?

live627

In ./Sources/Themes.php, find

$context['entire_file'] = $smcFunc['htmlspecialchars'](strtr(file_get_contents($context['theme_dir'] . '/' . $_REQUEST['filename']), array("\t" => '   ')));

Replace with

$context['entire_file'] = $smcFunc['htmlspecialchars'](strtr(file_get_contents($currentTheme['theme_dir'] . '/' . $_REQUEST['filename']), array("\t" => '   ')));

https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/Themes.php#L1848

banks

That seems to have worked and all errors are gone. Thank You Guys very Much

Advertisement: