vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Add the Execution of a Task etc. Post-Login (https://vborg.vbsupport.ru/showthread.php?t=146633)

josiespencer 05-06-2007 11:33 PM

Add the Execution of a Task etc. Post-Login
 
Now I am going to do what I should have done before I blew up my website earlier this weekend. I am going to ask how it should/can be done.

I have implemented php121 on my website. It works well, and uses the vBulletin user names and passwords for access so everything is great. In order to get the program working, I had to change my navbar. I had to add this entry in the Quick Links section:

PHP Code:

<tr><td class="vbmenu_option"><a href="javascript:poptastic('http://spacelysprockets.com/forums/php121/php121im.php');">Instant Messenger</a></td></tr

Now, like any other IM product, you can't be IMed or IM anyone unless you have opened the IM contact list. So I want the default to be that this product comes up as soon as a users logs on. I sort of took the above code and tried to create a new plugin for hook login_verify_success so that this would happen as soon as the user is successfully logged on. But I just ended up breaking my website so that no one could login at all! With some help from you guys, I got the website back up and working correctly.

I am still trying to do that same thing - have the above piece of code execute as soon as a user successfully logs in. But I don't understand php even close enough to understand what I need to do to acheive this. Could someone please lend me a hand? Any constructive suggestions to get this done would be greatly appreciated.

The second piece of this php121 installation is that I originally tried to run the one line of code as just a Custom Navigation Links using the CustomLinks mod in order to avoid having to change the navbar code. But I could never figure out how to make it work as a call to a php or a html template.

briansol 05-08-2007 08:43 PM

use the same hook, and in the plugin code:

Code:

<script type="text/javascript">
function showIM() {
  poptastic('http://spacelysprockets.com/forums/php121/php121im.php');
}

window.onload=function() {
  showIM();
}

that should do it.

but, it won't pop for people who are cookied.... only people who actually go through the login form process...


All times are GMT. The time now is 11:28 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.04263 seconds
  • Memory Usage 1,715KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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