Log in

View Full Version : At-lantis SMS System Version 1.02 (Instant Messenger for vB3)


PcFreak
05-29-2004, 10:00 PM
First.
I have written this hack in german and translate him with bablefish. :speechless:
So be gentle to me, because my dreadful english.

What does this hack do?

With this hack it?s possible sent little messages to other online users in realtime.

The messages would be open in a new small PopUp window when the sms receiver refresh any page.

SMS are not save in the database. Just unread sms are saved. They are automatically delete when the PopUp for a new SMS open.

Files to edit

- profilphp

- edit templates
forumhome_loggedinuser, USERCP_SHELL

Five new templates (in the zip.file)

Two new php files

One new database table
One new database field

The hack is in german and english
have fun
PcFreak


Update Version 1.02 7.6 19:40
Update the zip.file to fix a little bug
Thanks go to Mystics from vBulletin Germany

For the others whitch install this hack
replace the full code in the template forumhome_loggedinuser with <a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" title="Send a sms to $loggedin[username] ?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin</a>



[B]Mods:
Show an SMS icon next to YIM icon when you view the Who is Online page (https://vborg.vbsupport.ru/showpost.php?p=518709&postcount=43)
Credit go to mtha

And please click install, if you used this hack

Thank you.

A demo you can find on my homepage: http://at-lantis.de
Name: testuser
Pass: test

Intex
05-30-2004, 08:46 PM
Sounds interesting PCFreak. What would be the benefits of this over using, for example a private message (+ popups) or for people that have chat integrated.

Good job :).

PcFreak
05-30-2004, 09:11 PM
You don?t need a chat.

With this sms system you can directly send messages to other online users.
It?s quicker then the pm funktion. It like a chat, but private and just for two persons ;).

And but not least.
Makes a lot of fun

PcFreak

NuclioN
05-30-2004, 09:19 PM
Installed but....how to send a sms?

--edit--

O, i see. The code for template forumhome_onlineuser is not good, it is displaying wierd. However the username can be clicked on and a sms can be send but no sms popsup. Test it by sending it to myself and also no popup. The settings in usercp are allowing popups.

PcFreak
05-30-2004, 09:26 PM
Just click on a name on forumhome: "Currently Active Users"
(see my picture No 3 in this topic)

You must allowed PopUp?s for your domain (some Firewalls and PopUp stopper block PopUps)

PcFreak

//edit
You dont show the "Currently Active Users" on you forum :rolleyes:

GamerzWorld
05-30-2004, 09:28 PM
Can someone edit the english instructions making them more clear

NuclioN
05-30-2004, 09:33 PM
//edit
You dont show the "Currently Active Users" on you forum :rolleyes:

correct, for not registered members with a conditional but it should work with it. If this is working it's a great function :)

NuclioN
05-30-2004, 09:36 PM
db error caused by the modified online.php. :( The instruction for that part is not clear enough i guess

--edit-- the wierd online text is most likely caused by the colored username from the ustore hack

PcFreak
05-30-2004, 09:48 PM
Maybe this instruction txt is a little bit more clear.

For Users whose wan?t to see this SMS Funktion in action.
I have made a test account on my board.

Name: Testuser
Password: test

Feel free to check this funktion on my board. Send a SMS to yourself refresh the page and look what is happend. :)

PcFreak

Adress: http://at-lantis.de

NuclioN
05-30-2004, 10:01 PM
Have it figured out now, it's working. :) It had to do with the table prefix. I'd to rename the table sms

Untill now we only can view sms answers by looking who's online. Is there something i've overlooked?

PcFreak
05-30-2004, 10:07 PM
Is there something i've overlooked?

NO. Thats all at the moment.

You can play a sound when new SMS PopUp open.
Later i will explain this mod.

PcFreak

NuclioN
05-30-2004, 10:13 PM
Is it not possible to include code into forumhome? Or when a sms is send, this pops up without interferance or clicking a link. :D

PcFreak
05-30-2004, 10:27 PM
To show sms on forumhome

Edit index.php

Find
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
below add
// ##### SMS SYSTEM #####
$smsvorhanden = $DB_site->query_first("
SELECT id_vom_empfaenger
FROM " . TABLE_PREFIX . "sms
WHERE id_vom_empfaenger = $bbuserinfo[userid]
");

if ($smsvorhanden[id_vom_empfaenger] == '')
{
}
else
{

if ($smsvorhanden[id_vom_empfaenger] == $bbuserinfo[userid])
{

print "<head>";
print "<script>";
print "function popsms(){";
print "win = window.open('sms.php?do=sms_lesen','_blank','toolb ar=no,location=no,menubar=no,scrollbars=yes,width= 550,height=500,resizeable=no,status=no');";
print "}";
print "</script>";
print "</head>";
print "<body onLoad='popsms()'>";
print "</body>";

}
else
{
}
}
// ##### SMS SYSTEM #####


You can use this piece of code in every php file.
For example: member.php, showthread.php
Where ever you want to show the sms.

PcFreak

NuclioN
05-30-2004, 10:31 PM
Nice :) How to position the popup more to the top left?

Erwin
05-30-2004, 10:50 PM
Mmm... interesting. :) Will have to check this out later.

MindTrix
05-30-2004, 11:14 PM
looks nice will check out prob tomorrow, well done on the release

Zombie
05-31-2004, 07:42 AM
Nice hack, only problem is the templates are in German

Vega
05-31-2004, 07:56 AM
https://vborg.vbsupport.ru/showpost.php?p=517402&postcount=9 these are in english. :)

Zombie
05-31-2004, 08:00 AM
Thanks, I checked this to late, I had them translated :)

D|ver
05-31-2004, 09:28 AM
thank you for this hack, looks interesting :)

PcFreak
05-31-2004, 09:47 AM
One modification

If you want to receive sms on each side from the board.
Please delete the sms code from index.php and online.php

Put the functions_sms.php in your includes directory.

After that, edit your phpinclude_end template.

Put this code in the phpinclude_end template:
include("./includes/functions_sms.php");

Thats all.
Now you will get new sms on every page.

Have fun.

//I have update the zip.file and the instruction.

nineball
05-31-2004, 02:20 PM
Here are a couple of the templates with some of the translations which were misssed. The button for answering the and the labels on the message. Fixed the label on the loggedinuser link. Should be changed in the forumhome and forumdisplay (if you want to be able to send a message when looking at a thread)

Great hack

Zombie
05-31-2004, 04:22 PM
I'm getting database errors now:

Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT id_vom_empfaenger
FROM sms
WHERE id_vom_empfaenger =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

Date: Monday 31st of May 2004 01:18:30 PM
Script: /forums/login.php
Referer: /forums/profile.php?do=editpassword

obiwan8472
05-31-2004, 06:59 PM
This is good.
Does it add to server load or bandwidth though?

NuclioN
05-31-2004, 07:08 PM
Is it possible to work with conditionals in a way members can choose a personal wav. message alert? :)

Logik
05-31-2004, 07:32 PM
This is an interesting hack... I like it..I will install as soon as my new site is up

nineball
06-01-2004, 12:33 AM
i also got an error. Is it due to the include module

Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT id_vom_empfaenger
FROM sms
WHERE id_vom_empfaenger =

mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

NuclioN
06-01-2004, 06:36 AM
Yep. same db error from time to time here.

Bad Bunny
06-01-2004, 07:34 AM
Yep. same db error from time to time here.
Nice sounding hack. I have a question though. What happens when a person is eceiving SMS messages from more than one person at the same time? Would they end up wit more than one popup?

gmarik
06-01-2004, 08:05 AM
Nice beginning.

PcFreak
06-01-2004, 11:27 AM
What happens when a person is eceiving SMS messages from more than one person at the same time? Would they end up wit more than one popup?
Yes.

The database erros.
For the moment i can?t give a answer.

Bandwith.
Is very low. A size of one sms is not more than 1 kb.

Is it possible to work with conditionals in a way members can choose a personal wav
This is a good Idea for a AddOn. Perhaps I try to build this in a later version.

PcFreak

???`S?LV?R???`
06-01-2004, 06:08 PM
sounds like something i might be interested in, but it sounds like theres still a few problems with this hack that are being worked out..

NuclioN
06-02-2004, 05:44 AM
Is it possible to make it so that sms can be send when a user is not online? I'm asking this because the sms send when a user is online because of the cookie timeout the sms waits untill the user is logged in again.

Zelda-King
06-02-2004, 05:53 AM
You don?t need a chat.

With this sms system you can directly send messages to other online users.
It?s quicker then the pm funktion. It like a chat, but private and just for two persons ;).
I like this hack. I am using it, but that statement is misleading. This isn't like a chat. In a chat, a whole conversation appears in one window. With this, the messages appear one at a time in individual popups.

The real selling point with this hack is the privacy. Messages don't remain stored once read and are therefore more private than Private Messages.

PcFreak
06-02-2004, 06:57 AM
Is it possible to make it so that sms can be send when a user is not online? I'm asking this because the sms send when a user is online because of the cookie timeout the sms waits untill the user is logged in again.

Try this:

In the template memberlist_resultbit find<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername

replace ist with

<a onClick="window.open('sms.php?do=sms&userid=$userinfo[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" title="Sent $userinfo[musername] a SMS?" href="sms.php?do=sms&userid=$userinfo[userid]">$userinfo[musername]</a>

This Tip is from Chris, a other member. I do not test ist, but i think this is one way, sent sms to not online user

PcFreak

boydekort
06-02-2004, 09:05 AM
Hey m8 nice hack I was just wondering if it would be possible to allow smilies and if those work allready to get a smiliebox in it ?

but again nice work installed it to beta test it.

PcFreak
06-02-2004, 09:35 AM
The version 1.02 allow posting smilies and vbcodes.
In this version is a spellcounter integrated, even.

I wll updatet the new version soon. But first i will test this version on my board.

There is still a test account on my board.

Name: Testuser
Password: test

Adress: http://at-lantis.de

PcFreak

Tradjick
06-02-2004, 05:06 PM
WOW! This is soooo cool.

*clicks install*

Grendel
06-02-2004, 07:01 PM
I'm getting database errors now:

Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT id_vom_empfaenger
FROM sms
WHERE id_vom_empfaenger =

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' ' at line 3

Same error here.

PcFreak
06-02-2004, 08:04 PM
The database errors

Sorry for the problems

PcFreak

Edit// Sorry mistake. DonĀ“t del anythink.

nineball
06-02-2004, 10:37 PM
do you think the database error is occuring when a guest is trying to use the messaging system, in that the bbuser id would be blank causing a syntax error. Just a thought.

Like the system, I did get 3 more errors today, but I have never experienced the error myself and looking at the abend there is no user id, which is why I thought it might be blank. If so, woudl just have to check for a non-blank user-id in the include module

Look forward to 1.02

PcFreak
06-02-2004, 11:05 PM
@nineball
That is what i think, too.

The database error ist not a real error of the sms system.

So we can deactivate the error reporting in the sms.php

Possibly it will help to reduce the automatic mails whitch tell us that there is a database problem.

Ok. try this

Delete this part in the sms.php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);


I will release Version 1.02 possibly today or tomorrow.
I get no errors with the new smilie function on my board and i think the hack is stably enough to release him.

I look forward and will modify the code whitch check non-blank user-id?s.

PcFreak

mtha
06-03-2004, 05:27 AM
nice addon.

I'll be able to "call" some buddy to login a chatroom or YIM if he's online :D

Here's a small add-on, to show an SMS icon next to YIM icon when you view the Who is Online page:


In whosonlinebit template, find

$userinfo[aimicon]
$userinfo[icqicon]
$userinfo[msnicon]
$userinfo[yahooicon]


add after:


<if condition="$show['loggedinuser']">
<a onClick="window.open('sms.php?do=sms&amp;$session[sessionurl]u=$userinfo[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" href="#"><img src="$stylevar[imgdir_misc]/im_sms.gif" alt="Send SMS to $userinfo[username]" border=0/></a></if>


upload some icon, name it im_sms.gif. for example this one: http://www.cityu.edu.hk/webimage/message/balloon.gif

Note. This one is a simple add-on, assuming that all users use the sms function. I didnt use/check for those who disable the sms.

06/04/2004. UPDATE
Only show icon for those who have SMS system active, check this one.
https://vborg.vbsupport.ru/showthread.php?p=519085#post519085

will_lean
06-03-2004, 08:37 AM
hello


Step 1)

To get new sms on each page
put this code in you phpinclude_end template:


include("./includes/functions_sms.php");

when i add the include line to the template i can no longer view my board it draws a blank page?Why would including this file be breaking my templates or not display the board at all?

has anyone else had this problem with the includes file?

PcFreak
06-03-2004, 07:50 PM
I have update the sms system to version 1.02

Read the first thread

PcFreak

will_lean
06-03-2004, 08:52 PM
any idea why including the file would not be working for me?

im also getting this error since i converted to 1.02
UPDATE __statistik_zaehler
SET Summe = Summe+1
WHERE Zaehler_f?r = 'Anzahl_der_SMS'

mysql error: Table 'databass_-_2._statistik_zaehler' doesn't exist

PcFreak
06-03-2004, 09:02 PM
Soory, sorry sorry.

This code is for a intern statistic.
I fix the zip file.
Thank you.

will_lean
06-03-2004, 09:20 PM
:ermm:
that fixed the db error i was getting but the hack wont work for me?
if i add the fuction data to i.e. index.php under the line
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###

i get a blank popup window when i try sending a msg.
when i include the function_sms.php file to the template it displays a blank white page for me?


my forum dir is in /root/forum/ folder so maybe this is making the problem with the includes file?

can anyone help me? :tired:

PcFreak
06-03-2004, 09:39 PM
Try this:

Replace this code in the funktions_sms.php
print "win = window.open('sms.php?do=sms_lesen','_blank','toolb ar=no,location=no,menubar=no,scrollbars=yes,width= 550,height=500,resizeable=no,status=no');";

with

print "win = window.open('forum/sms.php?do=sms_lesen','_blank','toolbar=no,locatio n=no,menubar=no,scrollbars=yes,width=550,height=50 0,resizeable=no,status=no');";

in the template forumhome_loggedinuser <a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" title="Send $loggedin[musername] an SMS message?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]</a>

replace this code with
<a onClick="window.open('forum/sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" title="Send $loggedin[musername] an SMS message?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]</a>


Maybe it will help

PcFreak

will_lean
06-03-2004, 09:56 PM
:confused:
ok that didnt seem to do anything?
the error has to be with the includes file?????
i have no idea what the problem is but this hack will not work for me :speechless:
adding the function_sms file makes my board a white page.
adding the php data from function to say index.php as your first instructions gives me a blank popupscreen?
(see screenshot).

nineball
06-03-2004, 11:36 PM
it is working for me, but none of the smile images show up, since you have your own gif images which you didn't upload, also some of the descriptions of the similies are not in english. could you translate them

PcFreak
06-04-2004, 04:40 AM
To use smilies in the templates sms_lesen and sms_schreiben
change the path to the smilie images between

<!--#### Smilie part Start ###-->
and
<!--#### Smilie part Stop ###-->

There are no smilies in the new zip.file.
I think everybody want to use his own smilies and have a other syntax for them.

This part of code must adapt individually.

PcFreak

Smilies function only with Internet Explorer

mtha
06-04-2004, 06:29 AM
I'll be able to "call" some buddy to login a chatroom or YIM if he's online :D

Here's a small add-on, to show an SMS icon next to YIM icon when you view the Who is Online page:
UPDATE: only show icon for those who have SMS option active

in online.php

look for:

$allusers = $DB_site->query("
SELECTusername,

add smsstatus, after that


In whosonlinebit template, find

$userinfo[aimicon]
$userinfo[icqicon]
$userinfo[msnicon]
$userinfo[yahooicon]


add after:


<if condition="$userinfo['smsstatus']==1">
<a onClick="window.open('sms.php?do=sms&amp;$session[sessionurl]u=$userinfo[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" href="#"><img src="$stylevar[imgdir_misc]/im_sms.gif" alt="Send SMS to $userinfo[username]" border=0/></a></if>


upload some icon, name it im_sms.gif to /images/misc/ folder. for example this one: http://www.cityu.edu.hk/webimage/message/balloon.gif

mtha
06-04-2004, 07:26 AM
To add Using SMS location to Online page:

<edit file>
includes/functions_online.php
</edit file>

<search for>
case 'showthread':
</search for>

<add before>
case 'sms':
$userinfo['action'] = 'Using SMS system';
break;
</add before>

<search for>
else if (strpos($token, "/$modcpdir/") !== false)
{
if ($filename == '' OR $filename == 'index.php')
{
$userinfo['activity'] = 'modcplogin';
}
else
{
$userinfo['activity'] = 'modcp';
}
return $userinfo;
}
</search for>

<add after>
else if (strpos($token, "sms.php") !== false)
{
{
$userinfo['activity'] = 'sms';
}
return $userinfo;
}
</add after>

solboy
06-05-2004, 01:47 AM
How do you upgrade to version 1.02?

mtha
06-05-2004, 06:31 AM
How do you upgrade to version 1.02?- upload new SMS files
- replace templates

and ... test :D

I bet that's all what yo need to do.

boydekort
06-05-2004, 12:05 PM
I was wondering if it would be a problem to code a link between acp and this to import the smilies instead of manual adding links.

Like how you would import smilies trough admincp for the forum you would get a button called import smilies to sms system or link them so the smilies you uploaded for forum automaticly work for your sms system ??

would that be possible.

PcFreak
06-05-2004, 01:07 PM
To use smilies in the textfield from the sms system is realized with a little java script.

In the templates sms_schreiben or sms_lesen you found this code
<!--#### Smilie part Start ###-->

&nbsp;
<img src="images/smilies/zwinkern.gif" border="0" onclick="document.getElementById('nachricht').value += ' :) '">
<img src="images/smilies/smilelili.gif" border="0" onclick="document.getElementById('nachricht').value += ' ;) '">
<img src="images/smilies/motz.gif" border="0" onclick="document.getElementById('nachricht').value += ' :motz: '">
<br>
&nbsp;
<img src="images/smilies/please.gif" border="0" onclick="document.getElementById('nachricht').value += ' :please: '">


.....................................
<!--#### Smilie part Stop ###-->


Change the images path to you own smilies and change the smilie syntax too. (in this part of code value += ' :your own smilie syntax: '">

PcFreak

killervette
06-06-2004, 04:53 AM
I have VBindex, how can I change the online users on it to link to the SMS system?

tcs
06-06-2004, 01:34 PM
Adding 'Using SMS System' to your who's online page.

This works with SMS Ver. 1.02

In your includes/functions_online.php


Find:
case 'pm':
$userinfo['action'] = $vbphrase['private_messaging'];



Add Above:
case 'sms':
$userinfo['action'] = 'Using SMS System';
break;



Find:
default:
$userinfo['activity'] = 'unknown';

Add Above:
case 'sms.php':
$userinfo['activity'] = 'sms';
break;

boydekort
06-07-2004, 12:50 PM
thanks for the addition TCS :)

[edit]got a problem with the smilies seems is the thumbnails are to big they wont be seen I mean above 20*20 seems not to be shown.

anyway of fixing that marging ?
because most of my nice ones are around 25*30[edit]

Logik
06-07-2004, 12:58 PM
when this is translated to all english, and workin correctly i will install

PcFreak
06-07-2004, 04:51 PM
I have update the zip.file to fix a little bug.

Read first post

Thank you
PcFreak

boydekort
06-07-2004, 06:36 PM
pcfreak did that include the thumbnail error ?

tcs
06-07-2004, 10:56 PM
For anyone that does not wish to re-type and hunt the smiles for the english version you can insert this code.

These are the basic vBulletin 11 smiles included with your zip file.

Replace the ones in the templates with this code.


<!--#### Smilie part Start ###-->

&nbsp;
<img src="/forums/images/smilies/smile.gif" border="0" onclick="document.getElementById('nachricht').value += ' :) '">
<img src="/forums/images/smilies/wink.gif" border="0" onclick="document.getElementById('nachricht').value += ' ;) '">
<img src="/forums/images/smilies/mad.gif" border="0" onclick="document.getElementById('nachricht').value += ' :mad: '">
<br>
&nbsp;
<img src="/forums/images/smilies/cool.gif" border="0" onclick="document.getElementById('nachricht').value += ' :cool: '">
<img src="/forums/images/smilies/biggrin.gif" border="0" onclick="document.getElementById('nachricht').value += ' :D: '">
<img src="/forums/images/smilies/eek.gif" border="0" onclick="document.getElementById('nachricht').value += ' :eek: '">
<br>
&nbsp;
<img src="/forums/images/smilies/confused.gif" border="0" onclick="document.getElementById('nachricht').value += ' :confused: '">
<img src="/forums/images/smilies/frown.gif" border="0" onclick="document.getElementById('nachricht').value += ' :( '">
<img src="/forums/images/smilies/redface.gif" border="0" onclick="document.getElementById('nachricht').value += ' :o '">
<br>
&nbsp;
<img src="/forums/images/smilies/tongue.gif" border="0" onclick="document.getElementById('nachricht').value += ' :p '">
<img src="/forums/images/smilies/rolleyes.gif" border="0" onclick="document.getElementById('nachricht').value += ' :rolleyes: '">
<br>
&nbsp;

<!--#### Smilie part Stop ###-->

tcs
06-07-2004, 10:59 PM
I have VBindex, how can I change the online users on it to link to the SMS system?


I don't use vbindex but I would guess it has it's own template for the active users. You might ask them how to incorperate this code in to there portal.


<a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no,status=no');return false" target="_blank" title="Send $loggedin[musername] an SMS message?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]</a>

PcFreak
06-07-2004, 11:08 PM
<a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no ,status=no');return false" target="_blank" title="Send $loggedin[username] an SMS message?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]</a>

This code is better.
With the first var $loggedin[musername] you can get problems, because this var of username is with all formats (HTML, Color ect..), so is better use $loggedin[username] in the code.

The second var with $loggedin[musername] is OK.

PcFreak

will_lean
06-08-2004, 06:35 AM
Im using vbadvanced and i didnt need to change anything for the online users link to popup the sms window.
very nice! :banana:

InnerSelf
07-05-2004, 07:22 PM
it works like a charm on my board but i see on weird thing coming back.

i did the template modefication



Step 1)

