Translations of this page?:

vector for DokuWiki - Discussions

Back to main page "vector for DokuWiki"

There's always room for improvement. If you're able to add any contributions to make vector for DokuWiki better, please let me know or discuss your thoughts right here (preferred).

Rules and notes:

  • Please use ==== Level 3 Headlines ==== to open a new “thread”/issue.
  • Leave enough free lines to the other topics to keep the source readable.
  • Take care if you add your topic below “Bugs”, “Additions and ideas” or “Other”.
  • :!: Make sure, you got the latest template version. Maybe your wish and/or problem is already added/fixed.
  • Before you add something: check the roadmap if your feature is already planned/in development.
  • I read the bug reports in here. So don't be afraid, I do not ignore the reported stuff (even if I may not got enough time to answer here)!
    AndreasAndreas

    Horb a. N. / Karlsruhe, Germany
    2011/05/02 05:25

Questions

Disable Logout button

The Logout button is shown even when the 'logout' action is disabled ($conf['disableactions']='logout'). If clicked it shows a “Command disabled: logout” message.

To disable that button I edited vector/main.php (line 666), adding the following condition:

 if (actionOK("logout")) ...

Sorse, 2012/04/25

vector/user ignored

I have a current version dokuwiki site http://wiki.mca.org.tw. I switched from monobook to vector theme and copied a couple of changes from monobook/user to vector/user. I changed screen.css and added logo.png. Both are ignored. They weren't ignored for the monobook theme but are in vector. Is this a bug or am I missing something.

Thanks, dwightjdwightj

2012/03/31 05:06

Moving Search box to top of left panel

The title says what I'd like to do. I have looked in main.php and found the renderBoxes() functions. It uses an array of boxes to render navigation, search box and toolbox in the left side, per default, in that order. I'd like the search box moved to the top, so I thought to look in user/boxes.php to re-order the boxes, but everything is commented out in that file. I don't even find the navigation or search boxes in there. If I could find where the search box is defined the in monobook_boxes array, I would be able to make a change to the renderBoxes() function to show the search box at the top, but I can't figure out what the “xhtml” element is for the search box. - Martin, 19/03/2012

Using Tab as wrapper

Idea is quite simple - we got a forum and the wiki. For each wiki article we got a forum discussion (at the moment linked at article bottom). Tried a lot - but as i can't program at all found no solution sadly. Is it possible to create a tab, which loads a specified forum thread?? So that i got the article - and when clicking on the discussion tab i see the wrapped forum thread?? Thank for your template Basir 11/28/2011

Don't show Login for unregistered

First thanks for a great template. When i'm logged out (navigation activated) there are to login fields/links shown: one in the navigation bar and one on top. How can i disable them so they don't appear?? Instead i want the login on a deeper Level page (like wiki:join) - so that the normal reader doesn't see that. I want that because in the community it is used for there are a lot of people that think they need to be registered to read - so we got a lot of none used accounts - which we don't want. regars Ted /27.11.2011

Is it possible to hide the Article tab when the Discussion tab is disabled?

If you do not have the Discussion feature and tab enabled, you'll have one tab on the left labeled Article and one tab on the right labeled Read, but they both do the same thing. The Article tab is useful when switching back and forth between the discussion and article, but redundant when there is no Discussion tab. Is it possible to remove the Article tab when the Discussion feature is disabled? — J.C. 2011/10/09

[solved] Making the Sidebar wider?

Is it possible to make the Sidebar a bit wider? My Navigation Tree is really large, that makes the Usage really uncomfortable. Oliver 07/10/2011

I created a snippet for /vector/user/screen.css (see ”Customizing” for details): Wider sidebar / more space for left column. Hope that helps :-)AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/09 10:24
I just tried this (latest version 2011-12-10 with angua), and whilst it widens the sidebar ok, it des not shrink the main part. So the sidebar overlaps with the main content. I had a look at the screen.css, but couldn't easily see how to fix this. Is there a setting missing in your code snippet linked to above? (Thanks for a great template by the way! :-) ) jonb 22/04/2011

[solved] How do I set up user home pages, and how do they work?

I checked off the “Use User pages” option under the Vector Template Settings, and the namespace is set to ':wiki:user:'. I tried creating wiki:user:<username>, and wiki:user:<username>:start. If I click on the wiki's main icon (top left), I still see the normal home page. – Mark 2011/9/6
A: If user home pages are turned on, the user's name will appear near the upper-right corner of the screen. Click on that name to get to user:[username]. –Ziothzioth
Zioth

Thanks Zioth, now it makes sense that my username in the top-right corner was in red all this time! I didn't realize it was a link to a non-existing page, I thought it was just letting me know which user was logged in. – Mark 2011/12/13

User namespace instead of user page

I'm using the Vector and the Taratasy template, in the latter I found a feature I would like to see in the Vector template. User and discussion pages are configured in this way:

user:@USER@:
discussion:@ID@

This gives the opportunity to create user pages as start pages in a namespace for the respective user. In my opinion that would make among other things the acl setup easier. Would it be possible to change the configuration this way?

Thanks for a great template! — Arne PelkaArne
nlights

2011/09/18 22:22

Is it possible to add an "edit" button to the toolbox?

Lennylenehey

2011/09/19 17:26

Bugs

Newest version compressed on mobile devices

When using the newest version of vector (2011-12-10), my website does not render properly on mobile devices (tested on iPhone). Previous versions rendered the website on mobile devices the same as desktops, but the newest version has everything compressed, with the main body almost having an equal width as the sidebar, which causes the search field to cover up the tabs and run into the logo on the left and the main body of text to run in a very narrow area. This makes viewing my wiki rather difficult on mobile devices. I did a test with an older version of vector and everything looked fine with my current setup. — JC

Language box problem

There seems to be an issue with the language box (Translation plugin is installed) in different browsers:

  • Crome 17.0: it is not possible to click on the language name, only on the abbreviation. E.g. “English (en)” ⇒ if the cursor is over “English” it is not recognized as link (only ”(en)”).
  • IE 8.0: the languages are only shown as abbreviations, e.g. “en” or “de”. The language name isn't shown.

Probably the two issues are related …

Reto 2012/03/14 16:46

Template not working properly with Bureaucracy plugin

Same incompatibility is with monobook template. Textarea and constraint messages are not working. This issue is also descibed in Bureaucracy plugin's page. — Ciove 2010/08/18

Hi Ciove, I'll have a look at it. But please be patient, I'm really busy the next 2-3 weeks.
AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/08/21 19:34
Hello Andreas. Thank you for this, take your time, I'm in no hurry.
Ciove 2010/08/23

Hi Andreas, I've been trying your template with a Wiki I'm currently building and it looks like the work around you put in originally is no longer needed and is in fact breaking rendering in Firefox 3.6 and Opera 11. (though its working in IE 8. With that section in the CSS on and a select list followed by any other element on a bureaucracy form the drop down list is very hard to click as only a tiny area at the top is click able. Turn the work around off and it works fine. Playing arround I cant see any other issues with it turned off but I may have missed something. Thanks for the great template though —Tris 2011/03/25

Does VECTOR work with the WRAP plugin?

I installed the WRAP plugin (www.dokuwiki.org/plugin:wrap) which appears to work beautifully with the default template. Some features, e.g. columns, do not appear to work with VECTOR though. Is it me and my box or can anybody else confirm this behaviour? (f@lo/15.6.2011)

Can you provide an example link or DokuWiki markup? — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/02 22:53

Media-Manager JS-error

Dear Andreas, when using the latest version of Dokuwiki (2012-01-25 “Angua”) as well as the latest version of the vector template (2011-12-10), there is an JS-error when using the Media-Manager on the sidebar and p.e. deleting a file with it. The intended message which should show up never comes.

I think the following piece of code should be loaded in that case:

<div class="success">Die Datei "test-tube-waving-thumb10926401.jpg" wurde gelöscht.</div>

Firebug puts out the following error (Picture: http://s14.directupload.net/file/d/2810/yxqu5zx9_png.htm):

a.nodeName is undefined

Maybe you have an idea what the error is about, in the meantime I'll also try to fix it, gonna keep you posted.

Thank you in advance for your help and for your work in general. (-;

pmg_koesterpmg_koester

2012/02/27 08:08

Inter-Wiki-Links

using some config for InterWiki Links, I found that vector overwrites the Link-Icon with the rule:

div#content a[href^="https://"], .link-https { .... }

— Chris Jung

Additions and ideas

Media reference

It would be nice to have a reference in the detail view of an image which gives an overview where a file is used.

The data could be retrieved by:

media_inuse(tpl_img_getTag('IPTC.File.Name',$IMG)

returning an array with pages using this file.

Many thanks!

flamflam

Aachen
2012/03/11 10:42

Enlarge sidebar

Some users require to me the possibility of enlarge or restrict the size of sidebar. May it be possible to implement with a javascript function ?

For me the optimum may be a solution with a custom size of sidebar for any user with the size saved on browser cookies. Many thanks !!!

Alessandro Celli 2012/01/20 14:23

Add counter support

i just integrated bbclone as simple and easy user counter (since it needs no database). It can be integrated into doku.php - but an integration into vector template would be nice (tried - but didn't work for me). It's a nice addition to searchstats plugin. Would be great.

Sitemap in left sidebar

I really like this template but I'm stuck to dokubook template because I need the sitemap on the left to navigate efficiently in the wiki. There are some way to replace the navigation contents with sitemap? — John 2011/06/18 12:15 (GMT)

You may use the Indexmenu plugin for your navigation. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/09 10:27

Boxes collapsible

To get the boxes collapsible, like Wikipedia, I use this script (add it to user.js and active the option in the settings):

function ShowHide(panel, imgpath) {
  var pan = document.getElementById('pan_' + panel);
  if (pan.style.display == 'none') {
    pan.style.display = 'block';
    document['img_' + panel].src = imgpath + 'arrow-down.png';
  } else {
    pan.style.display = 'none';
    document['img_' + panel].src = imgpath + 'arrow-right.png';
  }
}

after, in the main.php, I have replaced the _vector_renderBoxes functions, with this:

function _vector_renderBoxes($arr) {
  //is there something useful?
  if (empty($arr) ||
      !is_array($arr)){
      return false; //nope, break operation
  }
  //array to store the created boxes into
  $boxes = array();
  //handle the box data
  $panel_img_path = DOKU_TPL."static/3rd/vector/";
  foreach($arr as $div_id => $contents){
      //basic check
      if (empty($contents) ||
          !is_array($contents) ||
          !isset($contents["xhtml"])){
          continue; //ignore invalid stuff and go on
      }

      $idpanel = hsc($div_id);
      $onclick = "ShowHide('".$idpanel."','".$panel_img_path."');";
      $interim  = "  <div id=\"".$idpanel."\" class=\"portal\" >\n";
      if (isset($contents["headline"])
          && $contents["headline"] !== ""){
          $interim .= '<h5><a href="javascript:void(0);" onClick="'.$onclick.'"><img src="'.$panel_img_path."arrow-down.png".'" border="0"  alt="+/-" width="16" height="16" name="img_'.$idpanel.'">';
          $interim .= hsc($contents["headline"])."";
          $interim .= "</a></h5>\n";
      }

      $interim .= "    <div class=\"body\">\n      <div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we might have to show rendered page content
           .'<div id="pan_'.$idpanel.'" style="display:block;z-index:2;" >'
                 .$contents["xhtml"]
                 ."\n      </div>\n    </div>\n"
                 ."  </div>";
      $interim .= "</div>\n";
      //store it
      $boxes[] = $interim;
  }
  //show everything created
  if (!empty($boxes)){
      echo  "\n";
      foreach ($boxes as $box){
          echo $box;
      }
      echo  "\n";
  }
  return true;
}

and I have put in the vector/static/3rd/vector folder, two images (arrow-down.png, arrow-right.png); finally, just some little modification to some CSS. See a demo here: http://www.pkuinfo.it

mluigi 2010/08/21 17:00

add the following to your user\screen.css
/*------------------ PANEL ----------------*/
div#panel {
	position: absolute;
	top: 160px;
	padding-top: 1em;
	width: 10em;
	left: 0;
}
div#panel div.portal {
	background-image: url(static/3rd/vector/portal-break.png);
	background-position:center bottom;
	background-repeat:no-repeat;
	margin: 11px 0px 11px 0px;
	padding-bottom: 0.25em 0 !important;
}
div#panel div.portal h5 {
	border:	medium none;
	color: #444444;
	cursor: default;
	font-size: 0.75em;
	font-weight: normal;
	padding: 0 0.25em 0.25em 0.8em;
	margin-bottom: 0.3em;
}
div#panel div.portal div.body {
	margin: 0;
	padding-top: 0.5em;
	margin-left: 1.25em;
	background-image: none;
	background-repeat: no-repeat;
	background-position: top left;
}
div#panel div.portal div.body ul {
	list-style: none;
	list-style-image: none;
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 0.6em;
}
div#panel div.portal div.body ul li {
	line-height: 1.125em;
	padding: 0;
	padding-bottom: 0.5em;
	margin: 0;
	overflow: hidden;
	font-size: 0.75em;
}
div#panel div.portal div.body ul li a,
div#panel div.portal div.body ul li a:visited {
	color: __extern__;
}
div#panel .body .dokuwiki .plugin_translation ul {
	list-style: none;
	list-style-image: none;
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 0.6em;
}
div#panel .body .dokuwiki .plugin_translation ul li{
	line-height: 1.125em;
	padding: 0;
	padding-bottom: 0.5em;
	margin: 0;
	overflow: hidden;
	font-size: 0.75em;
}
 
div#panel .body .dokuwiki .plugin_translation ul li a.wikilink1,
div#panel .body .dokuwiki .plugin_translation ul li a.wikilink1:visited{
  color: __extern__ !important;
}
 
	div#panel div.portal {
		padding-bottom: 0.25em;
	}
 
div.portal h5 a{
	color: #444444;
	text-decoration:none;
	background:none repeat scroll 0 0 transparent;
	}


Both arrows:
arrow-right FIXME
arrow down FIXME
I also included the handling of the translation part, so they render the same
Theo 2010/08/23 13:38

also, if i'm not mistaken, in the source code of mediawiki's vector skin, there are two js files that handle the collapse (both the smooth folding and the cookie); CollapsibleNav and CollapsibleTabs
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/UsabilityInitiative/Vector/Modules/
I do not (yet) really understand how they could be implemented so they work for Dokuwiki; but both should be possible I believe.. it would look cool anyway :-)
Theo 2010/08/23 13:45

Howto: Add box per namespace

When a namespace contains the page 'sidebar' an extra box is shown in the sidebar. It respects acl for the sidebar-page.

Add the next code to vector/user/boxes.phpKlap-in 2010/11/11 13:13

if (empty($conf["useacl"]) ||
    auth_quickaclcheck(cleanID(tpl_getConf("vector_navigation_location"))) >= AUTH_READ){ //current user got access?
    //get the rendered content of the defined wiki article to use as custom namespace navigation
    $interim = tpl_include_page(getNS(cleanID(getID())).":sidebar", false);
    if ($interim === "" ||
        $interim === false){
        //creation/edit link if the defined page got no content
        $_vector_boxes["p-nsnavigation"]["xhtml"] = html_wikilink(getNS(cleanID(getID())).":sidebar","sidebar");
    }else{
        //headline
        $_vector_boxes["p-nsnavigation"]["headline"] = "Namespace navigation";
	//the rendered page content
        $_vector_boxes["p-nsnavigation"]["xhtml"] = $interim;
    }
}

Discussion plugin in discussion tabs

Hi! Firstly thank you very much for this template! Its great, but I wanted to add some additional functionality to it:
is it possible to make somehow that after clicking on discussion tab i will see automatically created page with discussion plugin enabled?

Make logo viewable in Facebook and other websites' links

Right now, if you link your website to, say your Facebook page, you'd normally get an option to show a graphic from the link to represent the website. But since the logo in the vector template is a background image, it is not acknowledged. Is there a way for the logo to show up in these kinds of links?

Facebook can use metatags: http://davidwalsh.name/facebook-meta-tags
    <meta property="og:image" content="http://site.org/layout/brand.jpg" />
    <meta property="og:title" content="My Wiki | Your content" /> 
    ... also og:url and og:locale

Maybe it would be nicer to implement a user/header file. That should be part of the user extension. Its possible to write the code with JS and DOM manipulation, but thats ugly…

Collapsable namespace boxes without editting core code

Klap-in added per-namespace boxes. mluigi wrote a sample for collapsable boxes, but it requires editting core code. Here's a sample that:

  • Shows sidebars from the current namespace and every parent namespace.
  • Collapses all but the most relevant namespace.
  • Makes sidebars expandable and collapsable without modifying core code.

Sidebars are wiki pages in namespace:sidebar. Instead of using the heading code built into vector, you have to put an h3 tag (header with four = signs) into your sidebar wiki.

user/screen.css
div#panel div.portal {
        background-image: url(static/3rd/vector/portal-break.png);
        background-position:center bottom;
        background-repeat:no-repeat;
        padding-bottom: 1em;
}
div#panel div.portal div.body {
        background-image: none;
        background-repeat: no-repeat;
        background-position: top left;
}
div#panel div.portal h3 {
        margin-left: -15px;
        cursor: default;
}
user/user.js
function vector_showHideBox(panel, imgpath) {
  var pan = document.getElementById(panel);
  if (pan.style.display == 'none') {
    pan.style.display = 'block';
    document.getElementById('img_' + panel).src = imgpath + 'arrow-down.png';
  } else {
    pan.style.display = 'none';
    document.getElementById('img_' + panel).src = imgpath + 'arrow-right.png';
  }
}
user/boxes.php
$id = cleanID(getId());
$curPage = getNS($id).':sidebar';
$parts = explode(':', getNS($id));
$ns = '';
$idx=0;
foreach ($parts as $part)
{
        $ns = $ns ? "$ns:$part" : $part;
        $nsPage = "$ns:sidebar";
        showNsBox($_vector_boxes, $nsPage, "p-nszioth$idx", DOKU_TPL."user/", $curPage == $nsPage);
        $idx++;
}
 
function showNsBox(&$boxes, $sidebarPage, $boxname, $panel_img_path, $expand)
{
        global $_vector_boxes;
        global $conf;
 
        if (empty($conf['useacl']) || auth_quickaclcheck($sidebarPage) >= AUTH_READ)
        {
                $pg = tpl_include_page($sidebarPage, false);
                if ($pg)
                {
                        $id = $boxname . '_id';
                        $pg = preg_replace('/<h3([^>]*)>(.+?)<\/h3>/',
                                "<h3$1 onclick=\"vector_showHideBox('$id', '$panel_img_path')\">" .
                                "<img src=\"$panel_img_path" . ($expand ? 'arrow-down.png' : 'arrow-right.png') . "\" border=\"0\"  alt=\"+/-\" width=\"16\" height=\"16\" id=\"img_$id\"/>$2</h3>" .
                                "<div id=\"$id\"" . ($expand ? '' : 'style="display:none"') .  ">",
                        $pg) . '</div>';
 
                        $boxes[$boxname]['xhtml'] = $pg;
                }
        }
}

Also put the arrows (you can grab them from any wikipedia page) into the user directory. Call them arrow-right.png and arrow-down.png.

Sample wiki with sidebar:

myns:sidebar
==== My Namespace ====
{{indexmenu>myns#1|js|nons}}
myns:ons:sidebar
==== Other Namespace ====
{{indexmenu>myns:ons#1|js|nons}}
myns:ons:yons:sidebar
==== Yet another Namespace ====
{{indexmenu>myns:ons:yons#1|js|nons}}

If you go to a page in the myns:ons:yons namespace, you'll see a sidebar containing a collapsed “My Namespace” and “Other Namespace,” and an expanded “Yet another Namespace” header with all the pages in :yons listed by title.

Ziothzioth
Zioth

2011/07/29 15:00

Move talk page to <pagename:talk>

Dear Andreas,

I'm currently looking for a possibilty to attach the “talk”/discussion pages to the sitename, like <pagename:talk>. Background is the implementation of ACL for the talk pages, which isn't easy if the discussion pages are put under the namespace “talk:”.

Maybe you have an idea how to implement that without major changes, or any other way to get the ACL into the talk pages.

Kind regards — pmg_koesterpmg_koester

2012/02/27 12:02

Other

[tip] Attention with MSIE8 on intranet: compability view

When using the vector template for internal usage, intranet, check your MSIE8!

In the 'compability view options' by default the intranetsite are rendered with compability view, this can result in small errors when rendering for example the translations box in the vector template. Improve your view on the Vector template by disabling this compability view for intranet.

How to insert a new tab (named "Idee") that creates a blank page, like the discussion site?

Please help sven52@gmx.de

Many thanks in advance.

Hi Sven,
I've taken the liberty to move this to discussion.
Do you want to create a tab to a static page, or really dynamic like with the talk pages?
If dynamic, you could try this in user/tabs.php
$_vector_tabs_left["ca-idee"]["text"] = $lang["vector_idee"];
$_vector_tabs_left["ca-idee"]["wiki"]  = ":idee:".getID();


If static (again the user/tabs.php)

$_vector_tabs_left["ca-idee"]["text"] = $lang["vector_idee"];
$_vector_tabs_left["ca-idee"]["wiki"]  = ":idee";


Keep in mind you still need to add vector_idee to the lang.php, for example

$lang["vector_idee"] = "Idee";


Theo-KTheo-K

Emmen, Nederland
2010/11/08 09:33

Many thanks for your help. I´ve tried it, but doesn´t work. Perhaps someone will try it http://www.brainwerk.de/wiki/doku.php
As I stated;

If dynamic, you could try this in user/tabs.php (website\lib\tpl\vector\user\tabs.php)

$_vector_tabs_left["ca-idee"]["text"] = $lang["vector_idee"]; 
$_vector_tabs_left["ca-idee"]["wiki"]  = ":idee:".getID();
Make sure the “ca-idee” is named in a unique way, if you keep it on “ca-talk” or something, it will not work..
If nothing is shown, check if you edited the lang.php. (for example website\lib\tpl\vector\lang\en\lang.php) If there is no language string the tab might not show..
I tested it on my own wiki, and it works for me, so hopefully it will for you as well
Good luck — Theo-KTheo-K

Emmen, Nederland
2010/11/25 10:37

Can we have the tip for

How to insert a new box(named "Idee"?

-James

Headline Sizes

I'm not sue if this is a bug or an intentional design, but the sizes of headlines for this template are different than the default sizes. The sizes of a Level 1 and a Level 2 headline are very close and it is difficult to see much difference between them. — JC

You can always change the headlines in user\screen.css, the following example is how I use it myself, but alter it any way you want, just a matter of testing.
/* headlines */
div#bodyContent.dokuwiki h1,
div#bodyContent.dokuwiki h2,
div#bodyContent.dokuwiki h3,
div#bodyContent.dokuwiki h4,
div#bodyContent.dokuwiki h5,
div#bodyContent.dokuwiki h6 {
  border-bottom: 1px solid #aaa;
  color: __text__;
  margin: 0;
  padding-bottom: 0.17em;
  padding-top: 0.5em;
  font-weight: normal;
}
div#bodyContent.dokuwiki h1{ 
  margin-bottom:0.6em;
  font-size: 188%; /** or simply make it bigger, like 200% **/
}
div#bodyContent.dokuwiki h2, 
div#bodyContent.dokuwiki h3,
div#bodyContent.dokuwiki h4,
div#bodyContent.dokuwiki h5,
div#bodyContent.dokuwiki h6 {
  font-weight: bold;
  border-bottom: none;
  margin-bottom: 0.17em;
}
div#bodyContent.dokuwiki h2{ 
	font-size: 132%;
	font-style: italic;
}
div#bodyContent.dokuwiki h3 {
  font-size: 120%;
}
div#bodyContent.dokuwiki h4 {
  font-size: 120%;
  font-weight: normal;
  font-style: italic;
}
div#bodyContent.dokuwiki h5 {
  font-size: 100%;
  font-weight: normal;
  font-style: italic;
}
div#bodyContent.dokuwiki h6 {
  font-size: 80%;
}


Good luck
Theo
ps. note that this can also be done in the user\print.css, if you want your prints look like on-screen mark up ;-)

The original behaviour is not a bug, it is just like vector for MediaWiki behaves. On a normal wiki, there should only be one <h1> (=first headline of the page) for semantic reasons (this rule also applies to Wikipedia). Therefore the <h2> looks relatively similar. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/02 05:59

Font-Size

I find the size of the text for this theme rather small, how can this be increased via css? — tigger10tigger10

2011/08/04 11:47

Found it: body { font-size: 100%; }

Change font-size value and and add to vector/user/screen.css — tigger10tigger10

2011/08/04 12:28

Making custom tabs only visible to users in certain membergroup

I've followed the instructions for custom dynamic tabs and they seem to be working fine. However, I want to have the custom tab only visible to users of a certain membergroup in the ACL rather than simply all users or all logged-in users. (The namespace of the dynamic pages is already locked down with ACL, but the tab remains visible for anyone to see and click.) Advice appreciated! — Swan 2010/12/28 10:52

Backroung Image not full screen (Monobook + Rincewind)

Hello Andreas,

I have a background image that used to repeat-y and filled the whole screen with previous Anteater. But since Rincewind the repeat fill in only a part of the screen in y - just like it is forced to fit in a div which include the globalwraper.

Some of my pages are now showing ugly and I will be very grateful if you can give me an idea on how to fix this.

Regards — Phidele 201/08/08

Old discussion (archive)

Things which are done… topics below may be deleted some day. See the sections above for actual talks.

Bugs

[fixed] Dialogbox errors with Angua RC1

  • In the editor: Inserting internal links (via button) opens dialog-boxes, one of them nonfunctional and nonclosable
  • In the editor: Inserting images (via button) breaks s.th. in the upload-interface, buttons vanish. Upload works, but no refresh

busy_one 2011/11/15

Update for the coming final of Angua is in development, stay tuned (there is a lot to do). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/11/17 00:06

Thanks for your efforts to update it! Very much apreciated. — CantelloCantello

Lüneburg, Germany
2011/11/17 09:15
Please upgrade to version 2011-11-29. The multiple internal links dialog-boxes is a DokuWiki bug (fixed in development version, therefore it will work with the final Angua release). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/02 22:40

[solved] Mediamanager popup broken

The mediamanger popup in the Editor shows the whole wiki-frame, not just the mediamanager parts, as it should.

This is probably due to the hack, that makes dokuwiki render the whole frame when calling the mediamanager – see mediamanager.php, inc_mediamanager.php – which is nice and absolutely fine for the link in the toolbox, but not for the popup in the editor.

Maybe the behaviour of mediamanager.php should depend on a GET option for the display, defaulting to the popup if absent. Something like, say, ?display=inline|popup.

bjoernXbjoernX

2011/04/27 19:10

Alright, simple fix: in main.php line 500 – reuse the css display=none wizardry ;-).

              //add additional CSS class to hide some elements when
              //we have to show the (not) embedded mediamanager
              if ($vector_action === "mediamanager" &&
-                  !tpl_getConf("vector_mediamanager_embedded")){
+                  (!tpl_getConf("vector_mediamanager_embedded") || $_GET["display"] !== "embedded")){
                  echo "mmanagernotembedded ";
              } ?>skin-vector">

So

http://localhost/dokuwiki/lib/exe/mediamanager.php?ns=wiki&display=embedded

will show the mediamanager embedded, as-a-page.

For the toolbox button conf/boxes ”&display=embedded” needs to be added in line 154:

$_vector_boxes["p-tb"]["xhtml"] .= "        <li id=\"t-upload\"><a href=\"".DOKU_BASE."lib/exe/mediamanager.php?ns=".getNS(getID())."&display=embedded"."\" rel=\"nofollow\">".hsc($lang["vector_toolbxdef_upload"])."</a></li>\n";

Actually I started with a if/else switch in mediamanager.php (with the popup-mediamanger block pasted from the default-template) – which worked fine except for the missing css-styles (100% font size) – before I realized, it's all there already. :-)

Maybe it would even be a cleaner thing not to trick main.php into rendering mediamanger, and handle everything mediamanager in one place. Mediamanger could also be a normal page (or like a macro on page, like the ~~MEDIAMANAGER~~). Also, display=popup could be an (GET) option for all pages. Just an idea. — bjoernXbjoernX

2011/04/27 21:32

> There is a config option since the first release. Have a look at $lang[“vector_mediamanager_embedded”]/“Display mediamanger embedded within the common layout?”. Isn't it sufficient to change the global behavior? Mhh.. I think about your suggestion. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/02 06:19

Mhh… I implemented a comparable solution, but it does not work with MSIE based browsers. They are relaoding the complete mediamanager when clicking on a link within the media tree, therefore they are loosing the additional get parameter. This is sad, cause I don't want to change the general behaviour for alle MSIE users out there :-(AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/04 18:50
Hi all. Please upgrade to version 2011-11-29 and DokuWiki Angua RC1 or later. The new media manager gave me the needed features to fix this issue. The media manager popup is working the common way, and the new full screen media manager replaces the embedded option. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/02 22:47

[not a template bug] Footnotes displayed in wrong position

I found problem with displaying footnotes - they are shifted of about 160px right and 156px down. Similar behavior I spotted on http://readm3.org/ site. DokuWiki Release 2010-11-07, Vector template version 2010-08-17.

After a short investigation I think, that problem is caused by style setting #bodyContent { position: relative; } in vector/static/3rd/vector/main-ltr.css. I set #bodyContent { position: static; } in vector/user/screen.css file and everything seems good. — Franta 2010/11/17 15:55
Hi Franta. I would not recommend this cause position: static may have several unwanted site effects. Even if the footnotes may work as expected in some other templates, the wrong insutu footnote position is a DokuWiki not a template issue (see Bug 2114), all templates with relative positioning are affected. This bug is fixed in the current DokuWiki 2011-04-22 “Rincewind RC1”. If you update to the newest DokuWiki, the problem should be gone. Therefore you should remove your fix from vector/user/screen.css then :-). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/04 13:43

[fixed] Subscriptions no longer working with Anteater release

Everything with vector works fine (very fine indeed!), except for the subscriptions. The tab is displayed after inserting the code into ./user/tabs.php but when it is invoked, the error message:

Failed to handle command: subscribens

is shown. Since the Anteater release, the subscribe syntax has changed according to DokuWiki's changelog, but I can't find the correct way to implement it somehwere in order to manually fix the commands.

Any ideas?

CantelloCantello

Lüneburg, Germany
2011/02/07 16:56

I'll fix this with the next release…. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/02/23 15:05
Fixed in 2011-03-17 — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/02/23 15:05

[more info needed] Warning: include(DOKU_TPLINCmain.php), problem with mediamanager

Hello! I have a problem with mediamanager. When I try to upload a file I get this message:

Warning: include(DOKU_TPLINCmain.php) [function.include]: failed to open stream: No such file or directory in /home/zela/webapps/nma_static_sfp/lib/tpl/vector/mediamanager.php on line 31

Warning: include(DOKU_TPLINCmain.php) [function.include]: failed to open stream: No such file or directory in /home/zela/webapps/nma_static_sfp/lib/tpl/vector/mediamanager.php on line 31

Warning: include() [function.include]: Failed opening 'DOKU_TPLINCmain.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/zela/webapps/nma_static_sfp/lib/tpl/vector/mediamanager.php on line 31

In the adress bar is:

http://mydomain.com/lib/exe/mediamanager.php?ns=b

Nikus

I cannot reproduce this. DOKU_TPLINC is a DokuWiki core constant. Which version do you use? Normal install or farming? Or Debian package? — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/08/16 20:42
Sorry, still no feedback. Moved to archive. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/02 05:59

[fixed] inputshadow.png

Can't say its truly a bug, but in my error.log there is constantly the same error;

[Wed Nov 03 16:29:02 2010] [error] [client xxx ] File does not exist: C:/website/wiki/lib/tpl/vector/static/3rd/dokuwiki/inputshadow.png, referer: http://site/wiki/lib/exe/css.php?t=vector&tseed=1288695771

Only references to the inputshadow I found was in the static/3rd/dokuwiki/design.css:

/* nice alphatransparency background except for IE <7 */
html>body div.dokuwiki textarea.edit {
  background:  __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
}
 
and 
 
/* nice alphatransparency background except for IE <7 */
html>body div.dokuwiki input.edit,
html>body div.dokuwiki select.edit {
  background:  __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
}

I found inputshadow.png in /lib/tpl/default/images so I copied it to lib/tpl/vector/static/3rd/dokuwiki.

Does not seem to affect the look of my wiki but I do not know if this solution is the right one. — Theo-KTheo-K

Emmen, Nederland
2010/11/09 16:20

Hi Theo. You're right, the file was missing. However, one of the last updates fixed this. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/04 17:33

Additions and ideas

[solved] Changing navigation side bar depending on language

Dear Andreas,

Thank you very much for making Vector plugin available to Dokuwiki community. It works greatly. I have a question. I wonder if it is possible to change the content of navigation side bar depending on the language. I have a webpage on English and Japanese (under en: and ja:). Depending on the language of the main text, I want to switch the content of navigation side bar between English and Japanese. Please refer to the followings.

http://glutamate.brain.riken.jp/dokuwiki/doku.php?id=en:laboratory_home

http://glutamate.brain.riken.jp/dokuwiki/doku.php?id=ja:laboratory_home

Thanks!! Yasunori Hayashi 2011/05/25 22:56

Hello Andreas,
This feature would, indeed, wonderful! I have a wiki, still under construction, which would have versions in English and Portuguese, with the navigation menu translated from the language. The wiki is:

http://wiki.filipesaraiva.info/

Its possible this funcionality?

Thanks!
Filipe Saraiva 2011/05/25 12:35 from Brazil
Hi Yasunori and Filipe. I try to include this feature (mulilang navigation) in the next release. I hope to getting it done this weekend. Stay tuned :-). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/27 14:14
Hi Andreas, this feature would really be amazing and would enormously enhance the usability =)
best regards, Dietmar — 2011/07/15
Would also love to see language dependent navigation!
— Reto 2011/08/15 12:42
Does anyone know of a suitable interim solution until Andreas will add this feature in the next release? — Dietmar 2011/10/19
The new 2011-11-29 release of vector comes with a multilingual navigation for Translation plugin users (cf. 'vector_navigation_translate' option). Just make sure:
1. You got an up2date version of the Translation plugin
2. Users of the existing translation box snippet should edit some source code in /vector/user/boxes.php: just replace the old with the new lines.
Hope that helps :-). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/11/29 18:46

[solved] Better integration mediamanager from sidemenu

Opening the mediamanager from the sidemenu entry 'Upload file' is confusing for beginning users of the wiki. There are no clear back-to-your-page options. Maybe you could use here also a popup window. Or open it as a 'contentpage' beneath the side column and add some navigation. — Klap-inKlap-in

Delft, The Netherlands
2011/03/19 13:42

Please activate vector_mediamanager_embedded in the config menu, maybe this fits your needs. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/04 22:47
Please upgrade to version 2011-11-29 and DokuWiki Angua RC1 or later. The new media manager gave me the needed features to fix this issue. The media manager popup is working the common way, and the new full screen media manager replaces the embedded option. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/12/02 22:47

[solved] Custom boxes for registered members only

I would like to create a custom box in the sidebar, but I only want registered users to be able to see it. Is there a way to do that?

Look at the new FAQ entry. vector stores the username of the currently logged in user into the $loginname variable. You can use it to check if a user is logged in. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/06/27 21:06

[solved] Create a Custom "Toolbox"

I want to create a custom box (between navigation and print/export boxes) with a specific content, depending on the namespace that the user is viewing. How can I do that?

Look at the new FAQ entry. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/06/27 21:06

[solved] Disable "Upload file" on the Toolbox

I like the Toolbox in the sidebar, but I do not want the “Upload file” button there. Is there a way to disable that without editing the /vector/conf/boxes.php file?

