Hi, at the moment i'm changing the layout of my media wiki... but i have a big problem:
where can i change the style of the tool box!? i'm using monobook. if i look at my page--> view page source--> it tell me that the toolbox is class p-tb...but i can't find that class in my main.css... i even wrote that class...but it doesn't work...seems the style is configuered some where else...or something else....
thanks for help jule
As part of finalizing my integration of Drupal and Mediawiki I have decided to auto-create users at the point of creation within Drupal rather than let the AuthDrupal extension create them at some later point.
This gives me control over the userid as AuthDrupal allows them to drift, sync'ing by username and not userid.
Anyway, I am creating a trigger that creates the MW user but am not sure what goes into the user_token field. Can anyone give me a pointer as to how I generate this token?
Thanks, Paul
Paul Coghlan a écrit :
As part of finalizing my integration of Drupal and Mediawiki I have decided to auto-create users at the point of creation within Drupal rather than let the AuthDrupal extension create them at some later point.
This gives me control over the userid as AuthDrupal allows them to drift, sync'ing by username and not userid.
Anyway, I am creating a trigger that creates the MW user but am not sure what goes into the user_token field. Can anyone give me a pointer as to how I generate this token?
Why not simply reuse the code for user creation from mediawiki ? it's in includes/SpecialUserLogin.php and User.php (User.php has a function setToken() that might help you)
Thanks Alex.
The code was useful as it now appears that the token may not be needed. It looks like it is the token used within a confirmation email at the point of registration? If that is the case I can hard code it to anything within the trigger as the user creation/management is taking place within Drupal.
Can anyone confirm that this is what the token is for?
If so then I can leave this and the other BLOBs (except user_options) empty.
Thanks again, Paul
I am not sure whether this is useful code as I am trying to create the user using a SQL command within a trigger.
On 6/1/07 8:01 AM, "Alexis Moinet" alexis.moinet@fpms.ac.be wrote:
Paul Coghlan a écrit :
As part of finalizing my integration of Drupal and Mediawiki I have decided to auto-create users at the point of creation within Drupal rather than let the AuthDrupal extension create them at some later point.
This gives me control over the userid as AuthDrupal allows them to drift, sync'ing by username and not userid.
Anyway, I am creating a trigger that creates the MW user but am not sure what goes into the user_token field. Can anyone give me a pointer as to how I generate this token?
Why not simply reuse the code for user creation from mediawiki ? it's in includes/SpecialUserLogin.php and User.php (User.php has a function setToken() that might help you)
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Julia Reek wrote :
Hi, at the moment i'm changing the layout of my media wiki... but i have a big problem:
where can i change the style of the tool box!? i'm using monobook. if i look at my page--> view page source--> it tell me that the toolbox is class p-tb...but i can't find that class in my main.css... i even wrote that class...but it doesn't work...seems the style is configuered some where else...or something else....
normally, you change it in main.css (and maybe in monobook.php if you need to change the name of the class/id or the <div> position on the page) OR/AND in the wiki page [[Mediawiki:Monobook.css]] (or [[Mediawiki:Common.css]] if you want it to be used in every skin)
creating the properties of #p-tb in main.css should work just fine (*don't forget to force-refresh your browser*) but check whether your wiki pages [[Mediawiki:Monobook.css]] and [[Mediawiki:Common.css]] don't have #p-tb, because it would overwrites the main.css properties
then try this :
#p-tb { border: 1px solid red; }
save main.css and press ctrl+F5 in your browser, your toolbox border should be red
If you want to move the toolbox, you *might* have to move the code from line 178-230 of monobook.php (mw 1.10.x) :
<div class="portlet" id="p-tb"> <h5><?php $this->msg('toolbox') ?></h5> <div class="pBody"> ... ... ... wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) ); ?> </ul> </div> </div>
and move them outside of the <div id="column-one"> ...</div> "big block" into another block (e.g. <div id="toolbox-div">) or to another place in that "big block"
PS : if changing #p-tb doesn't affect your skin (but it should), try to change this in monobook.php:
<div class="portlet" id="p-tb"> <h5><?php $this->msg('toolbox') ?></h5> <div class="pBody">
to
<div class="toolbox" id="p-tb"> <h5><?php $this->msg('toolbox') ?></h5> <div class="tbbody">
then create the .toolbox {} and .tbbody {} in main.css or [[Mediawiki:Monobook.css]] and personalize them
mediawiki-l@lists.wikimedia.org