Jump to content

Search the Community

Showing results for tags 'wiki'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 8 results

  1. Hi all me again, just bored out of my skull, working on a rsps atm lol, any way not my point I am posting this because I was meant to release this ages ago, I was debating on releasing my guild system too (None of this :: command to join/create etc guilds all interfaces). [B]THIS IS ONLY USEFUL IF (OBVIOUSLY STATING) YOU HAD A WIKI PAGE[/B] Any way. [B][COLOR=#ff0000]This is preferred on 480 client base (without the world map icon) either that or move the icon to where ever you want.[/COLOR][/B][COLOR=#ff0000] [/COLOR] Difficulty: 3/10 Any way open client.java Start by searching for [code]private void chatJoin(long l) {[/code] Underneath that function put: [code] private void WikiSearch(String l) { try { if (l != ""){ if (System.currentTimeMillis() - WikiSearchTimer >= 30000) { launchURL("http://YOUR_WEB_SITE/index.php?title=Special%3ASearch&search="+l+"&go=Go"); WikiSearchTimer = System.currentTimeMillis(); } else { pushMessage("Unable to complete your request, you may only search per 30 seconds.", 0, ""); } } return; } catch(RuntimeException runtimeexception) { signlink.reporterror("47229, " + 3 + ", " + l + ", " + runtimeexception.toString()); } throw new RuntimeException(); }[/code] [B]Be sure to obviously replace YOUR_WEB_SITE with what ever your web address is.[/B] Next we want to add [B]WikiSearchTimer[/B], to do this find: [code]private long aLong1220;[/code] If you can't find that then look for [code]public final Sprite[] modIcons;[/code] Underneath that add: [code]private long WikiSearchTimer;[/code] You now have part of the search timer for the wiki search added (Though this is optional, but imo I prefer it) Next find [code] processMinimapActions()[/code] In that function add: [code] if(super.mouseX >= 522 && super.mouseX <= 555 && super.mouseY >= 135 && super.mouseY <= 164){ menuActionName[1] = "Staff list"; menuActionID[1] = 1605; menuActionRow = 2; menuActionName[2] = "Show Wiki page"; menuActionID[2] = 1603; menuActionRow = 3; menuActionName[3] = "Search for..."; menuActionID[3] = 1604; menuActionRow = 4; } [/code] Next to add the actions of each buttons. Find (Should only come up with 1 result under function [B]doAction() [/B]) [code]switch(l) {[/code] Inside that, add: [code] case 1603: pushMessage("Opening page to Wiki...", 0, ""); launchURL("http://YOUR_WIKI_SITE/"); break; case 1605: pushMessage("Opening page to staff list...", 0, ""); launchURL("http://YOUR_WEB_SITE_STAFF_LINK"); break; case 1604: if (System.currentTimeMillis() - WikiSearchTimer >= 30000) { inputTaken = true; inputDialogState = 0; messagePromptRaised = true; promptInput = ""; friendsListAction = 8; aString1121 = "Enter something in to search for on the wiki."; } else { pushMessage("Unable to complete your request, you may only search per 30 seconds.", 0, ""); } break;[/code] Now we need to make sure that [B]friendsListAction = 8[/B] is correctly assigned, else it won't work. Find [code]method73()[/code] Inside that, preferably after [B]if(friendsListAction == 7) {[/B] statement [code] if (friendsListAction == 8){ String l3 = promptInput; WikiSearch(l3); }[/code] Next find (though don't think it matters where this is placed; same with the other function) [code] drawXpOrb()[/code] And underneath that [B]function[/B] add: [code] public void drawWikiOrb() { if(super.mouseX >= 522 && super.mouseX <= 555 && super.mouseY >= 135 && super.mouseY <= 164){ wikiHover = true; } else { wikiHover = false; } if(!wikiHover) { ORBS[24].drawSprite(5, 132); } else { ORBS[25].drawSprite(5, 132); } }[/code] Next up find: [code] public boolean xpClicked = false;[/code] And underneath that add; [code] public boolean wikiHover = false;[/code] The next part you want to make sure is correct, else the client may crash is; [code]public Sprite[] ORBS = new Sprite[[COLOR=#ff0000][B]27[/B][/COLOR]];[/code] Be sure that number in red is 1 above highest number of the orbs in your [B]SPRITES/GAMEFRAME/ORBS[/B] folder. Next find [code]loadExtraSprites()[/code] You should see something like; [code] for(int i = 1; i <= [COLOR=#ff0000][B]26[/B][/COLOR]; i++) { ORBS[i] = new Sprite("Gameframe/Orbs/ORBS "+i+""); }[/code] Again, make sure that number highlighted is the highest number of your orbs in the sprites folder. [spoiler="As example:"] [IMG]http://i.imgur.com/4hizmNe.png[/IMG] [/spoiler] [B]How do I find out the MouseX/Y positions?[/B] Simple; ::fpson usually displays the mouseX and Y position, though if your going through this then you should already know. [B]I am getting a message asking to replace my files from the orbs.rar, what should I do?[/B] Don't replace them, simply rename the orbs you had just downloaded, and replace the last 2 digits increment of 1 above the highest orb number you have at the moment. Then replace [code] if(!wikiHover) { ORBS[[COLOR=#ff0000][B]24[/B][/COLOR]].drawSprite(5, 132); } else { ORBS[[COLOR=#ff0000][B]25[/B][/COLOR]].drawSprite(5, 132); }[/code] With what ever the new numbers are. [B]Can I remove/change the timer for searching?[/B] You can quite easy, and you can simply change the timer be replacing 30000 with what ever you want, it's pretty obvious though, and most likely all of you know this. That's it added! [spoiler="And the results:"] [IMG]http://i.imgur.com/6IzjLqY.png[/IMG] [/spoiler] The orbs can be [URL="http://up.ht/1mrhns8"]downloaded here[/URL] (Though you can design your own if you want) Be sure to leave a thanks if you find this useful.
  2. Hello, I am hoping to make a wiki for the server that I am a staff member of, however I do not know how I can make one. Can someone please give me a website or something that I can use to make one. An example of what I am looking for is Near Reality's wiki page. [url]http://www.nrwiki.com/index.php?title=Main_Page[/url] Please help me if you can. -Consig/Fate
  3. Hey guys, This will work with the newest vesion of Wikimedia and any vB over 3.7.x Basically, it will disable registration for the wiki and allow members to register on your forums and use the wiki under there username also, it saves permissions. Alright! First step. Make sure your vB and Wiki is running on the same [B]database! this is very important[/B] Alright, now lets get to the code Insert this code below the require_once( "includes/DefaultSettings.php" ); at the top of the LocalSettings.php file: [CODE]# Disabling new user registrations $wgWhitelistAccount = array ( "sysop" => 1, "developer" => 1 ); # Disabling anonymous edits $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false; $wgWhitelistRead = array ("Special:Userlogin");[/CODE] This line of code prevents the users from creating a new account on the Wiki Copy this AuthPlugin_vBulletin.php file and put it in your main wiki directory, ie: /wiki/AuthPlugin_vBulletin.php [spoiler="long code"][CODE]<?php /** * Authentication plugin interface. Instantiate a subclass of AuthPlugin * and set $wgAuth to it to authenticate against some external tool. * * The default behavior is not to do anything, and use the local user * database for all authentication. A subclass can require that all * accounts authenticate externally, or use it only as a fallback; also * you can transparently create internal wiki accounts the first time * someone logs in who can be authenticated externally. * * This interface is new, and might change a bit before 1.4.0 final is * done... * * AuthPlugin extension by Daniel Gravenor c/o HolisticEarth.org * AuthPlugin original by Kai Backman * * @package MediaWiki */ require_once("includes/AuthPlugin.php"); class AuthPlugin_vBulletin extends AuthPlugin { // Create a persistent DB connection var $vb_database; function AuthPlugin_vBulletin($host, $username, $password, $dbname, $prefix) { $this->vb_database = mysql_pconnect($host, $username, $password); mysql_select_db($dbname, $this->vb_database); $this->vb_prefix = $prefix; // set the usergroups for those who can edit the wiki $this->allowed_usergroups = Array(2, 5, 6, 7); // set the usergroups for the administrators $this->admin_usergroups = Array(6, 9); $this->user_rights = Array("sysop"); // search pattern to only accept alphanumeric or underscore characters in usernames // if they have illegal characters, their name cannot exist, period $this->searchpattern = "/[^a-zA-Z0-9]+/"; } /** * Check whether there exists a user account with the given name. * The name will be normalized to MediaWiki's requirements, so * you might need to munge it (for instance, for lowercase initial * letters). * * @param string $username * @return bool * @access public */ function userExists( $username ) { // if no illegal characters are found in their username, then check to see if they exist if (!preg_match($this->searchpattern, $username)) { $username = addslashes($username); $vb_find_user_query = "SELECT usergroupid FROM " . $this->vb_prefix . "user WHERE LOWER(username)=LOWER('" . $username . "')"; $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database); // make sure that there is only one person with the username if (mysql_num_rows($vb_find_result) == 1) { $vb_userinfo = mysql_fetch_assoc($vb_find_result); mysql_free_result($vb_find_result); // Only registered and admins. Banned and unregistered don't belong here. if (in_array($vb_userinfo['usergroupid'], $this->allowed_usergroups)) { return TRUE; } } } // if no one is registered with that username, or there are more than 1 entries // or they have illegal characters return FALSE (they do not exist) return FALSE; } /** * Check if a username+password pair is a valid login. * The name will be normalized to MediaWiki's requirements, so * you might need to munge it (for instance, for lowercase initial * letters). * * @param string $username * @param string $password * @return bool * @access public */ function authenticate( $username, $password ) { // if their name does not contain any illegal characters, let them try to login if (!preg_match($this->searchpattern, $username)) { $username = addslashes($username); $vb_find_user_query = "SELECT password, salt, usergroupid FROM " . $this->vb_prefix . "user WHERE LOWER(username)=LOWER('" . $username . "')"; $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database); if (mysql_num_rows($vb_find_result) == 1) { $vb_userinfo = mysql_fetch_assoc($vb_find_result); mysql_free_result($vb_find_result); // Only registered and admins. Banned and unregistered don't belong here. if (in_array($vb_userinfo['usergroupid'], $this->allowed_usergroups)) { if(md5(md5($password) . $vb_userinfo['salt']) == $vb_userinfo['password']) return true; } } } return false; } /** * When a user logs in, optionally fill in preferences and such. * For instance, you might pull the email address or real name from the * external user database. * * The User object is passed by reference so it can be modified; don't * forget the & on your function declaration. * * @param User $user * @access public */ function updateUser( &$user ) { # Override this and do something $vb_find_user_query = "SELECT usergroupid, membergroupids FROM " . $this->vb_prefix . "user WHERE LOWER(username)=LOWER('" . addslashes($user->mName) . "')"; $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database) or die("Could not find username"); if(mysql_num_rows($vb_find_result) == 1) { $vb_userinfo = mysql_fetch_assoc($vb_find_result); mysql_free_result($vb_find_result); // go through the users member groups to see if one of them is administrative $user_membergroups = explode(",", $vb_userinfo['membergroupids']); $admin_secondary = FALSE; for ($x = 0; $x < count($user_membergroups); $x++) { if (in_array($user_membergroups[$x], $this->admin_usergroups)) $admin_secondary = TRUE; } if (in_array($vb_userinfo['usergroupid'], $this->admin_usergroups) || $admin_secondary === TRUE) { // if a user is not a sysop, make them a sysop if (!in_array("sysop", $user->getEffectiveGroups())) { $user->addGroup('sysop'); return TRUE; } } // if the user is not an administrator, but they were, and they are still a sysop, remove their sysop status if (!in_array($vb_userinfo['usergroupid'], $this->admin_usergroups) && $admin_secondary === FALSE) { if (in_array("sysop", $user->getEffectiveGroups())) { $user->removeGroup('sysop'); return TRUE; } } } return FALSE; } /** * Return true if the wiki should create a new local account automatically * when asked to login a user who doesn't exist locally but does in the * external auth database. * * If you don't automatically create accounts, you must still create * accounts in some way. It's not possible to authenticate without * a local account. * * This is just a question, and shouldn't perform any actions. * * @return bool * @access public */ function autoCreate() { return true; } /** * Return true to prevent logins that don't authenticate here from being * checked against the local database's password fields. * * This is just a question, and shouldn't perform any actions. * * @return bool * @access public */ function strict() { return true; } /** * When creating a user account, optionally fill in preferences and such. * For instance, you might pull the email address or real name from the * external user database. * * The User object is passed by reference so it can be modified; don't * forget the & on your function declaration. * * @param User $user * @access public */ function initUser( &$user ) { $vb_find_user_query = "SELECT email, usergroupid FROM " . $this->vb_prefix . "user WHERE LOWER(username)=LOWER('" . addslashes($user->mName) . "')"; $vb_find_result = mysql_query($vb_find_user_query, $this->vb_database); if(mysql_num_rows($vb_find_result) == 1) { $vb_userinfo = mysql_fetch_assoc($vb_find_result); mysql_free_result($vb_find_result); $user->mEmail = $vb_userinfo['email']; $user->mEmailAuthenticated = wfTimestampNow(); } } }[/CODE][/spoiler] alright! now it should work login with your vB account and user! credits : [url]http://www.mediawiki.org/wiki/Extension:VBulletin/Users_Integration[/url]
  4. Hey, I dont know if you guys still have your wiki, but I have a few snippets to integrate Wiki with vBulletin, if you need it Iki, let me know :)
  5. The Wiki got attention a couple of days maybe weeks, but then died! I wish I could add articles but I am not experienced enough to add anything really.. @Members Give me a reason why you are not adding or editing articles? @Iki Wiki needs attention, and you must always bug those people to edit/add stuff :s Give contributor rank to the guy or girl who writes the best article and you will have at least 20 more article
  6. Thats right! Today the official RuneLocus Wiki is now available for you all to contribute to. The wiki can be found here, [URL]http://www.runelocus.com/wiki[/URL] And the guidelines for article writing can be found here, [URL]http://www.runelocus.com/wiki/index.php?title=Wiki_Writing_Guidelines[/URL] Take a quick glimpse at the guidelines and begin writing articles! Remember this is wiki software so anyone can edit these pages, fix up, contribute, and add-on to any article you wish. If you need help with using the wiki, that can be found here, [URL]http://www.mediawiki.org/wiki/Help:Contents[/URL] Any mischief on the wiki wont be tolerated and will result in consequences on the forum as well. Enjoy!
  7. My suggestion is that to add a new board for the Runelocus WIKI. [B]How will this help?[/B] This will make there WIKI more noticable and a good way for people to talk about the Wiki. [B]Where can this board be placed? [/B] -In the Runelocus Category. Thoughts/Ideas?
×