vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple pager / sms / instant message system... (https://vborg.vbsupport.ru/showthread.php?t=98301)

mini2 10-12-2005 10:00 PM

Simple pager / sms / instant message system...
 
Gone

NuclioN 10-13-2005 09:51 AM

Wow at last :) I've looked at the install file and have a question. Is it possible to make it so that you can send a message by clicking on the username online on forumhome?

Barakat 10-13-2005 10:40 AM

seem nice but from where u can enter its settings ? or turn it on ... no admincp files or includes xml file ?

Barakat 10-13-2005 10:55 AM

i got it from the usercp ..... thanks

NuclioN 10-13-2005 11:19 AM

The autoclose window doesn't work. Also the main window width from the forum is streched after recieving a message.

NuclioN 10-13-2005 11:56 AM

Ok, i've removed old sms templates and now it works much better tnx :) Now i've to find out how to set the window width, they are not displayed full but you have to scroll..

NuclioN 10-13-2005 02:21 PM

When i send a message to myself the main forum window stays in place but when recieving from another...it makes to much width and a scroll appears. Not in the message itself but in the forumwidth. (??)

This code i've put in forumhome_loggedinuser to use it with online members when clicking on their name:

$stylevar[dirmark]
<a onClick="window.open('sms.php?do=sms&amp;userid=$l oggedin[userid]', '_blank', 'toolbar=no,location=no,menubar=no,width=400,heigh t=400,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>

Gizmo5h1t3 10-13-2005 04:17 PM

Quote:

This is based on a forum being installed at /forum/, if it's not, check and change the php and install xml files for instances of /forum/
thers nothin in the xml or the php that has the /forum/ path to edit??

and i need this sorting, as mine IS different.....

my path is /board/

pager tellin me its sent message, but user isnt recieving it....how long should it take to recieve a message??

EDIT : now recieving a pop up,when i change pages....... but its a "page cannot be displayed" pop up????

Gizmo5h1t3 10-13-2005 06:48 PM

i just did, and it works..
cracking hack, crap instructions m8...lmao.

get those a bit better, and mebbe ppl wont bother u so much...lmao

excellent work m8

kall 10-13-2005 07:48 PM

Quote:

Originally Posted by mini2
There's probably a variable I could stick in there to stop that problem, have to check that and change it later if I remember!

How about $bburl?

Or $vbulletin->options[bburl] ?

mtha 10-13-2005 10:35 PM

nice.

you can do few things:

-create a "setting" for sms_field in vBoptions, and use something like

$pager_status = $db->query_first("SELECT " . $vbsetting['sms_field'] . " AS status FROM " . TABLE_PREFIX . "userfield WHERE userfield.userid = $buddy[userid]");

in your plugins and your sms.php

cd1986 10-16-2005 03:55 AM

Just tried installing this mod, but keep getting this error whenever i try to test it out using the icon. Probably something obvious i've missed, but since it's nearly 6am i was hoping someone might be able to tell me a possible cause? :)

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT user.usergroupid as usergroupid, userfield.userid, userfield.field5 as pageron
FROM vb3_userfield LEFT JOIN user ON (user.userid = userfield.userid)
WHERE userfield.userid = 1 AND user.usergroupid NOT IN (1,2,3,8);

MySQL Error : Table 'cd19861.user' doesn't exist
Error Number : 1146

cd1986 10-16-2005 01:16 PM

Yes, field number is correct, and i went over all the steps again and all seemed ok. Only thing was that in step 8 it says "put $sms_scripthead under the <body> tag" but there is no <body> tag in the header template that i can see...

NuclioN 10-16-2005 01:55 PM

The timeoffset is not correct. On the forum itself it is but in sms not.

NuclioN 10-16-2005 02:02 PM

The time displayed for all members is - 2 hours

cd1986 10-16-2005 02:42 PM

Quote:

Originally Posted by mini2
Try this new version of sms.php

Still get the same error...seems to recognise the user table as simply "user" rather than "vb3_user" and so can't find it.

cd1986 10-16-2005 05:29 PM

Thanks, tried the new sms.php version which solved the initial error...but created a new one! :p

Invalid SQL:

SELECT vb3_user.usergroupid as usergroupid, userfield.userid, userfield.field5 as pageron
FROM vb3_userfield LEFT JOIN vb3_user ON (user.userid = userfield.userid)
WHERE userfield.userid = 1 AND user.usergroupid NOT IN (1,2,3,8);

MySQL Error : Unknown table 'userfield' in field list
Error Number : 1109

cd1986 10-16-2005 08:03 PM

Had to add a couple of extra table prefixes, but it now works! Well, at least it lets me send a message without error, but i can't receive one, even though both members have the pager system enabled. :ermm:

cd1986 10-17-2005 03:15 PM

Awesome it works! Thanks, looks like a great add-on hack. :)

I've attached the sms.php that worked for me, although it uses vb3_ instead of TABLE_PREFIX (it was the easiest way for me to check where the prefixes needed adding) so i guess those would need to be converted back for generic use!

cd1986 10-17-2005 04:23 PM

Just one thing...is there anyway to set the pager system up so no refresh or moving to another page is required to receive a message...or is there no way around that?

NuclioN 10-17-2005 04:38 PM

With the previous version i've added code in shoutbox.php because that whas refreshed almost every minute. The new vbshout has auto refresh on forumhome so if you can pull the message in combination with that it could work. :)

cd1986 10-17-2005 07:27 PM

What about something that effectively says - if message waiting for you, refresh current page - would that work?

NuclioN 10-17-2005 08:54 PM

hm...it must be possible to generate a sms popup when a condition is true, something global i think. Can't figure out how to do this though.

eNforce 10-17-2005 09:29 PM

This is a cool hack, installed with no problems at all.

ForYou 10-17-2005 11:05 PM

Hello Sir ,

I was install the hack ,

But when i look at the icon that in postBit there is no icon, I don't know why ,

I was put this code in postbit ,

<!-- pager -->
<if condition="$bbuserinfo[field90] == 'Yes' AND $post[field90] == 'Yes'">
<a onClick="window.open('sms.php?do=sms&amp;userid=$p ost[userid]', '_blank', 'toolbar=no,location=no,menubar=no,width=400,heigh t=400,resizeable=no,status=no' ); return false" target="_blank" alt="Send pager message to $post[username]" href="sms.php?do=sms&userid=$post[userid]">
<img src="$stylevar[imgdir_misc]/im_pager.gif" alt="Send message to $post[username]" width="18" height="18" border="0" title="Send message to $post[username]">
</a>
</if>
<!-- end pager -->

And was change the field # ,

Please Help ,

Regards

eNforce 10-17-2005 11:07 PM

Did you upload the image into the misc directory ForYou?

ForYou 10-17-2005 11:14 PM

yes Sir , I was upload it ,

ForYou 10-17-2005 11:23 PM

yes sir , i was test with my self and enable the pager from my control panel , but there is no icon in postbit ,

eNforce 10-17-2005 11:38 PM

ForYou, Do you have a seperate directory for your style images? Place the image in the misc directory for that style instead of your main forum/images/misc directory. (I had to do this)

@mini2, I have an idea for this hack.

Allow admins to send a mass page/SMS to all users who have the pager enabled... ?

ForYou 10-17-2005 11:43 PM

Sir , I was do evry thing but there is no icon and there is no X if the icon not showing ,

that mean the code not correct with me ,

Regards

ForYou 10-18-2005 01:21 AM

Please help ,

why i can't see the icon in the postbit , and if i remove this from the code
<if condition="$bbuserinfo[field90] == 'Yes' AND $post[field90] == 'Yes'">

i can show the icon but when i click on it there is the pop but with no permisions ,

webmaster You don't have permission or
has deactivated their Pager

what is the problem !!!

Regards

cd1986 10-18-2005 03:04 AM

Did you remember to change "field90" to the correct ID from the new user profile field you created?

ForYou 10-18-2005 11:30 AM

Sir ,

My Problem is Just can't see the Icon that click on it to send the message , I think the problem with if condition ,

Please Help ,

Regards

ForYou 10-18-2005 12:17 PM

Sir ,

Belive me , I was do the all 10 step in your instruction file , and import the product without any problem , but my problem is there is no icon in postbit , the same problem ,

please help

ForYou 10-18-2005 01:26 PM

Sir ,

I was Check in buddylist it not showing there also ,

But i need tell you there is option in control panel user , and if i remove the if condtion from postbit code , the icon will show but if i try to send my self there is no permasions ,

Please don't tell me no idea please ,

Regards

Flow Fusion 10-21-2005 11:38 AM

Thanks great hack but, I don't see any thing in my postbit or if this even works?

foreverdarkness 10-22-2005 11:46 PM

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT field10 FROM vb3_userfield WHERE userfield.userid = 2;

MySQL Error : Unknown table 'userfield' in where clause
Error Number : 1109
Date : Saturday, October 22nd 2005 @ 08:43:00 PM
Script : http://www.foreverdarkness.com/forum...dylist&focus=1

I followed the install file to a T and I get this error and can not figure a way to solve my problem. I did all the replacements of the field # and so forth.

foreverdarkness 10-23-2005 02:55 PM

Works Great now...Thank you so much for the fix!!!

MissKalunji 10-24-2005 10:57 PM

i got a question

can i set permission for this like only people from the moderator / admin can use it?

Thanks in advance

MissKalunji 10-26-2005 05:10 PM

i have a problem lets say i sign in as a co administrator and look at my nick nam ei can see the icon but me as an administrator i cant see the icon on the co administrator and i didnt put his id in the bad_groups

help?


All times are GMT. The time now is 06:20 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.01283 seconds
  • Memory Usage 1,809KB
  • 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
  • (3)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