Elxis CMS Forum
Support => General => Topic started by: sonic on January 17, 2007, 10:27:51
-
Hello,
finally I have eweather module installed,
and now I am curious, does anyone know how to reduce width of that module?
I put eweather on the right side of my elxis web site, but it is to wide, and eweather
goes outside of the content.
I do some css caled .eweather, and I put "eweater" in input box for Module Class Suffix in eweather module.
But things became worst.
Does anyone have expirience with this problem?
-
The style information for eweather component it is inside the file file:
components\com_eweather\eweather.html.php
Check this file and if can configure it I will try to help but after 1 weak, because I have many major job to do first. I am sorry for the delay.
Elxis Fan.
-
Thank you for help.
Actually, my problem was found under modules, /modules/mod_eweather.php.
That file contains html code for eweather small display on your frontpage, like here:http://www.mambobaer.de/ (http://www.mambobaer.de/), when you klick on "More details" ,
new page is opened with complete forecast, like here:http://www.mambobaer.de/index.php?option=com_eweather&Itemid=33 (http://www.mambobaer.de/index.php?option=com_eweather&Itemid=33) .
This detailed view is under controll of /components/com_eweather/eweather.html.php.
My problem is still not solved, I just can forced html and css to display eweather correct.Here is image:
(http://www.stormdesigner.com/files/eweather_problem.jpg)
-
Did you found any solution????? Please let me know because i have the same problem and i cannot fix it!
-
Sorry for the delay ( from health reason).
Open the file template_css.css from the location:
yoursite/templates/gaia/css/
and replace the following lines
line 716: width:219px;
line 723: width:219px;
with
line 716: width:150px;
line 723: width:150px;
If your's problem doesn't solve, please let me know.
-
Wait for my new post I found a bug on gaia template.
also for the cytherea template.
-
Here is a fast solution from the template side for the eweather only for 2 templates gaia & cythera.
If you are not satisfied please ask for (paid) tech support from my side,
and from the developers of Elxis I don't know if they want to offer the solution for this problem for free, wait for there answer.
I hope I have help you.
The first file it is for "Gaia" template and the second for "Cytherea"
[old attachment deleted by admin]
-
>:( REally???
I didn't knew that i had to pay for something that didn't work right from beginning in open source... The eWeather came with a problematic module or incompatible templates and you ask me to pay you if i am not satisfied?????
I am not satisfied and i will not pay nobody for something that didn't work correctly from beginning. This is a paranoia for open source >:( >:( >:(
You'd better tell to people not to put eWeather on their site if your purpose is to get money from them after that. Or fix the problem for everybody!!!
This problem in eWeather is not something personal that i asked for me. The templates of Elxis are incompatible either the module has a problem.
-
This is the solution:
You have to change code in mod_eweather.php.
All that code is writen for table layout, thx for nice module, but we all know that tables are replacable with <div> tags.
Ok lets go to the point.
This code is writen for Gaia.
This is my code for mod_eweather.php, but just for html layout,
code is from line 50 - 81, just carefully read code and that's it.
/////////////////////////////
html layout in mod_eweather.php
////////////////////////////
$content = "<div class=\"leftP\">\n"
."<div class=\"left_top\">".$weather->loc_city."</div>\n"
."<div class=\"left_top\">\n"
."<div class=\"left_Img\">
<img src=\"".$mosConfig_live_site."/components/com_eweather/images/".$weatherIconsStyle."/small/".$weather->cc_icon.".png\" alt=\"\" border=\"0\"></div>\n"
." </div>\n"
."<div class=\"left_top\">\n"
."<div class=\"left_Img\">"._W_TEMP.":\n"
." </div>\n"
."<div class=\"right\">".$weather->cc_temp."°".$weather->h_temp."\n"
."</div>\n"
."</div>\n"
."<div class=\"left_top\">\n"
."<div class=\"left_Img\">"._W_FORECAST_HUMI.":</div>\n"
."<div class=\"right\">".$weather->cc_humidity."%\n"
."</div>\n"
."</div>\n"
."<div class=\"left_top\">\n"
."<div class=\"left_Img\">"._W_BAROMETER.":</div>\n"
."<div class=\"right\">".$weather->cc_barpressure." ".$weather->h_pressure."\n"
."</div>\n"
."<br/><br/>\n"
."</div>\n"
."<div class=\"left_top\"><a class=\"button\" style=\"float: none;\" href=\"index.php?option=com_eweather&Itemid=".$myItemID ."\">"._W_MOD_BUTTON."</a>\n"
."</div>\n"
."</div>\n";
//////////////////////////////////////
//end
//////////////////////////////////////
Now you need this css class caled "leftP" and "leftTop".
.leftP {
clear: both;
float: left;
width: 212px;
height:187px;
margin: 0;
}
.left_top {
float: left;
width: 212px;
padding:2px;
background:#fff;
margin: 0;
font: bold 1.0em Tahoma, Arial, Sans-Serif;
color:#666666;
border-bottom: #f2f1ec solid 1px;
}
Dont forget, this code is writen for layout Gaia.
I hope that was helpful.
-
Wtf happened with open source here???
If you are not sadisfied ask for paid support ??!!
If you are not satisfied please ask for (paid) tech support from my side,
and from the developers of Elxis I don't know if they want to offer the solution for this problem for free, wait for there answer.
I dont like this kind of answer.
-
Thank you sonic you are very kind !
Can you please attach me the mod_weather.php file with your changes on it?
To see the changes.
-
Hello,
this is the file
[old attachment deleted by admin]
-
Dont forget to use those two css files with that mod_eweather.php file.
One more time:
.leftP {
clear: both;
float: left;
width: 212px;
height:187px;
margin: 0;
}
.left_top {
float: left;
width: 212px;
padding:2px;
background:#fff;
margin: 0;
font: bold 1.0em Tahoma, Arial, Sans-Serif;
color:#666666;
border-bottom: #f2f1ec solid 1px;
}
-
Thank you very much Sonic for your help! I apreciated a lot. I will try to have a solution with your directions.
-
No problem at all.
Let me know if you have any succsess with this code.
I forget to tell you something, I was throw some unnecessary
features from the code.
Good luck
-
Elxis Team is not responsible for any third party module or component. Elxis team is even no responsible for the Elxis CMS itself although we have make a bug-less and very secure system and we provide support for free via this forum. This is the meaning of the Open Source license (GNU/GPL), you take it "as is". Sirigos speaks for his own. His opinion does not reflect the Elxis Core Team ideas although he is not wrong. But this is a matter of an other conversation ( Open Source is free as a speach, not as a beer. )
Cytherea and Gaia templates have a known problem with the right column height. It can be fixed by modyfing their CSS. I don't know eWeather, I have never see it installed and I have never either looked at it's code. I would suggest you to use an other template and not the templates that comes with Elxis (these are sample templates / examples in order to build your own). If there is something I can help regarding the functionality of Elxis or even eWeather please let me know. If it is a matter of apearence just edit the CSS files. If you don't know how to edit a CSS, use another one or call a friend/professional for help.
-
although he is not wrong.
Should i start selling ready templates in low price through posts from your web site now???? I don't think so.....
-
You can leave a message/link to your online shop if you wish for anyone wishes to buy templates. This is acceptable. Of course you can not make this forum your store. You have not understand the idea of the open source. What is open source?
An open source project, in summary, is something that is provided included the source code. The end user can modify freely the source code and re-publish it if he wishes. (Of course there are many varies). This does NOT meen that open source is priceless. You can not sell the software itself (GNU/GPL) but you can sell the distribution, support etc. Do you know that there is at least one site that sells Mambo? (they charge the distribution). Yes, the normal mambo with nothing special. It is absolutely legal.
A binary file (.exe) is not open source even if it is free (of cost). Why? Because the source code is not provided with the software. Firefox is an open source browser, not because it is free (of cost) but because you can download the binary file but the source code too. (Firefox is not GNU/GPL).
A component encoded with ion-cube is not open source because the source code is not provided.
Hot property is not free, but the source code is provided with the component. This does not mean that Hot Property is open source. Hot property has a different license (commercial) so, even if they give you the source code you are not allowed to modify or re-distribute it.
Here are the Open Source license:
http://www.opensource.org/licenses/
Here is Elxis license (GNU/GPL):
http://www.gnu.org/licenses/gpl.html
Open source is a bussiness model and a general idea, not a license. Licenses are GNU/GPL, GNU/LGPL, Commercial, PHP license, Apache license etc. This is the way things work and this is valid for Elxis, Mambo, Joomla, Drupal, and many-many other GNU/GPL projects.
-
With reference to previous postings
Well, to start with, I’d like to apologize for being away while something I had said caused annoyance. I was at the University Hospital of Giannena about a 1st degree relative’s health problem.
In relation to what has been said I would like to say to a_xenias that it is Elxis that is Open Source not any professional assistance relating to it. To make this clearer, let me give you an example of a very common “Open source” provision:
Any creature’s life is Open Source, because you pay nothing to get it and its code is open to anyone as long as they can read it.
When something goes wrong you go to the doctor to get it fixed because he can “read” this code for you, and of course you have to pay, because this service goes beyond what is offered free of charge.
If you don’t disagree with this logic, which is in line with the Elxis license, why do you condemn, and in such a harsh way by that matter, a proposal of professional assistance from a certain point on?
Personally, I have helped a number of members of the forum with problems they faced free of charge and I did it either because that’s what felt right, or because I had the time to spare working out the solution, or because the solution was already known to me, or, or, or … . However, from a certain point on, assistance involves professional troubleshooting, which for some people is a job, and it is a matter of choice to make use of their services or not.
As for Elxis Core Team, I would like to thank you, and in particular I would like to thank datahell for dealing with an issue that I should have addressed myself.
Elxis FAN,
Nick Sirigos
-
Health come's first! i am sorry for that. Hope that you 'll be soon well again!
-
I'm not the one who is ill, it is a very close relative of mine. But thank you for your response, anyway.
Now I am back again.