Joomla Newsbox Module
Martsa 22nd, 2007 at 7:11 pm (Joomla)
For those who use the famous CMS Joomla, and want to have a news portal site… let’s say, like CNN.com or Washingtonpost.com then you can use this module. In fact, I bought ijoomla news portal from ijoomla.com but I was not satisfied because of the missing JoomFish Support with their component. Joomfish is the multilingual support for Joomla. So if you have a multilingual site then you cannot use ijoomla news portal.
How to use it?
Since this module change the look of your frontpage, you don’t need to care about the feature displaying contents (or not) in Joomla any more. You just need to use this module. So the first thing to do is to uncheck all contents from displaying in frontpage.
You can then install the module as usual and set it up in one of the positions you have in your homepage. You have some parameters to set, for example the Section ID or the Category ID. To create another module in another position, you can copy the module, rename it according to your need and set it up. You can then have many modules in your homepage.
If you want to add thumbnails to the articles, then activate it fist in the module setting. Then for each article, attach an image like if you are to add a mosimage… but don’t insert it in the text. Click the image here to show how.
What remains is to set up your CSS. Since each module has its own class suffix, you can easily customize them. You can hire me to spend some time create yours if you really need to. I will in the future put some predefined CSS here when I have time.
Who use it?
Some sites using this module:
Need help?
Because of spam, I closed the comments as of today (10-Jan-2008). If really you need help and you do not find any solution in the comments below, then email me: hery@serasera.org
Downloads
Change log
- Version 1.1.2 (28-Apr-2008)
- Fixed: Thumbnail width (a ratio problem)
- Added: spacer between columns, can be used like here
- Added: individual class for each box so that they can have individual style
- Version 1.1.1 (07-Feb-2008)
- No duplicates feature as requested by Vision :
This helps to prevent the same message to show in the other boxes AFTER the box where it is shown (not before).
- No duplicates feature as requested by Vision :
- Version 1.1.0 (10-Jan-2008)
- New module option: Image resize
- Version 1.0.1 (05-Oct-2007)
- Date format now follows the format proposed in Joomla Configuration and language file as suggested by Swexican
- Words will no longer be cut in the middle as notified by Vision
- Version 1.0.0 (24-Aug-2007)
- First news can be now different from the others as requested by Vision here
The first box is defined also with the class “first” so you can add CSS to it. - Another option added, showing date or not as requested by Daniel by email
- First news can be now different from the others as requested by Vision here
- Beta 0.9.11 (28-July-2007)
- Beta 0.9.10 (16-May-2007)
- Fix publishing date.
- Beta 0.9.9 (11-May-2007)
- Small bug fixed in displaying image
- Beta 0.9.8 (10-May-2007)
- Image can now be displayed outside of the text box.
it can be then aligned with the title.
- Image can now be displayed outside of the text box.
- Beta 0.9.7 (03-Apr-2007)
- Support multiple categories. Separate categories with comma.
- Beta 0.9.6 (30-Mar-2007)
- No new features. I just removed the function that created problem for some and put its content into the module.
- Beta 0.9.5 (26-Mar-2007)
- Adding article order (Articles can be ordered by Date descending or by Ordering… which was the default). I think Date ordering is necessary when you want to get contents from one section but different categories.
- Beta 0.9.4 (26-Mar-2007)
- Adding mosimage support (See notes below)
- Beta 0.9.1 (22-Mar-2007)
- Beta public release
Some notes
- To add the images to the module, you have first to activate the option “Use image”
Then for the article, you can choose an image in the mosimage control. The first image will be directly linked to the article.
Then it can be displayed using CSS like this.newsbox img {
float: left;
width: 100px;
padding: 2px;
margin: 3px;
}
Martsa 24, 2007 at 2:38 am
Interesting, going to try this.
Martsa 24, 2007 at 12:22 pm
me too.
THX a lot for this module. It seems fantastic.
Martsa 26, 2007 at 2:56 pm
In the 0.9.3 version, the mosimage support is added.
Martsa 26, 2007 at 3:03 pm
Oups.. typo error… 0.9.4 is out
Martsa 27, 2007 at 4:14 pm
Man, great work! Free and so good! I am waiting for your CSS. Thank you!
Martsa 28, 2007 at 2:32 pm
Like you, I’ve purchased the ijoomla component and found it useless for multi-language UTF8 encoded site I’m developing. So, I was very exited when I found your module. Thank you for developing it.
Now, I have some questions as to the implementation of newsbox.
1) When, as you recommend, I disable the frontpage I’m getting the message ‘There are no items to display’ in the mainarea. How can I make newsbox articles display in the mainarea?
2) mosimage - If I check the box display image I get the error message “Call to undefined function mod_newsboxes_showimage() in c:\Inetpub\wwwroot\joomla_utf8\modules\mod_newsboxes.php on line 104″
I’m using the 0.9.5 version
Martsa 28, 2007 at 2:55 pm
1) In your template you can replace
by
Like that, the mainbody doesn’t show unless you need it.
2. You can get the file below where I removed the function and put a normal call for image
http://joomla-newsboxes.googlecode.com/svn/trunk/mod_newsboxes.php
Martsa 28, 2007 at 2:56 pm
please use the normal single quote because here all single quote are changed to ‘
Martsa 29, 2007 at 3:27 pm
Hi,
Great module, but i have a problem, how can i “call” the css for this module?
Maybe a stupid question, but i am new to joomla.
Thanks
Huiguita
Martsa 29, 2007 at 3:42 pm
Huiguita> In Joomla, as admin you can change the CSS directly in
Site -> Template manager -> Site templates
Martsa 29, 2007 at 3:47 pm
Thanks,
but isn´t that, for an example:
1. if i use the css that came with zip file, can i copy the whole code and past it to template css or call the css in index.php?
2. and with that css (in the zip file) what is the sufix to put in module parameter, administration of joomla.
Thanks again
Huiguita
Martsa 30, 2007 at 2:53 am
Looks Great! I can’t wait to try it. Are you going to set up a forum for bug reports etc?
Martsa 30, 2007 at 2:06 pm
Great extension… i was just waiting for something like this! great work!
Martsa 30, 2007 at 5:31 pm
Hello,
The module looks promising. It would be much easier to use if I could just enter a single article ID sometimes and not a whole category?
Martsa 30, 2007 at 5:58 pm
Also get an error message when using images - Fatal error: Call to undefined function: mod_newsboxes_showimage() in W:\www\greenpolitics\modules\mod_newsboxes.php on line 104
Line 104 is echo mod_newsboxes_showimage($row->images);
I have my images in subfolders below /images/stories - for example - /images/stories/politics/
Martsa 30, 2007 at 6:02 pm
I downloaded the content, but I am not even sure how to use it. If someone could help me out, that would be great, like step by step process after the zip file is downloaded. I appreicate your time on this.
Martsa 30, 2007 at 7:21 pm
Follow normal Module installation process.
Select a category (categories) that you want to display in the module.
Most importantly create a style for the module box by creating a new module.table style in your template style-sheet. Each article collection can now have its own colour scheme, fonts etc.
Joomla site has tutorials on all those steps.
Aprily 2, 2007 at 3:36 am
I am very lost, can someone please walk me thru the steps after its been installed. I need to know the configuration, and get the news portal in my website. If you have done so, let me see how it works please. Thanks for your help. PS: I could not find anything on joomla, if you could post the URL, that would be great.
Aprily 2, 2007 at 7:08 pm
I have the module working, but I had a couple questions about usage.
1. On http://rcj.org/home2/ they have a featured category section. Are the featured categories each an individual copy of Joomla Newsbox Module i.e. 6 of them? Or is it just one module configured to show multiple categories and list some of their content items? If it is just one copy of the module How do I configure it to show like theirs? I want to show example items from each of my categories.
2. In the configuration of the module when you want to use multiple categories or sections do you list them separated by a comma like so 3, 7, 9?
If not could you give an example of how to add multiples?
3. In the configuration when I enter the number of rows for example 3, the module instead of showing the 3 rows, shows 3 content items. I am sure it is just a minor bug.
Thank you very much for creating this module. I tried mosets tree, dj4 ezine, ijoomla magazine, and ijoomla news portal and being dissapointed with all of them, I am so excited to have found exactly what I was looking for.
Aprily 2, 2007 at 8:23 pm
This is an example of the css I am using:
by adding a different Module Class Suffix (so instead of featured you could replace that with blue), you can a different css syle for every copy of the module.
.newsboxblue img {
float: left;
width: 100px;
padding: 2px;
margin: 3px;
}
You can repeat the css code blow multiple times in you css stylesheet with different Module Class Suffix’s as many times as you need. Don’t forget to set the Module Class Suffix in the configuration.
NOTE: Why the Module Class Suffix has to be in front of the box class and at the end of the rest of the classes, I don’t know? But that is how it works correctly.
/*FEATURED BOXES*/
.newsboxfeatured img {
float: left;
width: 100px;
padding: 2px;
margin: 3px;
}
.moduletablefeatured {
background-color: #CCCCCC;
border-top-width: 2px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #990000;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
background-image: url(../images/header-bg.gif);
}
.moduletablefeatured h3 {
text-align:left;
color:#CC3300;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
font-weight: bold;
padding: 4px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
background-color: #FFFFFF;
text-indent: 10px;
}
.moduletablefeatured td {
width: 50%;
}
a.readonfeatured {
background: #F1F1F1;
color: #990000;
font-size: 10px;
padding: 1px 5px;
text-decoration: none;
border: 1px solid #999999;
}
a.readonfeatured:hover {
text-decoration: underline;
}
.featuredbox {
border: 1px dotted #990000;
margin: 5px;
padding: 5px;
background-color: #FFFFFF;
}
Aprily 3, 2007 at 10:54 am
UPDATE: 0.9.7 now support multiple categories.
Stephanie> The Featured Categories in http://rcj.org/home2 are 6 modules
but now that you have mentionned multiple cateogories in your 2nd point, I think that could be an option.
In fact what I did for that Featured Categories was to put the same module class prefix for all 6 modules. So I can apply one class for all of them.
Aprily 3, 2007 at 2:04 pm
Thank you for your reply. I have around 20 categories that I want to show with latest articles with each. And I didn’t know if putting that many copies of the module would slow my site dramatically.
Aprily 3, 2007 at 2:33 pm
A really good mod to use in conjunction with newsbox is [MOD] Content Listing V1.3 from http://designforjoomla.com/ its free.
Aprily 3, 2007 at 5:00 pm
0.9.7 is released with multiple category (Category can be separated by comma)
Aprily 5, 2007 at 11:22 pm
Really good mod. But I don’t undestand how I can place needed information on the mainpage area. There is no such position. Help me, please
Aprily 9, 2007 at 5:45 pm
Hello.
How do I create a link from main menu so I could access this newsbox from there? Thank you.
Aprily 10, 2007 at 11:06 pm
John> Then you don’t understand what is a module in Joomla?
Den> you have to touch your templates, creatings module positions… then put the modules in your module positions.
Check http://katolika.org for example. There are 2 modules in the homepage.
Aprily 11, 2007 at 12:40 am
Thanks for the update!
Aprily 13, 2007 at 12:44 am
Love this module! It is great for the newssection of my website. Unfortunately something is going wrong when I choose the ‘text’ parameter in the backend. I have no commentsystem or anything linked to the same articles (because this will show up in the article). But still I get the following error above every message:
var sbtitle=encodeURIComponent(”"); var sburl=decodeURI(”");var sburl=sburl.replace(/amp;/g, “”);sburl=encodeURIComponent(sburl);
Does this have anything to do with open sef? You can check it out here:
http://www.volunteeringecuador.info/en/news/
Thanks for any help you can give me!
Aprily 14, 2007 at 11:54 am
When I open an article I see some javascript at the beginning
Something like
t language=”JavaScript” type=”text/javascript”>
1var sbtitle=encodeURIComponent(""); var sburl=decodeURI("");var sburl=sburl.replace(/amp;/g, "");sburl=encodeURIComponent(sburl);
I don’t know where does that come from but the module pick that up also.
Aprily 14, 2007 at 3:29 pm
Thanks for helping out.
I tried the joomcomment and social bookmarker bots on the articles. It gave me the problem. Turned them all off and changed the parameters away from the section, the problem continues.
Nothing but a few searchbots are also aimed at the section. Before installing jomcomment and SB nothing was wrong…..
Aprily 14, 2007 at 5:28 pm
Think I solved it by deleting the social bookmark bot, very unfortunate. Is there no way to use the bots while having Newsbox active in ‘Text’?
Aprily 18, 2007 at 1:30 am
Hery:
This module is exactly what I’m looking for, but I’m having a permission problem. Got the code and CSS working on a test site ok, but when I installed it on a production box, the Newsitem header links give me the following error … “You are not authorised to view this resource. You need to login.”. If I am logged in, it works ok.
I have verified that the module access level is set to ‘Public’, and since I can access the news item normally outside of your mod, I know the public access to the content items are ok.
Any ideas? Hope I haven’t missed something simple. Odd that it works ok on one site and not the other.
P.S. Using version [mod_newsboxes-0.9.7.zip] of the module.
Thanks,
Wayne
Aprily 18, 2007 at 4:41 pm
This is a great module and it works perfect for me. However, it’d be great if it could do the following things:
1. Link the category names and the section names.
2. Display some type of bullet.
Also, I think there’s a small bug: if I mix both sections and categories, the module doesn’t display anything at all. It’s desirable to be able to display both interchangeably, i.e. if you put section x and category y you should obtain the same type of output as if you put categories y and z. –this are just recommendations, but the module is heading to greatness.
Aprily 19, 2007 at 1:23 am
Permission issue - solved
File this one under the - I haven’t seen that before …
Turned out another main menu option was causing the issue. I had added a new option to the main menu which had nothing to do with the Newsbox mod, but was limited to ‘SPECIAL’ and if the item is published, the Newsbox module fails as described.
Will have to add a seperate controlled menu elsewhere.
Regards,
Wayne
Aprily 21, 2007 at 9:49 pm
Man! Congrats on your great module! It is so cool! I really did not like the ijoomla component, but yours works great! Please keep your good ideas up and running! Regards and THANKS!!!!!!!!
Aprily 22, 2007 at 1:48 pm
Thanks, is a very good module.
I have made a little modifications on the php file, in way of limiting the length using html option.
Unfortunately it is not perfect because it counts only the caracters and not the new lines, this cause a bewilderment in the alignment.
Line ~148:
else {
if($nbx_introlength > 0) {
echo (strlen($row->text) > $nbx_introlength) ? substr($row->text, 0, $nbx_introlength-3) . “… ” :
ampReplace($row->text);
} else {
echo ampReplace($row->text);
}
}
Aprily 22, 2007 at 6:51 pm
Thank you all.
@AlmAck I’ll try to understand what you’re talking about. In fact I also agree that it should not break the words. I’m thinking of breaking only when it has a space.
Also… I’d be very glad if you leaved here your sites where it is activated to see how you did it.
Thanks
Aprily 23, 2007 at 11:12 am
Thanks for the answer,
my site is http://www.almack.ch, I’m sorry is not all in english.
In my site you see that the 4 box are not exactly aligned. I would propose to insert a fixed box, if it is possible, so that to hold constant the dimensions.
Aprily 24, 2007 at 4:52 pm
I’m having a hard time getting anything to display. If I set some parameters to “no” then I get a message on the homepage saying that the module isn’t configured. I pulled all of my articles off the front page, installed the module, and have tried telling the module to look at a variety of sections and categories with nothing working in any configuration. I have it set right now to look at one single category and it still is displaying nothing on my homepage. I copied the .css from the download into my template and gave a suffix of “newsbox”, perhaps this is the problem? Otherwise I don’t know. I’m new to Joomla and have read quite a bit on installing modules but still can’t seem to make this one work.
It is published, access is public, I’ve tried it in a number of positions (and was sure to include those positions in the html of the template), gave it a category ID to look at (tried both names and numbers), gave it a variety of cominations of numbers of rows and columns, different intro lengths, and like I said a suffix of “newsbox” (without the quotes).
When I view source to check output on the main page there’s nothing where this newsbox should be, simply the returned message, “There are no Items to display”. I tried the replacement code detailed in post 7 above and it removed the text, but also for some reason returned a blank page for other pages (like menu links to my “latest” page) when it shouldn’t, so I reverted the code back to normal.
Any help would be appreciated.
Aprily 24, 2007 at 5:05 pm
Hi Damon,
You have first to put the section ID or the category ID(s). and put the module in a position that shows in your homepage. Put it first in the position “Left” to be sure that is shows. If not then there must be some problem.
Aprily 24, 2007 at 5:18 pm
Just tried that, both section and category IDs (each individually and then both). I also put it in position “left” and there still isn’t anything showing. If you’re interested in looking (maybe I’ve found a weird bug or something) I’d be happy to create a superadministrator account for you, this site is just a proof of concept anyway.
Aprily 24, 2007 at 5:27 pm
ok please give me an account.
my mail is :
hery
@
serasera
.
org
Aprily 24, 2007 at 6:47 pm
Got it working for the most part. Thanks again!
Aprily 24, 2007 at 7:29 pm
I don’t get it.
The install went find, but I can’t figure how to use the css. I’ve copied Stephnie’s css above and put it in my template css file, but nothing changes.
Maybe I don’t understand what the suffix is.
Is it .newsboxfeatured img?
I’m using the rockettheme sportacus just like the demo.
Can someone walk me through using the css?
ric
Aprily 24, 2007 at 11:02 pm
Is this module still being supported?
Judging from the comments above, a lot of people are having the same problem — how to change the css.
Could you walk us through this with examples and some css?
ric
Aprily 24, 2007 at 11:14 pm
as I said, CSS is really site relative. It is not possible to create css because it depends on
1. the look of your site (The template you use)
2. the name of the position you use
3. the suffix you set.
myself, I used Firebug (firefox extension) to get the class definitions and change my CSS accordingly. You’ve got to check your template CSS and add what you need to suit to your site.
Aprily 24, 2007 at 11:40 pm
Thanks, hery, but if someone gave examples, that would help tremendously.
What should I look for when searching for the correct css?
Assume I know nothing.
ric
Aprily 25, 2007 at 12:41 am
What confuses me is this: in template_css.css I define the newsbox module as .moduletablefeatured. I’ve included the css below.
Then in the module for a suffix I wrote moduletablefeatured, right?
But when I save and go to my site, the newsboxes haven’t changed.
What am I doing wrong?
ric
.moduletablefeatured {
background-color: #CCCCCC;
border-top-width: 2px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #990000;
border-right-color: #CCCCCC;
border-bottom-color: #CCCCCC;
border-left-color: #CCCCCC;
background-image: url(../images/header-bg.gif);
}
Aprily 25, 2007 at 2:36 am
Just got in touch with http://rcj.org/home2/ and they said they were using ijoomla ????
ricland
Aprily 25, 2007 at 8:53 am
@ric: I am the webmaster of rcj.org … and we are not using ijoomla anymore
@ric:
the word “moduletable” is given for all modules… if you set suffix = moduletablefeatured then the class becomes moduletablemoduletablefeatured (because suffix means joomla add that to the moduletable class definition)
So instead of setting suffix as moduletablefeatured, set suffix = featured.
Also you can look at your html source to see what comes out as class definition.
Aprily 25, 2007 at 8:57 am
@ric> I checked http://jfkhit.com/index.php?option=com_frontpage&Itemid=1
and definitely you have in the html source
class=”moduletablemoduletablefeature” which is not convenient with your CSS moduletablefeature…..
Ok… just set the moduletable suffix as featured to use moduletablefeature
Sorry to bother you but those are Joomla basics
Aprily 25, 2007 at 4:28 pm
Thanks,
Tried it using just moduletable suffix but nothing happens.
ric.
Aprily 25, 2007 at 4:44 pm
ric> wrong again.
if you set moduletable as suffix then your class become moduletablemoduletable (In English, suffix means appending after, so everything you put in suffix will be added to “moduletable”
If you put moduletable in suffix then it becomes “moduletablemoduletable”
If you put featured in suffix then it becomes “moduletablefeatured”
I thought it was not that difficult :-p
Aprily 25, 2007 at 5:35 pm
ric, I’ve been working on the same thing, getting the css to work and tailoring it. Right now my site looks like crap but that’s mostly because I’m just dumping junk in there so that changes are extremely obvious. Once I’ve figured out what everything does I’ll clean it up.
Anyway, I had a look at mod_newsboxes.php and discovered that the following classes are configurable in .css:
box
category
moduletable
readmore
readon
text
title
So when you edit the site module at the bottom you set the Module Class Suffix to “featured” (without the quotes), your classes would then be:
.featuredbox
.categoryfeatured
.moduletablefeatured
.readmorefeatured
.readonfeatured
.textfeatured
.titlefeatured
Hery, correct me here if I’m wrong, but it’s what I’ve found so far, according to Stephanie box needs the suffix BEFORE it to function, so it’s a prefix, but just for that one class. Didn’t make sense to me, but I did find this line in the .php and wonder if it’s the culprit, or the fix:
echo “get( ‘moduleclass_sfx’) . “box\”>”;
Aprily 25, 2007 at 5:48 pm
Hmm, seems I am wrong on this, heri care to elaborate? I just tried .titlefeatured and it didn’t work, but plain old .title did, so apparently it does pull some global styling. It would be nice if we could style all of these elements for each individual module, ie, if all of the classes pulled the suffix.
Aprily 25, 2007 at 10:07 pm
Damon> these are the class and div definitions. Let’s suppose you set the module suffix as SUFFIX
then you can configure the box as this.
.moduletableSUFFIX
.moduletableSUFFIX .SUFFIXbox
.moduletableSUFFIX .box
.moduletableSUFFIX .title
.moduletableSUFFIX .text
.moduletableSUFFIX .readmore
etc.
As I said, those are basic CSS and not Joomla, that’s why I didn’t include it in the module.
Aprily 25, 2007 at 11:51 pm
Ah, okay, that makes much more sense. Thanks.
Aprily 27, 2007 at 8:31 pm
hi there,
iam using this and its really great
everything works fine and i figured out alotby myself but now i have a problem…
if i enable the “read mre” button the text of the next article starts right after that read more button… not under it
like that:
test intro text goes here
read more… title of the second article comes here
lorem ipsum dolor….. content of the second article
is there anything i can do?
Aprily 28, 2007 at 8:48 am
Chris> you can add either in your CSS in the .title or in the .readmore something like this
clear: both;
Aprily 28, 2007 at 2:19 pm
i´ve added it to my template´s css file but it seems like there is still something wrong. i added it under .readmore in the css and entered in module suffix .readmore. now its placed correctly but any other formatting of the content is lost
Aprily 28, 2007 at 2:29 pm
Chris> can you give me the URL where you installed it? Can’t figure out why it’s not working.
Aprily 28, 2007 at 2:40 pm
http://livechaos.de/home/index.php?option=com_frontpage&Itemid=1
)
ths the frontpage news box and where it stands written “weiter” there should be the read more button.. a button not just text (but it would be okay if you could helpo me formatting it a bit better
iam not really good in those css things so sry if i ask too much
Aprily 28, 2007 at 2:59 pm
you can see it with buttons there
http://livechaos.de/home/index.php?option=com_content&task=view&id=22&Itemid=43
Mey 8, 2007 at 4:21 pm
Hello Hery,
I’m trying to get the titles in my newsbox to be links but not be underlined. I have done the following, yet I still have lines under them. Can you help please?
My suffix for the newsbox is featured.
.moduletablefeatured .title {
text-align:left;
color:#FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
font-weight: bold;
padding: 4px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
background-color: #000000;
text-indent: 10px;
text-decoration: none;
}
thanks
Mey 8, 2007 at 4:31 pm
.moduletablefeatured .title a {
text-decoration: none;
}
You can add also
.moduletablefeatured .title a:link {
}
.moduletablefeatured .title a:visited {
}
.moduletablefeatured .title a:hover {
}
Mey 8, 2007 at 4:56 pm
awesome. thanks hery.
while I have your attention, can I ask it it is possible to put my text besides the image? I’m trying to make it look a bit like http://www.ablegamers.com/ - the bottom four articles there have a picture and a title on the right next to them, with the text to the right of the picture too. Can I do this in the css or do I need to edit the mod_newsboxes.php?
Mey 8, 2007 at 5:11 pm
There are two choice. If you want the image out of the box, I mean not under the title then you have to change a bit the module. Look at http://actionplant.com/amazingdump/
But if the title is still above the image then a float: left for the image in CSS is enough
Mey 8, 2007 at 5:37 pm
hery, i really like the amazingdump site - how do i do that? I’m not entirely sure what bits I should be changing in the module…
Mey 9, 2007 at 1:56 pm
okay, anyone else know how I can get the picture to the left and the title and text to the right of it? like in the http://actionplant.com/amazingdump/
There are so many if’s etc in the newsbox module it hurts my head trying to figure it out.
Is there a new version in the pipeline that could have this sort of feature?
Mey 10, 2007 at 5:36 pm
You can download the version 0.9.8 and set in the admin
Image inside the text = No
Thanks for your feedbacks
Mey 11, 2007 at 10:21 am
Hi hery - thanks very much for the update. I updated the module but now it places the image above the title and text.
I have set image inside the text to ‘no’.
Are you able to see my site from the post? If not http://www.mdmltd.com/2007 is the link. Do I need to change the CSS to get the picture to the left of the title and text?
My CSS is as follows:
/*FEATURED BOXES*/
.newsboxfeatured img {
float: left;
width: 100px;
padding: 2px;
margin: 3px;
}
.moduletablefeatured {
background-color: #000000;
}
.moduletablefeatured .title {
text-align:left;
color:#FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
font-weight: normal;
padding: 4px;
background-color: #000000;
}
.moduletablefeatured .text {
text-align:left;
color:#FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.0em;
font-weight: normal;
padding: 4px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #CCCCCC;
background-color: #000000;
}
.moduletablefeatured .title a {
text-decoration: none;
}
.moduletablefeatured .title a:hover {
text-decoration: underline;
}
.moduletablefeatured td {
width: 50%;
}
a.readonfeatured {
background: #F1F1F1;
color: #990000;
font-size: 10px;
padding: 1px 5px;
text-decoration: none;
border: 1px solid #999999;
}
a.readonfeatured:hover {
text-decoration: underline;
}
Mey 11, 2007 at 10:34 am
1. the image definition here is wrong.
you put “.newsboxfeatured img” instead of “.moduletablefeatured img”
Mey 11, 2007 at 10:52 am
god, I’m such a moron. Thanks heaps for all your help.
Keep up the good work, it is most appreciated.
Mey 11, 2007 at 5:52 pm
Hi Hery,
Think I have spotted a small problem. When the newsbox is set to 2 columns, the column on the right is bumped up a notch. ie. not in line with the left column. Also the second row is right justified - shouldn’t it be left justified?
See my site in current state for an example. http://www.mdmltd.com/2007
Or is this just an example of my bad CSS?
Mey 11, 2007 at 8:34 pm
What you can do is: not showing the category title but showing the module name.
Mey 12, 2007 at 10:58 am
Thanks hery, that sorted it out.
Mey 16, 2007 at 1:35 pm
Question, we expire news stories and it seems to still display them even thought they have reached then end date. Did I forget a something or do something wrong? Thanks
Mey 16, 2007 at 2:54 pm
Ok, fixed in 0.9.10
Mey 16, 2007 at 4:24 pm
Awesome! Thanks
Mey 16, 2007 at 8:48 pm
MY question is: where to put .css file? Exact folder? Please, help me.
Thanks in advance.
Mey 17, 2007 at 3:54 am
Hello, thanks for this module, it’s almost all I needed, but not quite.
I have 3 categories, and I’d like to show 2 articles from each, in a 3rows x 2cols layout, like this:
cat1-art1 cat1-art2
cat2-art1 cat2-art2
cat3-art1 cat3-art2
However, configuring newsbox with:
Section ID: (empty)
Category ID: my 3 categories’ IDs
Rows: 3
Columns: 2
The articles appear in a 4rows x 2 cols layout:
cat1-art1 cat2-art1
cat1-art2 cat2-art2
empty cat3-art1
empy cat3-art2
I tried to copy 2 additional newsbox modules and configure each to show 2 articles from each category in a 1row x 2cols layout, but each of them displayed 1 article only spanning the entire module’s width.
It seems newsbox displays 1 category per column, as many articles as rows we configure, or something.
I need help, please. Could anybody tell me how to configure newsbox to show my desired 3rows x 2 cols layout? Thanks a lot
Mey 17, 2007 at 2:37 pm
still thinking on it… can you show me the example site?
Mey 17, 2007 at 2:49 pm
if you have
Then the newsbox modul will show
cat1-art1 cat2-art1
cat1-art2 cat2-art2
cat1-art3 cat2-art3
because here, the rows mean the number of rows for each category
If you check on http://rcj.org/home2/ The module on the bottom ‘ Notizie delle Circoscrizioni’ is 3 rows 2 columns.
Mey 17, 2007 at 7:49 pm
I would like to do some kind of rss feed and other things related to social bookmarking. But with the module It will give me terrible errors in the boxes. Will this be fixed in any future releases?
Mey 24, 2007 at 3:22 pm
Hi! Thank you for your great module. I have little problem when try to use NewsBox module in 3 coloumns and 1 row. It only display 1 coloumn. Please view http://www.yhsministry.com. Thanks in advance for your help.
Mey 25, 2007 at 5:40 pm
Hi! I try to use Newsbox with 3 columns, but it always shows 1 columns. Please help….. Many thanks guys…..
Mey 27, 2007 at 9:50 pm
When I configure to show the images, the text appears entirely in the first page. That Happens as if the configurations of “Intro lenght” were lost. Please, help me!
Mey 29, 2007 at 10:39 am
Ferdy> Do you have more than 1 row in the category/section you selected?
Thiago> Did you choose HTML or Text to display the news?
Mey 31, 2007 at 4:57 pm
Admin,
Can you help me out with this, I got the newsbox set up and running but it only shows up in the left, right, and top. I cant get it to show up in the middle. Here is my url http://www.benthumor.com
Mey 31, 2007 at 5:35 pm
Can you help me out with this, I got the newsbox set up and running but it only shows up in the left, right, and top. I cant get it to show up in the middle. Here is my url http://www.benthumor.com
Mey 31, 2007 at 5:40 pm
Michael> It’s in your joomla template.
You have to create a module position in the middle of your page.
Mey 31, 2007 at 5:45 pm
How do I go about doing that ?
Mey 31, 2007 at 9:58 pm
It will be great if you can add image size control.. to specify the width, height, etc.
Mey 31, 2007 at 10:49 pm
Anyone know how to create the actual code and where to put it for the module position in the middle of page
What i’m trying to accomplish here
Jiona 1, 2007 at 2:01 am
I think I got it figured out finally
Jiona 1, 2007 at 4:45 am
Is there a way to create thumbnails as you did on here using newsboxes script ?
Jiona 2, 2007 at 1:34 pm
I think this is a silly question, but I have looking for answer and never get it.
I have sucessed to put your module in the frontpage, but in down there, the “home” is still there, I had nonpublish frontpage in main menu, but the “joomla liscence” appear there substitud “home”, so how I can get the clean frontpage?
Thank for your answer
newbie joomla.
Jiona 11, 2007 at 7:23 am
I have been unable to modify the CSS for the newsbox module.
I have copied the CSS from modules/mod_newsboxes.css to my template_css.css file. I have used the suffix ‘featured’ and modified the CSS based on the instructions posted here in msg #57.
The items in the newsbox module continue to inherit style attributes from other parts of the template, such as link color, etc. I can’t get ANY of the newsbox CSS to take effect.
Thoughts? Suggestions?
thanks in advance,
~chris p.
CSS is as follows:
/* begin newsbox CSS */
.moduletablefeatured {
background-color: #000000;
border: 2px solid #F50F68;
}
.moduletablefeatured .featuredbox {
background-color: #000000;
border: 2px solid #F50F68;
}
.moduletablefeatured h3 {
border: 2px solid #F50F68;
margin: 20px 0pt 10px 5px;
background-color: #000000;
}
.moduletablefeatured .box {
border: 2px solid #F50F68;
margin-bottom: 100px;
padding: 5px;
background-color: #000000;
}
.moduletablefeatured .title {
border: 2px solid #F50F68;
font-weight: bold;
margin: 2px 0pt 5px;
color: #666666;
background-color: #000000;
}
.moduletablefeatured .text {
border: 2px solid #F50F68;
background-color: #000000;
}
.moduletablefeatured img {
float: left;
width: 100px;
padding: 2px;
margin: 3px;
}
.moduletablefeatured .readmore {
text-align: right;
text-transform: uppercase;
width: 100%;
clear: both;
}
a.featuredreadon {
color: #CC0000;
display: block;
font-family: Arial;
font-size: 10px;
font-style: normal;
font-weight: normal;
line-height: 12px;
text-align: right;
text-decoration: underline;
text-indent: 2px;
text-transform: uppercase;
}
/* end newsbox CSS */
Jiona 13, 2007 at 6:35 am
Apologies. After two days of trying, unable to make any changes to the newsbox CSS at all, it suddenly appeared. I suspect some kind of cache issue, but I don’t know where, exactly.
In any case, all appears to be well, and I am happily enjoying Newsboxes. Thanks!
Jiona 13, 2007 at 11:15 pm
Hi,
compliments, very useful module
I have one question: its possible to add the author and the date on each news that this module display?
thanks for any help
Jiona 20, 2007 at 5:48 am
If there is a “Finish Publishing” date, the item doesn’t show up in the newsbox, even if that date is in the future.
Jiona 21, 2007 at 4:38 am
OK, I found my problem… I need to update my Joomla
In the meantime, I changed this
$now = _CURRENT_SERVER_TIME;
to this
// Make $now backward compatable.
if (defined(’_CURRENT_SERVER_TIME’)) {
$now = _CURRENT_SERVER_TIME;
}
else {
$now = date( ‘Y-m-d H:i:s’, time() + $mosConfig_offset * 60 * 60 );
}
Thanks, this looks great.
Jiona 21, 2007 at 11:07 pm
I have the same problem as Feady in Post 87.
I need Newsbox with 3 columns. But it works only with 1 or 2 columns.
Anyone who can help please?!
Thx
PS: Great idea to create this modul!!!
Jiona 24, 2007 at 11:42 pm
Hey can someone tell me how to set my page with this? thanks.
Jiona 25, 2007 at 5:09 am
I am having the problem of “You are not authorized to view this resource.
You need to login.” message even though all the sections and categories are published publicly. I can access these articles from the Joomla’s Latest News module, but can’t access them through your newsbox.
I don’t have any menu item published to special or registered.
I noticed that the link to the articles from your newsbox is different than the link from the Joomla Latest Module when clicked. Your article link is missing the itemid part.
Could that be the problem? I have your latest .10 version installed.
Thank you.
Jiona 26, 2007 at 8:11 am
Would be willing to donate if you can get it to display other mambots beyond mosimage. Contact me if you wish to negotiate
Great module…thanks.
Jiona 27, 2007 at 11:02 am
HI,
I have one question about this
“To create another module in another position, you can copy the module, rename it according to your need and set it up…”
So what do you mean by copy the module - copy mod_newsboxes.php and mod_newsboxes.xml in the same location /modules and set it up with different name mod_newsboxes1.mod ??? do I need to install It trough joomla backend… ?? thanks
Jiona 27, 2007 at 11:08 am
Hei guys sorry I just figured that out
Jiona 27, 2007 at 6:41 pm
sheitel> can you show me the site where it doesn’t work?
tim> I sent an email to you
Jiona 28, 2007 at 2:08 am
Hery,
Do you have an email where I can tell you?
Thanks for offering to look at it.
Jolay 2, 2007 at 8:11 pm
hi, looks like a great module,by the examples i saw.but i tried in my site and lok like the css of the module is not beeing aplied,the module is using the main templante css.
here my question:
do i have to put any suffix in the module configuration?
or do i have to create a specific div and class in the templante index?
please i am a bit lost here
thanks
Jolay 5, 2007 at 5:41 pm
I have some problem with the configuration… What ever I try it shows a “This module is not yet configured… Please configure it or remove it.” on my frontpage… What to do?!
I saw here that others had similar problems and how did they solve it?
Jolay 5, 2007 at 5:54 pm
YOu have to configure the module.
Jolay 5, 2007 at 6:42 pm
well… I have configured the module. That’s the problem…
I have set all the settings, moduleposition, section, content etc.. You name it and I still doesn’t seem to get it to work
Jolay 6, 2007 at 10:50 am
Hi,
I have downloaded and installed the module but I can’t find how to use a module with Joomla.
Could you help me?
Jolay 6, 2007 at 4:13 pm
Thanks for your great module, and also all the help provided above!
Jolay 6, 2007 at 9:12 pm
Tooked me some time to figure out that it was the category ID (even though it say’s so in the configurationpanel) and not the ID of the content… Sometimes the brain just isn’t working as it should. Although. Now it works just like charm
Jolay 8, 2007 at 4:35 pm
Hey…
is it possible to make something like this:
MAINBODY:
NEWS 1 (Big text and border around)
NEWS 2 (Big text and border around)
news 3 (normal text and no border)
news 4 (normal text and no border)
news 5 (normal text and no border)
etc…
maybe splitting in two modules is the solution, but how to select only 3+ from the database i dont know!
Jolay 10, 2007 at 12:57 am
Hello
Looks good! Very useful, good stuff. Good resources here. Thanks much!
G’night
Jolay 12, 2007 at 10:54 am
elo
there nice work got the 0.9.9 ver.
some one asked about linked titles ..
i don’t know if had the answer ……. but is a nice idea.
add a.catid, a.sectionid on the query and
if($nbx_showcattitle > 0 && $row->cat_title != $nbx_last_cat) {
—- add this —line 80 something
echo “sectionid . ‘&id=’ . $row->catid . $row->Itemid_link ) . “\”>”;
——
echo “” . $row->cat_title . “”;
$nbx_last_cat = $row->cat_title;
}
to have linked titles .
Jolay 12, 2007 at 10:56 am
sorry add this
echo “sectionid . ‘&id=’ . $row->catid . $row->Itemid_link ) . “\”>”;
Jolay 12, 2007 at 5:06 pm
Well, first, sorry about my bad english. It’s a great module justowhat I want for my website, but I install correctly, I think, the module but I can’t change the appearence of the module. I change the CSS but something I’m doing bad. All the CCS codes you put on previous posts how must be added to my template_css? Because I’ve put them there, I’ve put in module’s configuration the name of the suffix as “featured” and I put this suffix after “moduletable”, etc… Please, I would be very grateful if you could arrange my problem. Thanks for all!!!!!
Jolay 13, 2007 at 5:14 am
Tks. Its marvelous! But I realize that to make the example that came with the newsboxmodule to work I have to put just “news” in the Module Class Suffix field.
Best regards
Brasco
Jolay 19, 2007 at 7:00 pm
What about not only multiple Categories, but multiple Sections?
Jolay 26, 2007 at 5:35 pm
please help urgently.
I don’t know with configure the module newsbox please.
you would said with configure one for one please
Jolay 26, 2007 at 5:40 pm
Vimes> such case should not be even possible
saul> don’t understand what you mean.
Jolay 26, 2007 at 6:37 pm
I don’t understand with install
Jolay 26, 2007 at 6:42 pm
please help me to install
Jolay 26, 2007 at 7:25 pm
It is a module for joomla. So you should install it like installing a module. Go here to understand how to install module http://help.joomla.org/
Jolay 27, 2007 at 12:00 am
I refer over this module. who with install this specific module please
Jolay 27, 2007 at 3:21 pm
please help me
with set the variable pass for pass
Jolay 28, 2007 at 3:53 pm
what should our css look like in template_css.css , if i have mod_newsboxes and module class suffix -boxes ?
for images and also for text.. because if i use
.newsbox img {….} or
.newsbox-boxes img {….}
it does nothing, image stays as it is originally.. thanx a lot !!
Jolay 28, 2007 at 3:53 pm
Hi,
what should our css look like, if i have mod_newsboxes and module class suffix -boxes ? for images and also for text.. because if i use .newsbox img {….} or .newsbox-boxes img {….} it does nothing, image stays as it is originally.. Our css in template_css.css
Where is problem?
Jolay 29, 2007 at 1:23 am
Vision> You can look at your html source and see how Joomla renamed the box
Jolay 31, 2007 at 3:04 pm
Hello. First of all: thanks for the module.
My question: Is it possible to place a image below the title and left of the intro text without using mosimage?
Thanks
Jolay 31, 2007 at 3:09 pm
Huibert> of course yes.
Set the module to use HTML instead of Text then put the image at the beginning of your text
Jolay 31, 2007 at 9:07 pm
No matter what the mosimage is aligning left and only the first line of the story is up against the image, the rest is under.. and also the title is above..
Aogositra 1, 2007 at 9:17 am
Thank you for the quick response, Hery.
Ofcourse I know that I must set the module to HTML. But I do not have enough control about this. I want a short text in the intro (maybe 50 characters) and a small image (45 pixels). When you click on the title (or read more) then you must see the whole article with a bigger picture (140 pixels).
I work with 6 newsbox-modules and it is also important that all the box-sizes are equal in size. When I use the text-option I can control this (without images) but with HTML it is difficult. Then I must see all boxes when it is online and correct them (more or less text).
Keep on the good work
regards
Huibert (Norway)
Aogositra 5, 2007 at 4:12 pm
Hi,
I tried copying the module so i could set it up in other positions but my joomla is telling me that i already have the file installed and refuses to upload.
how can i set it up so that i can have it in multiple positions?
Aogositra 5, 2007 at 4:47 pm
habdul> You don’t re-install the module to copy it. You just select it in the module list and click on COPY.
Aogositra 5, 2007 at 5:39 pm
That has solved all of my problems from now until next twenty years. thanks a lot
Aogositra 6, 2007 at 5:07 pm
Hi,
I have installed and used loads of modules so am no newbie but I am fluxomed as to how to find the catorgory/section ID ?? I tried putting in the name but that doesn’t work either, so where do i find what the catorgory ‘ID’ is?
On other modules it often provides a drop down box for you to select the available ones from but as this one needs an ID I am stuck!
Thanks in advance
Aogositra 6, 2007 at 5:10 pm
OK, I’m being really thick! I just looked again at my catorgory manager and there’s an ID field next tot he ‘order field’.
Dirr lol
Aogositra 6, 2007 at 5:15 pm
spoke to soon….
It now doesn;t come up with the message to say it needs configuring, but still isn’t displaying any content. Back to the drawing board!
Aogositra 6, 2007 at 5:17 pm
Check well.
Btw, can I see where you have it?
Aogositra 6, 2007 at 8:40 pm
Hi,
I set up the module to work in various positions on the site and it is working fine on some but on others, it displays but the i cannot change how the text or background shows.
Any help please? I am actually trying it out on my local server, i would have directed you to the site to see what i mean.
Thanks.
Aogositra 7, 2007 at 8:39 am
habdul> “how the text or background shows” is a CSS question. Just modify your CSS according to your feeling.
Aogositra 7, 2007 at 5:57 pm
I know. I did that with the other boxes and they worked but some others which i put in certainpositions where other modules were, refused to apply
Aogositra 9, 2007 at 11:34 pm
I HAVE A PROBLEM
please help
Notice: Undefined variable: page in /home/httpd/html/inicteljoo/modules/mod_newsboxes.php on line 147
Aogositra 10, 2007 at 7:05 am
That is PHP problem.
You will see Notices for all pages
YOu can disactivate your notice/warning Errors
Aogositra 10, 2007 at 2:54 pm
please help me
Notice: Undefined variable: page in /home/httpd/html/inicteljoo/modules/mod_newsboxes.php on line 147
Aogositra 10, 2007 at 3:03 pm
the version Beta 0.9.11 (28-July-2007) with joomla 1.012
I have a problem
please help me
Notice: Undefined variable: page in /home/httpd/html/inicteljoo/modules/mod_newsboxes.php on line 147
Aogositra 12, 2007 at 7:17 pm
Thanks Hery, great module! It´s working for me in a 100% after i read the CSS basics
@saul: in localhost (for example) you can turn off error reports editing php.ini and changing
display_errors = On
by
display_errors = Off
Aogositra 13, 2007 at 11:33 am
is it possible to make joomla the latest news show in this manner : http://ukazto.com/?img=latest-article1.jpg
it means, the newest aricle is biger than the others, and others are with the pictures.. if yes, which module do i have to use and how to modify it ? because i tried many modules but none had shown news in this manner.. i need something like DGM news, but let it show the newest article bigger…or how would i modify any module? :-/
thanx a lot for replies!!
Aogositra 14, 2007 at 12:05 pm
No reply?
Aogositra 25, 2007 at 10:07 am
vision> it’s in the last release
Aogositra 31, 2007 at 12:48 pm
I am using your module ok but how do I get it to display a thumbnail image on the front page as well as a text link. it links to all my news items but no image.
Aogositra 31, 2007 at 2:32 pm
Rob A> If you want to add thumbnails to the articles, then activate it fist in the module setting. Then for each article, attach an image like if you are to add a mosimage… but don’t insert it in the text.
Screenshot here: http://flickr.com/photos/hery/1284955859/
Aogositra 31, 2007 at 8:21 pm
I have done that and have set in the newsflash module “show images” to yes but on the front page it still only shows the text and no image is this what you meant
Septambra 4, 2007 at 3:13 pm
Do you think about rewrite this cool module for Joomla 1.5 RC2?
Septambra 4, 2007 at 6:54 pm
Hi,
I have the same problem Julie had
“How to find the catorgory/section ID ?? I tried putting in the name but that doesn’t work either, so where do i find what the catorgory ‘ID’ is?”
“On other modules it often provides a drop down box for you to select the available ones from but as this one needs an ID I am stuck!”
I can’t get any information to show. Please help.
Septambra 4, 2007 at 7:02 pm
Just to be clear… I do see the module . Just no data.