vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   At-lantis SMS System Version 1.02 (Instant Messenger for vB3) (https://vborg.vbsupport.ru/showthread.php?t=65669)

PcFreak 05-29-2004 10:00 PM

At-lantis SMS System Version 1.02 (Instant Messenger for vB3)
 
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
PHP Code:

<a onClick="window.open('sms.php?do=sms&amp;userid=$loggedin[userid]','_blank','toolbar=no,location=no,menubar=no,width=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[buddymark]</a



Mods:
Show an SMS icon next to YIM icon when you view the Who is Online page
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

Quote:

Originally Posted by PcFreak
//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

Quote:

Originally Posted by NuclioN
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
PHP Code:

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ### 

below add
PHP Code:

// ##### 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','toolbar=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....02&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:
PHP Code:

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

Quote:

Originally Posted by NuclioN
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

Quote:

Originally Posted by Bad Bunny
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.

Quote:

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

Quote:

Originally Posted by PcFreak
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

Quote:

Originally Posted by NuclioN
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
PHP Code:

<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername 

replace ist with

PHP Code:

<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

Quote:

Originally Posted by Zombie
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.


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01379 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete