DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 24, 2018, 02:04:22 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Updates, Upgrades, Changes to Core or Core Modules  (Read 3617 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: April 11, 2005, 07:19:27 AM »

Figured I would start a tread on this.... (thinks maybe it should be a catagory)

I am going to start with a change I have made to the Costume Shop by Booger.
We use Custom Titles for things like our moderators and admins..... Hence this shop was messing up the Moderator Titles when the moderators used the module (Only for 2 days).

I made some simple changes so that the admin can select if the title changes is the custom title or the regular title.....  
I have no problem with this being integrated into the core if it is deemed worthy.

The Link
http://dragonprime.net/users/lonnyl/costumeshop.zip
« Last Edit: April 11, 2005, 07:21:48 AM by lonnyl » Logged
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #1 on: April 11, 2005, 07:26:02 AM »

Interesting... what was it messing up, exactly?

I know that it removes, say, "Moderator" and replaces it with "CostumeName", but that's something I've told my Moderators will happen. What problem was it causing for your server?
Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
lonnyl
Guest
« Reply #2 on: April 11, 2005, 07:39:24 AM »

Simply that Moderators were no longer showing as moderators....

I simply like the moderators and admins to be clearly visible when they are online......

Not so much as an error as just something I didn't like.

Love the module, just didn't like the moderators not showing as so......
Logged
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #3 on: April 11, 2005, 07:39:57 AM »

* SaucyWench notes... JT will tell you that if the problem is only "players don't know who the staff are" and "staff are using this module despite that" then the problem is the management of staff =)

We've had other places where staff management is the real issue, not code "holes". For example, someone mentioned in #dragonprime a little while back that there is a "security hole" that anyone with user editor can delete a megauser (I have permission to delete both MightyE and Kendaer from Central). While it might seem code-logical to remove that "hole" it is much more logical to look at the SOURCE of the problem... which is not in the code. The source of the problem, if I ever did delete those people, is (1) you have the wrong person in a position of power, and (2) you haven't backed up the data to restore those characters I deleted.

Now... as far as the costume shop is concerned... Are your moderators well known enough so that it doesn't matter if they wear a costume for a couple of days? If not, have you spoken to your moderators?

Coding and maintaining the server is a "production" type job. Managing the staff and players is a "service" type job. Smaller servers tend to have one person doing both roles... so it's worthwhile remembering that your people skills might do the trick with some problems.
« Last Edit: April 11, 2005, 07:41:01 AM by SaucyWench » Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
lonnyl
Guest
« Reply #4 on: April 11, 2005, 07:44:28 AM »

Hmmmm...... People skills worked fine... moderators stopped using it... However I don't like limiting moderators from playing in all areas of the game.

*Wonders why it seems to be a sin lately to have an opinion that differs from others*

Again... this change may or may not be useful to others.... That is entirely up to them... however the module at it's default settings contiues to act as it did before.  Make a simple change and it uses DK title.  I personally see nothing wrong with configuration options available to those who would like to use them.  
Logged
lonnyl
Guest
« Reply #5 on: April 11, 2005, 07:45:31 AM »

* SaucyWench notes... JT will tell you that if the problem is only "players don't know who the staff are" and "staff are using this module despite that" then the problem is the management of staff =)

And I don't expect the new players to instantly know who the staff is.... that is what the custom title is for as well as the staff list module that we use.
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #6 on: May 04, 2005, 05:36:02 AM »

Just wondering;
Kendaer/MightyE- is there any chance of the 'modulehook('commentarytrail',array());' mod being added to lib/commentary.php by default?
Logged
Kendaer
Guest
« Reply #7 on: May 04, 2005, 03:30:18 PM »

Cortal: where at and what for?

Lonny: Actually what I'd say is 'that is what the stafflist module is for Smiley'.

It seems more limiting to the staff to NOT have their costume show up when they buy it (ie, just as limiting as asking them not to use the shop :/).
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #8 on: May 05, 2005, 10:34:15 AM »

At the moment in emoticons:
Code:
OPEN:
   'lib/commentary.php'
SEARCH FOR:
   output_notl("<div id='previewtext'></div></form>",true);
INSERT BELOW (on a new line):
   modulehook("commentarytrail",array());
SAVE AND UPLOAD;
To allow users to have clickables:)
Logged
Kendaer
Guest
« Reply #9 on: May 05, 2005, 04:56:36 PM »

I still fail to see the point for this.

What are you trying to *do* with it.. give me a concrete example.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #10 on: May 06, 2005, 01:01:38 AM »

I think he wants to insert button-like smileys (like the ones above the reply box...) which will insert
Code:
:) or ;D
in the commentary input field.
And he wants them to go directly below this input field.
Logged

Running for more than three years now:
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #11 on: May 06, 2005, 04:30:16 AM »

Yes: this has been used since the emoticons module came out, for this:
Code:
   $emots=emoticons_array();
   $code="<script language=\"JavaScript\" type=\"text/javascript\">\n";
   $code.="function addSmiley(textToAdd)\n";
   $code.="{\n";
   $code.="document.getElementById(\"$box\").value += textToAdd;";
   $code.="document.getElementById(\"$box\").focus();\n";
   $code.="}\n";
   $code.="</script>\n";
   $code.=appoencode(translate_inline("`n`c`@-=-=Clickable Smilies=-=-`n"));
   foreach ($emots as $stroke=>$pic) {
      $x++;
      $code.="<a href=\"javascript:addSmiley(' $stroke ');\" border='0' style='border:0;'><img border='0' src='./images/emoticons/$pic'></a> ";
   }
   $code.=appoencode("`c");
which hooks to..
Code:
      case "footer-village":
         if (get_module_pref('user_display')==1&&get_module_pref('user_click')==1&&get_module_setting('everyFooter')==0&&$session['user']['specialinc']=="") {
            $code=emoticons_clickdisplay("talkform","commentary");
            rawoutput($code);
         }
      break;
      case "footer-superuser":
         if (get_module_pref('user_display')==1&&get_module_pref('user_click')==1&&get_module_setting('everyFooter')==0) {
            $code=emoticons_clickdisplay("talkform","commentary");
            rawoutput($code);
         }
      break;
      case "superuser":
         global $logd_version;
         if (get_module_setting('verDone')!=$logd_version) set_module_setting('everyFooter',0);
      break;
      case "commentarytrail":
         global $logd_version;
         set_module_setting('everyFooter',1);
         set_module_setting('verDone',$logd_version);
         if (get_module_pref('user_display')&&get_module_pref('user_click')==1){
            rawoutput(emoticons_clickdisplay("talkform","commentary"));
         }
      break;
There are a few other pieces of code, but I snipped them out to make this easier to see.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
38 Guests, 1 User
pharis
Home Forums News Downloads Login Register Advanced Search