I have been trying to get the elgg_topbar.php file included in my index just as his example does.... Can anyone give me a sample of code to include this please? I am using the vazco_mainpage mod right now for my index.
Thanks in advance!
another example of what I am looking for here: http://yourcommunities.org/
the top bar included as a file include, variable, or hardcoded?
If you talks about favicon then your question is not correct in this topic. Here' s we talks about Elgg logo image aka header logo, or logo in topbar
thanks,i asked it technical support and waiting for your reply there...plss help
is there any other way than having to go to Tool Administration & Adjust the Position & Click Dashboard & Refresh JUST TO TEST THE THEME.
Its by far the best way because it clears out the cache as well and if your doing this on a live site then it avoids any users getting the old css or a corruption of old & new.
Its not such a pain if you open up another instance of your elgg in another tab and do the adjusting in that window, and then just refresh the page in the working window.
Open the main css file views/default/css.php with your text editor.
Just wanted to note that you can also do this in your theme folder.
Btw, I had to deactivate and activate my theme to show changes.
I've read a lot of help posts referring to a theme directory (including this one).
I haven't downloaded anyone else's theme (and I can't find a default theme file) because well, I don't like any of them (sorry) and I want mine to look unique, as much as possible. So far I've used plugins to make changes to colors, etc. Which means, I don't have a theme directory (I don't think).
Is this the wrong way to approach it? Do I have to download someone else's theme to make sense of all the suggestions that say "go to your theme directory"? I can't find an "activity" or "river" directory either. Is it called something else?
What is the best way, in terms of procedure that will aid me in the future, of doing these things? Should I roll my own theme, not worry about a theme directory and hard-code things? Or load someone else's them and then drastically change it? Thanks.
In elgg themes are equivalent to plugins, they're not structurally separated like in Drupal or whatever else you might be used to. So when people talk about looking in the theme directory, it's not necessarily a directory called 'theme' it's the directory of the plugin that's being used as the theme - which may be named whatever the author chooses.
Ideally if you're looking for something unique, you'd roll your own theme. If you're not too familiar with elgg yet I'd suggest starting with a theme that's similar enough to build from and see how they're overwriting the default views/css etc.
'default theme' ? ==>
the parts of elgg's default theme -
are loosely spread over different folders,
mainly the /views/default/css -
where all the css that control the appearance lives.
and hmmm...
i thot i has prepared a 'defauult theme' plugin when 1.8 came out --
to collect all the components of the 'theme' into one plugin
so that it be easy to find, review, change.
don't know what happened to that code ;(
in elgg all the extras' modules are in the folder /mod
there is no distinction made between the type of the extras.
so both elgg 'plugins' and 'themes' will be in there.
the only way to know the difference
is if the developer named his plugin/theme to try to say what it is.
so on example below --
my_theme is a (non-plugin;) theme
and my_plugin is a (non-theme;) plugin..
because i say so (via the name) ;-)
(*could be a lie.. but unlikely)
Directory of C:\xampp\htdocs\Elgg1880_BASE
11/04/2012 11:12 AM <DIR> actions
11/04/2012 11:12 AM <DIR> _graphics
. . .
12/16/2012 10:10 AM <DIR> mod
11/04/2012 11:12 AM <DIR> languages
. . .
11/04/2012 11:21 AM <DIR> engine
07/11/2012 06:35 AM 4,879 htaccess_dist
07/11/2012 06:35 AM 735 index.php
. . .
Directory of C:\xampp\htdocs\Elgg1880_BASE\mod
12/15/2012 08:50 AM <DIR> adverts
11/04/2012 11:12 AM <DIR> blog
. . .
11/19/2012 10:52 PM <DIR> my_theme
11/19/2012 10:52 PM <DIR> custom_index
11/04/2012 11:12 AM <DIR> pages
11/19/2012 10:52 PM <DIR> my_plugin
. . .
I suggest to read this tutorial. I dont think this can be accomplish without programming but this tutorial is so simple. Good luck
I have this feature in my site www.asiantagged.com
http://community.elgg.org/pg/plugins/dave/read/17398/custom-index-tutorial?annoff=25
Just add this java code in the header of your theme. hope it will fix the png issue.
<!--[if lte IE 6]> <script type="text/javascript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML i = i-1 } } } } window.attachEvent("onload", correctPNG); </script> <![endif]-->
Just add this java code in the header of your theme. hope it will fix the png issue.
<!--[if lte IE 6]> <script type="text/javascript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " var imgStyle = "display:inline-block;" + img.style.cssText if (img.align == "left") imgStyle = "float:left;" + imgStyle if (img.align == "right") imgStyle = "float:right;" + imgStyle if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" img.outerHTML = strNewHTML i = i-1 } } } } window.attachEvent("onload", correctPNG); </script> <![endif]-->
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.