vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   VB + Gossamer Mail integration (https://vborg.vbsupport.ru/showthread.php?t=19712)

pcmania 06-08-2001 02:46 PM

Hello all,

I need a hack that integrates VB with Gossamer Mail. I would like to be able to show New E-mails in Gossamer Mail in the User Contorl Pannel of VBulletin. This way users can see their VBulletin PMs along with their Gossamer Mail E-mails!

I asked Alex at Gossamer Threads and he gave me this SQL code:

SELECT *
FROM msgtrack, msgs, auth_vb
WHERE gmail_userid = msgtrack_userid AND msgtrack_mid = msgs_mid AND
msgtrack_status = 'New' AND
msgtrack_fid = 1 AND
vb_user = 'YOURVBUSERNAME'

This would give you all the new messages in the users inbox of Gossamer Mail.

Now what is the PHP code that we have to insert in VB?

Any Ideas?

Thanks in advance,

PCMANIA

Michael 06-12-2001 04:45 AM

Dude,

Its a simple SQL query.

$query="SELECT *
FROM msgtrack, msgs, auth_vb
WHERE gmail_userid = msgtrack_userid AND msgtrack_mid = msgs_mid AND
msgtrack_status = 'New' AND
msgtrack_fid = 1 AND
vb_user = 'YOURVBUSERNAME' ";

$result = mysql_query($query);

while($resource=mysql_fetch_object($result)){
print $resource->whatever;
}

pcmania 06-12-2001 03:59 PM

Hi Michael,

And thanks for the reply, could you please explain what I should do with this query? Where should I insert it?

Thanks,

PCMANIA

chrispadfield 06-15-2001 12:39 AM

well you should put it in usercp.php but it is a bit more complicated than that, you need to create some custom templates and to gettemplate() based around the query.

You need probably 1 template for the basis of the section on emails and another for each email, call it email_bit

then loop through, generating email_bit.

If it was you, i would look at the code for the subscribed threads, or private messages and compare it to that. You have the SQL query (the hardest bit) already.

pcmania 07-11-2001 02:11 PM

I would really appreciate it if someone could do this for me. I am willing to pay for it. Please e-mail me and let me know how much your would charge for this!

My e-mail is peyman@atigana.com

Thanks,
PCMANIA

kevinsdh 03-05-2002 02:04 AM

I am also interested in this!

kevin@duckcentral.com


All times are GMT. The time now is 10:06 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.01768 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete