Forum Replies Created
-
AuthorPosts
-
Hi Ismael
Thanks for the code.
But this changes nothing.
I changed the font-size to 80px and it was the same size. I also tryed with !important, but nothing changed.
Best regards
MikeHi Rikard
No problem, We understand, that functionality has more priority as new demos.
t’s also more valuable for us to get new functionality than new demos!
Only some customers of us sometimes ask for new demos ;-)
Thanks for the SVG Dividers option. We didn’t know it, and we will ttry it out!
You can close this issue.
Thanks very much.
Best regards
MikeHi Ismael
I had overlooked that you wrote that no attribute is mandatory, sorry ;-)
Yes, I already found this PHP function and we will use it…
Thanks very much, you can close this issue.
Best regards
MikeHi Ismael
As we wrote further up, we deactivated all plugins and there was still the same problem.
But yes, with this snippet it is fixed, so you can close the issue.
Thanks very much.
Best regards
MikeFebruary 1, 2022 at 9:00 am in reply to: Sliders/Galeries duplicated without doing anything #1338159Hi Ismael
Yes we did and the new site is working fine.
But we would have liked to know why the page suddenly stopped working without us having changed anything.
It can’t be that we have to regularly check all the websites we’ve created with Enfold to see if they’re still working ;-)
But you can’t seem to give an explanation…
You can then close the task and we hope that these problems will not occur too often.
Thank you very much.Best regards
MikeHi Ismael
Yeah, with your code, also the other administrator user can use the ALB for creating or editing events with The Events Calendar.
But my question is, WHY this happens… what you mean with “when the other use is active”? I only use one or the other user and no one else uses this two users…
Thanks vey much.
Best regards
MikeHi Ismael
Thanks very much. So we will also generate an ID like this for the generated shortcodes. Why you do that with Javascript and noth with PHP?
And what is about my second question? Can we see somewhere, which attributes of a shortcode are mandatory and which are not? Because with new Enfold versions there come always new attributes, but we do not know, if they are needed/mandatory or not…
Thanks very much
Best regards
MikeJanuary 31, 2022 at 7:41 pm in reply to: Sliders/Galeries duplicated without doing anything #1338080Hi Ismael
Ok, we deleted the current page, created another page with same title and applied the “Innenausbau Temp” template to it.
This works, the sliders work now again.
So far so good.
But what we really do not understand is, WHY the page was broken without doing anything…
We didn’t modify this page for months or even years…
The only thing we do sometimes is to update WordPress, Enfold or plugins.
How can it be that a page is broken without doing anything on it and after recreating it, it works fine again??? This we really do not understand and we would like to have an explination about that to understand it…
Thanks very much.
Best regards
MikeHI Ismael
I found another code snippet which seams to work and returns for every image an ID:$attachment_id = 0; $dir = wp_upload_dir(); if ( false !== strpos( $url, $dir['baseurl'] . '/' ) ) { // Is URL in uploads directory? $file = basename( $url ); $query_args = array( 'post_type' => 'attachment', 'post_status' => 'inherit', 'fields' => 'ids', 'meta_query' => array( array( 'value' => $file, 'compare' => 'LIKE', 'key' => '_wp_attachment_metadata', ), ) ); $query = new WP_Query( $query_args ); if ( $query->have_posts() ) { foreach ( $query->posts as $post_id ) { $meta = wp_get_attachment_metadata( $post_id ); $original_file = basename( $meta['file'] ); $cropped_image_files = wp_list_pluck( $meta['sizes'], 'file' ); if ( $original_file === $file || in_array( $file, $cropped_image_files ) ) { $attachment_id = $post_id; break; } } } } return $attachment_id;
Now I updated again to Enfod 4.8.9 and it seems to work! Great, thank you very much!
But now, I have some questions:
- Where can I see the mandatory attributes for your shortcodes?
- Can I omit empty attributes?
- I generated the av_team_member with Enfold 4.8.9 and I saw a few new attributes, do I have to add them to my generator code?
- What is with the attribute av_uid? Can I leave this blank? Or do I have to generate a random string?
Thanks very much.
Best regards
Mike- This reply was modified 2 years, 10 months ago by YourChoice Informatik GmbH.
Hi Ismael
I found a code snippet and tested to get the ID of the attachement:global $wpdb; $prefix = $wpdb->prefix; $attachment = $wpdb->get_col($wpdb->prepare("SELECT ID FROM " . $prefix . "posts" . " WHERE guid='" . $image_url . "';")); return $attachment[0];
Unfortunately, it does not return an id for all images… with some images it returns nothing… do you have another method to get that ID?
Is the attribute attachement mandatory? Or what happens, when we use it empty?Hi Ismael
Just another question.
Would it be also better, when we set av_uid dynamically? And if yes, what would you propose how to do this?
Best regards
MikeHi Ismael
Okey, but this code is also in the gcst_members_shortcode_content and it worked with Enfold 4.8.8.1.
But I can test if it works with the dynamic ID of the image… Do you know, how I can get this ID with PHP code?
Thanks very much.
Best regards
MikeJanuary 28, 2022 at 12:30 pm in reply to: Sliders/Galeries duplicated without doing anything #1337702Hi Ismael
If I should activate the debug mode, please say, what I have to do ;-)
Best regards
MikeJanuary 28, 2022 at 12:30 pm in reply to: Sliders/Galeries duplicated without doing anything #1337700Hi Ismael
You are still editing Innenausbau and Test Page.
But if you want, I can activate the debug mode, because it would be very interesting, why it does not work on this page… we did not change anything there a long time…
Best regards
MikeHi Guenni007
Yes I did it. Also with the new code snippet we have the same problem, one administrator sees the ALB stuff, the other one not… very strange this…
Cheers
MikeHi Guenni007
Thanks for your response. With your snippet it is the same as with my snippet.
With one administrator user it works, with the other administrator user it does not work ;-(
But thanks anyway.
Best regards
MikeHey Ismael
Yes, shure.
Find the link to the plugin zip file and the database sql in the private content section.
You have to create this database on the same host where the wordpress instance runs.Please replace the image links in the table mitglieder with real image links (i.e. /wp-content/uploads/2022/01/kriesi.jpg)
Then you have to configure the plugin (Settings – YourChoice GCST)
Then you can use this shortcode: [gcst_members type=’TYPE’]
See possible types in the private content section.
Thanks very much.
Best regards
MikeHi Yigit
So, i tested it with deactivating plugins.
First I deactivated one by one or groups (i.e. all Contact Form 7 Plugins), then I deactivated ALL plugins except the The Events Calendar plugin (because this is needed for the events).
Unfortunately the Advanced Layout Builder still did not work for this one user.
Have you any other idea?
Or should I send you the content of functions.php of the Enfold Child theme?
Best regards
MikeHi Ismael
For the problem with the domain mentioned in my last reply I will open a new issue because this is very special ;-(
Best regards
MikeHi Yigit
I went back to Enfold 4.8.8.1 but this probleme here is still there. So I will check out the plugins.
Best regards
MikeHi Yigit
I didn’t try this out yet.
But perhaps, it could also be an Enfold Update problem? Because we find more and more problems, see also here:This only a possible hint…
Best regards
MikeHi Ismael
Just an addition.
We went back from WordPress 5.9 to 5.8.3. This had no effect, the pictures still are not there.
Then we went back from Enfold 4.8.9 to 4.8.8.1. This had an effect- the shorcode worked again!
So it is an Enfold problem.
Just before I also saw other problems with websites where we updated Enfold, For example on the Website mentioned in the private content section, the Slider comes twice instead of once…
So, it seems there are a lot of Problems with the new Enfold version ;-(
Best regards
Mike- This reply was modified 2 years, 10 months ago by YourChoice Informatik GmbH.
Hi Ismael
I just dumped out the real shorcode which but without the command do_shortcode.
As you can see, also there are different images set in the shortcode,see in private content section (data protection).
Perhaps it is a problem between WordPress 5.9 and Enfold?
Best regards
MikeHi Ismael
I read this values from an external database.
Yes, this I already tried, every entry has another image (bild).
I just dumped out the values on the website, see it in private content section (data protection).
Best regards
MikeHi Ismael
But if that was the problem, it would never have worked, would it?
Here is the code part of the plugin which generates the member shortcodes.$teamMembers = ''; $count = 4; foreach ( $rows as $row ) { $teamMember = ''; if ($count === 4) { $teamMember .= "[av_one_fourth first min_height=\"\" vertical_alignment=\"\" space=\"\" custom_margin=\"\" margin=\"0px\" padding=\"0px\" border=\"\" border_color=\"\" radius=\"0px\" background_color=\"\" src=\"\" background_position=\"top left\" background_repeat=\"no-repeat\" animation=\"\" mobile_breaking=\"\" mobile_display=\"\" av_uid=\"av-5ca50s\"]"; $count = 0; } else { $teamMember .= "[av_one_fourth min_height=\"\" vertical_alignment=\"\" space=\"\" custom_margin=\"\" margin=\"0px\" padding=\"0px\" border=\"\" border_color=\"\" radius=\"0px\" background_color=\"\" src=\"\" background_position=\"top left\" background_repeat=\"no-repeat\" animation=\"\" mobile_breaking=\"\" mobile_display=\"\" av_uid=\"av-5ca50s\"]"; } $teamMember .= "[av_team_member name=\"" . $row["name"] . " " . $row["vorname"] . "\" job=\"\" src=\"" . $row["bild"] . "\" attachment=\"11198\" attachment_size=\"portfolio\" image_width=\"\" description=\""; $teamMember .= "Instrument: " . $row["instrument"] . "<br />"; $teamMember .= "Mitglied seit: " . $row["mitglied_seit"]; $teamMember .= "<br />"; $teamMember .= "\" font_color=\"custom\" custom_title=\"#cb2323\" custom_content=\"#000000\" av_uid=\"av-55esp8\" admin_preview_bg=\"rgb(241, 241, 241)\"]"; if (strlen($row["facebook"]) > 0) { $teamMember .= "[av_team_icon title=\"Facebook\" link=\"https://www.facebook.com/" . $row["facebook"] . "\" link_target=\"_blank\" icon=\"ue8f4\" font=\"entypo-fontello\" av_uid=\"av-2it3rg\"]"; } if (strlen($row["instagram"]) > 0) { $teamMember .= "[av_team_icon title=\"Instagram\" link=\"https://www.instagram.com/" . $row["instagram"] . "/\" link_target=\"_blank\" icon=\"ue909\" font=\"entypo-fontello\" av_uid=\"av-9ao3o\"]"; } $teamMember .= "[/av_team_member]"; $teamMember .= "[/av_one_fourth]"; $teamMembers .= $teamMember; $count = $count + 1; } $content .= do_shortcode($teamMembers); return $content;
Thanks very much.
Best regards
MikeHi Yigit
Very special because this is only hidden for one user …
But I will try with deactivating plugins… will inform you, which plugin makes this problems.
Best regards
MikeHi Ismael
Sure. You can find the login data in the private content section.
It’s ok, when you temporarily deactivate plugins.
Best regards
MikeHi Yigit
I deactivated the User Role Editor plugin but it still did not work.
The special thing is, that we have 3 Administrator accounts, at 2 of them it works, at 1 it does not work ;-(
seeschwalbe –> here it works
yourchoice –> here it does not work
kriesi –> here it works as you saidAny other idea what the problem could be? ;-)
Best regards
MikeHi Yigit
At the moment, we use Enfold shortcodes without the Advanced Layout Editor, but the new events we like to use directly the Advanced Layout Editor ;-)
It is very special. I just created a user for you and there it works. But with my user it does not work… what can be the problem?
See the login below where it works. Perhaps you see, why with my user it does not work ;-)
Thanks very much.
Best regards
MikeHi Ismael
Very good ;-)
Best regards
Mike -
AuthorPosts