Not logged in. · Lost password · Register
Page:  1  2  3  next 

All posts by mekineer (33)

topic: feed.php blank page  in the forum: General Help and Support Features and Functionality
Avatar
mekineer #1
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: feed.php blank page
My feed page isn't working.  I just have a blank white page.

Also, and perhaps more importantly, I'm using a plugin called log404 https://www.dokuwiki.org/plugin:log404
When I pull up the page for log404, from the admin page, I am forwarded to destinyfernandi.com, which forwards me to speakwithjohns.com, which I think pretends to be some robot captcha.

Update: I solved the issue of forwarding to destinyfernandi.com, but deleting log404.csv.  Apparently, it is a weakness of the log404 plugin.

feed.php still isn't working.
This post was edited on 2020-02-17, 05:35 by mekineer.
topic: Configuration:Useheading while IndexMenu shows Namespace  in the forum: General Help and Support Plugins
Avatar
mekineer #2
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68252
I'm trying to change the code for the IndexMenu plugin.

So far, in syntax/indexmenu.php, I have removed the following code:

            if($conf['useheading'] == 1 || $conf['useheading'] === 'navigation') {
                $title = p_get_first_heading($id, FALSE);
            }

And have shortened the following function:

    private function _getTitle($ns, $headpage, &$hns) {
        global $conf;
        $hns   = false;
        $title = noNS($ns);
        return $title;
    }

For me, IndexMenu continues as if I had not made any changes... the useheading option still results in the title being used instead of the namespace.


For Dokuwiki, I tried removing the following code in inc/common.php:

        $title = p_get_first_heading($ID, METADATA_RENDER_USING_SIMPLE_CACHE);

Removed from the following section of code:

    // page names
    $name = noNSorNS($ID);
    if(useHeading('navigation')) {
        // get page title
        $title = p_get_first_heading($ID, METADATA_RENDER_USING_SIMPLE_CACHE);
        if($title) {
            $name = $title;
        }
    }

However, still no change in behavior.
This post was edited 2 times, last on 2020-02-05, 16:53 by mekineer.
topic: Configuration:Useheading while IndexMenu shows Namespace  in the forum: General Help and Support Plugins
Avatar
mekineer #3
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68228
I edited the first post for clarity
topic: Configuration:Useheading while IndexMenu shows Namespace  in the forum: General Help and Support Plugins
Avatar
mekineer #4
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: Configuration:Useheading while IndexMenu shows Namespace
I would like the page titles, the ones that show up in the tab of a web browser, to be assigned by the first heading of the page.  I would also like IndexMenu to show the menu using the namespaces.  If I enable the UseHeading option, then IndexMenu shows the title instead of the namespace.

Is this possible for IndexMenu to show the namespace despite the UseHeading option, and how?  I try to read the IndexMenu instructions, and I can't understand anything.
This post was edited on 2020-01-30, 00:20 by mekineer.
topic: Citations in CSE/APA/MLA style with corresponding footnotes  in the forum: General Help and Support Features and Functionality
Avatar
mekineer #5
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: Citations in CSE/APA/MLA style with corresponding footnotes
I like the footnotes feature, but I was wondering if instead of having the footnote be referenced as a number, we can have an inline reference such as: (Doe et al 2018).

If not in the default syntax, is there a plugin?
topic: delimiter for acronym file  in the forum: General Help and Support Syntax and Usage
Avatar
mekineer #6
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67026
I prefer the internal acronym function over the Explain plugin, for the following reasons:

I like the acronym style of the underlining.
I like the acronym style of tooltip.
I don't want an internal or external link.
I don't want the tooltip plugin, because I want the definition to be wiki-wide.

Basically, I want to change the acronym file delimiter from a whitespace to 4 whitespaces.  That is all.

So help me God, I'll use underscores for multi-word terms if I have to.
topic: delimiter for acronym file  in the forum: General Help and Support Syntax and Usage
Avatar
mekineer #7
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: delimiter for acronym file
Continuation of thread: https://forum.dokuwiki.org/thread/12967
Since some people are touchy about continuing an old thread.

Maybe there is a way to change the delimiter in acronyms.conf from a whitespace to something else, like 4 whitespaces.

Can someone who can read PHP see if the delimiter is in parser.php in this section:

class Doku_Parser_Mode_acronym extends Doku_Parser_Mode {
    // A list
    var $acronyms = array();
    var $pattern = '';

    function __construct($acronyms) {
        usort($acronyms,array($this,'_compare'));
        $this->acronyms = $acronyms;
    }

    function preConnect() {
        if(!count($this->acronyms)) return;

        $bound = '[\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]';
        $acronyms = array_map('Doku_Lexer_Escape',$this->acronyms);
        $this->pattern = '(?<=^|'.$bound.')(?:'.join('|',$acronyms).')(?='.$bound.')';
    }

    function connectTo($mode) {
        if(!count($this->acronyms)) return;

        if ( strlen($this->pattern) > 0 ) {
            $this->Lexer->addSpecialPattern($this->pattern,$mode,'acronym');
        }
    }

    function getSort() {
        return 240;
    }

    /**
     * sort callback to order by string length descending
     */
    function _compare($a,$b) {
        $a_len = strlen($a);
        $b_len = strlen($b);
        if ($a_len > $b_len) {
            return -1;
        } else if ($a_len < $b_len) {
            return 1;
        }

        return 0;
    }
}

Or maybe this section of xhtml.php:

    function acronym($acronym) {

        if(array_key_exists($acronym, $this->acronyms)) {

            $title = $this->_xmlEntities($this->acronyms[$acronym]);

            $this->doc .= '<abbr title="'.$title
                .'">'.$this->_xmlEntities($acronym).'</abbr>';

        } else {
            $this->doc .= $this->_xmlEntities($acronym);
        }
    }
topic: Ajax.php under attack?  in the forum: General Help and Support General Stuff
Avatar
mekineer #8
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
Subject: Ajax.php under attack?
Awstats is telling me that some
Unknown robot identified by bot\*
is hitting my site 25K times this month.  I guess mainly going after my ajax.php file.  Any ideas?

[Image: http://mekineer.com/ajax.jpg]
topic: public subscription  in the forum: General Help and Support Features and Functionality
Avatar
mekineer #9
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66385
I am looking at the alternative of using RSS, but it looks like you can't subscribe to a single page.  But, apparently, you can subscribe to a namespace:
http://example.com/dokuwiki/feed.…?mode=list&ns=name…

Is there an automated way of including an RSS feed link at the top or bottom of every page in the wiki, referencing its own namespace?
topic: *.indexed files  in the forum: General Help and Support Features and Functionality
Avatar
mekineer #10
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66388
Yeah, thanks Andi.  Looks like everything is ok.
topic: URL rewrite for old link?  in the forum: General Help and Support Installation and Configuration
Avatar
mekineer #11
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66396
I would really like to substitute this, but it just doesn't work:
RewriteCond %{ENV:underscores} ^$
RewriteRule ^([^_]*)_+(.*)$ $1-$2  [QSD,N]
This post was edited on 2019-06-04, 13:01 by mekineer.
topic: URL rewrite for old link?  in the forum: General Help and Support Installation and Configuration
Avatar
mekineer #12
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66390

RewriteEngine on

RewriteBase /

RewriteRule ^dokuwiki/(.*)$ $1 [R=301,L]

RewriteCond %{QUERY_STRING} ^(id=)([^\:]*)\:(.*)$
RewriteRule $(.*)$ %2/%3 [E=underscores:Yes,QSD]

RewriteCond %{ENV:underscores} ^$
RewriteRule ".?" "-" [S=6]

RewriteRule ^(.*)_(.*)_(.*)_(.*)_(.*)_(.*)_(.*)$  $1-$2-$3-$4-$5-$6-$7 [QSD]
RewriteRule ^(.*)_(.*)_(.*)_(.*)_(.*)_(.*)$  $1-$2-$3-$4-$5-$6 [QSD]
RewriteRule ^(.*)_(.*)_(.*)_(.*)_(.*)$  $1-$2-$3-$4-$5 [QSD]
RewriteRule ^(.*)_(.*)_(.*)_(.*)$  $1-$2-$3-$4 [QSD]
RewriteRule ^(.*)_(.*)_(.*)$  $1-$2-$3 [QSD]
RewriteRule ^(.*)_(.*)$  $1-$2 [QSD]

RewriteCond %{HTTP_HOST} ^mekineer\.nerdondemand\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC,OR]
RewriteCond %{https} off [OR]
RewriteCond %{ENV:underscores} ^Yes$
RewriteRule (.*) https://mekineer\.com/$1 [R=301,L]
This post was edited on 2019-06-04, 12:47 by mekineer.
topic: URL rewrite for old link?  in the forum: General Help and Support Installation and Configuration
Avatar
mekineer #13
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66341
RewriteCond %{REQUEST_URI} ^data/pages/(.*)$
RewriteRule  .?  -  [S=6]

This condition was never going to be met, so the underscore removal section would always happen.  I got around the worst of it by using (_?.+), but the underlying problem is still there.
This post was edited on 2019-06-04, 09:23 by mekineer.
topic: Invisible History Comparison View due to Font Color  in the forum: General Help and Support Installation and Configuration
Avatar
mekineer #14
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 61791
I'm using the adoradark theme.  I found the color references in the style sheet:
...\lib\tpl\adoradark\css\_diff.css
topic: *.indexed files  in the forum: General Help and Support Features and Functionality
Avatar
mekineer #15
Member since Mar 2018 · 33 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 66370
I usually wouldn't mess with these files, but I was in the process of mass renaming pages of_this_variety to-this-variety (substituting underscores for hyphens).  So I kept some of the history I wanted in the attic, and mostly threw out anything else to start over.  I took an educated guess at what was important to keep.  In the data folder I:

deleted folders 0-f in the cache
deleted the index files
deleted the locks
deleted media attic
deleted media meta

In the meta folder, I renamed my_underscored_files to hyphenated-files.  I used batch replacement of underscores to hyphens for the inner contents of the *.changes files.  Lastly I deleted the *.indexed files.  Maybe some of the *.meta still contain mistaken references to the underscored files, but I couldn't do a simple batch job of underscore_replacement because there are some programmatic underscores like "last_change".

Everything appears to be working, but there could be some consequences I'm not aware of, which would be nice to hear about before they happen and I don't know what's going on.
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3  next 
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-02-17, 07:27:45 (UTC +01:00)