User Tools

Site Tools


tech:software_dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech:software_dokuwiki [2018/02/10 20:15]
reb
tech:software_dokuwiki [2018/02/12 21:49] (current)
reb
Line 13: Line 13:
 . .
  
-Jill wants a subtle **tiling background image** for her entire website. She isn't sure why DokuWiki doesn'​t ​nativly ​support this. The "​Loadskin Plugin"​ and "​wallpaper Template"​ are great but a bit overkill for this. So the code she found is…. To be updated.\\+
 + 
 +Jack wants to **change the header logo and background color**. He made a cool logo in Windows Paint, roughly 80 pixels by 80 pixels but it doesn'​t matter, and saved it. DokuWiki only allows the file name to be Logo.PNG. At his site he clicks Media Manager below the search box, and then clicks the Wiki area. Then goes to upload and ensures Overwrite is checked. Eventually he got fancy and used Photoshop to make the border of his logo transparent,​ then Exported as a low-color PNG. Then went to DokuWiki'​s Admin area to change the background color to a festive neon green. 
 + 
 +
 + 
 +Jill wants a subtle **tiling background image** for her entire website. She isn't sure why DokuWiki doesn'​t ​natively ​support this. The "​Loadskin Plugin"​ and "​wallpaper Template"​ are great but a bit overkill for this. So the code she found is…. To be updated.\\
 .\\ .\\
 Jill uses the default template (visual theme) but does have a little custom code. When she updates DokuWiki, her code disappears. But she's prepared, she has the code on her flashdrive, in a notepad document. Jill uses the default template (visual theme) but does have a little custom code. When she updates DokuWiki, her code disappears. But she's prepared, she has the code on her flashdrive, in a notepad document.
Line 19: Line 25:
 . .
  
-Jack created an **internal link** to one of his pages, which is a link to a page on his own DokuWiki. To link to his page about comedy, he types this, without spaces in the brackets:+Jack created an **internal link** to one of his pages, which is a link to a page on his own DokuWiki. To link to his page about comedy, he types this:
  
-[ [humor] ]+<​nowiki> ​[[humor|]] </​nowiki>​
  
 And to link to his page called Asian Humor, which is a subpage of his Humor page, he types this without spaces in the brackets, and using an _ instead of spaces in the page name: And to link to his page called Asian Humor, which is a subpage of his Humor page, he types this without spaces in the brackets, and using an _ instead of spaces in the page name:
  
-[ [humor:​Asian_Humor ] ]+<​nowiki> ​[[humor:​Asian_Humor ​|]] </​nowiki>​
  
 If the page doesn'​t already exist, it will be created when the link is clicked and he edits the freshly created page. Until the page is edited, the link shows up in red color. So Jack writes a list of the 20 new pages he wants to make, and makes them simply by clicking the links. If the page doesn'​t already exist, it will be created when the link is clicked and he edits the freshly created page. Until the page is edited, the link shows up in red color. So Jack writes a list of the 20 new pages he wants to make, and makes them simply by clicking the links.
Line 35: Line 41:
 . .
  
-**Indents**. Jack wanted an indented line, so he can use CKEdit Plugin, or he can type > at the start of every line. Typing two of these, indents the line further. As you can see below, you can make text deeply indented. This method places a grey stripe on the left. As seen here;\\+**Indents**. Jack wanted an indented line, so he can use CKEdit Plugin, or he can type > at the start of every line. Typing two of these, indents the line further. As you can see below, you can make text deeply indented. This method places a grey stripe on the left. As seen here; 
 +<​code>>​The>>​cat 
 +>>>​in 
 +>>>>​the 
 +>>>>>​hat 
 +>>>>>>​rules. 
 +</​code>​ 
 + 
 +becomes 
 >The >The
 >>cat >>cat
Line 45: Line 60:
 . .
  
