ehku Posted November 25, 2015 Posted November 25, 2015 @eden buganim: Thanks for the plugin. Is there a way to call a js script after the preview is displayed?
eden buganim Posted November 25, 2015 Author Posted November 25, 2015 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~
ehku Posted November 25, 2015 Posted November 25, 2015 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?
eden buganim Posted November 25, 2015 Author Posted November 25, 2015 @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'.
ehku Posted November 25, 2015 Posted November 25, 2015 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
eden buganim Posted November 25, 2015 Author Posted November 25, 2015 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!
eden buganim Posted November 25, 2015 Author Posted November 25, 2015 @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!
ehku Posted November 25, 2015 Posted November 25, 2015 @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?
eden buganim Posted November 25, 2015 Author Posted November 25, 2015 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.
ehku Posted November 27, 2015 Posted November 27, 2015 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.
eden buganim Posted November 28, 2015 Author Posted November 28, 2015 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!
Stefan Johansson_72643 Posted November 30, 2015 Posted November 30, 2015 Would be great also have a preview of database articles too!
eden buganim Posted November 30, 2015 Author Posted November 30, 2015 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?
Stefan Johansson_72643 Posted December 1, 2015 Posted December 1, 2015 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 )
eden buganim Posted December 1, 2015 Author Posted December 1, 2015 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
maddog107_merged Posted December 7, 2015 Posted December 7, 2015 @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?
eden buganim Posted December 7, 2015 Author Posted December 7, 2015 2 hours ago, maddog107_merged said: @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
ehku Posted December 7, 2015 Posted December 7, 2015 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.
maddog107_merged Posted December 7, 2015 Posted December 7, 2015 @eden buganim Can you verify it works with 4.1.5? The preview button disappeared after the upgrade even after enabling and disabling.
ehku Posted December 7, 2015 Posted December 7, 2015 2 hours ago, maddog107_merged said: @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.
eden buganim Posted December 7, 2015 Author Posted December 7, 2015 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. 4 hours ago, maddog107_merged said: @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!
Robiss767 Posted December 8, 2015 Posted December 8, 2015 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.