MyBB Community Forums

Full Version: Post preview on threadlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
^ forum should be addressed without using www

AND assuming that you do not want to use SEF URLs
in post_preview.js file : change
fetch_url: tid => `https://mrgsm.org/forum/thread-${tid}.html`
to :
fetch_url: tid => `https://mrgsm.org/forum/showthread.php?tid=${tid}`
thanks @.m. for quick response

i did change as you mention but still same but on MS edge it shows "null"

is it possible to make it universal url fetching ? like {$mybb->asset_url}/showthread.php?tid=${tid}
^ it worked for me on your test forum [firefox (image)]

not sure about using board url. MyBB variables are not available to the preview javascript.
doesnot work for me on firefox too , 2 diffrent computers
^ have you tried forum url without using www ? [ex. Link] ?
ohh yes it does work now , thanks without www it is working
^ it might be better to redirect www requests to non-www
you can try using below redirect rules in .htaccess file
<IfModule mod_rewrite.c>
	RewriteCond %{HTTPS} off [OR]
	RewriteCond %{HTTP_HOST} ^www\.mrgsm\.org [NC]
	RewriteRule (.*) https://mrgsm.org/$1 [L,R=301]
</IfModule>
Gonna be taking a further look at this when I have more time. This looks really effective . Thanks!
(2020-03-24, 11:23 AM).m. Wrote: [ -> ]^ it might be better to redirect www requests to non-www
you can try using below redirect rules in .htaccess file
<IfModule mod_rewrite.c>
	RewriteCond %{HTTPS} off [OR]
	RewriteCond %{HTTP_HOST} ^www\.mrgsm\.org [NC]
	RewriteRule (.*) https://mrgsm.org/$1 [L,R=301]
</IfModule>


this is great help for me thank you sir
This fetches the whole page, doesn't it? I would recommend something like:
http://mybbhacks.zingaburga.com/showthre...15&tid=267
Pages: 1 2 3 4