DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 26, 2017, 03:48:16 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Staff Tutor - Discussion  (Read 7693 times)
0 Members and 1 Guest are viewing this topic.
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 849


View Profile
« 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

Feedback/Comments  Smiley
« Last Edit: September 14, 2010, 06:21:40 PM by Brendan » Logged
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 572


chown -R us ./base


View Profile WWW
« Reply #1 on: May 04, 2011, 02:19:23 PM »

This shouldn't be here.  It should be in the completed modules board, not module listings.
Logged

Tynastera!
I'm around rarely, If you wish to contact me, please email me.
My Modules, such as can be found here.
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 849


View Profile
« Reply #2 on: May 04, 2011, 02:25:22 PM »

Yep your right i didn't realize...

You would make a good moderator

lol
Logged
ArthuruhtrA
Mod God
*****
Offline Offline

Posts: 572


chown -R us ./base


View Profile WWW
« Reply #3 on: May 04, 2011, 02:49:47 PM »

Thanks.  Smiley
Logged

Tynastera!
I'm around rarely, If you wish to contact me, please email me.
My Modules, such as can be found here.
Brendan
I am Brendan.
Mod God
*****
Offline Offline

Posts: 849


View Profile
« Reply #4 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.
Logged
GRRRilla Ninja
Codemeister
****
Offline Offline

Posts: 321


View Profile
« Reply #5 on: December 01, 2014, 09:27:24 PM »

How would I add a <<Prev / Next>> buttons to cycle the messages without a page reload?
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1758


You're welcome.


View Profile WWW
« Reply #6 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.
« Last Edit: December 01, 2014, 09:59:54 PM by The Doctor » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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