Bary
Forum Replies Created
-
Forum: Plugins
In reply to: [Hotspots Analytics] gclid parametr (?whateverparametr)Thank you. I will try that ??
Forum: Plugins
In reply to: [Hotspots Analytics] 'View Heatmap' Button Not WorkingI solved it myself. Problem that button not working was in my case with database table and saving clicks into wp_ha_user_event table. Problem was line 221 in plugin directory/php/common.php. It cut www from url and for me it means redirect into homepage without showing heatmaps after clicking View heatmap button. So 2 steps to resolve it:
1. line 221 rewrite to not cut www from url
2. replace in wp_ha_user_event table all https://example.com/whatever for their www variants.
After that button starts working and it is ready for future clicks.Forum: Plugins
In reply to: [Hotspots Analytics] 'View Heatmap' Button Not WorkingI think I got it. Plugin in my case save into DB only example.com and not https://www.example.com. So URL is example.com/?drawHeatmap=true and that is redirected into homepage with www. So workarround now is to replace in DB all non www URLs with www urls and find where it is saved into database.
Forum: Plugins
In reply to: [Hotspots Analytics] 'View Heatmap' Button Not WorkingSo any news in this situation? I did not solve it by myself ?? I use multisite wordpress installation with /en /de language URL structure.
Forum: Plugins
In reply to: [Hotspots Analytics] 'View Heatmap' Button Not WorkingSame here. Problem is that button click is ok with parameters but there is redirect into web homepage do not know why (I look into chrome address bar to see correct URL redirected into homepage). So it looks that htaccess redirect into homepage. Workarround should be to let address with drawHeatmap parametr to not redirect I guess. Second problem is that if your page looks like something.html?nice=1 it looks like something.html?nice=1?drawHeatmap=true (correct should be something.html?nice=1&drawHeatmap=true).
Forum: Plugins
In reply to: [Scout bazar] User managementNo to nevim. Jakmile ve skaut bazaru vytvorite i onu roli, potom ta role bude mit ta opravneni, ktera jim priradite a netusim, zda bude mozne ji ta opravneni pote nejak sebrat, kdyz to nekdo bude chtit jinak. Opacne….jak jsem to popsal, tedy vytvorit jen opravneni davate 100% moznost to kazdemu uzivateli tu roli nastavit jak on chce.
Forum: Plugins
In reply to: [Scout bazar] User management“Delete published bazars” neni soucasti zadneho kodu ?? Mnou pridany kod do te funkce vytvori jen prava typu bazar. Nevytvari zadnou roli!! Tzn je potreba jeste nainstalovat plugin, nejlepe User role editor, o kterem se zminuju. V NEM vytvorit roli napr “Bazar” a dat ji NEKTERA opravneni, ktera pridava muj kod. Tim budete mit vytvorene uzivatele v roli napr Navstevnik a k ni priradite treba jeste navic roli Bazar. Tim padem dany uzivatel bude moct delat to, co te roli umoznite v tom User role editoru. Kdyz ji nedate “Delete published bazars” potom nebude moct mazat svoje inzeraty, ale jen zneaktivnit. Kdyz ji nedate “Edit others bazars” nebude moct editovat inzeraty jinych uzivatelu atp. Cili ve Vase mpluginu jen pripravit opravneni a pote je jen na uzivatelych Vaseho pluginu jestli je vyuziji a pres User role editor je priradi nejake roli. Druhym rsenim je to, ze natvrdo do Vase ho pluginu zapisete i vytvoreni role s nejakym opravnenim, ale tim padem VY NATVRDO urcite, jaka opravneni budou dani uzivatele mit, kdezto toto reseni, kdy vytvorite jen opravneni a role nechate na uzivatelich Vaseho pluginu je lepsi, nebot oni sami rozhodnou, jaka opravneni z tech ktere jim nabidnete, vyuziji a zapnou si to jak potrebuji.
Forum: Plugins
In reply to: [Scout bazar] User managementPredejte a vlozte ?? Mozna jeste drobnost, pro statistiku uspesnosti bazaru je potom nejspis vhodnejsi nedavat v tom User role pluginu te roli pravo “Delete published bazars”. Tim padem autori nemohou smazat svoje inzeraty, jen zneaktivnit v ramci editace sveho inzeratu, cimz admini ziskaji prehled o tom co se prodalo a co je v jakem stavu.
..nějak se to pokusíme implementovat. Aby to fungovalo jak je pot?eba…
Funguje to jak je potreba (dle zadani v prvnim prispevku) uz ted ??
Forum: Plugins
In reply to: [Scout bazar] User managementPro ty, kteri by radi mely pod kontrolou prava pro editaci bazarovych prispevku a vytvorili si pro to roli. Staci do funkce skautbazar_cpt() implementovat tento kod (nejsem programator, metodou pokus omyl mi to funguje takto):
‘capability_type’ => ‘bazar’,
‘capabilities’ => array(
‘publish_posts’ => ‘publish_bazars’,
‘edit_posts’ => ‘edit_bazars’,
‘edit_others_posts’ => ‘edit_others_bazars’,
‘read_private_posts’ => ‘read_private_bazars’,
‘edit_post’ => ‘edit_bazar’,
‘delete_post’ => ‘delete_bazar’,
‘read_post’ => ‘read_bazar’,
),
‘map_meta_cap’ => true,Nasledne napr pres User Role editor pluginu vytvorit novou roli “Bazar” a priradit teto roli prava: Delete bazars, Delete published bazars, Edit bazars, Edit published bazars, Publish bazars, Read a Upload files. Diky tomu budou moci uzivatele v roli Bazar vytvaret, publikovat, mazat a editovat jen SVE inzeraty.
Forum: Plugins
In reply to: [Scout bazar] User managementZapsal sem, nicmene co se toho tyce, tak tady je mozny postup a neni to nic sloziteho.
https://3.7designs.co/blog/2014/08/restricting-access-to-custom-post-types-using-roles-in-wordpress/
Forum: Plugins
In reply to: [Multisite Language Switcher] Rel alternate – custom post type blog id 1Oh I see ?? issue 65 I guess ?? OK, so now it is “resolved”
Forum: Plugins
In reply to: [Multisite Language Switcher] Rel alternate – custom post type blog id 1There is answer ??
You are right. Definition was wrong. Parameter “with_front” false is the key.
BUT BUT BUT
It should not be so difficult I guess to check, so in your part of code could be:
IF it is a custom post type with no “with_front => false” definition AND if it is blog id 1, THEN rewrite something like this /blog/get_permalink() ELSE get_permalink()But maybe I am wrong ??
Forum: Networking WordPress
In reply to: Internal server error 500 multisite redirectOK thank you now it is clear that second address on my site is bug in my theme I suppose.
Third address…500….should not it be repaired? So it means that every subfolder inside uploads folder create internal server error if you call not existing file there?? Is it possible to return 404 as well because the file does not exist and it is the same situation??? Does it mean to edit htaccess somehow?? And because it is a default htaccess from wordpress…some info into wordpress developers should be fine I guess. What is your opinion?
EDIT: https://halfelf.org/wp-content/notexistingdirectory/file.pdf – again 500 too. It can not be in uploads folder. So?
Forum: Networking WordPress
In reply to: Internal server error 500 multisite redirectI suppose that ANY of not existing URL should return template 404 page, so If I try any URL it should return 404 tamplate page, but this is not what happen on my site. I found a key where this is not correct using not existing URL and combine wp-content directory with another to find it out what happen and when it happen. So my question is…is this only at my site or is it a complex problem??
So my examples are 4 comments above: Take any of your multisite where blog id1 is used for a content, make paermalink with postname and have default htaccess, then try this url and see what happen.
I suppose that pdf file does not exist, “wpcontent” directory does not exist and directory “some” does not exist./wpcontent/uploads/something.pdf – 404 not found (404 template page – so it is OK)
/wp-content/uploads/something.pdf – 404 not found (apache server 404 page, not template page – NOT OK)
/wp-content/uploads/some/thing.pdf – 500 internal server errorJust copy this 3 URL with same configuration posted above and give me result, thats all I am asking.
Forum: Networking WordPress
In reply to: Internal server error 500 multisite redirectMaybe this is important. It happens on site, where blog ID1 is used with content. So my site has url example.com and there is a content. Blog ID2 is used too, and this is example.com/en. If I make multisite with blog ID1 empty and first content website with ID2 (example.com/en) and next with ID3 (example.com/de) it is OK. I tested on another multisite wordpress instalation.