Look at the new FAQ entry. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/06/27 21:06

[not possible] Disable site wide notice message on certain pages

I really like the site wide message option, but there are some pages that I do not want it to appear on (for instance, I do not want it to appear on my start page). Could there be a way to disable it on a page-by-page basis? Perhaps a method that is similar to disabling the table of contents: ~~NOTOC~~. It could be something like ~~NOSWM~~.

Sorry, this is not possible right now. A template is no syntax-plugin, therefore I can't create something like a ~~NOTOC~~ macro. But you may control who can see the side wide notice via ACL (simply block the side wide notice for some users). — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/06/26 20:42

[solved] Make youarehere/breadcrumbs invisible with vector_closedwiki

The breadcrumbs-boxes remain visible on the frontpage although vector_closedwiki is true.

For one, that doesn't make much sense to me, plus: I consider this a small security-risk, because with this anonymous visitors can spider the content/structure of the wiki, that is: find out, which pages exist or not inside (from the colour of the links).

So here's a FIX:

in main.php where it says:

//show breadcrumps if enabled and position = bottom|top 
 if ($conf["breadcrumbs"] == true &&
...

…add the following conditions to the if-statement (borrowed from conf/boxes.php):

if ($conf["breadcrumbs"] == true &&
    ( empty($conf["useacl"]) || //are there any users?
    $loginname !== "" || //user is logged in?
    !tpl_getConf("vector_closedwiki") )
    &&

There are 4 places in the code (top|botton x vector_youarehere_position|youarehere) that can/should be fixed this way. — bjoernXbjoernX

2011/04/19 21:18

Hi bjoernX. Seems reasonable to me. I'll change vector's behaviour in the next release. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/02 05:41
Hi bjoernX. breadcrumbs are hidden in the newest release 2011-05-04 if vector_closedwiki is active. Please update. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/02 05:41

Other

[solved] How to change list-style-type in sidebar

By default, the template set

list-style-type:none

to the sidebar. But I want to use the “square” type for Index and Toc. I tried, but failed. Though Firebug told me the calculated style is “square”, but the firefox doesn't show it. — lainme 2010/08/05 10:06

Hi lainme. Try to insert the following into /vector/user/screen.css
/* change list-style-type in sidebar (here: "square" instead of "none") */
div#panel .body .dokuwiki ul {
  list-style-image: none;
  list-style-type: square !important;
}
div#panel .body .dokuwiki ul li {
  overflow: visible !important;
  margin-left: 1.70em !important;
}
/* change list-style-type in table of contents (here: "square" instead of small
   background image) */
#toc__inside ul.toc {
  list-style-type: square !important;
  margin-left: 0.65em !important;
}
#toc__inside ul.toc li {
  background: transparent none !important;
  padding-left: 0;
}

The trick is the overflow property (took me a while to realize this, too). I am going to add this to the CSS hacks listing above if there are no negative side effects.
AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/08/21 19:17

Thanks for your effort. I made some changes like this (Since I changed the width of the sidebar, the margin-left property should be modified to suit the original )

div#panel ul li {
  overflow: visible !important;
}
div#panel #p-navigation ul,
div#panel #p-toc ul {
  list-style-type: square !important;
  margin-left:2.0em !important;
}

lainme 2010/08/22 04:10

[solved] How can I control the HTML title tag? (using H1 headers is supposed to work but it doesn't with the vector theme) (as of 2011 01 03)

Hi Anonymous ;-). This has nothing to do with the template (most templates should behave the same) cause the title is set by a DokuWiki core function named tpl_pagetitle(). You can configure the behaviour with the DokuWiki config option useheading. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/04 17:35

[solved] Having the footer be centered

I would prefer if the icons in the footer (RSS, Donation, etc…) were centered on the screen, instead of aligned to the left.

Dear Anonymous ;-), I created a hack for you to insert into /vector/user/screen.css (NOT /vector/static/css/screen.css). See Centered footer. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2010/06/15 00:57
This works for every pages except when you search for a word. For some reason, when you search for a word, the the results page still has the footer aligned to the left.
Even though css says it is centered, they indeed align left..
The same goes for 'cite this page' and the mediamanager page (when embedded within the common layout — Theo
Work for IE6-8, Chrome, FF3 etc. with the current DokuWiki and vector version. Moved to archive. — AndreasAndreas

Horb a. N. / Karlsruhe, Germany
2011/05/10 12:56

[solved] Interwiki icons appear after link text instead of before

In this template the icons appear after the interwiki links and didn't follow dokuwiki's default with icon before interwiki link. This is because it follows vector for MediaWiki, which displays all link icons on the right side, so the dokuwiki's default behaviour is adapted.

Restoring the behaviour:

  • Find the file vector/user/screen.css or create it. (This file is preserved on updates)
  • Add the next code block to the end of the file:
    div.dokuwiki a.interwiki {
      background-position: center left;
      padding: 0 0 0 17px;
    } 

Instruction provided by Lennylenehey

Thank you

You did a great job! vector is among the best template having many features in one! Thank you again!

Same from me. I'm just starting to use vector, and I'm already amazed ! Thank you for your work ! Michel (France)

template/vector/discussion.txt · Last modified: 2012/04/25 09:23 by 158.42.53.56
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate