Code Monkey home page Code Monkey logo

arlima's People

Contributors

carlgrundberg avatar chredd avatar drawski avatar duab-johan avatar grzegorzkurtyka avatar johnbergvall avatar marekwojtaszek avatar victorjonsson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arlima's Issues

Support for multiple teaser previews in admin

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?).

In-context-editing

Edit article content on front page

Edit text:

  • Double click on an element
  • Start writing
  • ctrl +/- to toggle font size

Change image:

  • Double click on image
  • Fancybox with featured images and upload button

Right click on article opens up a context menu with possibility to change

  • Post connection
  • URL
  • Image

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.

Using file includes as child items in lists

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.

file include child

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?

Feature request: Templates on section dividers

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.

Creating new list doesn't respect 'required' fields

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.

Maximum number of articles

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?

No editable textfield

You can not change the imported text and then save and publish. Arlima choose where to break the text and it is not editable.

textbryt

Arlima generated images in S3

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?

Article preview

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.

Video instead of photo for teaser causes fatal error

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

Arlima says listconnector isn't working

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?

Backslashes in generated image markup

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] => \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"linda-\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
    [url] => http://109.74.3.225:81/wp-content/uploads/2013/12/linda-.jpg
    [attachment] => 17376
    [size] => full
    [alignment] => alignleft
    [connected] => true
)

Image caption on images in list

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();
}

List as JSON

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!

Remove integration with Microkid's Related Post?

Why:

  • It feels out-of scope
  • We don't want to suggest people using an unmaintained plugin (it contains some sql queries that causes trouble when having a larger database)
  • Easily integrated using filter arlima_article_end if you really want it.

Save

Can´t not save. Ony few times.

Article list manager does not work

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

Publish list link still disabled after removing articles in a list

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.

Feature request: support scheduled lists

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?

Arlima admin: set classes to items in arlima lists based on formats and templates

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):
wp-admin

Preview functionality does not work

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

Check for path as array

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;

Grouping child articles via drag-and-drop

Feature description

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-feature

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.

Implementation

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.

Multisite issue

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)

Changing featured image

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.

Delayed article

If i publish an article in Arlima 3.0 - it will delay that article into futurepublish 2 hours? Why, anyway to get around this? It says
gmtplus2
GMT +2

Content in template missing

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.

Don't upsize images

In wp 3.5 the images will get upsized if to small but the graphics gets screwed up if its a transparant png image.

Drag-and-drop issue if lists overlap each other

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.

double drop

Arlima Not Working with Wordpress 3.9.1

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

Preview of unchanged list

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?

Arlima Issue: posts not dragging like they used to

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

No link in teaser introword

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 have a problem with jquery

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?

The wp-admin-bar link to directly edit an Arlima list is not working

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

Bug when toggling between articles in unsaved lists

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.