Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
At-lantis SMS System Version 1.02 (Instant Messenger for vB3) Details »»
At-lantis SMS System Version 1.02 (Instant Messenger for vB3)
Version: 1.00, by PcFreak PcFreak is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 05-29-2004 Last Update: Never Installs: 38
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 06-03-2004, 11:36 PM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #53  
Old 06-04-2004, 04:40 AM
PcFreak's Avatar
PcFreak PcFreak is offline
 
Join Date: May 2003
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #54  
Old 06-04-2004, 06:29 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
I'll be able to "call" some buddy to login a chatroom or YIM if he's online

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

HTML Code:
 			$userinfo[aimicon] 
			$userinfo[icqicon]
			$userinfo[msnicon]
			$userinfo[yahooicon]
add after:

HTML Code:
		<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,width=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:
Reply With Quote
  #55  
Old 06-04-2004, 07:26 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add Using SMS location to Online page:

Code:
 <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>
Reply With Quote
  #56  
Old 06-05-2004, 01:47 AM
solboy solboy is offline
 
Join Date: Jun 2002
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you upgrade to version 1.02?
Reply With Quote
  #57  
Old 06-05-2004, 06:31 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by solboy
How do you upgrade to version 1.02?
- upload new SMS files
- replace templates

and ... test

I bet that's all what yo need to do.
Reply With Quote
  #58  
Old 06-05-2004, 12:05 PM
boydekort boydekort is offline
 
Join Date: Jun 2003
Location: geleen nl
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #59  
Old 06-05-2004, 01:07 PM
PcFreak's Avatar
PcFreak PcFreak is offline
 
Join Date: May 2003
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
PHP 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
Reply With Quote
  #60  
Old 06-06-2004, 04:53 AM
killervette killervette is offline
 
Join Date: Nov 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have VBindex, how can I change the online users on it to link to the SMS system?
Reply With Quote
  #61  
Old 06-06-2004, 01:34 PM
tcs's Avatar
tcs tcs is offline
 
Join Date: Jun 2002
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Adding 'Using SMS System' to your who's online page.

This works with SMS Ver. 1.02

In your includes/functions_online.php

Code:
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;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05343 seconds
  • Memory Usage 2,329KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete