DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 21, 2017, 12:33:14 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: File Discussion: Multi Poke  (Read 9888 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« on: September 28, 2012, 10:52:30 PM »

Name: Multi-Poke
Author: Aeolus
Version: 1.5
Category: General
Compatible: Tested and used on 1.1.2 (should work on any 1.x.x)

Description: Sick of having to have twenty or more seperate files just to have twenty different pokes? Well, not anymore! This one nifty module deals with all that for you. All you have to do is set some settings in an editor, and it sends that poke to a database to be saved, allowing you to create as many different pokes as you want, with only one module. It also allows you to set certain pokes allowable to only certain players.. The possibility to buy custom pokes in the lodge is also included. Adding the word 'disabled' into the accounts section also disables the poke from use. Blocking and limit of pokes added. Enjoy!

File Submission: Here

Bugs and suggestions welcome.
« Last Edit: February 01, 2014, 11:41:42 PM by The Doctor » Logged

RaynDarren
Mod God
*****
Offline Offline

Posts: 731


View Profile WWW
« Reply #1 on: September 29, 2012, 12:12:53 AM »

Super awesome module Aeolus!

A few suggestions if I may XD:
1. Make the YOM settable by the admin. For example, you give someone a right good request to roleplay doesn't really sound right Smiley.
2. Have the option for pokes to affect alignment negative or positive.
3. Have the option to personalize the poke. (i.e. poke with a note)
4. Have the option for pokes to affect charm, negative or positive.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #2 on: September 29, 2012, 12:43:29 AM »

Super awesome module Aeolus!

A few suggestions if I may XD:
1. Make the YOM settable by the admin. For example, you give someone a right good request to roleplay doesn't really sound right Smiley.
2. Have the option for pokes to affect alignment negative or positive.
3. Have the option to personalize the poke. (i.e. poke with a note)
4. Have the option for pokes to affect charm, negative or positive.


1) Fair enough.. xD I'll start working on that one!
2) The pokes are only meant for fun, and not to affect actual gameplay.
3) I could add that in... we'll see.
4) See 2).

Thanks for the suggestions! xD
Logged

RaynDarren
Mod God
*****
Offline Offline

Posts: 731


View Profile WWW
« Reply #3 on: September 29, 2012, 12:46:27 AM »

1) Fair enough.. xD I'll start working on that one!
2) The pokes are only meant for fun, and not to affect actual gameplay.
3) I could add that in... we'll see.
4) See 2).

Thanks for the suggestions! xD

You're quite welcome! As far as 2 and 4 go, I understand Cheesy.
Logged

RaynDarren
Mod God
*****
Offline Offline

Posts: 731


View Profile WWW
« Reply #4 on: September 29, 2012, 01:36:27 PM »

A couple more suggestions: Cheesy

1. Put the pokes into a popup that triggers only at the users bio
2. Change "User" to the person's name. Name only, titles can be very long and take up lots of space.
3. Add the block option for players
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #5 on: September 29, 2012, 05:01:27 PM »

A couple more suggestions: Cheesy

1. Put the pokes into a popup that triggers only at the users bio
2. Change "User" to the person's name. Name only, titles can be very long and take up lots of space.
3. Add the block option for players

1) Why a popup? So that players can spam each other quicker?
2) I decided to remove User from it all together. "Request Roleplay User" or "Request Roleplay Aeolus" just doesn't seem to fit.
3) There already is one. In a player's prefs, they can stop player's from poking them with any poke.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #6 on: September 29, 2012, 08:18:20 PM »

Version 1.1: (Available in File Submission)

  • Allow a player to send a personal message with poke when they send it.
  • Removal of 'User' from nav to just display the poke name,
  • YoM message is now admin settable.
  • ^U^ and ^P^ in certain section are replaced with the poker and pokee's name.

NOTE:
If you are using Version 1.0, run the following Raw PHP in the PHP section of the RawSQL nav in the Grotto:

Code:
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN yom varchar(500) NOT NULL");
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN pmessage tinyint(4) DEFAULT 0");
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #7 on: September 29, 2012, 09:29:20 PM »

To someone who can help me, and has/can look through the code..

When I hit "EDIT" on a poke so that I can edit it, the option of "Does this poke allow a private message?" is always set to NO. No matter if it is set in the database as YES. I've rattled my brain, yet can't seem to find anything that would make this happen. o.o

Thanks. ^^
Logged

Boris735
Mod God
*****
Offline Offline

Posts: 568


View Profile
« Reply #8 on: September 30, 2012, 05:15:02 PM »

When you define the [t]$multipoke[/tt] data prior to the call to showform, you have an extra space in the string that you should get rid of.  The line in question is:

Code:
    "poke_pm " =>$value_pm,

The extra space in that string is stopping it from matching, of course.
Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #9 on: October 01, 2012, 12:02:26 AM »

Ohmigod, now I just feel dumb for not seeing that.. o.o My thanks, Mr. Boris!
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #10 on: October 01, 2012, 04:13:30 AM »

Version 1.2: (Available in File Submission)

Sorry for all the new versions. xD So many ideas pop into that head of mine.. What's new now, you ask?

  • Completely new section to allow players to buy custom pokes in the lodge for an admin settable number of DPs. Setting can either require confirmation, or auto-acceptance of a player's custom poke.
  • Big red bold (NEW) next to SU nav when a player has submitted a custom poke.
  • Fixed issue of clicking the [Edit] button, and the Personal Message option always showing No.
  • Swapped the table and showform around in the Editor for easier viewing of existing pokes.
  • Added admin settable Add News into Editor.
  • Check to whether certain sections have been filled out - if not, then the poke is not added.
  • Adding a non-existing AcctID will show as Empty Players.
  • ^P^ and ^U^ allowed in ALL sections of the editor.
  • Popup appears when you go to delete a poke, in case you accidentally pressed the wrong button.

NOTE:
If you are using Version 1.0 or 1.1, run the following Raw PHP in the PHP section of the RawSQL nav in the Grotto:

Code:
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN news varchar(255) NOT NULL");
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN confirmed tinyint(4) DEFAULT 0");
« Last Edit: October 01, 2012, 04:30:25 AM by Aeolus » Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #11 on: October 04, 2012, 08:23:50 AM »

Version 1.3: (Available in File Submission)

  • Adding the word disabled (case-insensitive) anywhere into the accounts section disables the poke from use.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #12 on: October 14, 2012, 12:46:12 AM »

Version 1.31: (Available in File Submission)

  • Changed the nav of the pokes from "%s" to be "$nav", so that it may be translated.
  • Added the tlschema function to the poke navs in the bio, for the same reason as above.
Logged

RaynDarren
Mod God
*****
Offline Offline

Posts: 731


View Profile WWW
« Reply #13 on: November 08, 2012, 02:49:02 PM »

I've uploaded 1.31 and since I was running 1.0 did the querry thinggy as well... Now, none of my pokes save and all the one's I've done before the upgrade have disappeared.

What'd I do wrong?
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1773


You're welcome.


View Profile WWW
« Reply #14 on: November 08, 2012, 03:08:21 PM »

Hmm.. Lemme see. Have you done both DB queries?

Code:
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN news varchar(255) NOT NULL");
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN confirmed tinyint(4) DEFAULT 0");

db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN yom varchar(500) NOT NULL");
db_query("ALTER TABLE `".db_prefix("multipoke")."` ADD COLUMN pmessage tinyint(4) DEFAULT 0");
Logged

Pages: [1] 2 3 ... 5   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
23 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search