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)

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
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

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

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: 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/showthrea...085#post519085

will_lean 06-03-2004 08:37 AM

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?

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
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


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
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:

PcFreak 06-03-2004 09:39 PM

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

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

Quote:

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

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: http://www.cityu.edu.hk/webimage/message/balloon.gif

mtha 06-04-2004 07:26 AM

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>


solboy 06-05-2004 01:47 AM

How do you upgrade to version 1.02?

mtha 06-05-2004 06:31 AM

Quote:

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

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

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;


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.

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

Quote:

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

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


PcFreak 06-07-2004 11:08 PM

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[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


Code:

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

Quote:

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

Quote:

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

Quote:

Originally Posted by mini2
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 ;)


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

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.01498 seconds
  • Memory Usage 1,887KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_html_printable
  • (8)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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