-Jack wants to edit a text file in his hosting account, to add a little custom code. So he logs into JillHostingCompany ​and clicks Hosting, then Manage Hosting, then CPANEL, then File Manager, and ensures ShowHiddenFiles is enabled.+Jack wants to **edit a text file in his hosting account**, to add a little custom code. So he logs into his Hosting Company (for me it's GoDaddy) ​and clicks Hosting, then Manage Hosting, then CPANEL, then File Manager, and ensures ShowHiddenFiles is enabled. If it asks what folder to show, select DokuWiki instead of Root.
  
 . .
Line 57: Line 72:
 Jack found out that if he wants to be email notified of new comments, especially screened "​moderated"​ comments, he needs to input his DokuWiki username into the Moderator Group box. He can see all comments on one page by going to his Admin page. Jack found out that if he wants to be email notified of new comments, especially screened "​moderated"​ comments, he needs to input his DokuWiki username into the Moderator Group box. He can see all comments on one page by going to his Admin page.
  
-And on a private administration page, Jack can view all comments of all pages by adding the following to a page, with no spaces, //but taking notice that he may need to install "​Pagelist Plugin":​ //+And on a private administration page, Jack can view all comments of all pages by adding the following to a page, //but taking notice that he may need to install "​Pagelist Plugin":​ //
  
-{ {threads>​*} }+<​nowiki> ​{{threads>​*}} ​</​nowiki>​
  
 . .
Line 81: Line 96:
 * **Hot Linking an Image from another Website**. Jill displays a photo from another website she owns, by using this code (with no spaces). She knows not to link to images she doesn'​t own, because someone has to pay the hosting for those images. This code can embed images of gif, jpg, png; or video of webm, ovg, mp4; or audio of ogg, mp3, wav, swf. From any internet source. * **Hot Linking an Image from another Website**. Jill displays a photo from another website she owns, by using this code (with no spaces). She knows not to link to images she doesn'​t own, because someone has to pay the hosting for those images. This code can embed images of gif, jpg, png; or video of webm, ovg, mp4; or audio of ogg, mp3, wav, swf. From any internet source.
  
-{{  :tech:html1.jpg?​nolink&​292x16 ​ |html for displaying images from any source}}.+<​nowiki>​ [[http://​php.net|{{wiki:dokuwiki-128.png}}]] </​nowiki>​
  
-* **YouTube or Embed HTML using iFrames**. Jill uses too many plugins, she just wants to show a YouTube cat video. Why isn't this a normal feature? No one knows. This is easy as long as she's the only user on her website, because this method can be taken advantage of by bad users. Using iFrames, you can embed whatever video or website (sadly even a dangerious ​one) onto your DokuWiki. Set your DokuWiki settings to allow iFrames, by going to Admin, then Configuration Settings, then click Editing in the TableOfContents,​ and check "Allow Embedded HTML", then click Save at the bottom of the page. Now on any page, use the following code. Replace //​c29XPAVy65o//​ with the similar number located in the address of your desired YouTube video. DokuWiki requires the HTML part to be there, so don't delete that…+
 + 
 +* **YouTube or Embed HTML using iFrames**. Jill uses too many plugins, she just wants to show a YouTube cat video. Why isn't this a normal feature? No one knows. This is easy as long as she's the only user on her website, because this method can be taken advantage of by bad users. Using iFrames, you can embed whatever video or website (sadly even a dangerous ​one) onto your DokuWiki. Set your DokuWiki settings to allow iFrames, by going to Admin, then Configuration Settings, then click Editing in the TableOfContents,​ and check "Allow Embedded HTML", then click Save at the bottom of the page. Now on any page, use the following code. Replace //​c29XPAVy65o//​ with the similar number located in the address of your desired YouTube video. DokuWiki requires the HTML part to be there, so don't delete that…
  
 {{  :​tech:​html-for-youtube.png?​nolink&​1005x36 ​ |HTML Code for YouTube}}//​.//​ {{  :​tech:​html-for-youtube.png?​nolink&​1005x36 ​ |HTML Code for YouTube}}//​.//​
  
-* Jill needs to display raw code without DokuWiki formatting it. She types the following, ​but only one c in the word code:+* Jill needs to **display raw code without DokuWiki formatting it**. She types the following
 + 
 +<​nowiki>​ <​code>​ Raw code pasted herewill retain Spaces and Enter, and show up in a grey box</code> </​nowiki>​ 
 + 
 +Or the following two methods remove when you pressed Enter on the keyboard: 
 + 
 +<​nowiki>​ <​nowiki>​ Raw code pasted here </​nowiki>​ </​nowiki>​
  
-<ccodeRaw code pasted here </ccode>+<nowikiOr simply type %% at the start and end of your code, but it will be converted to NoWiki. ​</nowiki>
  
 . .
tech/software_dokuwiki.1518293744.txt.gz · Last modified: 2018/02/10 20:15 by reb