Preview Post - Support

Recommended Posts

Share on other sites

Great! Installing...

Share on other sites

@eden buganim: Thanks for the plugin. Is there a way to call a js script after the preview is displayed?

Share on other sites

Just now, ehku said:

@eden buganim: Thanks for the plugin. Is there a way to call a js script after the preview is displayed?

Sure, I suppose the most simple way would be to stick it directly into the popup template, which should be in your global > plugins directory.

If you've access to dev mode you could create a JS data-controller, or edit the one I'd already included~

Share on other sites

2 minutes ago, eden buganim said:

Sure, I suppose the most simple way would be to stick it directly into the popup template, which should be in your global > plugins directory.

Could you please be more specific?

Share on other sites

@ehku, sure thing:

There should be a postPreview or a previewPost template in there

^In case it's not clear, go to ACP > Customization > Themes and edit it in HTML/CSS mode. The above list is taken from 'templates'.

Edited by eden buganim
Share on other sites

9 minutes ago, eden buganim said:

@ehku, sure thing:

There should be a postPreview or a previewPost template in there

^In case it's not clear, go to ACP > Customization > Themes and edit it in HTML/CSS mode. The above list is taken from 'templates'.

Thanks, I added MathJax script to postPreview to it does not seem to work

Share on other sites

12 minutes ago, ehku said:

Thanks, I added MathJax script to postPreview to it does not seem to work

I'll take a look right now!

Share on other sites

@ehku added this to the template, at the top:

<head>
<script type="text/javascript"
src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>

Also, make sure you clear cache!

Share on other sites

@eden buganim: I have added that code to the template, clear IPS cache using Support, clear browser cache, still not working  Could you please have a look at my site?

Share on other sites

1 minute ago, ehku said:

@eden buganim: I have added that code to the template, clear IPS cache using Support, clear browser cache, still not working  Could you please have a look at my site?

Sure, hit me up on pm with the necessary info and I'll take a look.

Share on other sites

Upgraded to 1.0.1. I feel that it's faster than before

Suggestion: the width of the popup should match the width of the actual post content width.

Share on other sites

7 hours ago, ehku said:

Upgraded to 1.0.1. I feel that it's faster than before

Suggestion: the width of the popup should match the width of the actual post content width.

You mean the same exact width it would be after posting the message, right? I'll try looking into that, I suppose the popup is a bit "thinner" than the actual feed!

Share on other sites

Would be great also have a preview of database articles too!

Share on other sites

1 hour ago, Stefan Johansson_72643 said:

Would be great also have a preview of database articles too!

Not sure I know what that means XD" Care to be more specific?

Share on other sites

Sorry, we have a database of "Articles" that we publish on "Home"  (www.99nicu.org) - would it be possible to add a "preview" also there? Not the plugin seems to add preview functionality to forum topics and comments. (which is great )

Share on other sites

5 minutes ago, Stefan Johansson_72643 said:

Sorry, we have a database of "Articles" that we publish on "Home"  (www.99nicu.org) - would it be possible to add a "preview" also there? Not the plugin seems to add preview functionality to forum topics and comments. (which is great )

Since I am not running 'Pages' app on my dev system, I can't tell for sure yet, but I'll definitely take a look and see if it can be done

Share on other sites

that would be super!

Share on other sites

@eden buganim Thanks this is great. One little bug if you dont mind fixing.

So in the preview something of the format:

[img=http://i.imgbox.com/15NcVmeY.jpg]

Shows empty, but if you hit submit reply it parses it correctly.

Also is there any way we can make a donation for this great add on?

Share on other sites

@eden buganim Thanks this is great. One little bug if you dont mind fixing.

So in the preview something of the format:


[img=http://i.imgbox.com/15NcVmeY.jpg]

Shows empty, but if you hit submit reply it parses it correctly.

Also is there any way we can make a donation for this great add on?

Yup, I'll make an update today. It will still require an end tag though:

[img=http://i.imgbox.com/15NcVmeY.jpg][/img]

I appreciate the thought, but it never occurred to me to collect donations for this plugin

Edited by eden buganim
Share on other sites

On 11/28/2015, 5:01:52, eden buganim said:

You mean the same exact width it would be after posting the message, right? I'll try looking into that, I suppose the popup is a bit "thinner" than the actual feed!

Yes. By this we can see if the width of some elements (like images or formulas...) fit the page. The current popup is larger.

Share on other sites

@eden buganim Can you verify it works with 4.1.5? The preview button disappeared after the upgrade even after enabling and disabling.

Share on other sites

@eden buganim Can you verify it works with 4.1.5? The preview button disappeared after the upgrade even after enabling and disabling.

On my site the button is still there and working after the upgrade.

Share on other sites

8 hours ago, ehku said:

Yes. By this we can see if the width of some elements (like images or formulas...) fit the page. The current popup is larger.

Yeah, you always knew how to get me workin'  I am adding window-resize capabilities to the next update as well.

@eden buganim Can you verify it works with 4.1.5? The preview button disappeared after the upgrade even after enabling and disabling.

As @ehku said, the button should still be there, even after the upgrade. Try uninstalling the plugin altogether and installing fresh!

Share on other sites

Hello. I want to address one issue regarding this plugin.

This preview post button is seeable literally everywhere where editor is involved. This is partially good, however when a moderator tries to move a topic, he can see this button for no reason. Once clicked, it displays nothing. It's not a big issue, just I'd suggest to keep it on when a user is making a topic/reply.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.