Giter Site home page Giter Site logo

octopoos / seblod Goto Github PK

View Code? Open in Web Editor NEW
127.0 33.0 54.0 14.01 MB

Build high-end websites with SEBLOD®, a CCK for Joomla!

Home Page: https://www.seblod.com

License: GNU General Public License v2.0

PHP 92.26% CSS 4.62% JavaScript 2.68% HTML 0.43%
php content-management cms joomla cck php7 website-builder seblod website

seblod's People

Contributors

alexonclassic avatar denysdesign avatar eliotlallemand avatar giuse69 avatar hacki65 avatar ilya-zhulin avatar jessedyck avatar klas avatar lazerproof avatar nativodigital avatar olivier-nolbert avatar pierre-h avatar pierrecorell avatar sebastienheraud avatar sophist-uk avatar viktoriwan avatar viocassel 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seblod's Issues

Form validates at Cancel Button

In case a form needs to be canceled the validation rules block this function, only after all required fields are filled i can cancel a form. (This happens on all forms in backend)

Plugin Link problem after update to S 3.7.1

Hi, I have notify a bug in the Seblod Forum VIP, James Morrel suggested me to notify it here, so ...

I have a link on a Free text field made with the plugin Link on "2" linked to a form.
That's worked well until I upgrade my Seblod from 3.6.2 to 3.7.0 OR 3.7.1
When I upgrade, the link doesn't work anymore, just is print the word "Insccription" from my free text field.
I have a Custom variable on this plugin : "formation=$cck->getValue('art_id')"
If i don't enter the custom variable, the link work again but of course link to Error as the variable is not given anymore....
If I enter the custom variable, the link disappear...
The problem is also mentionned here by an other user : http://www.seblod.com/community/forums/general-discussions/update-3-7-problem
To make it work again, I change the entire folder Plugin > cck_field_link from a Seblod 3.6.2. And work again.
I know this is just a temporary solution, if you could have an eye on this problem ?

Feature Request: Copressed Seblod .js Files

Hello!
For SEO i need to compress the seblod .js files, but with standard tools there are always conflicts then.
It would be great to have a possibility to compress the seblod *.js files.

Multilanguage home page, associated menu item alias

In Joomla, associated menu items can have different aliases.

The multisite functionality doesn't follow the association to the associated menu item of the "homepage", that is set in the multisite area.

Right now, I have to give home pages of all languages the SAME ALIAS, or it will not work.
While SEBLOD is creating a url with the appropriate language tag,
it uses just the exact alias of the selected homepage menu item of whatever language that is.
... thus, disregarding the menu item association

There does not seem to be a way to list articles that are scheduled to be published using article_publish_up

Hi there,

There doesn't seem to be a way to list articles using a List & Search Type that have been scheduled for publication at future date using the article_publish_up field. My list successfully shows published, unpublished and trashed items, but not ones that have been schedules for publication in future.

To debug, I have tried to:

  • Add the article_publish_up field to the search form
  • Set the live value to "today" and "Match" to Future or Equal - in this case ONLY the future scheduled posts appear
  • Duplicate the field (same storage), have "future or equal" on one field and "past or equal" on the other field - with live value as "today"

All of the above do not list all articles, including the scheduled ones.

James

Numeric Search produces sql error

Expected Behavior

User should be able to search for a numeric string and receive usable results.

Actual Results

If the user searches fro a numeric string that contains part of a Seblod CCK_id they receive the error below.
SQL Error : ..... WHERE a.id = "5<span class="highlight">405</span>";

In my case the problem results are with the returned Seblod categories that contain a matching Seblod CCK_id.

While I would prefer to just remove those specific results, maybe there is an edge case and it isn't the desired behavior for everyone? The returned category content doesn't actually match what the user is looking for but rather an Seblod CCK id that is only used behind the scenes.

Steps To Reproduce

  • Create multiple Seblod categories
    • For testing locate the cck id in the article text in our example it is 5405 ::cck::5405::/cck::
  • Create multiple Seblod items with numeric titles
    • Use parts of the category id 405 or 540 would work
  • Search for one of the numeric titles using the Joomla default Search

