vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vBulletin [2.2.8] and Post Nuke [.7.2.1] Integration (https://vborg.vbsupport.ru/showthread.php?t=45371)

Brew 11-04-2002 04:51 PM

Quote:

Originally posted by Knux
I have a question... IF I have forums that have over 300 members and I am about to do A fresh install of vbulleitn 2.2.8 but I am going to dump the users back in, would this still work or would I have to do something so it would??
I just happened to think about this...

What you could do is create a script that would insert your vBulletin users into the PN user tables. Just be sure to leave the user id null and MySQL will add them to the highest userid number within the table.

Then delete the users from the vB user table and userfields and then use the scripts that are in the rar file to put them into the vB tables.....all should work!

One caveat however.....you would have to make sure that the users in your vB database are different then the ones in your PN database. So if harroldM has an account in your vB database AND he has an account in your PN database you would not want to insert his information into the PN database or there will be a duplicate....and I am not sure what that would cause to the whole system...let alone your user who may find himself locked out.

let me know if I am clear enough on this :D

If there's enough demand I'll make a script that will put the users from vB into PN...

BTW...Backup your database first!!!!!

Brew

Brew 11-04-2002 04:55 PM

Don't forget if I am missing anything in the integration to please let me know :nervous:

darker1 11-04-2002 05:54 PM

What about getting it to work with xoops from www.xoops.org. Might be easier then phpnuke.

Brew 11-04-2002 05:56 PM

Quote:

Originally posted by darker1
What about getting it to work with xoops from www.xoops.org. Might be easier then phpnuke.

I don't have a clue about Xoops....never played with it.

Brew

w4u 11-04-2002 08:58 PM

Quote:

Originally posted by Brew

I wish you would have explained what full integration means.
Brew

Full integration- is not only user integration, or registration in both- it?s sharing management in one place, 1 user panel, 1 login/logout function and so on. (look into phpBB2 :))
Finally, vbb ?must? be hacked so it will turn into postnuke module.

To do so, you must change a lot of code and/or write ?bridge? between postnuke and vbb.

I managed to change some vbb code, so it can be displayed as postnuke module- with all headers, footers and blocks. But there are a lot of work to do: cookie problems, urls in vbb and so on?. I hope I?ll finish it someday :)

Brew 11-04-2002 09:42 PM

Quote:

Originally posted by w4u


Full integration- is not only user integration, or registration in both- it?s sharing management in one place, 1 user panel, 1 login/logout function and so on. (look into phpBB2 :))
Finally, vbb ?must? be hacked so it will turn into postnuke module.

To do so, you must change a lot of code and/or write ?bridge? between postnuke and vbb.

I managed to change some vbb code, so it can be displayed as postnuke module- with all headers, footers and blocks. But there are a lot of work to do: cookie problems, urls in vbb and so on?. I hope I?ll finish it someday :)

If all you want is one user panel just link to the user page either at vB or PN.

Why you think vB "must" be hacked into a module is beyond me and ludicrous. But hey....if you want to spend all that time to turn vB into a module power to you...and by the time you're done PN ver .725 will be here and your module will have to be written all over again. At least with the hack I'm doing people can have it now....

Ninth Dimension 11-04-2002 11:41 PM

In my opinion, Postnuke is a far better system that PHPNuke, so this hack initally looked interesting to me, but then I rememberd that I SWORE to never use a Nuke system again :)

But i am impressed with this hack, well done :)

w4u 11-05-2002 06:00 AM

Quote:

Originally posted by Brew


If all you want is one user panel just link to the user page either at vB or PN.

Why you think vB "must" be hacked into a module is beyond me and ludicrous. But hey....if you want to spend all that time to turn vB into a module power to you...and by the time you're done PN ver .725 will be here and your module will have to be written all over again. At least with the hack I'm doing people can have it now....

LUDICROUS??? So you think phpBB2 integration into nuke system is ludicrous too?? And vbPortal is a waste of time too??
Lol :) btw, it?s only your opinion. Integration is more than only some user transfers.

2 Ninth Dimension: sometimes it seems to me, that it?s easier to write own portal, than try to figure out some schemas in nuke. Yeah it?s good system, but far from perfection. Which is better? Imho it wil be postnuke (pnAPI :)), but it?s harder to learn than phpNuke.

Knux 11-05-2002 03:41 PM

Quote:

Originally posted by Brew


I just happened to think about this...

What you could do is create a script that would insert your vBulletin users into the PN user tables. Just be sure to leave the user id null and MySQL will add them to the highest userid number within the table.

Then delete the users from the vB user table and userfields and then use the scripts that are in the rar file to put them into the vB tables.....all should work!

One caveat however.....you would have to make sure that the users in your vB database are different then the ones in your PN database. So if harroldM has an account in your vB database AND he has an account in your PN database you would not want to insert his information into the PN database or there will be a duplicate....and I am not sure what that would cause to the whole system...let alone your user who may find himself locked out.

let me know if I am clear enough on this :D

If there's enough demand I'll make a script that will put the users from vB into PN...

BTW...Backup your database first!!!!!

Brew

Sounds good but I don't know that much PHP and I am limited on MySQL Knowledge. Is there any way that you could create a script to port my users to PostNuke???

Brew 11-05-2002 03:49 PM

I just made a change to the docs....I'll update the rar file in the first post to reflect this change:

----------------------------------------------------------------
Code:

In modules/NS-User/user.php near line 67 find the following:


        if ($userinfo['user_avatar']) {
            echo "<img src=\"images/avatar/$userinfo[user_avatar]\" alt=\"\"><br>\n";
        }

And change it to the following:

//` Display avatar from vB
                $userid=$userinfo['pn_uid'];
        if ($userid<=2) {$userid=1; }
                        $z = mysql_query("SELECT avatarid FROM user WHERE userid='$userid'");
                        $row = mysql_fetch_assoc($z);
        if ($row['avatarid']>'0') {
                        $avatartid=$row['avatarid'];
                        $z = mysql_query("SELECT avatarpath FROM avatar WHERE avatarid=$avatartid");
                    $row = mysql_fetch_assoc($z);
                        $avatarfile="forums/".$row['avatarpath']."";
                if (!file_exists($avatarfile)) {echo"<img src=\"URL TO BLANK GIF\"><br>\n";}//`change this to an error graphic or a default avatar if wanted
                        else {echo"<img src=\"$avatarfile\"><br>\n";}
                }
        else {
                        $z = mysql_query("SELECT avatarrevision FROM user WHERE userid='$userid'");//get customavatar rev num
                      $row = mysql_fetch_assoc($z);
        if ($row['avatarrevision']>'0') {
                        $avatarfile="forums/custom_avatars/avatar".$userid."_".$row['avatarrevision'].".gif";
                if (!file_exists($avatarfile)) { echo"<img src=\"URL TO BLANK GIF\"><br>\n";}//`change this to an error graphic or a default avatar if wanted
                  else { echo"<img src=\"$avatarfile\"><br>\n"; }
                }
        }

---------------------------------------------------------------

The above fixes a bug of when showing avatars in the PostNuke User Profile screen.

Brew


All times are GMT. The time now is 04:41 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.03689 seconds
  • Memory Usage 1,755KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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