Snippet: cwsoft-anynews

Bug

i meant to say what argos said, ... maybe I am a bit more rough around the edges

meanwhile the new features look very nice


Argos

Quote from: cwsoft
PLEASE NOTE: Please delete any possible existing previous Anynews module via the WebsiteBaker backend BEFORE installing the new version, as the database names have changed.

Quote from: Bug
- for less advanced/experienced wb-users: unclearity if this is a totally new version, just an update or a new module possibly resulting in a chaotic maze of moduleversions and variations

These are the reasons I think name changes should be kept to a minimum, and I prefer to keep existing names, especially for long existing often used modules like this. Personally I think name changes can be functionial for forks, or old, 'sleeping' modules that are being revived and structurally updated.

To be honest, I would have preffered AnyNews to stay AnyNews, to prevent confusion, extra work and potential problems when upgrading. But on the other hand, he did a wonderful job modernizing and extending the old module, and so it is in fact a fork. So I can understand him wanting to rename the fork. But maybe it's an idea to give it a completely new name then, like for example ShowNews.

Just my two cents...
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Bug

Quote from: Stefek on September 04, 2012, 03:32:29 PM
If you want to help, please try to answer the questions instead of re-questioning them.


still don't get the point but here it goes


Q1: What exactly are the issues/concerns caused by the name change compared to any previous update for you or your clients?
- for me: nothing, i tend to rename modules to normal understandable names anyway
- for clients: they do not have access to and or knowledge about the anynewsmodule
- for less advanced/experienced wb-users: unclearity if this is a totally new version, just an update or a new module possibly resulting in a chaotic maze of moduleversions and variationss


Q2: Compared to previous updates (without name changes), in which process of the installation/upgrade path get you or your clients confronted with the name change?
- for me: nothing, i tend to rename modules to normal understandable names anyway
- for clients: they do not have access to and or knowledge about the anynewsmodule
- for less advanced/experienced wb-users: unclearity if this is a totally new version, just an update or a new module possibly resulting in a chaotic maze of moduleversions and variations

Q3: What are the consequences or side effects for you and your clients caused by the name change (compared to any previous update), e.g. page / template or documentation updates ...
- for me: nothing, i tend to rename modules to normal understandable names anyway
- for clients: they do not have access to and or knowledge about the anynewsmodule
- for less advanced/experienced wb-users: unclearity if this is a totally new version, just an update or a new module possibly resulting in a chaotic maze of moduleversions and variations

Stefek

If you want to help, please try to answer the questions instead of re-questioning them.

Quote
Q1: What exactly are the issues/concerns caused by the name change compared to any previous update for you or your clients?

Q2: Compared to previous updates (without name changes), in which process of the installation/upgrade path get you or your clients confronted with the name change?

Q3: What are the consequences or side effects for you and your clients caused by the name change (compared to any previous update), e.g. page / template or documentation updates ...