To get new sms on each page
put this code in you phpinclude_end template:


include("./includes/functions_sms.php");



and after that the window after i send a message is not closing anymore by itself. any suggestions?

BarHopper
07-17-2004, 07:10 PM
The window pops up, but its a blank white screen. is this a common problem? What do you think it could be?

Sadie Frost
07-18-2004, 01:59 AM
The window pops up, but its a blank white screen. is this a common problem? What do you think it could be?
Do you have a template missing?

Bro_Joey_Gowdy
07-20-2004, 02:53 PM
clicks install

ForYou
07-20-2004, 09:56 PM
clicks install
Hello Sir ,

I was install the Sms System hack and it is work good without any problems , but my qustion now is ?
I'm using an arabic Forum and the font from right to lift not from left to right and my problem is when i recived any sms from any user there is problem with the font it will be from left to right !!

how can i solve it to stay the font from right to left ,

i hope you understand me becuase my english languge not good (sorry) ..

regards

blackshadowc4p
08-03-2004, 07:18 PM
We installed this on our forum and it almost drove me nuts. This is what happened:

1. Just after we installed, I started getting lots of SMS from members of the board (working fine, nice), so I closed all SMS windows and disabled it on my user cp

2. After some time, I noticed that whenever I tried to post a reply (advanced) or create a new thread, I could no longer use the post toolbar (B I U ....) or the smiles, I clicked on them and it did nothing. The one on quick reply worked perfect.

Well, today I have done lots of tests with IE and Firefox and it was not working. I then created a temporary account and used that, weird, it works perfect. So, I knew I didn't have anything wrong on my configuration.

Back to my account, I started changing all settings since the time I noticed it stoped working. When I entered user cp and re-enabled SMS, logged out, logged it, wow, I got a lot of SMS messages that were probably queued to me. Funny thing, after this, the toolbar and smiles are working again, no problems at all.

On IE, I could see that an error was being generated (see attached picture).

It seems that, if you have SMS messages waiting and you have disabled SMS on your user profile, it is interfering with the vbulletin sofware in a way that a user can't use some features till he clears the queue.

Hope this helps find what is wrong here.

Liquid1ce
08-14-2004, 01:09 PM
isnt a sms the thing you send a recive with a moblie phone?
[AOL keyword: cell phone]

lol ^ :)

tcs
08-15-2004, 04:15 PM
SMS means Short Message System. it is a term that has primarily been used for Text Messaging on Cell Phones.

A more appropriate term for this hack might be "Quick" Messaging System but SMS works.

tcs
08-15-2004, 07:08 PM
I have tested you SMS mod's. He should approve you have done some nice work to the SMS System.

Good job.

MiLynne
08-16-2004, 04:52 AM
I installed this hack (english) but found the output a little messy, and some of the code didn't really do what I wanted it to do, so I've made quite a lot of changes and my forum users are (so far) very happy, me too.

Basically all templates are changed quite a lot to look "better" (imho), but also "leaner" with no click smilies etc.

I've changed it so banned/moderated members can't use the system.

It's "opt in" based on a custom user field and the sms/pager link is shown on postbits only, and only if both the user, and the poster, have the system enabled.

Few other bits I'm not sure entirely.

Anyway, coud someone please tell me the deal with posting modified mods in case anyone wants it "my way"?

Thanks.

Oh yes, I use it on v 3.0.3

I'd really like to install your modified version if it's specific to 3.0.3. I'm having a lot of issues with hacks that aren't compatible. I'll keep my fingers crossed he says it's ok!!

Codeman05
08-16-2004, 05:49 AM
is there anyway to adjust the size of the popup window...1/2 of the message box is cutoff on mine

Polo
08-17-2004, 01:33 PM
Nice addon PcFreak, I used Mini2 modified hack and seems to be working great ;)

XanaduRanch
08-17-2004, 03:44 PM
Where can I download and try the latest MINI2 version of this?

Great Minds .... you beat me to it. Thanks. I'll try it!

Polo
08-17-2004, 03:56 PM
Where can I download and try the latest MINI2 version of this?

Here (https://vborg.vbsupport.ru/attachment.php?attachmentid=20229)

NuclioN
08-17-2004, 04:08 PM
I liked the link in who's online when you could click on the username to send a sms directly. Is that possible with your version mini2? And do we have to uninstall or can it be upgraded by overwriting the files?

NuclioN
08-17-2004, 06:47 PM
Hm...nothing can be send or recieved after using this new sms. New profile field is made, correct profilefieldnumber is in place...when i click on a link in who's online it says that there is no permission but this is set to yes in user cp..

NuclioN
08-17-2004, 07:04 PM
Nope, the postbit does not show up. When i remove the conditionals it is showing up for everybody but when you click on it the same 'You don't have permission or
has deactivated their Forums Pager' shows up

NuclioN
08-17-2004, 07:13 PM
Yes i've done that by the letter. I've read it three times to be sure i didn't forget something

Polo
08-17-2004, 08:58 PM
I have mini2 mod version running in a vb 3.0.3 and i havent encounter any problems... welll i found one but was solved... and the file has been updated so I really dont know why is not working for you.

MiLynne
08-18-2004, 01:21 AM
Nuclion, where's your site at with the sms/pager installed?
I have an error on functions_sms.php

Fatal error: Call to a member function on a non-object in /home/ratpack/public_html/includes/functions_sms.php on line 10

and when I go to my SMS System options link, it takes me to a blank page.

I downloaded both hacks, but neither seem to have what I need to correct.

turbidblue
08-18-2004, 06:46 PM
thanks to pc freak and mini for such a cool hack and the addons...



* turbidblue clicks install ;)

