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)

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?


All times are GMT. The time now is 03:40 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.01111 seconds
  • Memory Usage 1,733KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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