@Kinchtwck Full text search is easiest with Latin characters only. Adding Unicode is good but gets much more complicated... I do believe Solr supports Chinese characters and can be installed on the same server as the forum...?
How to get "Client IP address" in plugin.
-
Hi,
When any Guest/Registered user post 'Topic/Reply', I need 'Browser IP address' in my plugin.
So that I can send this 'IP Address' through email.
Can you please tell me how can I get 'Browser IP address' ?Thanks!!
-
filter:topic.post
is passed an object that has areq
property, it contains the ip address. -
@baris
Thanks For the reply,
But it always give me 'IP: 127.0.0.1'
req:
{ ip: '127.0.0.1',
host: 'localhost:4000',
protocol: 'http',
secure: false,
.....In my plugin I have used 'action:post.save' hook.
So, How can I get 'Browser IP address' in this hook ?Thanks!!
-
@akumbhare In that case, you're probably missing this line in your nginx config:
proxy_set_header X-Real-IP $remote_addr;