User talk:Blue Dragon/Archive 3

From D&D Wiki

Jump to: navigation, search
Archive This is an archive of past discussions. Its contents should be preserved in their current form. If you wish to start a new discussion or revive an old one, please do so on the current talk page.


Archive 2 |
Archive 3 |

Is User Extension[edit]

Hey Blue,

Could you test this extension? It's basically checks if a given string is a registered username on the wiki. I plan on using on the author template so that unregistered users don't need to use the isnotuser parameter.

<?php
if ( !defined( 'MEDIAWIKI' ) ) {
	die( 'This file is a MediaWiki extension, it is not a valid entry point' );
}

$wgExtensionFunctions[] = 'wfSetupIsUser';
$wgExtensionCredits['parserhook'][] = array(
	'name' => 'Is User',
	'url' => 'http://www.dandwiki.com/wiki/User:Sledged',
	'author' => 'Sledged',
	'description' => 'Simple user existence-checking extension',
);

$wgHooks['LanguageGetMagic'][]       = 'wfIsUserLanguageGetMagic';

/**
 * if user exists
 */

class ExtIsUser
{
    function isuser( &$parser, $name = '', $then = '', $else = '' )
    {
        global $wgAuth;

        if ($wgAuth->userExists($name))
        {
            return $then;
        }

        return $else;
    }
}

function wfSetupIsUser()
{
    global $wgParser, $wgExtIsUser, $wgHooks;

    $wgExtIsUser = new ExtIsUser;
    $wgParser->setFunctionHook( 'isuser', array( &$wgExtIsUser, 'isuser' ) );
    $wgHooks['ParserClearState'][] = array( &$wgExtParserFunctions, 'clearState' );
}

function wfParserFunctionsLanguageGetMagic( &$magicWords, $langCode )
function wfIsUserLanguageGetMagic( &$magicWords, $langCode )
{
    switch ( $langCode )
    {
        default:
            $magicWords['isuser'] = array( 0, 'isuser' );
    }

    return true;
}

?>

Sledged (talk) 11:06, 1 June 2007 (MDT)

Minor edit. see above. —Sledged (talk) 10:57, 7 June 2007 (MDT)
There seem to be a few problems with the processing that this extension will go through. I set up a magic word Template:IS USER which doesn't actually do anything, but would be used to figure it out, and if you look in the sandbox you will see that it does not work. I would be willing to make a bot to switch over the users that don't exist, and then possibly build an extension similar to {{deletepage}} that would figure out whether it is a user. Let me know what you think. You can also see the code that I am using at /w/extensions/IsUser/IsUser.txt. — Blue Dragon (talk) 11:29, 7 June 2007 (MDT)
Crap on a stick! It looks like the method $wgAuth->userExists() doesn't work the way I thought it would. (I knew it looked a little too straight forward.) I'll do some digging around and see what I can figure out. If I can get that part right the rest of it should (I really dislike using that word) work (along with yet a couple more edits). —Sledged (talk) 12:19, 7 June 2007 (MDT)
I did build a Perl subroutine that will determine whether a user exists or not, which you can see is implemented in the MoI code. Let me know if you want to get something working outside of MediaWiki, but things will become much clearer. It is also possible for me to port that code to PHP so it can be used as an extension, but it would do the same thing. Let me know what you think. — Blue Dragon (talk) 16:58, 7 June 2007 (MDT)
I suppose that would be better than delving into the code that produces the User list page. —Sledged (talk) 22:12, 7 June 2007 (MDT)

Username[edit]

can I change my username from Sam kay to Sam Kay please? —The preceding unsigned comment was added by Sam Kay (talkcontribs) 07:06, 3 June 2007 (MDT). Please sign your posts!

Sure! Let me know if it worked for you. I am not rebuilding the recent changes table, however, due to patrolling, but all new edits should be from Sam Kay. — Blue Dragon (talk) 10:46, 7 June 2007 (MDT)
yep, it worked. Thanks! —The preceding unsigned comment was added by Sam Kay (talkcontribs) 11:29, 11 June 2007 (MDT). Please sign your posts!

Lord of the Rings[edit]

Hey, Blue Dragon! I have created a D&D campaign setting based on said book, and when I asked green dragon, he said I should put it on D&D wiki. However, it is in a word (2003) document, and I don't know how to convert it into wiki formatting without taking forever. When I asked Green Dragon, he said you had a PDF wiki-code program that might help. Could you please help me convert it? Thanks. Sam Kay 09:44, 12 June 2007 (MDT)

Sure, this sounds like a great idea! Upload your .doc file, and I will look at parsing it and try to get it up soon. I did build a xml-to-wiki program, and it would probably just take a little bit of tweaking to get it to work with RTF. Upload to it to DnD Media Repository, and I will take a look at it. — Blue Dragon (talk) 10:36, 12 June 2007 (MDT)
How do I do that? Sam Kay 10:48, 12 June 2007 (MDT)
Go to this page, and sign in with your D&D Wiki username and password, and then fill out the form. Let me know if you have any other problems. — Blue Dragon (talk) 12:34, 12 June 2007 (MDT)
Thanks for that, I have now managed to upload it. it is Here. Sam Kay 14:19, 12 June 2007 (MDT)
Hm... this book in .doc format is a lot harder to convert than what I used for .xml. I will try some things, but don't expect quick progress. — Blue Dragon (talk) 19:09, 13 June 2007 (MDT)
Let me know how you like the current formatting. — Blue Dragon (talk) 13:18, 14 June 2007 (MDT)
I really like the curent formatting. I think the page is ready to put on the campaign setting pages now. I have made some minour text adjustments (correcting my text mistakes, adding several things to the orks ect), so it is now ready. Sam Kay 05:28, 16 June 2007 (MDT)

temp admin[edit]

Hi Blue Dragon,

I'd like to clean up the whole feat type mess. The list pages, categories and feats themselves should use the same descriptors. For that I need to edit the SRD feat pages. Not for changing the feats themselves, just categories, links etc. To do that I would need admin rights, once I'm done they can be revoked.

I have some experience using wiki admin functions from the [www.omegawiki.org omegawiki] beta phase. --Mkill 22:52, 20 June 2007 (MDT)

First off, these kinds of questions should really go to me (Blue Dragon deals with the technical aspects of the site, I deal with the rest). Even though we are both bureaucrats, I deal with bureaucratic things more. Anyway, I will consider giving you adminship rights, however I may decide to wait until I get back to my house in SLC (where internet usage is mroe constant). I am leaving Green River on the 4th of August. I decide on this temporary adminship question later, and tell you when I decide. Sorry. --Green Dragon 15:48, 11 July 2007 (MDT)
Okay, I will give you temporary adminship for around 6-7 days. I am sure you will not abuse this, and I hope you are able to standardize the SRD feats. Also, because I am letting you become an admin not elected by the community, I would like you to do me a favor. Currently, while I am on vacation, about 50% of the new articles are not linked to correctly. I would be very happy if you could make sure every new article is linked to correctly. Please please do this, as if it is not done D&D Wiki will become a mess... Also, if you have a lot of spare time, I would be happy if you could try to get rid of all articles on Special:Orphaned pages -- Excluding DPL and SRD (make sure to modernize MediaWiki:Pages using DPL to make it work). If could do this I would be very happy. Thanks in advance. --Green Dragon 10:23, 16 July 2007 (MDT)
I thank you very much for your trust. I don't think I can achieve as much as I would want in that time, as I have my exams for the semester at the end of this week, but maybe I can spare a few minutes. --Mkill 10:26, 16 July 2007 (MDT)
Just curious, do you need more time now? --Green Dragon 10:41, 30 July 2007 (MDT)
Well, it would be nice if you would support Requests for Adminship/Mkill --Mkill 10:45, 30 July 2007 (MDT)
I'm waiting to respond because the questions have not yet been done... I am not sure of your answers yet. --Green Dragon 07:09, 2 August 2007 (MDT)

Slaying Sway[edit]

I've having trouble with Slaying Sway (DnD Feat). I've had trouble both opening this and saving this. --Dmilewski 11:59, 20 July 2007 (MDT)