platnum
10-02-2004, 03:02 PM
Installed Mini2's version.. Everything works like a charm! Thanks!

Just wondering... Is there anyway I could have it enabled for all users by default? Instead of them having to enable it?

Thanks! w00t! :D

platnum
10-05-2004, 02:27 PM
Did that bro... They still have to go into there account an enable it :(... Unless someone new signs up, then it's set on yes for them :(

Nordinho
10-28-2004, 06:10 PM
Would it be possible to include smilies in the message box??

greets,

Lionel
11-08-2004, 06:36 PM
I've got is installed and working, disabled the error reporting, but when someone try to log in with the wrong info, I get this error database message

Invalid SQL:
SELECT id_vom_empfaenger
FROM sms
WHERE id_vom_empfaenger = mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

error was from login.php
reported by showthread

Lionel
11-09-2004, 02:05 PM
I fixed that error. It is coming from people trying to login in without a username or password. So I wrapped the entire function_sms with

if ($bbuserinfo[username] && $bbuserinfo[userid])
{

function goes here

}

Now, I'd like to know if there is a way to make the postbit image display only when user is online?

deepdark
11-11-2004, 09:09 PM
i have a vbindex and this code is going? on some file or some template any help???

<a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,widt h=550,height=300,resizeable=no ,status=no');return false" target="_blank" title="Send $loggedin[username] an SMS message?" href="sms.php?do=sms&userid=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]</a>

This code is better.
With the first var $loggedin[musername] you can get problems, because this var of username is with all formats (HTML, Color ect..), so is better use $loggedin[username] in the code.

The second var with $loggedin[musername] is OK.

PcFreak

mahiraminc
11-19-2004, 12:06 PM
I don't want the popup to be any more than 250 px in height and 300 pix in width.

By default the window size on the browsers IE and Netscape is 300 x 300.

How do I go about fixing this? I already tried putting in the values in window.open link... and the window opens at 300x300.

Even if I can live with that... but when I receive a message, it opens in a different size? Not 300X300.. Where do I modify the code to open a window in 300x300 when person receives a message?

Thanks.

ambrosious
01-01-2005, 12:05 AM
How or where can I turn it on? I get this message...

JoePublic. You don't have permission or
has deactivated their Adult Adventurers Pager

ambrosious
01-02-2005, 01:33 AM
Anybody have any ideas?

aranthorn
01-23-2005, 03:36 AM
Anyone supporting this hack anymore?

duncan99
02-19-2005, 12:20 AM
For those need to run a query for the old users :


UPDATE userfield SET fieldxx='Yes';


change xx to the number of your field.

This would set all default to yes.

Allan
03-27-2005, 04:57 PM
Thanks, work on vB 3.0.7 ;)

==> "Click Install" <==

Allan
04-01-2005, 01:12 PM
error:

once that one has to send a SMS has a member, I obtains a white page on the forum

an idea on this prob ?

T3MEDIA
04-17-2005, 01:38 PM
You've followed every step of the installation including the changes you have to make to set the correct $field_no and $bad_groups, and change "field90" in Step 4 of the installation?Mini this is old as the hills but I know your a pritty good coder. How could it be done where if a pager or sms is not answered it goes to their private messages?

tcs
04-17-2005, 11:58 PM
I've got is installed and working, disabled the error reporting, but when someone try to log in with the wrong info, I get this error database message

Invalid SQL:
SELECT id_vom_empfaenger
FROM sms
WHERE id_vom_empfaenger = mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

error was from login.php
reported by showthread


This is a simple (Rare) error cause by 2 conditions. Time out that a user shows still on "Online" when in fact that have been offline for the set time out period.

The condition that causes the errors is when another user is trying to send an SMS to the Offline user who has been is dropped from the sessions. He is no longer in the database as being Online so you get a SQL error.

The error is fixable and I have been wanting to do it but haven't had the time.

T3MEDIA
04-21-2005, 12:53 PM
I see what is wrong with this code. it has to do with the phpinclude_end.

If you get dubble tripple etc sms windows its becuase this program calls even on itself.

I did a few fixes (should fix that white screen too)



if ((THIS_SCRIPT == 'buddies') OR (THIS_SCRIPT == 'member') OR (THIS_SCRIPT == 'vbindex') OR (THIS_SCRIPT == 'index') OR (THIS_SCRIPT == 'journal') OR (THIS_SCRIPT == 'usercp') OR (THIS_SCRIPT == 'arcade') OR (THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'private'))
{
include_once("./includes/functions_sms.php");
}

Yeah its a bit long and some hacks you may not have but it wont affect you so you can leave it.

This will bring it up one at a time.

you could do it this way as well.... I really wish Mini2 would help out though...

if ((THIS_SCRIPT != 'sms'))
{
include_once("./includes/functions_sms.php");
}

T3MEDIA
04-21-2005, 01:27 PM
Fuq cant get that to work either. it is as if the phpinclude runs regardless.
dam it. Dont you hate not being able to get something to dam work?

T3MEDIA
04-27-2005, 09:56 PM
ANyway Mini I cant get a hold of... anyone can over look the code he has and let me know why I get database errors? That would be nice. Thanks.

T3MEDIA
05-02-2005, 02:46 PM
I have a few ideas how do I go about time stampping the date on the page?

