DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Module Listings => Topic started by: Brendan on September 14, 2010, 06:14:48 PM



Title: Staff Tutor - Discussion
Post by: Brendan on September 14, 2010, 06:14:48 PM
Name - Staff Tutor
Version - 1.0
Author - Brendan, based on tutor by Booger, Shannon Brown and JT Traub
Category - Administrative
Description
Based on the player tutor module, this is a tutor for staff, the player tutor displays a table like div with hints in it on the header of certain pages, while the staff tutor displays a div at the footer, it is intended for beginner staff whom might not know how to work everything, it only displays in the grotto and every page reload it will display a random hint, there is a nav in the grotto to turn on/off(if tutor is on the nav will display "Turn Off" if tutor is off the nav will display "Turn On").

Version 1.1 i will adding settings to let admins write there own hints.

Tested on 1.1.2 though should work on 1.x.x

Download
http://dragonprime.net/index.php?topic=11248.msg95425#msg95425 (http://dragonprime.net/index.php?topic=11248.msg95425#msg95425)

Feedback/Comments  :)


Title: Re: Staff Tutor - Discussion
Post by: ArthuruhtrA on May 04, 2011, 02:19:23 PM
This shouldn't be here.  It should be in the completed modules board, not module listings.


Title: Re: Staff Tutor - Discussion
Post by: Brendan on May 04, 2011, 02:25:22 PM
Yep your right i didn't realize...

You would make a good moderator

lol


Title: Re: Staff Tutor - Discussion
Post by: ArthuruhtrA on May 04, 2011, 02:49:47 PM
Thanks.  :)


Title: Re: Staff Tutor - Discussion
Post by: Brendan on July 21, 2012, 05:59:16 AM
1.2
.Added a "Staff Tutor Editor" where admin's can create, edit and delete the messages.


Title: Re: Staff Tutor - Discussion
Post by: GRRRilla Ninja on December 01, 2014, 09:27:24 PM
How would I add a <<Prev / Next>> buttons to cycle the messages without a page reload?


Title: Re: Staff Tutor - Discussion
Post by: Aeolus on December 01, 2014, 09:54:04 PM
How would I add a <<Prev / Next>> buttons to cycle the messages without a page reload?

1) Use JavaScript and AJAX. Upon clicking a button, send a call for an AJAX request to a PHP file that gets a new random message, send the message back to the call, and update the innerHTML of the message container.

2) Using just JavaScript, rawoutput a JS array of all the messages, and store the array key of the current message in a JS variable. Then upon clicking a button, get the previous/next element in the JS array, and update the innerHTML of the message container. (Pro: This means there won't be any wait for the AJAX to call, it'll be instantaneous. Con: It means that anyone who views the page source can see all of your tutor messages.)

So #1 is more complicated, #2 has a pro and con to it.

© 2017 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines