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)

-=dm=- 01-29-2002 11:05 AM

hehe easy?( u r talking to a newbie:D)

ok I did a cron and cronjob search on this forum and didnt found what I want.
can u please explain:

PHP Code:

<?php
//connect to database
mysql_connect("localhost""yourDB""yourPW"); // is this database username & pw or database name & pw?
mysql_select_db("your db");// here should go my database name right?
do I have to change anything below?
//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 user");
$query=mysql_query("update nuke_users set umode='nested', theme='ExtraLite',timezone_offset='14.0'");

mysql_close();
?>

so I put this one in a php file and upload to http://www.mydomain.dk/portal/nuke/cron.php (right?)

Im very sorry Tom I know Im asking to many questions but u see Im a newbie:( and php is not me.

thanx in advance
dm

fresh_froot 01-30-2002 02:40 PM

Waka...I'm interested in a cron free solution :) Can't wait to take a go at this one!

roscoluxxx 01-30-2002 09:36 PM

fill the nuke_group_membership with what exactly?

Dontom 01-31-2002 03:59 AM

setup postnuke as standalone - you will notice, that you are as admin in another group (dont know from memory - either 1 or 2) as the rest (normal user)
I filled this table with numbers according to this (userids from 0-10000 e.g and the correct setting (1,2, whatever). (did it in Excel;) ,exportet as csv and imported to pn - thats it!

roscoluxxx 01-31-2002 09:59 PM

Awesome thanks...

Here's what put in, and it works just fine. Anyone know an easy way to input a large range (200 thru 10000)?

INSERT INTO nuke_group_membership VALUES (1, X);
X being the userid.

Dontom 02-01-2002 04:10 AM

Quote:

Originally posted by roscoluxxx
Awesome thanks...

Here's what put in, and it works just fine. Anyone know an easy way to input a large range (200 thru 10000)?

INSERT INTO nuke_group_membership VALUES (1, X);
X being the userid.

super easy with excel - use 2 columns - one filled with a 1, the other with numbers from1-10000, eport as csv, import using phpmyadmin...

fresh_froot 02-01-2002 12:52 PM

That's exactly what I ended up doing :) Thanks!

fresh_froot 02-01-2002 12:58 PM

freshfroot=roscoluxxx @WORK ;)

SAWolf76 04-18-2002 10:57 PM

Quote:

change all urls in pn which have to do with registration to point to vb's reg-Page/usercp

Include vb's global.php and install Admin_online - people on your newssite will be shown as online reading news...
include Tubedoggs last x posts in your sideblock (works without changes in pn)
Well, I'm stuck here and would apresiate any help...... Can you explain these more?

For one where are all the links I need to change if possible?

where should I include vb's global.php? and what is Admin_online?

Thanks alot for a nice work which i've been looking around for... Hope you could help me with my questions..

Dontom 04-19-2002 04:56 AM

look at your nuke - all links that lead to a user.php should point to your forums member.php?s=&action=editprofile - nukes registration link should point to vbs registration file...

Either change the links in Nuke or create the corresponding files redirecting to vb... (meta tag)

Admin online is a hack (can be found here @vb.org), to add other location to vb's who is online display..... - so people who are just browsing the news-area are displayed as "Reading News"

I included vbs global.php in the second line of pn's modules.php

hope this helps....


with postnuke combined with vb it is easy to install gallery.sourceforge.net, too.

look at this: http://www.mtb-news.de/modules.php?o...ude=albums.php


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.01776 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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