Question about your mod.
-----
| Author | Message | |
|---|---|---|
|
chrisgoat |
||
| Sat Apr 28, 2007 4:54 pm Post subject: Question about your mod. | ||
|
First off I would like to say what a great mod I installed it on one of my sites 3 days ago and it is a blast and so far it is working perfect.
Thanks so much man it is coders like you that put the time in and follow up on it. Ok now on to my question I am running a phpbb plus version website! of course I have modified it. What I want know is there way to add the script to the overall footer or something like that so when a user logs into my website there are automatically logged into the messenger without the popup and without knowing they are logged into it. Thanks again and look forward to your reply. Best Regards Chris |
||
|
Thoul |
||
| Sun Apr 29, 2007 2:18 pm Post subject: Re: Question about your mod. | ||
|
I haven't tested this, but you could try adding this code to page_tail.php;
Code: $im_userdata = init_imprefs($userdata['user_id'], true);
im_session_update(); |
||
|
chrisgoat |
||
| Sun Apr 29, 2007 6:58 pm Post subject: | ||
|
Get this error a the bottom of the page.
Warning: mysql_query(): 20 is not a valid MySQL-Link resource in /hsphere/local/home/ndpclan/ndpclan.biz/anb/db/mysql4.php on line 99 Warning: mysql_error(): 20 is not a valid MySQL-Link resource in /hsphere/local/home/ndpclan/ndpclan.biz/anb/db/mysql4.php on line 311 Warning: mysql_errno(): 20 is not a valid MySQL-Link resource in /hsphere/local/home/ndpclan/ndpclan.biz/anb/db/mysql4.php on line 312 phpBB : Critical Error Could not query IM preferences table DEBUG MODE SELECT * FROM phpbb_im_prefs WHERE user_id=2 Line : 89 File : functions_im.php |
||
|
Thoul |
||
| Sun Apr 29, 2007 8:16 pm Post subject: Re: Question about your mod. | ||
|
Make sure you put the code before the $db->sql_close(); line.
|
||
|
chrisgoat |
||
| Mon Apr 30, 2007 7:13 pm Post subject: | ||
|
Added that not getting the error but doesn't seem to work, is there a way I can make a block in the overallfooter.tpl and have the imclient.php run in that block I now I can prevent the block from showing untill logged in just can I make the imclient.php load in that block.
Thanks |
||
|
Thoul |
||
| Tue May 01, 2007 4:06 pm Post subject: Re: Question about your mod. | ||
|
You could do that with an iframe, the same approach most shoutboxes use. It would be something like:
Code: <iframe src="{U_IM_LAUNCH}" width="200" height="300"></iframe>
You could tweak the width and height, of course. |
||
|
chrisgoat |
||
| Tue May 01, 2007 8:38 pm Post subject: | ||
|
Edited Got it!!!!
Last edited by chrisgoat on Tue May 01, 2007 9:02 pm; edited 2 times in total |
||
|
Thoul |
||
| Tue May 01, 2007 9:00 pm Post subject: Re: Question about your mod. | ||
|
There's an on/off option in the messenger preferences that controls automatic pop-ups. Make sure that's turned on.
If it is turned on, then you might be running into a Javascript problem, as the Javascript used in the mod wasn't designed for use in an iframe like this. |
||
|
chrisgoat |
||
| Tue May 01, 2007 9:02 pm Post subject: | ||
|
Well that worked great and it looks awsome man once you login you are logged into the messanger also, had to do some tweaking but seems to be working great thank for all your help and a great script.
Thanks Again.. Chris |
||
Page 1 of 1