You are not logged in.

[WBB 3.1.x] headermenu.xml

1

Saturday, March 3rd 2012, 7:42pm

headermenu.xml

Yeah I ask allot of questions but its a large plugin ^_^
so...

no new menu link is created when installing the plugin;
headermenu.xml:

Source code

1
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE data SYSTEM "http://www.woltlab.com http://www.woltlab.com/XSD/headerMenu.dtd"><data>	<import>		<headermenuitem name="wcf.header.menu.linkpartner">			<icon>linkpartnerM.png</icon>			<link>index.php?form=linkpartnerRequest</link>			<showorder>4</showorder>		</headermenuitem>	</import></data>



and in the package:

Source code

1
<headermenu>headermenu.xml</headermenu>



and still not being installed, why is this? :(

2

Saturday, March 3rd 2012, 8:06pm

You have to use the pagemenu.pip. ;)
The headermenu.pip is outdated since Burning Board 3.1.x.
Mit freundlichen Grüßen
Best regards
KittBlog Stile - Ihr Kit für Stile, Software und Knowhow
Your kit for styles, software and knowhow
Erste Linkliste zu Erweiterungen und Support rund um Burning Board©
First linklist for plugins and support around Burning Board©

3

Saturday, March 3rd 2012, 8:21pm

ah :x thats why, and some explenation how it does work then :P?
fixed it with:


<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/pagemenu.xsd">
<import>
<pagemenuitem name="wbb.header.menu.linkpartner">
<icon>linkpartnerM.png</icon>
<position>header</position>
<link>index.php?form=LinkpartnerRequest</link>
<showorder>0</showorder>
</pagemenuitem>
</import>
</data>

This post has been edited 1 times, last edit by "Patrick91" (Mar 3rd 2012, 8:31pm)


4

Saturday, March 3rd 2012, 8:46pm

hmm something is wrong,
what happens now when I activate the plugin the language variable
for portal disapears....

aka:
wbb.header.menu.portal is shown instead of portal
BUT
the language variable is set, any idea what happens here?

Alexander Ebert

WoltLab Developer

  • "Alexander Ebert" is male

Posts: 4,732

Location: Berlin

  • Send private message

5

Saturday, March 3rd 2012, 9:44pm

This is caused by a wrong language category, it should match the existing one, otherwise you will cover the existing one (this is a bit weird).
Alexander Ebert
Developer WoltLab® GmbH


6

Saturday, March 3rd 2012, 10:25pm

What do you mean?
I didnt change anything to the portal plugin only activated my own?

Or is that the problem :')?

Alexander Ebert

WoltLab Developer

  • "Alexander Ebert" is male

Posts: 4,732

Location: Berlin

  • Send private message

7

Saturday, March 3rd 2012, 10:46pm

It's a bit difficult to explain: This issue is cased by the way the language system currently works. Each language item is resolved itself, first it tries to guess the language category multiple times (each time with a bigger range of possible values) until it finds one. If the language system was unsuccessful it displays the raw value (the language variable itself).

But when it actually finds a valid category it assumes that every other language item would match the same category, whereas it might not. An example:
  • WBB Portal 2 uses the language category "wbb.portal"
  • Some 3rd party developers used the category "wbb.portal.box"

In this situation the language system first resolves "wbb.portal" as valid category and loads the appropriate items. Next it encounters a variable which is not available within this category and tries to guess the right category, ending up with "wbb.portal.box" with a successful match. The next item which starts with "wbb.portal.box" is now assumed to be located within "wbb.portal.box" but it actually resides within the category "wbb.portal" which is not assumed to be valid anymore, thus this (and any similar variables) cannot be resolved successful anymore.

I hope this explanation was helpful, if not feel free to ask a specific question - at least English is not my mother language (even though this topic is not even easy to explain in German!) ;)

Edit: This issue is solved in WCF 2.0
Edit2: Which language category did you pick for your language variables?
Alexander Ebert
Developer WoltLab® GmbH


8

Saturday, March 3rd 2012, 11:14pm

Using the english one. (standard)
Maybe it is because I copied the pagemenu.xml from portals?

made some quick edjustments and then found out the lang variable was wrong..
maybe that is causing it, is there an way to fix it or delete the other language variable

(deinstalled the other plugin servral times now and changed the language variable)

edit;

deleted wbb.header.menu category cause it was in my language file (deleted it in de database)
still it aint displaying it correctly

This post has been edited 1 times, last edit by "Patrick91" (Mar 3rd 2012, 11:56pm)


9

Sunday, March 4th 2012, 11:14am

fixed it :-).

deleted the database entry
AND
deleted the cache, everything seem to be working correctly now! :)