News:

Wondering if this will always be free?  See why free is better.

Main Menu

PJIRC Integrated Chat Mod

Started by dtm.exe, August 10, 2005, 06:07:43 PM

Previous topic - Next topic

Dannii

Aside from downloading the java files, it won't cause any load because its not actually on your host.

Change your template file, and put this around the lines that display the chat button:
if ($user_info['posts'] > postcount) {
echo 'chat button here';
}

"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Firestormic

Quote from: eldacar on March 23, 2006, 12:05:14 AM
Aside from downloading the java files, it won't cause any load because its not actually on your host.

Change your template file, and put this around the lines that display the chat button:
if ($user_info['posts'] > postcount) {
echo 'chat button here';
}



Another dumb question :P  so if I were to make it for say 10 posts, I would write in:

if ($user_info['posts'] > 10) {
echo 'chat button here';
}


?

Dannii

yep ;)

Well that would actually mean they had to have 11 posts. change 10 to 9, or > to >=
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Firestormic

Quote from: eldacar on March 23, 2006, 12:15:50 AM
yep ;)

Well that would actually mean they had to have 11 posts. change 10 to 9, or > to >=
oh yeah! LOL as a maths teacher I should have known that LOL  good thing I am "off duty"

Firestormic

Okay, REAL dumb question (getting close to my quota for the day)

I think I am in the right area:

Would I take this code:

// Show the [chat] button.
if ($context['user']['is_logged'])
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '' : '' , '
' , $current_action == 'chat' ? '' : '';


and replace with:

// Show the [chat] button.
if ($context['user']['posts']>9)
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '' : '' , '
' , $current_action == 'chat' ? '' : '';


?

Admittedly I am not entirely certain what all the code means

Dannii

Replace with this:
if ($user_info['posts'] > 9) {
// Show the [chat] button.
if ($context['user']['is_logged'])
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '' : '' , '
' , $current_action == 'chat' ? '' : '';
}
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Firestormic

done, but now the button does not appear for anyone

Dannii

Hmm. try this maybe:
if ($context['user']['posts'] > 9) {
// Show the [chat] button.
if ($context['user']['is_logged'])
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '' : '' , '
' , $current_action == 'chat' ? '' : '';
}
If that doesn't work you can do it based on groups (You'll have to make a post count group for 10 posts). There are lots of topics here about that, search for user_info groups inarray
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Firestormic

hmm did not work, but I will look in the area that you suggested :)

Thank you for the advice! I have opted to allow all members to use it - no harm just as long as they know the rules.

I learnt a fair bit more about php through this.

Thank you


Anihc

mayb if the post limit requirement came after the log in check?

Looks to me lik it is asking if this user has a certain post limit and then if they do are they logged in.

Guest user would have 0 posts.

Logically this may work. 1st it looks to see if you are logged in then it looks to see if you have the right post count. I am not a php wiz but logic tells me this might work. I have issues like this with rules matching in a piece of software I use at work if you don't follow a logical order.... forget about it. Let me know if it works I may use it :)

{
// Show the [chat] button.
   if ($context['user']['is_logged'])
                if ($context['user']['posts'] > 9)
      echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '' : '' , '
            ' , $current_action == 'chat' ? '' : '';
}

djpubba

Quote from: eldacar on March 09, 2006, 01:32:51 AM
Open up the zip file locally and change setup.mod to setup.xml
Zip it up again, and then replace the one in your server with the new one, it should be uninstallable.

I have the same problem as the other guy -- two chat buttons and can't uninstall. I tried modifying the zip changing setup.mod to setup.xml but that didn't work. Now it just says "This package was either never installed or was already uninstalled - you can't uninstall it now." when I try to uninstall it.

Help?

webmoney

i installed this mod on my forum but can't find it anywhere to launch the chat .. wher is it ? ::)

Nohani

WELDONE  :)

I'VE REGISTERED A NICK AND A CHANNEL/ROOM and MODIFIED THE TEMPLATE FILE IN THEME/DEFAULT DIR.

NOW WHEN I ENTER TO CHAT, IT TAKES ME TO MY ROOM BUT WITH ID "Guest" + some digits e.g. Guest12322. MY AND MY FORUM'S USERS' NICK DON'T APPEAR.

ANY SOLUTION FOR THIS ???

THANKS IN ADVANCE.

Bronwyn Mawr

I cannot uninstall your mod!  Please help...  I now have two chat buttons.  Fails to uninstall with the following noifications:

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "PJIRC Integrated Chat Mod":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification setup.mod Modification parse error
2. Execute Modification - Modification parse error


Please help me totally uninstall this mod.  I would like to know I can turn these mods on and off and not get stuck.

everything worked great with the chat room.  I would like the ability to change the color theme of the window, and I would like the ability to place an intro message at login.  I don't know at what level I would like this implimented, if at all, and I would like it turned off.

TIA,
BM

Bronwyn Mawr

BM

djpubba

The only way I was able to get rid of the chat buttons was to edit my index.template.php and search for "chat". I found the spot that it displays the chat buttons, deleted those lines and saved. Make a backup of your index.template.php file first if you try that route.

Bronwyn Mawr

Thanks DJP!

I got rid of the buttons, and uninstalled the mod through the errors, then deleted the PJIRC directory.

Going to try a different chat mod now, cuz that experience sucked!

I hope this mod didn't create any hidden issues.

Disgruntled,

BM
BM

halliday06

what do i edit to chnage the color of my chat

StanJ

Quote from: webmoney on April 04, 2006, 12:34:46 PM
i installed this mod on my forum but can't find it anywhere to launch the chat .. wher is it ? ::)

Same problem,  any solution?

www.adventistsam.com

Thanks

Bigguy

You might have to add the chat button if you are using a custom theme.

Advertisement: