Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: banks on July 22, 2015, 02:37:49 PM

Title: SMF 2.1 Default Theme
Post by: banks on July 22, 2015, 02:37:49 PM
Is there anyway to keep the same blue background image on the categories as well as the topic pages

The Home Page :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs24.postimg.org%2Flrse84t1x%2Fhome.png&hash=37004133b0abe9063b2efd89bdcc875684e548a8)

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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs21.postimg.org%2Fel3zas36f%2Fhome2.png&hash=e39528eb4e91160ae1445c4693f30e8bd69bd5ec)

hope i said this right

marg edit: fixed images
Title: Re: SMF 2.1 Default Theme
Post by: Kindred on July 22, 2015, 02:43:59 PM
I would assume that you would need to change the css class in the template...
Title: Re: SMF 2.1 Default Theme
Post by: Antes on July 22, 2015, 04:07:43 PM
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;
Title: Re: SMF 2.1 Default Theme
Post by: banks on July 22, 2015, 06:36:58 PM
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?
Title: Re: SMF 2.1 Default Theme
Post by: Antes on July 22, 2015, 06:43:31 PM
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).
Title: Re: SMF 2.1 Default Theme
Post by: banks on July 22, 2015, 07:01:19 PM
Woohoo That Worked Now I am Rocking And Rolling.

Thank You For Your Time

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpostimg.org%2Fimage%2F6gdl43o9f%2F&hash=b3fa6befd7f1d78d1b338ac5b29e4850e87260bb)
Title: Re: SMF 2.1 Default Theme
Post by: banks on July 22, 2015, 07:08:36 PM
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
Title: Re: SMF 2.1 Default Theme
Post by: Antes on July 22, 2015, 07:34:50 PM
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;

?>
Title: Re: SMF 2.1 Default Theme
Post by: banks on July 22, 2015, 07:42:46 PM
that's what i don't understand, the file is already there.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpostimg.org%2Fimage%2F9nt2sqs6f%2F&hash=4e5ad322a2bf67560102ee7067c85937eb08bb81)
Title: Re: SMF 2.1 Default Theme
Post by: Antes on July 22, 2015, 08:40:58 PM
Can't say for sure but maybe permission/chmod issue ?
Title: Re: SMF 2.1 Default Theme
Post by: live627 on July 22, 2015, 08:58:18 PM
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
Title: Re: SMF 2.1 Default Theme
Post by: banks on July 23, 2015, 06:37:35 AM
That seems to have worked and all errors are gone. Thank You Guys very Much