yes .
you see /*....*/ in this code ?
<?php
/**
* Elgg CSS file
*
* @package Elgg
* @subpackage Core
*/
----
/*
----
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
$default_css = elgg_view("css");
header("Content-type: text/css", true);
header('Expires: ' . date('r',time() + 864000), true);
header("Pragma: public", true);
header("Cache-Control: public", true);
header("Content-Length: " . strlen($default_css));
echo $default_css;
----
*/
----
define('externalpage',true);
global $viewinput, $override;
$viewinput['view'] = 'css';
$viewinput['viewtype'] = $_GET['viewtype'];
.......
......
.....
then remove this documentation /*....*/ , and you can edit views/css.php .
sorry for my bad english .
see the exemple : http://www.paixland.com , it's my site
Your best bet is to make a plug-in of your own rather than messing around with the main files.
First, create a blank directory in mod and name it 'yourtheme' copy all files from views/default
css,navigation, page. Then modify to your hearts content.
Make sure to have a manifest.xml and start.php in the yourtheme directory.
Start.php needs to have
function yourthemename_theme_init() {
this section you can modify other elgg functions like layout not just colors
elgg_register_event_handler('init', 'system', 'yourthemename_theme_init');
the manifest needs:
<?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>Mytheme</name>
<author>Me</author>
<version>0.1</version>
<category>theme</category>
<description>
Modifies your Elgg site to look how you want.
</description>
<website>http://mydomain.com</website>
<copyright>(C) 2011 Me</copyright>
<license>GNU Public License version 2</license>
<requires>
<type>elgg_version</type>
<version>2011061200</version>(this is for 1.8b2)
</requires>
<requires>
<type>priority</type>
<priority>after</priority>
<plugin>profile</plugin>
</requires>
<requires>
<type>priority</type>
<priority>after</priority>
<plugin>groups</plugin>
</requires>
<requires>
<type>priority</type>
<priority>after</priority>
<plugin>messages</plugin>
</requires>
<requires>
<type>priority</type>
<priority>after</priority>
<plugin>search</plugin>
</requires>
<requires>
<type>priority</type>
<priority>after</priority>
<plugin>thewire</plugin>
</requires>
<suggests>
<type>plugin</type>
<name>profile</name>
<version>1.8</version>
</suggests>
<admin_interface>simple</admin_interface>
</plugin_manifest>
I'm just learning this stuff myself, so if someone has a better way, please let me know.
What was written above worked for me the first time around. Now when I do the same thing (Change the code in mod/socialweb/views/default/css.php and in /views/default/css.php - then I run upgrade.php.
When i go to see my updates, nothing happens.
@Gilead I don't want to make my own theme because i like the rotating main screen. But thanks for the help.
- Please Advise!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.