[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Bug

Quote from: Stefek on September 04, 2012, 02:24:13 PM
You should better honor the products people provide to the community for free

I do,
but i just do not understand why thing sometimes are being presented in complicated ways..

QuoteAnd I don't like it how you treat developers here
I am not here to be nice, i am trying to be helpful

Stefek

#72
Bug, cwsoft already said why he has changed the name of his module(s).
And I don't like it how you treat developers here. Insted of answering his questions you just require to adjust to your needs and wishes. You should better honor the products people provide to the community for free instead of ruthlessly demanding an adjustment to your likes.
This is plain stupid. Sorry.
[i]"Gemeinsam schafft man mehr."[/i]

[b][url=http://duden.de/rechtschreibung/gemeinsam#Bedeutung1]gemeinsam[/url][/b]
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Bug

// Just curious. Is there any special reason for your offensive question?

Take it back one step, was there any special reason in changing the module name...


//What exactly are the issues/concerns caused by the name change compared to any previous update for you or your clients?

If anyone that alters a module is going to add his name to the module name this whole cms is will become a big joke

// in which process of the installation/upgrade path get you or your clients confronted with the name change?

I think you are starting to see the pointlessness of the namechange

// What are the consequences or side effects for you and your clients caused by the name change (compared to any previous update), e.g. page / template or documentation updates ...

Is this a new question or just the first question again to see if i will give the same answer?


Ps, i changed the core of wb a bit, shall i present a version called 'Website Bug' in stead of website baker?


Pps, just be reasonable and keep all stuff here simple and clear, for the most people here the stuff going on with the cms and modules is hard enough, the separation from our german untermembers still calls too much questions and if people will now start to rename modules because of some misplaced self-glorification i think we are heading the wrong way.

cwsoft

@Argos: Please check your inbox, I sent you a PM. First would like to wait for a possible answer to my questions raised before further commenting on that :wink:

Argos

A name change takes place most of the times in case of forking. AnyNews is a well known and long lasting module, so a name change should have a real purpose. If this version differs very much from the previous ones, you could see it as a fork, leaving regular AnyNews as it is. But if it is merely a next version without many real changes I don't see a valid reason for a name change. It only creates confusion. But if you want to consolidate your work into a new name, and thus forking the module, you have of course that right.

I don't think you should take the "stupid" that serious. But you could explain the reason for the name change nevertheless.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

cwsoft

#68
Hi,

Quote from: Bug on August 30, 2012, 07:51:36 AMWhy the stupid name change?
Just curious. Is there any special reason for your offensive question?

Would be great if you could take the time to answer the questions below so I better understand your "concerns".

Q1: What exactly are the issues/concerns caused by the name change compared to any previous update for you or your clients?

Q2: Compared to previous updates (without name changes), in which process of the installation/upgrade path get you or your clients confronted with the name change?

Q3: What are the consequences or side effects for you and your clients caused by the name change (compared to any previous update), e.g. page / template or documentation updates ...

Cheers cwsoft

Bug

Why the stupid name change?

cwsoft

Hello,

just released cwsoft-anynews v2.6.0 STABLE at GitHub.

Updates since Anynews v2.5.0
1. finalized module re-naming into cwsoft-anynews
2. renamed GitHub repository into wb-cwsoft-anynews (so update possible bookmarks)

PLEASE NOTE: Please delete any possible existing previous Anynews module via the WebsiteBaker backend BEFORE installing the new version, as the database names have changed.

Infos & Download
- Anynews README
- download latest installation package
- view or post known issues

Feedback welcome.

Cheers

babsy

Hi, and thanks  :-) yes, that was the one, i have tried it before, i see. But i must have made some other mistake. Sorry for the mess.

All workes fine now, with multible groups, like this:

echo "<div id=\"anynews\">";
if (function_exists('displayNewsItems')) {
   displayNewsItems(
$group_id = array(14,16),
    $max_news_items = 10,
    $max_news_length = -1,
    $display_mode = 1,
    $lang_id = 'AUTO',
    $strip_tags = true,
    $allowed_tags = '<p><a><img>',
    $custom_placeholder = false,
    $sort_by = 1,
    $sort_order = 1,
    $not_older_than = 0,
    $group_id_type = 'group_id',
    $lang_filter = false
   
   );
}
echo "</div>";

marmot

Hi,

sorry for interfere here but looking at this
Quote from: babsy on August 11, 2012, 11:07:24 PM
$group_id = array(14,16)
and  the error message I would assume there is just a comma missing:  $group_id = array(14,16),

regards

cwsoft

#63
@babsi: Can you try the following:

a) uninstall the cwsoft-anynews code snippet via WebsiteBaker backend (just the snippet)
b) install latest version 2.5.0 from Github
c) try again

Don't have access to a working testing environment, so I can't test if there is any regression in cwsoft-anynews itself (hope not), causing this issue.

Cheers

babsy

Yes i tried both with the word array and without, but still i get this message:

Parse error: syntax error, unexpected T_VARIABLE in /home/admin/domains/mydomain/public_html/modules/code/view.php(32) : eval()'d code on line 5


Ruud

[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

babsy

#60
Hi

Thanks for the help -  I have tried this now:

echo "<div id=\"anynews1\">";
if (function_exists('displayNewsItems')) {
   displayNewsItems(
$group_id = 14,
   $max_news_items = 10,
   $max_news_length = -1,
   $display_mode = 1,
   $lang_id = 'AUTO',
   $strip_tags = true,
   $allowed_tags = '<p><a><img>',
   $custom_placeholder = false,
   $sort_by = 1,
   $sort_order = 1,
   $not_older_than = 0,
   $group_id_type = 'group_id',
   $lang_filter = false
   
   );
}
echo "</div>";

and it works fine for one group or with "0", but as soon as I set multible group-id´s im in trouble, i have tried these possible codes for group-id:

$group_id = 14.16,
- but then it just showes the first one, 14, and if i change them  16.14, (16 is the only one to show)


$group_id = (14,16),

$group_id = array(14,16)
- then this error message come:
"Parse error: syntax error, unexpected T_VARIABLE in /home/admin/domains/domain/public_html/modules/code/view.php(32) : eval()'d code on line 5"

$group_id = 14,16,
- then it just says "No news available"

I can´t seem to get what I´m missing here  :|

cwsoft

#59
Hi Babsi,

Quote from: BabsidisplayNewsItems((11,13), 1, -1, '','', '', '', '','', '','');
This code won´t work.

Please try to call ONE Anynews function with the default parameters. If this works, try to change the group id using $group_id = array(11,13) as explained in the function parameter list. If this works, then you can adapt the other parameters. Doing one step at once often helps to identify the issue :-)

As I am in vacation right now, I won´t be able to help any further with this for the next week or so.

Cheers cwsoft


babsy

Hi

Yes I know what you mean, I have just tried a new code:

echo "<div id=\"anynews1\">";
if (function_exists('displayNewsItems')) {
   displayNewsItems((11,13), 1, -1, '','', '', '', '','', '','');
}
echo "</div>";

But I get an error when i have two groups (11,13) so I must being doing something wrong in the code?
Since the same code works just fine, when I use just one group-id (11 or 0 and so on) - but as soon as there are multible group-id, (from different pages) I get an error.

any ideas?

cwsoft

#57
Hi,

Not sure I really got what you are after, but you could try the following:

- call three times the anynews function
- first call set groupid you want and limit output to one news entry
- second call with all the other groups but without the first

You can create different templates for the three calls if you need. Check out the README at GitHub, especially the section explaining the parameters at https://github.com/cwsoft/wb-cwsoft-anynews#readme. The parameters $group_id and $group_id_type allow you to define the groups, sections or pages from where you want news to display.

Cheers

babsy

Hi

I was just wondering if it was possible to (exclude one group), if I have many different pages with news items, and I want them all to show up in the main page, but since I want one more "anynews" code to be just for one group (the main story, wich has more text etc.) Is this possible? I just can´t seem to figure that out.

it would be like this:

MAIN STORY (one special group id)
text, text, text, text, text, text, text
text, text, text, text, text, text, text
text, text, text,text, text, text,

SMALL STORY 1 (all the rest of the group id´s)
text, text, text, text, text, text,

SMALL STORY 2 (all the rest of the group id´s)
text, text, text, text, text, text,

N1kko

Thanks I use use anynews alot much appreciated  :-D
My Tools: MacBook Pro Retina, Coda2, Sketch 3... Couldn't live without them

cwsoft

#54
Hello,

just released cwsoft-anynews v2.5.0 STABLE at GitHub.

Updates since cwsoft-anynews v2.4.0
1. moved whitespace and brackets from LANG files into TEMPLATE files (thank to Argos)
2. fixed wrong date format in the Dutch language file (thanks to Argos)
3. renamed module from anynews into cwsoft-anynews
4. updated repository structure

PLEASE NOTE: Please delete any possible existing previous Anynews version via the WebsiteBaker backend BEFORE installing the new version.

Cheers

Argos

You're right twice  :-D
Version 2.40, and I never used the date before. Most of the times I just show a list of links without dates, short content and read more links.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!