I am almost sure there is a global varable that can do this and I would simply have to place it somewhere.

I know this hack is old and almost no one reviews this one anymore but I would like to think this out with you guys.

T3MEDIA
05-04-2005, 11:31 PM
I've been having a lot of problems/work to do lately on my site(s) so I've not been able to respond/work on anything vB related lately.

If things go to plan within a week or two I might be able to help out more.Ok Mini2 Love for the response.

Can anyone help at all? I do pay.

sv1cec
06-14-2005, 05:27 AM
What's your issue again? I just installed this, and after heavily customizing it, it works fine for me.

T3MEDIA
06-15-2005, 04:22 AM
What's your issue again? I just installed this, and after heavily customizing it, it works fine for me.It was a myvb_ issue.
I got it working now. I would only like to have the pages time stamped.

I do not know how to do that however.

sv1cec
06-15-2005, 04:36 AM
There is a time stamp on the messages you receive, right on the top of the message where it says "Hello Member 1,Member2 has send you a message" and then it has the time and date. Where else do you want a time stamp?

sv1cec
06-16-2005, 04:44 AM
I have one question here, maybe you folks would like to comment. From what I see in the code, when someone sends you an SMS, you will not see it, unless you change the page you are viewing, or reload it. Another option would be to be in the "Who's On-Line" page, which gets refreshed every so often, so SMS gets delivered.

I was thinking on doing some coding, which will do the followings:

- Upon user's first logging in the site, it will open a new, tiny browser window.
- This browser windo will remain open, and be refreshed every few seconds. In reality, the only code in that window, will be the code, which shows you the received SMS's.
- The user will thus be able to close the main forums window, and leave that small window open, so his SMS's will pop up, when received, even if he is working with something else.

What do you think of this?

Rgds

T3MEDIA
06-16-2005, 06:36 AM
just have it set up to work with the buddy list.

sv1cec
06-24-2005, 07:06 AM
Well, for those interested, I've ... hacked this hack enough, to allow you to receive and send SMS messages, even if you do not browse the site. I have created a small window, that you call it from a link in the navbar. That window, checks for new SMS messages by refreshing itself every so often. If you get a new SMS, a new window will pop up and show you the SMS.

The small window, also contains a link, through which you can send an sms to another member. You click on it, a window pops up which prompts you for the recipient name. Enter it click the button and you are ready to type in, your SMS.

My users find it extremely useful, since they no longer have to have the site open, in the Who's On-Line page, to get their messages. The small window is very unobtrusive.

The standard functionality of poping up your received SMS's when you are browsing the site, still remains, but is no longer necessary.

If someone is interested, I can provide you with the code mods, but I have not kept notes when making the changes, so don't expect that to be a fully documented mod.

Rgds

altsounds
07-14-2005, 04:39 PM
Anyone know how I can make this so that Members can IM guests too?? Like a promotional type tool??

Also, how would I go about quoting what I said originally in my reply?? Sometimes by the time I get a message back I have forgotten what I had written in the first place. This would make it much easier to follow the conversations.

T3MEDIA
07-16-2005, 11:14 AM
Anyone know how I can make this so that Members can IM guests too?? Like a promotional type tool??

Also, how would I go about quoting what I said originally in my reply?? Sometimes by the time I get a message back I have forgotten what I had written in the first place. This would make it much easier to follow the conversations.That would be nice. alot of times people are like... what?

That and time stamping is all this baby needs.

altsounds
07-19-2005, 05:03 PM
It has a time stamping already telling you when the message was sent. Anyone know how to make this work for guests?

csidlernet
07-20-2005, 08:43 AM
Danke!

NuclioN
08-17-2005, 04:18 PM
extremely useful indeed! Can someone port this to 3.5 please. It is not that much code. :)

PcFreak
08-17-2005, 06:02 PM
extremely useful indeed! Can someone port this to 3.5 please. It is not that much code. :)

I work on it.
I am finished to 90% and will release an 3.5 Version the next days.

PcFreak

Here two screenshoots!

a) write a message
b) read a message

NuclioN
08-18-2005, 07:06 AM
Great news. Awesome! :)

T3MEDIA
08-21-2005, 12:21 AM
It has a time stamping already telling you when the message was sent. Anyone know how to make this work for guests?were or should I say how? I wanted to add this but my posts get ignored. maybe you can post how this is done?

T3MEDIA
08-21-2005, 12:26 AM
There is a time stamp on the messages you receive, right on the top of the message where it says "Hello Member 1,Member2 has send you a message" and then it has the time and date. Where else do you want a time stamp?Ahh thank you I see mini2's mod removes the time stamp. ok I will put that back in. I was curious of how to make a qoute /quote for responses. so users can remember what the converstation was about. Any idea how to do that?

Another person told me it would be nice if the whole converstation stayed and it was just in a scrollable window. that would be cool to... like a messenger.

If you know how please let me know its very hard to get information sometimes on this site.

Thanks.

T3MEDIA
09-24-2005, 01:20 PM
Any idea on how I can get the users avatars to show up? Please and thank you. Also what about a dhtml pop up (so there wont be any blocked pop ups) that says so and so is trying to page you accept? you know then it pops up. or make it pop up within the page itself with dhtml and a iframe.

Please and thank you on these idea topics.

NuclioN
09-30-2005, 03:08 AM
Any progress of this ? :) Hope you figure it out.

T3MEDIA
09-30-2005, 10:26 AM
No to be honest I am not liked on this site due to previous hack scams (I voiced them out) So people rarely respond to my requests.

However if you need something maybe contacting them in PM could get you results. I do not see why they wont help you out.

Best of luck.

NuclioN
10-03-2005, 08:20 AM
Why you don't release it, we are waiting a long time for this :)

T3MEDIA
10-03-2005, 02:06 PM
Give me a couple of days and I'll see what I can do.Did you ever get avatars to work?

T3MEDIA
10-05-2005, 06:40 PM
Nope, not included them. I did put the recievers local time on the messages though (time sent). I don't think avatars would be hard to add, but for my purposes they'd just clutter up an already pretty small pop-up box.See for me that is what I need... that and their location... or whatever fields in the profiles...

T3MEDIA
10-13-2005, 10:52 AM
I have made this pager show profile pictures and have {quotes} and it is VERY simple.

I am having issues with vb.org so if anyone is intrested simply PM me.

MissKalunji
10-31-2005, 11:24 AM
I work on it.
I am finished to 90% and will release an 3.5 Version the next days.

PcFreak

Here two screenshoots!

a) write a message
b) read a message

Hey did it come out yet?

charlesk
10-31-2005, 07:23 PM
I just installed your version of this hack, mini2, and after a few changes it works great. Just wanted to say thanks.

One remaining glitch I am dealing with, however. If someone loads a page and has a message waiting, it displays it. If they then navigate to another page and then hit the back button, the popup comes back again, this time blank.

Is there any change that can be made to the javascript to avoid this?

Thanks!

MissKalunji
10-31-2005, 07:26 PM
I just installed your version of this hack, mini2, and after a few changes it works great. Just wanted to say thanks.

One remaining glitch I am dealing with, however. If someone loads a page and has a message waiting, it displays it. If they then navigate to another page and then hit the back button, the popup comes back again, this time blank.

Is there any change that can be made to the javascript to avoid this?

Thanks!

did u try it on vb 3.5 or?

charlesk
10-31-2005, 11:26 PM
This is vB 3.0.5. It's not a vB issue, I think it is just how the javascript works, when you "go back" the script runs a second time, and I want to have it stop somehow....

MissKalunji
10-31-2005, 11:32 PM
This is vB 3.0.5. It's not a vB issue, I think it is just how the javascript works, when you "go back" the script runs a second time, and I want to have it stop somehow....

aww :( im desperate to make this work

T3MEDIA
11-03-2005, 03:25 AM
This is vB 3.0.5. It's not a vB issue, I think it is just how the javascript works, when you "go back" the script runs a second time, and I want to have it stop somehow....I have this running on my site and it looks exactly like MSN messenger. To stop the dub. pop ups I made a second layout that says error and explains what the error was... (going back or having two windows open etc)

if your good with CSS you can do it easy. My pager has scroll bars, avatars, smiles, spell check, and it adjusts for usergroups... More txt for longer members etc.. view profile and member stats.

all template conditionals.

charlesk
11-04-2005, 01:27 AM
T3MEDIA... I wish I understood what you just said. :)

Unfortunately I am not good with CSS... if you can lay out what you did in baby steps for someone st00pid like me I would be grateful...

divided_by_fear
11-04-2005, 03:38 AM
this would be a sweet hack if it could be ported for 3.5.1

PcFreak
11-06-2005, 04:53 PM
The new Messenger is ready and called now, LPP Messenger

For a first impression visit: http://vbstatistic.com

username: lpptester
password: test

You can send a message by clicking on a username in the "Currently active users"-section on the forum's mainpage. To receive LPP Messenger messages make sure not to block any popups from this site.

Preamble: Lilis Pizza, Pizza Messenger is an enhancement from one of my older hacks (at-lantis SMS System). The name Pizza, Pizza has no special reasons and is fine as any other. Lili is my lovely wife (best wife ever) In fact I didn't eat any pizza whilst scripting.

However, the LPP Messenger isn't availably yet. Perhaps we plan to sell this modification for 1 pizza and a glass of beer (ca: 10 ?uro) ;).

PcFreak

______________
Thanks to hellraider from vBhacks-germany (http://www.vbhacks-germany.com/forum/) for the English translation

MissKalunji
11-06-2005, 07:37 PM
The new Messenger is ready and called now, LPP Messenger

For a first impression visit: http://vbstatistic.com

username: lpptester
password: test

You can send a message by clicking on a username in the "Currently active users"-section on the forum's mainpage. To receive LPP Messenger messages make sure not to block any popups from this site.

Preamble: Lilis Pizza, Pizza Messenger is an enhancement from one of my older hacks (at-lantis SMS System). The name Pizza, Pizza has no special reasons and is fine as any other. Lili is my lovely wife (best wife ever) In fact I didn't eat any pizza whilst scripting.

However, the LPP Messenger isn't availably yet. Perhaps we plan to sell this modification for 1 pizza and a glass of beer (ca: 10 ?uro) ;).

PcFreak

______________
Thanks to hellraider from vBhacks-germany (http://www.vbhacks-germany.com/forum/) for the English translation


hurry up im whilling to buy :) thanks

MissKalunji
12-08-2005, 08:04 PM
I have this running on my site and it looks exactly like MSN messenger. To stop the dub. pop ups I made a second layout that says error and explains what the error was... (going back or having two windows open etc)

if your good with CSS you can do it easy. My pager has scroll bars, avatars, smiles, spell check, and it adjusts for usergroups... More txt for longer members etc.. view profile and member stats.

all template conditionals.


send on i'de be intrested

T3MEDIA
02-02-2006, 10:07 AM
I need some help.. I know members have moved on but take a look at this script..
http://www.dynamicdrive.com/dynamicindex17/dropinbox.htm

I was thinking this would be better for the pager... I am just now sure how to call it up. what is the actual call to let a user know there is a page? What I want to do is have that page drop down in front of them on the screen.