Not logged in. · Lost password · Register

All posts by Daulken (5)

topic: Translation Plugin Upgrade Request [Possible Bounty]  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Daulken #1
Member since Mar 2015 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Translation Plugin Upgrade Request [Possible Bounty]
I'm having a problem that I simply don't have the time to learn enough php to do as anything more than a hack.

Basically, multilingual sites need hreflang for the search engines to know exactly which page is what language and how best to index the results.  I've looked at it a bit, but it's giving me enough problems that to get it done right, I'd offer to pay someone to do it, rather than keep hacking away at it.

Anyway, with the translation plugin, I have thousands of pages, and they're all basically following the format of
en/start, es/start, de/start, etc.

The SEO on it is terrible though, because Google needs language headers on each page to say "This is the english version, you can find the spanish version here:"

https://support.google.com/webmasters/answer/189077?hl=en  This article explains it very well.  So, what I'm trying to do, is in tpl_metaheaders of my template.php, I'm trying to add something like this:

    $trans = strtolower(str_replace(',', ' ', $conf['translations']));
    $trans = array_unique(array_filter(explode(' ', $trans)));
    sort($trans);

    foreach($trans as $t) {
        $head['link'][] = array(
            'rel'  => 'alternate',
            'hreflang'=> $t,
            'href' => $t
            );
        }

That's not done, because while I copied most of that code and have been messing with it, from helper.php from the translation program, $conf['translations'] and $conf('translations') both just return empty arrays.  I can't seem to get the list of translations no matter what I'm doing, and I'm not sure why.

It should also NOT do that for whatever the current namespace is, but that's relatively easy, even for a hack like me.  Even if I do get this figured out, I'd run the problem of making my upgrade path more difficult for the future, so I was hoping it was the type of thing that would be immensely useful for anyone using the translation plugin (that cares even remotely about SEO and how the search engines index their site).
topic: Reindex all pages  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Daulken #2
Member since Mar 2015 · 5 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 49001
Thank you.  I searched for reindex, rebuild index, etc. and didn't come up with anything.

Didn't even occur to me that search would be the main reason people might want to do that.

--Andy
topic: Reindex all pages  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Daulken #3
Member since Mar 2015 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: Reindex all pages
Hey all,

What I'm looking for is probably fairly easy, but I'm really busy and I don't actually know PHP (I can read it reasonably well, but I think this would take me way longer than it would for someone else).

Anyway, my game wiki is about 80% code generated, so the vast majority of my site is externally edited, so Backlinks just don't work well (despite the fact that I try and use them extensively).

I'm looking for a simple plugin that will go through and reindex the entire site (using the sitemap).

I can't imagine it would take more than about 10 lines of code to just do a quick and dirty version 1.0.  Then, if it's popular you could expand on it and use regex for pages to skip, or to include, or whatever.  Maybe starting namespaces, etc.  For me though, the site is only about 400 pages (most under 1k), so I'd be fine with it just doing everything.

NOTE:  Deleting the indexes forces them to reindex once the page is edited, but the pages are usually never edited directly, so that isn't a solution for me.

I'd offer a bounty, but I don't know what's appropriate.  It's worth a little bit to me just to save me having to learn enough PHP to do it, so if it's as easy as I suspect it would be, someone will get nicely rewarded.  If it's way more complex, feel free to let me know and I'm sure I'll come up with something more specific.

--Andy
topic: [Solved] Basic ACL issue (Not working as expected, although maybe as intended?)  in the forum: General Help and Support Features and Functionality
Avatar
Daulken #4
Member since Mar 2015 · 5 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 47773
I don't know how I missed that, but that's it.  Thank you very much!

--Daulken
topic: [Solved] Basic ACL issue (Not working as expected, although maybe as intended?)  in the forum: General Help and Support Features and Functionality
Avatar
Daulken #5
Member since Mar 2015 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: [Solved] Basic ACL issue
I've got a page using dokuwiki over at http://www.skysaga.wiki (it's a game based wiki).  I'm only running the update and wrap plugins, with a custom theme, roundbox (evening).

Anyway, I have some very basic ACL setup where @all and @user are limited to read, and I have a group @editors that has edit privileges.

I have a singular namespace, data, that only editors should be able to see, and this works, but @all and @user can still SEE it in the contents list. 

Everything I've read suggests that this should be working (and that people who don't have read access to that namespace can't see it in the namespace list).  However, they CAN see it, although no pages show up under it.

Am I doing something wrong, or is it supposed to work this way?

--Daulken
This is what someone who's @user or @all sees:
[Image: http://www.shootonsite.net/issue2.jpg]

Here is how the ACL is setup:
[Image: http://www.shootonsite.net/issue1.jpg]
This post was edited on 2015-04-01, 21:15 by Daulken.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-20, 01:19:15 (UTC +01:00)