DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 18, 2018, 01:25:36 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Sectioned Chats : File Submission/Discussion  (Read 9966 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« on: February 06, 2013, 06:58:39 AM »

Name: Sectioned Chats
Author: Aeolus, with additional code by Xpert
Version: 1.0
Category: Commentary
Compatible: Tested and used on 1.1.2 (should work on any 1.x.x)

Description:
A chat which breaks chats into sections (Village: Roleplay and OOC, Grotto: Business and General). Links appear above chat to switch between them, and each link turns red if there is a post in a section that the user has not seen yet. A module used for removing annoying OOC posts from those trying to roleplay, and the same for the Grotto for business.

Two small core edits required:
REMEMBER, CORE EDITS CAN BE DANGEROUS IF YOU DON'T KNOW WHAT YOU'RE DOING!

village.php:
Replace:
Code:
modulehook("village",$texts);
//special hook for all villages... saves queries...
modulehook("village-{$session['user']['location']}",$texts);
With:
Code:
$texts = modulehook("village",$texts);
//special hook for all villages... saves queries...
$texts = modulehook("village-{$session['user']['location']}",$texts);

superuser.php:
Replace:
Code:
commentdisplay("", "superuser","Engage in idle conversation with other gods:",25);
With:
Code:
$args = modulehook("superusertop", array("section"=>"superuser"));
commentdisplay("", $args['section'],"Engage in idle conversation with other gods:",25);

Suggestions, ideas and bugs are welcome.
« Last Edit: June 02, 2013, 10:26:51 AM by The Doctor » Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #1 on: February 28, 2013, 07:40:48 AM »

It doesnt work when you use city generic to make the cities.  But I'm sure if you use races to make the cities it works fine.  Anyway to fix this?  I cant seem to figure out the fix.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« Reply #2 on: February 28, 2013, 01:13:13 PM »

It doesnt work when you use city generic to make the cities.  But I'm sure if you use races to make the cities it works fine.  Anyway to fix this?  I cant seem to figure out the fix.

What do you mean it doesn't work? As in, the tabs don't appear? Or the same chat appears for each tab? Details, please.
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #3 on: February 28, 2013, 01:23:08 PM »

Same chat appears in each tab.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« Reply #4 on: February 28, 2013, 01:24:38 PM »

Same chat appears in each tab.

You have done the core edits, yes?
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #5 on: February 28, 2013, 01:55:25 PM »

Yes.
Logged

Nightflay
Militia
**
Offline Offline

Posts: 11


View Profile
« Reply #6 on: February 28, 2013, 07:03:48 PM »

The problem that was being run into was that in the main city this was working fine. It was the other cities beyond our main that we were having the problem that everything was being posted into just one section of the chat. In other words even if you were showing as being in the OOC section of the chat everything still posted in the Roleplay section.

Again as I said though, the chats worked fine in the main city.
Logged
Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #7 on: February 28, 2013, 09:22:17 PM »

Made the changes from

module_addhook("village");
case "village":

to:

module_addhook("villagetext");
case "villagetext":

That didnt work.  It just moved the buttons.  When you post in OOC its still posting it in Roleplay.  Only works properly in main city and grotto.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« Reply #8 on: February 28, 2013, 09:56:06 PM »

Copy and paste your core edits for the village.
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #9 on: February 28, 2013, 10:31:11 PM »

I saved the village file as a txt file just so you could see it and see if you notice anything wrong.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« Reply #10 on: February 28, 2013, 10:57:33 PM »

Your village file and a clean download of this module works perfectly for me on both my test server and my live server.
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #11 on: February 28, 2013, 10:59:07 PM »

Then I dont know whats wrong with it.
Logged

Aeolus
Mod God
*****
Offline Offline

Posts: 1883


You're welcome.


View Profile WWW
« Reply #12 on: February 28, 2013, 11:00:47 PM »

I don't either. Apologies I can't be further help, there is nothing else I can do.
Logged

Megan|SaraBeth
Mod God
*****
Offline Offline

Posts: 1053



View Profile WWW
« Reply #13 on: February 28, 2013, 11:15:38 PM »

Maybe someone else has an idea.  Thanks for your help though.
Logged

RaynDarren
Mod God
*****
Offline Offline

Posts: 732


View Profile WWW
« Reply #14 on: February 28, 2013, 11:26:24 PM »

I'd humbly like to suggest reinstalling the cities modules as well as the section chats, with the reinstall of the cities coming first Smiley.
Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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