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


All times are GMT. The time now is 04:48 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.01944 seconds
  • Memory Usage 1,765KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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