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
  #42  
Old 06-02-2004, 10:37 PM
nineball nineball is offline
 
Join Date: Jan 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

nice addon.

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:


In whosonlinebit template, find

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

HTML Code:
		<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,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. for example this one:

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/showthrea...085#post519085
Reply With Quote
  #45  
Old 06-03-2004, 08:37 AM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello


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

I have update the sms system to version 1.02

Read the first thread

PcFreak
Reply With Quote
  #47  
Old 06-03-2004, 08:52 PM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea why including the file would not be working for me?

im also getting this error since i converted to 1.02
Code:
UPDATE __statistik_zaehler 
			SET Summe = Summe+1
			WHERE Zaehler_f?r  = 'Anzahl_der_SMS'
		
mysql error: Table 'databass_-_2._statistik_zaehler' doesn't exist
Reply With Quote
  #48  
Old 06-03-2004, 09:02 PM
PcFreak's Avatar
PcFreak PcFreak is offline
 
Join Date: May 2003
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Soory, sorry sorry.

This code is for a intern statistic.
I fix the zip file.
Thank you.
Reply With Quote
  #49  
Old 06-03-2004, 09:20 PM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Try this:

Replace this code in the funktions_sms.php
PHP Code:
    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');"
with

PHP Code:
    print "win = window.open('forum/sms.php?do=sms_lesen','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=550,height=500,resizeable=no,status=no');"
in the template forumhome_loggedinuser
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  $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
PHP Code:
<a onClick="window.open('forum/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  $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
Reply With Quote
  #51  
Old 06-03-2004, 09:56 PM
will_lean will_lean is offline
 
Join Date: Apr 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


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).
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 12:49 PM.


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.04769 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (6)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_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