Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by pcmania (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-08-2001 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-12-2001, 04:45 AM
Michael
Guest
 
Posts: n/a
Default

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;
}
Reply With Quote
  #3  
Old 06-12-2001, 03:59 PM
pcmania
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #4  
Old 06-15-2001, 12:39 AM
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-11-2001, 02:11 PM
pcmania
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #6  
Old 03-05-2002, 02:04 AM
kevinsdh kevinsdh is offline
 
Join Date: Jan 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also interested in this!

kevin@duckcentral.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:03 PM.


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.04488 seconds
  • Memory Usage 2,235KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete