vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to use Postnuke & VB with one UserDB (https://vborg.vbsupport.ru/showthread.php?t=33876)

bamaster 12-13-2004 03:12 PM

Quote:

Originally Posted by alfaowner
would this still work with vb3? anyone know?


Yes, I would like to know too.

All I need is for vB to use the same user table as PN. I just installed vB3 and am running PN .721.

Would this cron job still work?

gothicuser 01-29-2005 05:00 PM

I have experimented with vB 3.0.6 and pn .750 to no avail, but having said that I must admit that my knowledge of php is rather limited :rolleyes:

TruthElixirX 04-17-2005 10:27 PM

Anyone tell me if this works with 3.0.7?

syrus.xl 06-30-2005 10:29 PM

I placed the following code into ./includes/cron/pn_user.php file and scheduled a task. I have replaced the uname, password and database with my own, just renamed it on here for security.

Code:

<?php
//connect to database
mysql_connect("localhost", "uname", "password"); //localhost username password
mysql_select_db("database");  //main database

//empty pn userdb and fill it with fresh userdata
$query=mysql_query("delete from nuke_users");
$query=mysql_query("INSERT INTO nuke_users (uid,uname,email,url,user_sig,pass,user_icq) select userid,username,email,homepage,signature,password,icq FROM vb3_user");
$query=mysql_query("update nuke_users set umode='nested', theme='ExtraLite',timezone_offset='14.0'");

mysql_close();
?>

I pressed 'Run now' which in theory should empty the postnuke user table and enter the vb users. But all I ended up with was a empty table! Looking at this code, it doesn't actually look at the vb users table to collect the data to fill the postnuke user table.

I'm puzzled how some people have managed to get this actually working, since all I'm getting is a zero'd user table.

I merged Postnuke 0.75 with vBulletin 3.07 so the database would be fine with different prefixes. Can someone please explain how this code is supposed to work? :ermm:


All times are GMT. The time now is 01:42 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.00943 seconds
  • Memory Usage 1,726KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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