victorjonsson / arlima Goto Github PK
View Code? Open in Web Editor NEWArticle List Manager - Wordpress plugin suitable for online newspapers that's in need of a fully customizable front page
Article List Manager - Wordpress plugin suitable for online newspapers that's in need of a fully customizable front page
For responsive layouts it would be awesome to have two (or more) preview windows for the teaser. One for desktop, and one for mobile.
The windows would obviously have different widths (set by the filter?).
Edit article content on front page
Edit text:
Change image:
Right click on article opens up a context menu with possibility to change
The necessary js/css and elements will be added by arlima_render_list() if user is logged in and the plugin option "in-context-edit" is set to true (which would be default). The plugin gets a new page with plugin options where this feature can be disabled.
We're looking at a way to have a file include to represent one or more articles by tags, providing tag-slugs as file arguments.
This could be useful at times when no regular editors are in place to update the arlima lists, such as at night time. It could provide an easy way for any author to directly publish articles into an Arlima list without any knowledge of Arlima by simply tagging the article with an agreed tag, letting the file include do the work.
This concept works for top level file includes, but as soon as you place a file include as a child of an article in the list, no arlima_file_args arguments are passed to the php-file and does not seem to execute properly.
It also triggers the following warning:
PHP Warning: array_merge(): Argument #2 is not an array in /var/www/site/public/wp-content/plugins/arlima/arlima.php on line 322
...which is in this function...
/**
* @param array $default
* @return array|bool
*/
function arlima_file_args($default) {
if( Arlima_FileInclude::isCollectingArgs() ) {
Arlima_FileInclude::setCollectedArgs($default);
return false;
} else {
return array_merge($default, Arlima_FileInclude::currentFileArgs());
}
}
Is this something that you think can be fixed by intercepting a filter or action in Arlima or should it be considered a feature request?
It would be a nice feature if you could set templates on a section divider.
We would like to use attributes on a section divider to be able to control the presentation or rendering behavior for entire list sections.
It possible to click 'save' and have list created with empty title and slug despite of these fields have "*" next to its labels.
To reproduce this, go to the "Edit list" page and without filling any details click save, submiting this form should fail with possible error messages, but instead its saves empty list.
Hi,
I'm using 3.0.beta.44, and I've set maximum number of articles to 50, but I couldn't add to list more than about 35. If I try to add 36 appeared message "Your login session seems to have expired, pls reload the page!" and in error.log " Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini....".
Is it ok that arlima created so many variables? How could I hold more than 35 items in a list without changing server configuration?
I have moved all my images to S3, however I noticed that images generated by Arlima are still stored in my Wordpress server. Is there any way to change that, so that images are put in S3?
Hi,
I updated the plugin last night.
When i preview the articles in my lists, they don't have any style. Looked through the pages code (using Chrome) and my Arlima.css-file is linked from my theme into the admin page, but the page and the css doesn't cooperate...
In my Arlima-css-file in my WP-theme i have wrote a #arlima-preview .tmpl-X for each list, and it worked with the older plugin, but doesn't work now.
On Arlima Manage list tab, after selecting an article in a list, the user can browse for a teaser photo from the available media library. The problem is that in media library the user can also select a video, and after adding a video file for a teaser the page that is supposed to render the Arlima list is not rendered correctly. All posts up to the post with the video file is rendered, but the rest is failing to render correctly, a fatal error is thrown.
Arlima version deployed: 3.0 beta 34
In WP 4.0beta4 the title of the teaser doesn't seem to update in preview mode (ctrl+p) from Arlima admin. No errors in console. Any JS library that might need an update?
Last tested with this commit of Arlima (3.0 beta43): 58731cc
Hi!
Just have moved my website to a new URL.
All the files are just the same, but the Arlima-plugin doesn't work.
When i try to load lists in Arlima-admin, this shows:
"Warning: Invalid argument supplied for foreach() in XXXXX/plugins/arlima/classes/ListConnector.php on line 103"
Tried to inactivate all the plugins on the site and change theme to WP Default, but still it doesn't work.
Any idea of what is wrong?
I found another thing that occurred in connection with our update to Arlima 3.0. I have debugged now for a while but I can not see that this is something that we do in any filter.
When you dump the image object in arlima_template_object it now contains a lot of backslashes in the img tag:
Array ( [html] => [url] => http://109.74.3.225:81/wp-content/uploads/2013/12/linda-.jpg [attachment] => 17376 [size] => full [alignment] => alignleft [connected] => true )
So that we can get back in the wordpress.org plugin repo!
Have try to get the wordpress image caption to work with Arlima listed images. Have looked into filters and so on,.. is that hard to get?
I would have it to write some info like: Photo by: ....
Maby this code:
// Caption (explicitly)
echo $post->post_excerpt; // Raw
if ( has_excerpt() ) {
the_excerpt();
}
Display an arlima list in a widget, nothing more, nothing less...
Hello,
Wonderful plugin, we are using it in www.centediario.com.
I would like to know if there is a way to render an article list as JSON, to be consumed from an iOS/Android client. Ideally it would contain the thumbnail URL, article title, excerpt and link to the full article.
Thanks!
Why:
arlima_article_end
if you really want it.Can´t not save. Ony few times.
Am using latest version of Wordpress with the Lens theme. Arlima intalled and activated. The Arilima box appears when I create or edit pages...
The Article list manager appears to work, but nothing happens when I select a previously created Article list.....
Any thoughts?
Www.schweboo.com
When adding a post to a Arlima list (by choosing a particular article list) directly from the Posts-tab, the user can't edit post, add label, change format, template etc within the Arlima list management view.
Arlima version deployed: 3.0 beta 34
Example: If a use a list "Hello world" in a widget and sets the width to 450px, it does not affect the preview width of the window i the Arlima admin page.
I updated to Arlima 3.0 beta yesterday and found that the top right link in Arlima admin, to publish a list, does not trigger state from disabled to enabled when you remove or add an article in the list. You have to click and select an article in the list to make this link change state to enabled.
Although, there is still a way to publish the list without having to select an article by clicking the disk-icon in the list, as this changes state as I'd expect when you make a change in the list.
Arlima currently supports schedules of individual articles and file includes. Have you considered functionality for scheduled/future publishing of entire Arlima lists? One possible scenario: an editor working on updating a list late one night and want to be able to prepare the list to be published early next morning.
Arlima is kind of prepared for this functionality by allowing to roll back the versions of lists. But one would like to be able to prepare and schedule publication of future versions of these in some way.
If you are interested, we could discuss the possibilities and mutual requirements of such implementation?
Hi,
I am using http://wordpress.org/extend/plugins/spots/ plugin, and because it requires
It doesn't display when on the same page as Arlima content. If I deactivate Arlima it works fine.
Nick
The issue is illustrated in this video:
https://www.youtube.com/watch?v=18kgY4oP1xc&feature=youtu.be
Makes it easier to visually show which format and/or template that is being used for a teaser.
Let's say that my format "Featued teaser" should have a red bar (or background), the format "Standard" should have a blue bar (or backbround, or whatever) to make it easier for editors to determine how the teaser looks like without opening it in preview.
It would make i possible to create something like this (ignore the red line at the end):
On the Arlima Manage lists view, after performing some changes (e.g, changing format, adding label, changing title etc.) the user have to save changes to view it, user can't preview change without saving it (by using the "Preview list" functionality).
Arlima version deployed: 3.0 beta 34
This issue regards classes/TemplatePathResolver.php line 56
Sometimes $path is an array. Perhaps check for it and convert the array to string?
This causes a lot of error_log -messages.
if( is_array( $path ) && isset( $path[0] ) ) $path = $path[0];
$path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
In the list manager you should be able to drag child articles sideways to make them float, taking up about half of the space the child articles normally uses.
Arlima should also group these child articles in the same manner on the public website, when rendering a list.
Floating child articles should come in two. It should not be possible to save a list if it has a single floating child somewhere in the list.
Here's some of the things we must take a look at inorder to implement this feature.
Arlima_List (backend) — Add the property "floating" to the option array in the article
Arlima_ListFactory (backend) — Add the property "floating" to the default options in createArticleData()
Arlima_TemplateObjectCreator — Add the class "floating" to the class property in the template object.
js/dev/ArlimaNestedSortable — Apply the necessary event listeners. Add a class to the list item when it should be floating. The article option floating should be removed when an article is moved from the "child state" to "default state"
js/dev/ArlimaArticle.js — Add the floating class to the article element in addArticle().
CSS — Add the styles necessary to make the child articles float when having the floating-class. Add some info in the change-log about that you must add these styles yourself if having a custom css file.
Fatal error: Uncaught exception 'Exception' with message 'Table 'xxx_wp297.wp_2_arlima_articlelist' doesn't exist' in /home/xxx/public_html/wp-content/plugins/arlima/classes/ListFactory.php:390 Stack trace: #0 /home/xxx/public_html/wp-content/plugins/arlima/classes/ListFactory.php(573): Arlima_ListFactory->executeSQLQuery('get_results', 'SELECT al_id, a...', 'al_', true) #1 /home/xxx/public_html/wp-content/plugins/arlima/classes/Plugin.php(148): Arlima_ListFactory->loadListSlugs() #2 [internal function]: Arlima_Plugin->adminBar('') #3 /home/xxx/public_html/wp-includes/plugin.php(406): call_user_func_array(Array, Array) #4 /home/xxx/public_html/wp-includes/admin-bar.php(60): do_action('wp_before_admin...') #5 [internal function]: wp_admin_bar_render('') #6 /home/xxx/public_html/wp-includes/plugin.php(406): call_user_func_array('wp_admin_bar_re...', Array) #7 /home/xxx/public_html/wp-admin/admin-header.php(113): do_action('in_admin_header') #8 /home/xxx/public_html/wp-admin/theme in /home/xxx/public_html/wp-content/plugins/arlima/classes/ListFactory.php on line 390
Solved this one by creating an empty table named wp_2_arlima_articlelist etcetera for each sub site. Not sure if this appeared during the previous upgrade or the latest one (2.6)
When I upload images through "Media -> Add new", and after try in Arlima change featured image to this one, uploaded by "media" I have an error "Argument post_id missing".
Probable reason I guess is:
ArlimaBackend.js in function connectAttachmentToPost (line 55 ) inside second parameter {attachment:attachId, post_id:postId} you have used key post_id,
and on backend side in AdminAjaxManager.php in function connectAttachmentToPost (line 626) you are checking $_POST['post'].
Please check if it's an error.
When installing Arlima with no modifications the content presentation in the list is missing.
Change {{{html_content}}} to {{{content}}} in Article.tmpl solves this problem.
When setting preview widths of teasers (via the filter arlima_tmpl_width), the preview won't update to correct width when moving the teasers between lists.
Watch this clip to see it in action:
https://www.youtube.com/watch?v=59aqV2Ootj4&feature=youtu.be
The list Home has a width of 550px and Mega has 1000px.
In wp 3.5 the images will get upsized if to small but the graphics gets screwed up if its a transparant png image.
If you have two lists are layered on top of each other (overlapping), and your drag an article to place in the topmost list it is also added to the list in the layer below. I don't know if this is a bug or a feature, but there is a risk that you'll will make a mistake and not noticing this and mess up any list placed below the other list.
A workaround for this issue is of course to not place lists on top of each other, but sometimes you don't have the screen space, i.e. managing Arlima lists on laptop screens.
Hi there,
I haven't used Arlima in a couple months. Since that time there has been a Wordpress update. I am unable to drag articles into my list after having updated to Wordpress 3.9.1. Could you take a look at Arlima to see if there are any quick fixes for compatibility with the new version?
Thanks,
James
When I click on "Preview list" or the eye button while managing lists, a popup window appears with a URL parameter arlima-preview=yes
, and no teasers are rendering.
Of course when I change something on the list and then click on "Preview list" button, arlima-preview
parameter is set to an integer number (e.g. 7) and whole list is rendered correctly.
Maybe the latest version of the list should be displayed in case of arlima-preview=yes
?
The article list appears once above the page and once properly seated in the Wordpress page. Please see page and advise.
You get the following alert message
get_the_excerpt()
method should not print out to output any data, just return the string.
The issue is that get_the_excerpt()
run the_content
filters and the Arlima plugin hooks to it.
That line of code echos arlima list instead of returning it to caller while using the get_the_excerpt()
method
https://github.com/victorjonsson/Arlima/blob/master/classes/Plugin.php#L80
I have been using Arlima for some time now and really appreciate the news style setup you have created. I am currently having an issue with being able to drag and drop posts into a created list. This has never happened before and am wondering if the newest version of WordPress has created problems. This is time-sensitive for me, please help. (I have tried in Chrome and Firefox, I have tested previously created and published lists, and yet I cannot drag any post into the list)
-James
Hi,
I have some problems with the teaser-introword-function in Arlima. As it is described, the function is supposed to generate a link and a CSS-class for the introword.
In my installation of Arlima, this function only generates the CSS-class but no link. Is this function changed in recent releases of Arlima or have I done something wrong in my WordPress? My site: http://veckansnyheter.se
I was using Arlima perfectly then I just didn't need to add anything, today I wanted to add more info, but then when I go to Manage Lists I select the list and click on add but nothing happens then I used firebug to try to see if anythings pops and it says that I have 26 errors.
TypeError: this.getDoc(...) is undefined
TypeError: win.ArlimaTemplateLoader is undefined
win.ArlimaTemplateLoader.load(tmpls);
Then nothing happens, I think that it cannot find the jquery file, but i'm not really sure how could I solve it, still I know the basics of coding in php so if someone guide me or needs me to test I could do it.
I really liked the plug in I hope we can figure it out.
Another thing is that I am using Wordpress 3.5.2, I haven't updated it because I worried that If I update the web site stuff may stop working...
Any advice?
No matter what Arlima list you select to edit in the wp-admin-bar, it still will only load the list setup that was last saved when you clicked the "Save setup" button.
I'm guessing that there is some js that does not consider the open_list query var as you'd expect, i.e:
.../wp-admin/admin.php?page=arlima-main&open_list=6
Arlima is unable auto save all changes in tiny-mce preamble and header fields if you toggle between articles in the list. Any changes you may do to the texts may be unintentionally undone if you toggle between articles.
A workaround to use now is to remain in the selected article and publish the entire list in a "broken" state before clicking on the next article.
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.