Cause

Joomla is running the search and then modifying the result string prior to running the onContentPrepair plugins. So when the Seblod _prepare method gets the content it has been modified like the object below and seblod is running a sql query with HTML. plugins/content/cck/cck.php:165

stdClass Object
(
    [title] => PreTest
    [text] => ::cck::5<span class="highlight">405</span>::/cck:: ::description::PreTest::/description::&#160;...
    [created] => 
    [browsernav] => 2
    [catid] => 127
    [slug] => 127:pretest
    [href] => index.php?option=com_content&view=category&id=127&Itemid=39
    [section] => Category
)

Possible Solution

The modified code below has worked as a temporary solution for my needs and is only here to help illustrate the problem I was having and may not be the best overall solution.

$search = str_replace(['<span class="highlight">','</span>'],'',$article->$property);
preg_match( '#::cck::(.*)::/cck::#U', $search, $matches );

Order by Category title for article search & list type doesn't work

If you create a list & search type for an article or related Content Type, and then try ordering by Category Title it is not possible.

You can order by Article Category Id, which orders by the actual catid field, which doesn't provide alphabetically sorting.

If you try to order by Category Title, it fails because it tries to join the category table with the cck_core table matching the category tables id column with the pk column in cck_core.

I believe this is likely a common problem, and am supplying a pull request with a fix. I would be happy to discuss other solutions with anyone, but would really like this or a related fix to make it into a near future release.

Field Add Save not working

I am unable to save new fields. If I disable the field name availability check (by removing the validate class from the form field using browser dev tools) I am able to save normally.

This bug appears in Safari, Chrome and IE. If I click Save twice quickly in IE the field is saved normally.

This appears to be a Javascript problem of some sort. Somehow the availability check is interfering with the form post.

Merci beaucoup mes amis.

Joomla! 3.4.1 Stable, Seblod 3.5.1, PHP 5.6.3, MySQL 5.6.21

Upgrade problem

