Strange text after editing ideas…
-
PHP Version: 5.6.36-1+ubuntu14.04.1+deb.sury.org+1
Wordpress Version: 4.9.8
Plugin Version: 4.3
Current Theme: FortunAfter I edit an idea via the back end I see this kind of message on those entries:
Implement quad leg setup to MRS." data="2663" class="fa fa-pencil-square-o user-edit-idea" aria-hidden="true">
The page I need help with: [log in to see the link]
-
Hi @jjburton,
Can you please send a screenshot showing this. Can you confirm whether the idea was created from the backend or frontend? I am unable repeat this on my end.
Thanks,
p.s. when ideas have been created from the front end this should not be at all possible. If you created the idea from the backend, this may be possible if you perhaps copied and pasted an idea from the frontend directly into the backend post editor.
Thanks,
So a couple of things:
1) It appears to only show up when I’m signed in. Maybe it’s an edit thing?
2) It shows up when I make it from the front end and then edit with the back end. I may have copied the text from the one to the other but don’t recall seeing any extra code. Happy to walk some steps if you need.Screen:
https://www.dropbox.com/s/brw4s039ssgk3ok/ideaPush_issue.PNG?dl=0Hi @jjburton,
What I am keen to see is the actual post (idea) edit page. What I recommend is checking out the HTML or what WordPress calls “Text” tab of the idea. As I am thinking that you have some stray HTML in the post.
You need to ensure that in this text tab that there’s only plain text and no HTML. HTML that is not fully enclosed would likely cause the issue you are seeing – I know it has caused issue for another user before. Ideas created from the frontend it should be impossible for this to occur.
I have done a code check of the idea edit/delete code which shows for ideas which are your own and the code looks clean. Let me know if the issue persists. Thanks,
Here’s one:
Child LBS base rig. <img class="aligncenter wp-image-1940" src="https://www.cgmonastery.com/wp-content/uploads/2018/06/boy_wide.png" alt="" width="600" height="416" />
See something?
Hi @jjburton,
So what is that exactly that you shared?
Is that the text content of the post? You have an HTML image in the post HTML?
Have you tried removing that HTML?
When I go to the back end and go to edit one of those posts, that is what I see.
…trying pulling it…
It goes away when I pull the code but then I don’t have an image in my idea anymore.
I thought you could have whatever content you wanted in an idea post like a page, no? If you can’t that’s gonna be a problem with my intended use as I was hoping to be able to flesh out ideas with updates and what not as they are completed.
What you are describing just sounds a bit odd.
You can and should be able to add HTML to an idea and the plugin should have no issues with that. But because you are seeing some strange rendering on the frontend I wanted to find out what’s going on. Because like any post or page in WordPress if there’s funny HTML aka bad code, it’s going to affect the rendering of the page.
Why is there image HTML on your idea text?!? When you create an idea from the frontend, it gets the title of the idea and makes that the title of the post, it gets the description of the idea and adds this onto the content of the post, and it gets the image of the idea and makes this the featured image. It doesn’t add the image into the post content, it utilises the featured image.
What will be a lot easier I think is if you can provide me access to the site because there’s too much back and forth and I feel like I am not seeing the full picture.
Is that what the ideaPush Guest role is for? Register for the site and lemme know what I need to do. If you need full access I’m not sure…lemme know what’d you’d need.
I do have some custom css running via fortun but I tried disabling that and it didn’t get rid of the error.
If you’re not seeing the error after you register I’m not sure I care that much if it’s just administrators that see it.
-
This reply was modified 6 years, 6 months ago by
jjburton.
Thanks, sorry for a sec I was thinking I’d have to send you pwd info here but I could have just emailed it…durr…
Done.
Lemme know when you’re done looking.
Hi,
I created an idea on your site, no issues. https://www.dropbox.com/s/dc8oo21k682larm/Queue_%E2%80%93_CG_Monastery.jpg?dl=0
I recommend removing HTML from all ideas and seeing if this helps, so we can at least rule that out. As I said you should use the feature image to display images for an idea, it should not be necessary to put this in the post content/body.
Thanks, I have a featured image assigned to the offending post. We have featured images turned off on pages because I wasn’t happy with placement.
I tried disabling that css and it didn’t fix it.
Removing html from ideas would fix the issue as I said above but would very much limit the flexibility on more elaborate idea posts which I wouldn’t want to lose.
Two thoughts:
1) When I inspect the page and add this to the edit-container …
display: NONE;
It goes away, so I’m assuming only I see that as an editor. Do you see it on the one you added?
2) It’s referring to the pencil icon from what I’m reading. What would cause that link to be broken? Maybe you see it and it’s something on my end?-
This reply was modified 6 years, 6 months ago by
jjburton.
Hi @jjburton,
Ok, I was able to replicate this issue when putting an image in the post.
The issue has to do with how I coded the edit and delete idea icon which enables you to edit or delete an idea from the frontend when the idea belongs to you.
I didn’t anticipate in this code that there could be custom HTML. So I have released an update to the pro version of the plugin (v4.5) which fixes this issue. Be aware though that if you should use this quick edit functionality from the frontend, the custom image you put in the post won’t show up in the edit popup, which means if you were to save changes it would wipe the image from the post. So just don’t do that for ideas you know that contain images or hide these edit/delete icons with CSS which you eluded to before.
Could I make this some full on HTML editor so it wouldn’t wipe the image, perhaps, but by doing so it would decrease performance quite a lot and open up potential security issues.
It’s ok to create rich HTML ideas from the backend, but it’s not how things have been really been designed or tested for. Because the whole idea of the plugin is to get ideas from others after-all and these frontend ideas are limited to plain text only. Anyways it should be all good now anyways ??
Now that’s service!
Thanks mate:)
I’ve bumped you down to reg member but you can lurk if you like ??
Haha all good, no worries, glad I could help!
-
This reply was modified 6 years, 6 months ago by
- The topic ‘Strange text after editing ideas…’ is closed to new replies.