DavidSalib

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • DavidSalib replied on the discussion topic Editting css.php Not Working!
    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... view reply
  • DavidSalib replied on the discussion topic Editting css.php Not Working!
    RACHID Do you mean copy what you have above into css.php uner _css?  This is what my css.php under _css looks like right now : <?php /**  * Elgg CSS file  *  * @package Elgg  * @subpackage... view reply
  • DavidSalib replied on the discussion topic Editting css.php Not Working!
    UPDATE: Ok so It worked the first time and I did all the updates. Now when I do the CSS updates in Firebug and copy it into the CSS.php under /mod/socialweb/views/default and then run the upgrade.php, the changes I made don't apply.. suggestions? view reply
  • DavidSalib replied on the discussion topic Editting css.php Not Working!
    The Upgrade.php worked!  I tried it before but i don't know why it didn't work.  Thanks rjcalifornia!    view reply
  • DavidSalib joined the group Elgg Technical Support
  • DavidSalib added a new discussion topic Editting css.php Not Working! in the group Theme Development
    Hello, I have recently downloaded Elgg 1.7.10. I am trying to edit the theme through CSS. What I did: I used Firebug on Firefox to edit the CSS. Then I went to the css.php file (views/default/) and pasted the CSS (Replacing the old CSS). After...
    • 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"&gt;
          <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&gt;
          <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!

  • DavidSalib joined the group Theme Development