Issue from forum http://www.seblod.com/community/forums/general-discussions/upgrade-problem
Every time when I upgrade SEBLOD I have an error
Duplicate column name 'path' SQL=ALTER TABLE xxx_cck_core_folders ADD path VARCHAR( 1024 ) NOT NULL AFTER parent_id;
I found in plg_conten_cck.zip/csript.php following:
if ( $i < 23 ) { // ONLY < 2.4.5 JCckDatabase::doQuery( 'ALTER TABLE #__cck_core_folders ADD path VARCHAR( 1024 ) NOT NULL AFTER parent_id;' );
So, now the question is - where is marker which defines my SEBLOD version like < 2.4.5?
I don't remember when it started, but it was 3-4 times exactly. Every update and last update also - from 3.6.2 to 3.7.

Joomla Login Module redirect Links broken when used with seblod

By using the default joomla login module the redirects which are set in module settings are broken.

For example in my case the home item is set but the module redirects to /?search=categories&task=search after login.

Also tested on clean Joomla install without issues. By adding Seblod to the clean installation environment it´s broken. For example by selecting to redirect to the Demo Page "About" it redirects to "/component/content/article.html?id=1" instead of about.html.

Issue in Joomla 3.4.1 with Seblod 3.5.1

Seblod list auto redirect to content and SEF issue

If you set a seblod list to AUTOREDIRECT to content, the SEF url that is generated does NOT follow the SEblod SEF global configuration (example: /alias ) but always /id !

So if you come from another content and use a list&search link plugin to jump to another content (being sure there will be only one result givent the parameters you pass) you don't land to /alias or /id-alias but always /id

This is a real problem since it gives a new url (mymenu/id) to an existing content (mymenu/alias) so it is a DUPLICATE CONTENT

I also tried passing the alias instead of the ID but the destination url (on the destination content view) is still /id

If we deactivate the SEF settings we can see the autoredirected URL has a "id=x" instead of "id=x:alias" parameter. May be the problem could be solved if Seblod would add the alias in this automatic url generation ?

thanks

cyril

Button Free Field Won't Render in Form without Edit Permissions

Hi there,

The button free field will not render in a multi-stage form when it is used as a "Back" button by using the Form -> Edition settings, if the user does not have full edit permissions.

The scenario I have tested this in is where I require a user to have "edit own" permissions, which works perfectly so that the user can only edit articles they've created, and use the multi-page form features of SEBLOD. However, with "edit own" permissions, the Button Free field is not rendered. If the user is changed to have full "edit" permissions, then the button is rendered.

SEBLOD 3.7.1
Joomla 3.4.3

Thanks,
James

Uploading image with same name

Let's say we have an image gallery FieldX upload_image. Example: yesterday user uploaded two images pic.jpg and pic2.jpg. Today user try to upload the third image it has the same name pic.jpg. When he upload it, the first uploaded image will disappear.

address_to_coordinates field incompatibility with seb_map

Hi, we're trying to use the cck_field_plugin "address_to_coordinate", but we've got some problems with seb_map because the list AND the field were both loading the google api,...

So we tryed to secure it by checking in the $doc->_scripts if the script we were looking for had not been previously loaded, but here we found out that the field didn't add the api using the $doc->addScripts method, but instead were using JCckDev !

Problem here is that even if we used JCckDev, we don't really know at all how to check the previously loaded script with this method >__<
And, seblod being but one of others joomla extensions, wouldn't it be more secure to use joomla common functions in the purpose to avoid possible library conflicts ?

So, in the end, we used these lines =>
if(!isset($doc->_scripts[$lib])){
$doc->addScript($lib);
}

Have a nice day

Checkbox Dynamic: $user doesn't work (SQL error)

Hi,
Thank you for Seblod : it's a great tool !
I setup a checkbox dynamic field (v. 1.0.0) which select title and id of usergroups according to an user propriety. So I 'Where' I put : parent_id = $user-> something. With Select dynamic it's working but not with Checkbox dynamic : i've got in the form an SQL error : SELECT title AS text, id AS value FROM #__usergroups WHERE parent_id= $user->something so it doesn't evaluate the expression $user->something.

The only solution is to use the free method and write the sql line : SELECT title AS text, id AS value FROM #__usergroups WHERE parent_id= $user->something.

Thank you in advance for the fix !

Only the first groupx is stored (if groupx storage isn't introtex)

Hi

If you have more than one groupX in a form and each groupX is stored in another place than the Introtext, only the first Groupx fields are stored when you save the content.

Example:

  1. Create a group1 content type with two fields:
  2. group1_storage (Text area, 4096 long), discard it from the form
  3. group1_name (text, no storage)
  4. Create a group2 content type with two fields:
  5. group2_storage (Text area, 4096 long), discard it from the form
  6. group2_name (text, no storage)
  7. Create your main content type myContent with two fields
  8. mygroup1 : GroupX on group1. Storage = custom / free/ #__cck_store_form_group1 / group1_storage
  9. mygroup2 : GroupX on group2. Storage = custom / free/ #__cck_store_form_group2 / group2_storage
  10. In back (or front) try to create some myContents.
    Only the first groupX will be stored

thanks

cyril

Add "rel" attribute to Link plugin

Dear Seblod-team,
I just saw a nice opportunity to improve the "Link" Field-Plugin. A new option to add a "rel" attribute would be nice. I use the Link-Plugin especially for outgoing links. it would be nice to be able to set rel="nofollow" to avoid losing too much link-juice and therefore to improve SEO.
Best Regards

Seblod Forum > E-Mail > Included Links

The Links in the E-Mail from SEBLOD Forum are duplicated, the reply link opens a blank page and the last ones do not open at all.

Category: Fields & Plug-ins
Reply: How can i create opening hours

Category: Forms & Content Types
Reply: How can i create opening hours

Best Regards,
SEBLOD Team.
www.seblod.com

Follow us on SEBLOD Social Hub
Discuss on SEBLOD Forums

SELECT CONCAT does not work in dynamic field

Using CONCAT in the free SQL query makes SEBLOD inserting a usless div into the link markup and wiping out the content so the page source looks like

<a href<="" div=""></a>

despite the sql says:

SELECT CONCAT('<a href=\"/index.php?Itemid=496&option=com_comprofiler&task=userprofile&user=',#__comprofiler.user_id,'\" taget=_blank>',#__comprofiler.lastname,', ', #__comprofiler.firstname,'</a>') AS text, ...

No setup in the form or field can prevent that from happening.

Entering a Message for the Site Form Has Hidden Character Limit

The Message (thanks) Textarea (to display a message when a Site Form has been successfully saved) in the admin backend of SEBLOD Content Types has a character limit of 258 characters, but the validation warning on the field is not displayed if the user enters too much text. Instead, the console just notes an error: Uncaught TypeError: Cannot read property 'alertText' of undefined.

This is confusing for a user because it is not clear why they cannot save their Message (thanks) text which is longer than 258 characters.

Select - Dynamic Ordering

I am attempting to use the Select - Dynamic field to display the joomla vote calculation. I am able to use this field to display the correct value. I also tried ordering this field but it is ordering by the "value" rather than the "options name". It seems like this field would be more useful if it ordered the field by what the user actually sees rather than what is saved to the database table. Thank you for your time. I enjoy using the product.

replaceLive() gets Value only

Hello everybody.
I found new and vrey useful function replaceLive($attr). Thats great!
But I see that:
file \libraries\cck\rendering\rendering.php
string 983: $get = 'get'.$target;
but next
string 984: $replace = $this->getValue( $fieldname );
and $get variable isn't used. I think that it should be
string 984: $replace = $this->$get( $fieldname );
to have not only Value but Attributes, Text etc...
Thanks!

1064 - You have an error in your SQL syntax in Select Dynamic Cascade

When I'm using free SQL inside the Select Dynamic Cascade I get an exeption when I save the form:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 14 SQL=SELECT article.id AS value, article.title AS text, parent_id FROM p2vcj_content AS article, ( SELECT id, related_nationality AS parent_id FROM xxxxx_cck_store_form_dn_series ) AS related, ( SELECT id, title FROM p2vcj_content WHERE catid =30 ) AS series WHERE article.id = related.id AND parent_id = series.id AND parent_id =#parent_id# order by text

As you can see parent_id =#parent_id# - placeholder is not replaced

The error occurs in function protected static function _getOptionsList, line 601 of the lattest version as query can nt be executed because of placeholder in query.
Same happens if I try [parent] as shown in replace:
preg_replace( '/('.$opt_parent.' ?= ?[parent]|'.$opt_parent.' ?= ?#parent_id#)/', $opt_value.' = "'.$value.'"', $opt_query );

Watermark for images upload

Hi there,
I use seblod for image gallery. It would be great if you implement watermark for images. Thank you.

Search by Tag for custom content type has SQL error

Steps To Reproduce

  1. Create a content type with that uses article tags
  2. Create a search/list view that allows you to search using article tags
  3. Create a menu item that goes to that search/list view
  4. Add a few articles of the new content type
  5. Go to the new menu item on the frontend and attempt a earch

Expected behavior

  1. it should bring up all the results that match the search

Actual Results / Error message.

A Joomla error page with this message:
Unknown column 't1.tags' in 'where clause' SQL=SELECT t0.id AS pid,t0.pk AS pk,t0.pkb AS pkb,t0.cck AS cck,t0.storage_location AS loc,tt.id AS type_id,tt.alias AS type_alias FROM j_cck_core AS t0 LEFT JOIN j_content AS t1 ON t1.id = t0.pk LEFT JOIN j_cck_core_types AS tt ON tt.name = t0.cck WHERE t1.state = 1 AND t1.access IN (1,1,5) AND ( t1.publish_up = '0000-00-00 00:00:00' OR t1.publish_up <= '2015-03-18 20:49:59' ) AND ( t1.publish_down = '0000-00-00 00:00:00' OR t1.publish_down >= '2015-03-18 20:49:59' ) AND t0.cck = 'test' AND t1.tags LIKE '%%' GROUP BY t0.pk ORDER BY t1.title ASC

Request > Seblod Website > UX

When selecting text on seblod Website the characters change color from black to dark blue. It´s hardly to recognize what is selected. In the example img the subline of the first entry is selected.

bildschirmfoto 2015-09-30 um 12 41 16

problems between Captcha Math and SD Concat Fields

Hello,
I have a problem with the SD extension Concat Fields
I have a contact form here:
http://www.aulaideal.com/contactoseblod/

I'm using SD Field Concat to create a single title of articles, like this:
< content > || # fc_nombre #

When not using the Math Captcha Recaptcha or field, the form sends the information correctly and generates a title for my articles For example: 656 Erick

But when I place or Recaprcha Math Captcha field and put a word of incorrect security, the system shows me a text like this:
Error
Wrong security code. Please try again.

...
But beneath the text it appears as follows:
#fc_nombre# IS A FIELDS

This problem only occurs when you use the field "SD Concat Field" together with fields "Captcha Math" or "RE Captcha"

Search and Field X issues

Hi,

The setup:
In form and content type: simple select repeated with field x.

In list and search type: added the simple select field, go to 3 and click +, select permissive and the field x.

The search does not work. I've tried nomerous ways and read all I can find about it. All threads end unsolved - and the ones that are marked solved dosn't solve it.

Just some threads:
http://www.seblod.com/community/forums/fields-plug-ins/can-you-do-a-search-list-on-a-fieldx
http://www.seblod.com/community/forums/fields-plug-ins/fieldx-and-lists
http://www.seblod.com/community/forums/fields-plug-ins/fieldx-and-search
http://www.seblod.com/community/forums/general-discussions/inconsistent-documentation-regarding-storage
http://www.seblod.com/community/forums/lists-search-types/searching-article-with-field-x

I've treid different ways of setting up storage (I've set up new field and not changed storage on an created field) without luck.

Also, the articles, forum posts and tutorials around storage and field x is not telling the same story. They preach different setups.

Can't save field

Joomla 3.4.3 + Seblod 3.7.0
Something strange....

Trying to add field to default Article content type
and on Save get this:
_626
_625

REGEXP Search to FieldX problem(bug).

When we need to search in the field FieldX in the SQL-query uses REGEXP. For example:

...... AND t1.introtext REGEXP ("(::art_keyword|[0-9]+|art_keywords::).keyword.(::/art_keyword|[0-9]+|art_keywords::)") .....

REGEXP is case-sensitive function. As a result, when the user enters "Keyword", and the database contain "keyword", then the search will return the empty result.

Add custom JavaScript to a site or search form

Hi All,
I want to add custom Javascript to my forms - the existing 'conditional states' are too limiting.

I don't want this custom JavaScript available to all pages because it's form specific, so adding a file and changing the template has too broad of scope.

I'd like to see a field in the template or the configuration tab that would allow entry of general JavaScript. While you are at it, a CSS entry would be nice to... for those fiddling adjustments that are local to one page.

Anyone know enough SEBLOD to do this?

Thanks!
-dr

permissions dont work

Permissions and inherritance dont work at all in SEBLOD. The only thing that works is setting permissions on the content type. But that's about it. You cannot even set permissions on the article level not to mention categories although the permissions tab is there.
The user would expect the same behavior in SEBLOD as in native Joomla content as outlined by the Joomla permissions creator Andrew Eddie :
http://www.theartofjoomla.com/home/5-commentary/84-introducing-the-new-permissions-in-joomla-16.html

FieldX Upload Image, minimum value changes when edit an article

I have a gallery FieldX Upload Image. Default value is 10, maximum value is 10 and minimum value is 10. So when user create new article he can see 10 input file boxes. If user upload two images and save an article next time when he edit an article there will be two thumbnails and only two input file boxes.. But there is NO other (8) input file boxes. To upload more images user has to click green button (add image button). According to default settings it must be 10 input file boxes. So 8 input file boxes are missing.
It's a serious issue because some users doesn't click green button.

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.