Hello Dmilewski. It appears to be working for me. If you could give me some more information about what the problem seems to be, and what your client is, that would be great. Sorry, — Blue Dragon (talk) 17:50, 30 July 2007 (MDT)
Is this still a problem for you? It appears to be okay for me... --Green Dragon 14:11, 4 August 2007 (MDT)
My edits are now there. Weird. I had tried for hours to edit that thing and it kept timing out while other feats edited fine. Go figure. Thanks for looking. --Dmilewski 05:30, 5 August 2007 (MDT)

Embedded images[edit]

D&D Wiki has functionality to include images on pages, just by adding a link to the file. What I'm trying to figure out is how you can give commands for these images, such as height, width and positioning. Do you have an idea? See also SRD Talk:Bugbear (Creature) --Mkill 22:11, 12 August 2007 (MDT)

I would say just upload them to the Media Repository and then they can be modified (see Wikipedia's help on images if you do not know how to). Also, Blue Dragon is currently out of town and will not be back for a bit. --Green Dragon 14:02, 14 August 2007 (MDT)

Extension Upgrade Request[edit]

So I put an input box on the SRD page so that users could to a quick search that limited to the SRD namespace. Unfortunately, It's still searches the (Main) namespace. I don't think the current version supports the "namespace" parameter, or if it does it's not behaving as expected. Could you upgrade the extension, please? Thanks. —Sledged (talk) 16:24, 30 August 2007 (MDT)

Hello Sledged. I have upgraded Inputbox to the most recent version. Let me know if there are any issues. — Blue Dragon (talk) 17:20, 1 September 2007 (MDT)
It works! IT WORKS!! Thanks.
Too bad it doesn't work like I thought it would. Fortunately, there's a request to limit searches to specific namespaces. —Sledged (talk) 14:37, 8 September 2007 (MDT)

The Tavern[edit]

I got this message when trying to load the tavern.

No such special page From D&D Wiki Jump to: navigation, search

You have requested an invalid special page, a list of valid special pages may be found at special pages list.

Return to Main Page.

I think the link might be faulty.

sol 13:30, 8 September 2007 (MDT)Sol

The link has now been fixed. Thanks for letting me know about it! — Blue Dragon (talk) 13:31, 8 September 2007 (MDT)

New Extension[edit]

As a follow up to this discussion, I've put together the following extension:

Source code removed because it's obsolete.

Here's an example of the expected behavior:

Wiki-markup 
'''<anc>Fass Cleature ([[Su]])</anc>:''' What's a fass cleature?
HTML result 
<b><span id="Fass_Cleature_.28Su.29">Fass Cleature (<a href="/wiki/Su" title="Su">Su</a>)</span>:</b> What's a fass cleature?
Display 
Fass Cleature (Su): What's a fass cleature?

Sledged (talk) 14:37, 8 September 2007 (MDT)

Excellent extension! There were a few problems with it, and I made a diff of the changes that I had to make.
Source code removed because it's obsolete.
Let me know if there are any problems with it, and good job! Thanks for the extension! — Blue Dragon (talk) 16:04, 8 September 2007 (MDT)
Excellent!! Thanks! —Sledged (talk) 16:31, 8 September 2007 (MDT)
By the way, if you ever get the latest version of DPL2 to work, we can get filters for spells, creatures, races, feats, etc by using DPL2 in conjunction with the simple forms extension. —Sledged (talk) 20:52, 9 September 2007 (MDT)
Going by the extension manual, since this wiki is running v1.10.0, the instances of $parser->parse( $wikimarkup, $parser->mTitle, $parser->mOptions, false, false )->getText() should probably be using $parser->recursiveTagParse( $wikimarkup ) instead. —Sledged (talk) 14:09, 19 September 2007 (MDT)

Extension Update![edit]

The new and improved Auto-Anchor extension. It's parser function now, because I've found that I like extensions as parser functions rather than tags. —Sledged (talk) 15:51, 7 December 2007 (MST)

Hello Sledged. That is a very nice extension, I am glad that you are sharing it at mediawiki.org. I have upgraded to the latest version. — Blue Dragon (talk) 22:15, 7 December 2007 (MST)

Bug in the Tavern[edit]

My internet connection keeps failing, and after it came back and reloaded, I tried to access The Tavern and it said my nickname "sol" was already in use, from me, but the tavern did not realize I had left and re-entered.

sol 15:51, 8 September 2007 (MDT)sol

There is a ping timeout in the server of 200 seconds. It will work for you now. If you need to know whether or not you have been logged out, check the Tavern's History to see whether The Innkeeper realized you left. — Blue Dragon (talk) 15:55, 8 September 2007 (MDT)
Thanks, that helps a lot. The problem is now fixed! sol 12:05, 9 September 2007 (MDT)Sol

It says that my name is a fake username. What does that mean? --207.200.116.8 12:49, 19 September 2007 (MDT)

This should not be happening. Let me know if the error is still occurring. — Blue Dragon (talk) 16:54, 22 September 2007 (MDT)

Yet Another Extension Request (I Just Won't Stop, Will I?)[edit]

Actually, three requests: Control Structure Functions, Character Escapes, and LO Parser Functions. The first is dependent on the second and third. Also, they effectively replace the ParserFunctions extension, since they use the same magic words/hooks.

Also, I've (finally) set up my own development wiki, so now I'll be able to test my custom extensions on my own. Yay! —Sledged (talk) 22:37, 24 September 2007 (MDT)

reCAPTCHAs[edit]

I mentioned this on WRPS, but I figured I should send a note directly to you as well. http://recaptcha.net might be a beneficial alternative to our current captchas. dotHectate 08:09, 2 October 2007 (MDT)

PS. I just discovered that we do now... LOL, that's what I get for not being logged in, eh? lol

D and D chat[edit]

D and D chat is not working. It says "Not connected to IRC" and gives no option to reconnect.

sol 11:27, 7 October 2007 (MDT)Sol

This problem has now been fixed. — Blue Dragon (talk) 21:23, 7 October 2007 (MDT)

MOI[edit]

Hey, Blue Dragon.

One of the Admin guys at One Wiki to Rule Them All was interested in adding a MOI, like we have (I told them about it), but doesn't know the... Javascript/AJAX script1 or whatever, and wondered about where he could find it... Can you help please? Thanks! You can contact him here, or you can contact me.

1 I do not claim to be a programmer. I can't understand it!

Yet again, thanks. --Sam Kay 11:32, 17 October 2007 (MDT), 18 October 2007 (MDT)

Hello Sam Key. I programmed the MoI system without a modularized integrable design method in mind. However, I would be more than glad to help get it working at LotR wiki. Let me know if it is a serious interest, and I then I can prepare the code so that it can be easily used and modified by anyone. The one requirements that you should let him know about is CGI support with Perl. I built it this way because I am much more of a fan of Perl than PHP, and the bot actually leaves the real of the wiki for a bit and accesses the wiki back with WWW::Mechanizer. Let me know what you want me to do, — Blue Dragon (talk) 18:47
Ok, I have sent your message to the LotR Admin in question (KingArogorn), and am waiting for a reply. --Sam Kay 10:33, 19 October 2007 (MDT)
He said that because LotR Wiki is part of wikia, he would not be able to add it. Thanks for your help. --Sam Kay 06:02, 20 October 2007 (MDT)
shudder wikia shudder (jk :P). --Green Dragon 23:30, 21 October 2007 (MDT)
On a similar note, Blue; have you considered sharing this extension with the greater wiki community and adding it to MediaWiki's extension repository? —Sledged (talk) 10:33, 22 October 2007 (MDT)

Tavern Bug[edit]

Hey, when I logged out of the Tavern, it still kept my username logged in even though I wasn't at the page. I've tried logging out and back in, etc. but it still has the name. It's kept it since the last 4+ hours or so.

Hello, is this problem still occuring? I can not seem to recreate it. — Blue Dragon (talk) 22:11, 29 October 2007 (MDT)
Well, it fixed itself and hasn't happened again so far... --Watsyurname529 05:13, 30 October 2007 (MDT)

DPL Limit?[edit]

I have a few issues with a few very-long DPL's. On the SRD, both SRD:Spells and Creatures stop in the R's. I imagine that there is some value limiting the size of a DPL return. I converted Creatures to a static list. Spells is still a DPL. Can you poke around and see what may be causing this?--Dmilewski 13:57, 8 December 2007 (MST)

The limit is 500. That limit was set because of the strain on the back-end database. That being said, the SRD dpl results are cached (by setting allowcachedresults=true) so it doesn't access the DB every time the page is viewed. I think we can get away with increasing the limit whenever cached results are allowed. —Sledged (talk) 15:05, 8 December 2007 (MST)
I have now set the limit to 5000. Let me know if this will not be enough. — Blue Dragon (talk) 16:19, 9 December 2007 (MST)
For right now it will work since we have less than 5000 homebrew/OGC items and less then 5000 SRD items. Thanks for fixing that! --Green Dragon 19:04, 9 December 2007 (MST)
At some point we're going to have to have paged lists. The simple forms extension has a parser function that allows GET/POST parameters to be used in the pages. It's still very much in the beta stages, but it'll serve the purpose of paged list. Here's a demo of it on the DPL2 site. —Sledged (talk) 11:01, 11 December 2007 (MST)

Random Code Thing...[edit]

On wikia they have a code for randomly selecting one of a number of options. This code does not work on D&D Wiki. I was wondering why it doesn't work and if you could add it, please? I would like to use it on several of my pages. Here is what the code looks like:

Option 2

Thanks. --Sam Kay 07:13, 20 December 2007 (MST)

Added. :)Blue Dragon (talk) 20:43, 20 December 2007 (MST)
You might run into an issue with caching... let me know if you do. — Blue Dragon (talk) 20:43, 20 December 2007 (MST)
Yay, it works! Thanks! --Sam Kay 03:38, 21 December 2007 (MST)

Different Random Code Thing...[edit]

So I've been learning AJAX at work recently and I figured it would be helpful to add some extra functionality to the site. I've already written a mock-up NPC generator (though I will likely rewrite it again because I am never happy with my design the first time I do something). I'm trying out the Google Web Toolkit (which seems really awesome do far) and I want to do a few test projects before I re-write the web application I've spent the last year on. I'm wondering if there is any places you could see AJAX coming in handy. I'd also like to know if there would be a way to auto-submit the data from the NPC generator (rather than generate the wiki syntax and have the user copy and paste it). --Aarnott 07:35, 20 December 2007 (MST)

Hello Aarnott, I am not so sure about the use, I do know that I use AJAX with the MoI stuff, but Green Dragon will most probably be able to give you tons of applications that he thinks would work. AJAX is pretty neat, and definitely fun to program! It would not be a problem at all to submit the data through AJAX without requiring the user to log in and submit it. — Blue Dragon (talk) 16:29, 20 December 2007 (MST)

Tavern bug[edit]

I was in the Tavern when my computer froze up and I restarted it. When I came up to the tavern again, it said that I could not enter the Tavern because "username wackymynd is already in use". Anything I can do about this?--Wackymynd 15:36, 15 January 2008 (MST)

Hello Wackymynd. This is a serious issue---it will automatically log you out after a given period of inactivity, and maybe I could bring this time level down some. I also need to address the issue of users being able to change their username while their account is currently logged on. Thanks for alerting me to this issue, and I will address it fully soon. — Blue Dragon (talk) 15:39, 15 January 2008 (MST)
Well, I was able to get back in after a little while.--Wackymynd 15:31, 16 January 2008 (MST)

Greets[edit]

Hey there! Was in the tavern with you but didn't realize you were admin. Glad I slid that bowl of mead in your direction! *grin*

Nice place you've got here ... it's been years since I've done any serious RP.
cheers!
ben aka --TogoGrandeSmials 20:45, 20 January 2008 (MST)

Thanks for the greeting! — Blue Dragon (talk) 13:29, 24 January 2008 (MST)

Skin Updater[edit]

Hey, Blue, Did you disable the skin updater with the last upgrade? The changes aren't taking when I run it. —Sledged (talk) 11:13, 24 January 2008 (MST)

Hm... I'm guessing it could be a permissions issue. Does it work now? — Blue Dragon (talk) 13:32, 24 January 2008 (MST)
Still no go. —Sledged (talk) 13:48, 24 January 2008 (MST)
How about now? Sorry about these issues. — Blue Dragon (talk) 12:25, 30 January 2008 (MST)
We're good! Thanks. —Sledged (talk) 14:02, 30 January 2008 (MST)

Tavern's broken again[edit]

Tavern's broken again. Looks like it lost it's "registered" status on the irc network you're using. I hopped on today and your Innkeeper bot was gone, and I got op'd right away, for creating it. might want to re-create and re-register. Also, maybe try a different IRC server? That one you're using seems to be really off-and-on. Anyways, ttyl. --Othtim 00:01, 16 February 2008 (MST)

Thanks for the update! I believe that it has been fixed now? The way that it is set up is with a dedicated IRC network — the reason that it must seem very on and off is because I frequently forget about it while I am doing changes and revisions, and will just forget to turn it back on. 100% human error :). — Blue Dragon (talk) 15:00, 29 April 2008 (MDT)

nickname changes[edit]

Re tavern: Is it a bug, or does nickname changing not work? Is this done on purpose? comments? --Othtim 20:01, 19 February 2008 (MST)

Nickname changing will not work as it does with standard IRC while it will cause the Innkeeper severe headaches ;). — Blue Dragon (talk) 14:58, 29 April 2008 (MDT)

Edit count[edit]

Hey I found your page Special:EditCount and was wondering if you could make it so its includeable I tried {{Special:EditCount/Hawk}} but it only linked. Thanks in advance. --Hawk 06:49, 5 March 2008 (MST)

As of right now, this is not possible. However, if you want, I can easily set it up so there is. Let me know if there is still demand! — Blue Dragon (talk) 14:57, 29 April 2008 (MDT)

sorry forgot this last time[edit]

can i have a @dandwiki.com email account Druidic1

Of course! Just let me know what you want it to be, and I will email you with your default password. — Blue Dragon (talk) 14:57, 29 April 2008 (MDT)

Question[edit]

Can we do mapping on the wiki, you know like html? --Lord Dhazriel 15:38, 26 April 2008 (MDT)

Hm... I am not positive what you mean by mapping. Are you talking about image maps? If so, then there is a structured wiki syntax that deals with them specifically. Let me know if that is what you mean, and I can give you some [hopefully] helpful leads. — Blue Dragon (talk) 15:01, 29 April 2008 (MDT)
Like taking a portion of one image and use it. Like putting a link on a country in a world map. Is this more clear? --Lord Dhazriel 17:34, 29 April 2008 (MDT)

Question[edit]

Can I use things developed using the rules in the Dungeon Master's Guide and post them on the Wiki? I'm asking about things like towns made using the town developing rules?

Yes, so long as you don't detail the rules themselves. Just like you can post NPCs that use classes from non-OGL books. --Aarnott 21:31, 29 April 2008 (MDT)

Tavern connection[edit]

* Welcome to CGI:IRC 0.5.9 (2006/06/06) * Looking up goldmine * Connecting to goldmine [166.70.99.91] port 6667 * An error occurred: Connecting to IRC: Connection refused connecting to 166.70.99.91:6667"

Okay i've checked this thing out a few times this week to see if i can by some miracle find some one in there but no. Any way today this thing comes up, and my knowledge of IRC (minimal) tells me that the channel's host is down/dead/hates-you. Just thought i should point it out to the "report a bug" thing.


Further more, why not get a Gamesurge channel or some thing similar instead? just a thought. --SDK_Exile 07:12, 14 May 2008 (MDT)

Site Downtime?[edit]

Any news on the fact that the site has been going down for the past couple of days? — OptimizationFanatic (talk) (contrib) 16:35, 15 May 2008 (MDT)

Hello OptimizationFanatic. I am sorry about the downtown that the site had experienced rampantly throughout last week. That was due to a broken router which decided to continually reset itself. I had thought that I had fixed it several times before realizing that the hardware itself was broken. Thank you for your consideration, and hopefully this downtime was a rather isolated issue! — Blue Dragon (talk) 00:45, 23 May 2008 (MDT)
Ah. Thanks! — OptimizationFanatic (talk|contrib) 09:04, 23 May 2008 (MDT)
Personal tools
d20M
miscellaneous
admin area
Terms and Conditions for Non-Human Visitors