Jabber

Asked by Mark Smiths

How to add jabber to jisko?

What is the link to open a new googletalk account etc.
It is very difficult to find any information about this.

Question information

Language:
English Edit question
Status:
Solved
For:
Jisko Edit question
Assignee:
No assignee Edit question
Solved by:
Marcos Garcia
Solved:
Last query:
Last reply:
Revision history for this message
Mark Smiths (marksmiths09) said :
#1

How to add jabber to jisko?
What is the link to open a new googletalk account etc.
It is very difficult to find any information about this.

Revision history for this message
Mark Smiths (marksmiths09) said :
#2

How to start bot_safe.sh?

Revision history for this message
Marcos Garcia (marcosgdf) said :
#3

Maybe by doing "sh bot_safe.sh" through a shell account

Revision history for this message
Mark Smiths (marksmiths09) said :
#4

it gives this error bot_safe[14335]: process died, waiting for restart.

Revision history for this message
Marcos Garcia (marcosgdf) said :
#5

That would be because an error ocurred.

Try to do "php bot.php" and see if there is any error

Revision history for this message
Mark Smiths (marksmiths09) said :
#6

X-Powered-By: PHP/5.2.9
Content-type: text/html

1248623674 [ERROR]: Could not connect.

Revision history for this message
Mark Smiths (marksmiths09) said :
#7

could you give in steps

- how to open a google talk account.
- Which information i need to add to config.php?

Maybe there is something wrong between these steps? Maybe that's why it can not connect?

Revision history for this message
Rubén Díaz (outime) said :
#8

In order to open a new Google Account, take a look at the own Google: http://www.google.com/search?q=new+google+account

Also, your error seems a file's permission issue. Perform some "chmod" in bot.php and bot_safe.sh, and start it with the following command:

./bot_safe.sh & (inside a "screen" for example)

The information you need to add is just the Google account credentials.

Hope this helps.

Revision history for this message
Mark Smiths (marksmiths09) said :
#9

bot_safe[25995]: Process died, waiting before restart
bot_safe[26174]: Process died, waiting before restart
bot_safe[26190]: Process died, waiting before restart

I did the chmod ;(

Revision history for this message
Mark Smiths (marksmiths09) said :
#10

btw.

Is there an simple way to print the username from the user that is logged in?

like faq.php is an external file.

how can i make a line in pages/faq.php

like: hello "user"

because normally you have to make an select from the database etc.

Revision history for this message
Rubén Díaz (outime) said :
#11

That means you didn't set up correctly the GTalk account, not a PHP
problem really.

On Sun, Jul 26, 2009 at 19:17, Mark
Smiths<email address hidden> wrote:
> Question #78155 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/78155
>
>    Status: Answered => Open
>
> Mark Smiths is still having a problem:
> bot_safe[25995]: Process died, waiting before restart
> bot_safe[26174]: Process died, waiting before restart
> bot_safe[26190]: Process died, waiting before restart
>
>
> I did the chmod ;(
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
Rubén Díaz
GPG id 2354DA5F
http://diazr.com
(+34) 697 91 49 77

Revision history for this message
Mark Smiths (marksmiths09) said :
#12

Could you explain me this thing? I will solve the Jabber thing by myself :)

Is there an simple way to print the username from the user that is logged in?
like faq.php is an external file.
how can i make a line in pages/faq.php
like: hello "user"
because normally you have to make an select from the database etc.

(echo $user)

Revision history for this message
Rubén Díaz (outime) said :
#13

Use the $_USER['username'] var.

On Sun, Jul 26, 2009 at 19:44, Mark
Smiths<email address hidden> wrote:
> Question #78155 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/78155
>
>    Status: Answered => Open
>
> Mark Smiths is still having a problem:
> Could you explain me this thing? I will solve the Jabber thing by myself
> :)
>
>
> Is there an simple way to print the username from the user that is logged in?
> like faq.php is an external file.
> how can i make a line in pages/faq.php
> like: hello "user"
> because normally you have to make an select from the database etc.
>
> (echo $user)
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
Rubén Díaz
GPG id 2354DA5F
http://diazr.com
(+34) 697 91 49 77

Revision history for this message
Mark Smiths (marksmiths09) said :
#14

doesn't work

in includes/router.php

I added:

case 'mark':
$file = 'mark/index.php';
break;

The content of mark/index.php is:

<?php define('TITLE', __('The Title of the page'));
 ?>
<?

echo $_USER['username'];

?>

Revision history for this message
Best Marcos Garcia (marcosgdf) said :
#15

First, you have to do global $_USER;

For example:

<?php

define('TITLE', __('The Title of the page'));
global $_USER;

echo $_USER['username'];

?>

If the user is logged in, it should show the username.

Revision history for this message
Mark Smiths (marksmiths09) said :
#16

Thanks Marcos Garcia, that solved my question.

Revision history for this message
Mark Smiths (marksmiths09) said :
#17

OMG!! Thank you!

Revision history for this message
Almas (almasd) said :
#18

Solved same problem:

require_once 'XMPLog.php';
changed above line in:
/jabber/XMPPHP/XMLStream.php

renamed /jabber/XMPPHP/Log.php file to /jabber/XMPPHP/XMPLog.php

Revision history for this message
Alex (alles) said :
#19

It doesn't solve the problem: bot_safe processes were dying and starting for the some time and they died finally.

I can't use Jabber for posting messages.

Jisko v. 2.0