Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2014, 07:49 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default using gigya with vbulletin

Hi,

currently im using gigya user management for my blog (wordpress) and want to use it also for my vbulletin forum.
i consider using vbsso to connect wordpress with vbulletin. anyone tried it? any suggestions?

gigya has the ability to connect any PHP platform with include_once "./GSSDK.php";
http://developers.gigya.com/030_Serv...ding_a_Request
where should i put this code to load gigya in vbulletin?

thanks,
Dooby
Reply With Quote
  #2  
Old 11-29-2014, 07:55 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not seen anything like that. Someone asked about this almost four years ago and no one had a solution then either, https://vborg.vbsupport.ru/showthrea...ighlight=gigya
Reply With Quote
  #3  
Old 11-30-2014, 05:10 AM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Gigya, is the biggest SAAS company for site and social identity management.
i will deal with it. just need to know where and how should i add this:
include_once "./GSSDK.php";

this allow me to add gigya js to vbulletin and call API calls.

thanks,
Dooby
Reply With Quote
  #4  
Old 11-30-2014, 08:10 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use a plugin, and use hook location global_start or init_startup. The right hook might depend on exactly what you need to do, but you could try those to start. If you do that, that script will be included on every vbulletin request. That might add a lot of overhead depending on what happens in that script. You might instead want to just use an "include_once" wherever you need to use the api.
Reply With Quote
  #5  
Old 11-30-2014, 09:18 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You shouldn't be using the global_start hook, but use the global_bootstrap_init_start hook instead, as the global_start hook is depreciated.
Reply With Quote
  #6  
Old 11-30-2014, 09:28 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While it's true that the use of global_start was deprecated, development of vb4 is done except for minor fixes and php version upgrades, so I think it's pretty clear at this point that it will never be removed. It would be ridiculous at this point to release a new version of vb4 with that hook removed.

Also, hook global_bootstrap_init_start is called inside a function, and that could have an effect on how the script works, depending on what it does.
Reply With Quote
  #7  
Old 11-30-2014, 09:38 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that is true Kevin, as I still use that hook. But I just wanted to point it out just in case.
Reply With Quote
  #8  
Old 11-30-2014, 04:32 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks,
i need a little bit more explanation on how using the hook global_bootstrap_init_start hook.
the main use for this plugin is to login with social network to vbulletin.

Dooby
Reply With Quote
  #9  
Old 11-30-2014, 04:46 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You asked how to include, include_once "./GSSDK.php";

Kevin told you what hook to use. To do that you need to go to Plugins & Products --> Plugin Manager and add a new plugin.

As far as incorporating it into vBulletin beyond that, read the documentation. If you do not understand what to do, you will probably have to pay someone to integrate it into vBulletin for you.
Reply With Quote
  #10  
Old 11-30-2014, 04:53 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itayKinnrot View Post
thanks,
i need a little bit more explanation on how using the hook global_bootstrap_init_start hook.
the main use for this plugin is to login with social network to vbulletin.

Dooby
How do you intend to use it? You're going to write some php code, right? I think I would just start that code with the include_once statement. Or are you asking where you can put your php code to use that api for login? That would be a little more complicated.
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 06:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06840 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete