smoke_29
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Some questions to Vary Cache by CountryAnd i think final questions:
Am i right when i say “Pages that have “country code” inside always have to be set as “Private Cached URIs” ?And would that be the solution maybe?
RewriteRule .* – [E=Cache-Control:vary=%{ENV:geoip_country_code_by_name($_SERVER[‘REMOTE_ADDR’])}}]
- This reply was modified 4 years, 10 months ago by smoke_29.
Forum: Plugins
In reply to: [LiteSpeed Cache] Some questions to Vary Cache by CountryAnd one more information: I am having geoip in php and implemented this function in wordpress
function ip_info($ip = NULL, $purpose = "location", $deep_detect = TRUE) { $output = NULL; if (filter_var($ip, FILTER_VALIDATE_IP) === FALSE) { $ip = $_SERVER["REMOTE_ADDR"]; if ($deep_detect) { if (filter_var(@$_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP)) $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; if (filter_var(@$_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP)) $ip = $_SERVER['HTTP_CLIENT_IP']; } } $purpose = str_replace(array("name", "\n", "\t", " ", "-", "_"), NULL, strtolower(trim($purpose))); $support = array("country", "countrycode", "state", "region", "city", "location", "address"); $continents = array( "AF" => "Africa", "AN" => "Antarctica", "AS" => "Asia", "EU" => "Europe", "OC" => "Australia (Oceania)", "NA" => "North America", "SA" => "South America" ); if (filter_var($ip, FILTER_VALIDATE_IP) && in_array($purpose, $support)) { $ipdat = @json_decode(file_get_contents("https://www.geoplugin.net/json.gp?ip=" . $ip)); if (@strlen(trim($ipdat->geoplugin_countryCode)) == 2) { switch ($purpose) { case "location": $output = array( "city" => @$ipdat->geoplugin_city, "state" => @$ipdat->geoplugin_regionName, "country" => @$ipdat->geoplugin_countryName, "country_code" => @$ipdat->geoplugin_countryCode, "continent" => @$continents[strtoupper($ipdat->geoplugin_continentCode)], "continent_code" => @$ipdat->geoplugin_continentCode ); break; case "address": $address = array($ipdat->geoplugin_countryName); if (@strlen($ipdat->geoplugin_regionName) >= 1) $address[] = $ipdat->geoplugin_regionName; if (@strlen($ipdat->geoplugin_city) >= 1) $address[] = $ipdat->geoplugin_city; $output = implode(", ", array_reverse($address)); break; case "city": $output = @$ipdat->geoplugin_city; break; case "state": $output = @$ipdat->geoplugin_regionName; break; case "region": $output = @$ipdat->geoplugin_regionName; break; case "country": $output = @$ipdat->geoplugin_countryName; break; case "countrycode": $output = @$ipdat->geoplugin_countryCode; break; } } } return $output; }
Would it be possible with this?
Is that possible?
I had the same problem but could just resolve it myself: In Settings -> Discussion
at the end “Default avatar” thee option wasnt checked (dont know why). When i checked it again, everything was fine again in the memer directory
- This reply was modified 4 years, 10 months ago by smoke_29.
It’s the opposite
I have a site which is restricted for logged in users and on that page there is at the moment the restricted message shown.
And i want to show the registration formular too under the restricted access message but when i add the formular shortcode in the access message it doesnt show.
Thank you very much i didnt see that before ??
No,
i mean the register form for logged out users on a page which shows the restricted access message.Forum: Plugins
In reply to: [Videopack] Featured image isnt set automaticallyNo, no solution ?? and I tried a lot
Forum: Plugins
In reply to: [WP Critical CSS] What do i need to choose in wp rocketoh i need a mail adress to send you the login credentials
Forum: Plugins
In reply to: [WP Critical CSS] What do i need to choose in wp rocketyes it is so … you can login and search, but i have to say it is a porn site sorry . i will send the login credientials
Forum: Plugins
In reply to: [WP Critical CSS] What do i need to choose in wp rocketQueue is full … and processed log too
Forum: Plugins
In reply to: [WP Critical CSS] What do i need to choose in wp rocketi pay for it but i dont see the code in source ??
Forum: Plugins
In reply to: [WP Fastest Cache] Nothing is cachedThats right yes, but when i am logged in (not as admin, but as normal user) nothing is cached anymore …
Forum: Plugins
In reply to: [WP Fastest Cache] Nothing is cachedAnd when i am logged in on the site as member or user really nothing is cached, too… And i disabled “Dont cache logged i user”