The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
This version is obsolete:
New version: Download Now
Show Your Support
|
Comments |
#332
|
|||
|
|||
![]()
Set Options correct?
|
#333
|
|||
|
|||
![]()
seems like i have, see image
it located at http://www.jtf-2.com/wiki/ and my CMS is installed at http://www.jtf-2.com/ any more info will be appreciated |
#334
|
|||
|
|||
![]()
Created an account on your site but can't even find the links "My talk" etc. on jtf-2.com/wiki ... Perhaps you should go through your navbar template again... (btw: nice background image!
![]() |
#335
|
|||
|
|||
![]()
For german users: Perhaps you preferr to remove 4x
Code:
text-transform: lowercase; Example with some more modifications here. |
#336
|
|||
|
|||
![]()
Interesting News (from Mediawiki Edits in Postbit & Profile): In Template postbit_legacy (or postbit) search for
Code:
{vb:raw template_hook.postbit_userinfo_right_after_posts} Code:
<vb:if condition="$post['wikiedits'] > 0"> <dt>Wiki Edits</dt> <dd><a title="Wiki Edits" href="/wiki/Special:Contributions/{vb:raw post.username}">{vb:raw post.wikiedits}</a></dd> </vb:if> (Can someane confirm this? Not sure if really correct, since I first installed and later uninstalled Mediawiki Edits in Postbit & Profile. Or does anyone know how to put this Templatemodification into a plugin instead? {vb:raw template_hook.postbit_userinfo_right_after_posts} seems to give us this possibility.) |
#337
|
|||
|
|||
![]()
hi bepe,
Regarding setting up a starting value for edits (for existing users): add the following to the install code section. this will create a column (and index) to get the initial values for wikiedits, and then drop that column. so you start with initial values, and your database looks as it does right now. Code:
$vbulletin->db->query_write("ALTER TABLE mw_user ADD vbusername varchar(255) collate latin1_swedish_ci default NULL"); $vbulletin->db->query_write("ALTER TABLE mw_user ADD INDEX vbusername_idx (vbusername)"); $vbulletin->db->query_write("UPDATE mw_user SET vbusername = user_name WHERE vbusername is null"); $vbulletin->db->query_write(" UPDATE " . TABLE_PREFIX . "user AS user SET user.wikiedits = ( SELECT sum(user_editcount) FROM mw_user WHERE user.username = vbusername ); "); $vbulletin->db->query_write("ALTER TABLE mw_user DROP vbusername"); also, we need to change mw_user to wiki-database-name.mw_user (and mw_ to whatever prefix we are using), in case the wiki database is different. what this will still not populate is pages created (not sure if mediawiki can track that directly?) a cleaner option might be to provide a link on the config page to update the data (after installing the app). that way no edits required to the xml file. but do not know how to set that up. thanks. ndahiya |
#338
|
|||
|
|||
![]() Quote:
|
#339
|
|||
|
|||
![]() Quote:
As non of the wiki links go to the correct place They all go to http://www.jtf-2.com/wiki/index.php |
#340
|
|||
|
|||
![]()
Perhaps you don't want any media wiki discussions any more. One solution: Create a Subforum (e.g. "Wiki Articles") and link to this forum instead to the wiki discussion page:
in vbMediaWiki.php search for Code:
echo'><a href="'.htmlspecialchars($tab['href']).'"'; Code:
if ($key != "talk") { echo'><a href="'.htmlspecialchars($tab['href']).'"'; } else { echo'><a href="/forum/forums/69-Wiki-Artikel"'; } The same way you can remove the user discussion: In vbMediaWiki.php search for Code:
foreach($this->data['personal_urls'] as $key => $item) { ?> <li><a href="<?php echo htmlspecialchars($item['href']) ?>"><?php echo htmlspecialchars($item['text']) ?></a></li><?php } Code:
foreach($this->data['personal_urls'] as $key => $item) { if ($key != "anontalk" && $key != "mytalk") { ?> <li><a href="<?php echo htmlspecialchars($item['href']) ?>"><?php echo htmlspecialchars($item['text']) ?></a></li><?php } } Greetings, Bruno |
#341
|
||||
|
||||
![]()
I like that Bruno! I already have a sub-forum set up for wiki discussion, and it just never occurred to me to do that, I love the idea, will do it later.
|
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|