vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   PHPNuke to vB Hack (https://vborg.vbsupport.ru/showthread.php?t=6218)

01-02-2001 05:20 AM

While waiting for 2.0, I've started hacking PHPNuke to integrate with vBulletin. You can look at it at http://www.911pc.com It is very raw and nothing is guaranteed to work. I don't even know PHP, this is just a project to try to learn it a little.

[Edited by wajones on 01-20-2001 at 09:27 AM]

01-02-2001 11:42 AM

!!!!!!!!!!!!

How'd you get the vB login boxes on the front page??

01-02-2001 11:46 AM

and the online users bit?

01-02-2001 11:49 AM

The active users thing was posted before by Eva2k or TT ;)

Code:

<?
require("admin/config.php");

$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);

$action = mysql_query("SELECT s.userid, u.username FROM session s, user u WHERE u.userid=s.userid");

while (list($userid, $username) = mysql_fetch_row($action)) {
echo "<a href=\"member.php?getinfo&userid=$userid\">$username</a>";

}

?>


01-02-2001 12:16 PM

Oh wait vBoard!

That code up there is only for showing logged in users.. not the total members & guests viewing.

Can you give us that code too wajones?

01-02-2001 12:51 PM

thanks in advance wajones :)

01-02-2001 01:18 PM

Basically I just started with the vB index.php and stripped out the show forum stuff and added the PHPNuke stuff, copied the login and activeuser templates, rearraged and renamed them, then called them by their new names from the new index page. It's all pretty sloppy right now, but thats all I basically did. Keep it in the same directory as your real vB index that you rename something like forum.php ...

Like I said I really don't know what I'm doing, but I'll be happy to share my misfortunes as I go. Even though the hackers here will probably laugh now and then!!!!

I'm just practicing trial and error until it works, I may buy a book some day????

The hard part is stripping out all the PHPNuke user stuff and putting in vB stuff, Nuke isn't put together very consistantly, every file seems to be different to some degree. It's basically a bunch of hacks by other people put together.

Of course it's easy to critique someone elses work, but I could never do it from scratch!!

01-02-2001 01:58 PM

I will try to see if I can do something like this.

If you rename the board's index.php doesn't that affect anything?

01-02-2001 02:08 PM

Quote:

Originally posted by vBoard.co.uk
I will try to see if I can do something like this.

If you rename the board's index.php doesn't that affect anything?

Yes, you will have to either keep all the index calls such as the signup, login, showsmilies etc. in the new index or rename every call to index.php thru out vb to call the new forum.php.

It's easier to leave everything you can in the new index.php... and just replace the " if ($action=="showforums")" stuff with you own code and make new templates. Then when ever vB makes a call to index.php it's there for it.



[Edited by wajones on 01-02-2001 at 11:25 AM]

01-02-2001 02:21 PM

okay thanks
I will see where I get to.


All times are GMT. The time now is 08:08 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.01570 seconds
  • Memory Usage 1,728KB
  • 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
  • (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