vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post Nuke and vBulletin (https://vborg.vbsupport.ru/showthread.php?t=45221)

Brew 10-30-2002 09:14 PM

Post Nuke and vBulletin
 
Has anyone gotten vB integrated with PostNuke yet?

I have seached everywhere in these forums...saw a few posts that says they did it but no one has shared it.

Thank you for any and all help.

Brew 11-01-2002 01:09 PM

I have vBulletin almost 100% integrated into Post Nuke now.

One problem I'm having is the way vB stores avatars.

Can someone tell me where the avatars are stored please?

Thanks!

Brewskie

NTLDR 11-01-2002 01:31 PM

Depends if you are talking about custom avatars or avatars you ahve provided.

Custom avatars are stored in the customavatar table. Details of avatars you have provided are in the avatar table.

yahoooh 11-01-2002 02:50 PM

hello

i do not use postnuke but i use great Phpnuke and i integrate version 6 with vbulletin 2.2.8 in user registeration
ofcourse i get the help from w4u that integrate phpnuke 5.5 with vbulletin 2.2.5

what i hope to have is full vbulletin integration with php nuke as full module

i do know why a lot of php coder and programmer do not under stand that when they offer product ex.vbulletin ,they do not offer same version integrated as full module at phpnuke

because there is more than 10000 users use this product
also now some hosting company offers phpnuke installation as one click for fee

i hope guys here understand that they will have more customers when they offers full module phpnuke integrations

thanks

NTLDR 11-01-2002 04:16 PM

vB are not going to offer integration with PHP Nuke, or any other system than the one they will be selling when vB3 has been released.

Brew 11-01-2002 06:45 PM

Quote:

Originally posted by NTLDR
vB are not going to offer integration with PHP Nuke, or any other system than the one they will be selling when vB3 has been released.
This is probably true...That's one of the reasons why I went ahead and hacked vB myself.

I have successfully integrated vBulletin into Post Nuke .... nearly 100% integration...WooT!

I even have it set up where users who are waiting on the confirmation email still can't post and things in PN untill they click the link in their confirmation email.

To top it off....It's all multi-sites as well :p

Brew 11-01-2002 07:37 PM

Quote:

Originally posted by NTLDR
Depends if you are talking about custom avatars or avatars you ahve provided.

Custom avatars are stored in the customavatar table. Details of avatars you have provided are in the avatar table.

The customavatar table only holds a couple bits of info...including the file name....not not where the avatar is physically located.

And the avatar table is empty.

There has to be a place where the paths to avatars are located...

This is pretty much the last piece of the puzzle for vB to be 100% integrated....

Thanks for your help!

NTLDR 11-01-2002 08:03 PM

Custom avatars are stored in the DB, they are in the filedata column of the customavatar table.

You can use the getavatarurl function in admin/functions.php to find the URL to users avatars.

Brew 11-01-2002 08:23 PM

Quote:

Originally posted by NTLDR
Custom avatars are stored in the DB, they are in the filedata column of the customavatar table.

You can use the getavatarurl function in admin/functions.php to find the URL to users avatars.

Let me get this straight ....

The customavatar table physically holds the image?

Brew

NTLDR 11-01-2002 08:28 PM

Indeed it does ;)

Sounds weird I know, but its the truth ;)

Brew 11-01-2002 08:42 PM

Quote:

Originally posted by NTLDR
Indeed it does ;)

Sounds weird I know, but its the truth ;)

Dang....I'll try to keep my personal opinion of that to myself...If I don't I'll start cussing :angry:

Can you tell me how to use the function to get the path?

Thanks for your help.

NTLDR 11-01-2002 08:47 PM

Use:

PHP Code:

$avurl=getavatarurl($userid); 

$avurl is the URL $userid is the userid of the person whoose avatar you want to find.

Brew 11-02-2002 09:40 PM

Quote:

Originally posted by NTLDR
Use:

PHP Code:

$avurl=getavatarurl($userid); 

$avurl is the URL $userid is the userid of the person whoose avatar you want to find.

Thank you for your help.

Is there a way to retrieve this URL from another php app?

This way I can have the avatar from vBulletin show up in the users info screen in PostNuke.

Thanks again!

Brew

NTLDR 11-02-2002 09:52 PM

If you have included vB's forum/global.php in the PHP script you want to use it in then its automaticly avalible. Otherwise you will need copy the getavatarurl function from admin/functions.php and change the MySQL part to match the format that the other script is using (mysql_query istead of $DB_site->query for example).

Brew 11-02-2002 10:04 PM

Quote:

Originally posted by NTLDR
If you have included vB's forum/global.php in the PHP script you want to use it in then its automaticly avalible. Otherwise you will need copy the getavatarurl function from admin/functions.php and change the MySQL part to match the format that the other script is using (mysql_query istead of $DB_site->query for example).
Damn I didn't think about including the Global file!

I'll give it a try.....Thanks!

Brew

Brew 11-03-2002 03:13 AM

Quote:

Originally posted by NTLDR
If you have included vB's forum/global.php in the PHP script you want to use it in then its automaticly avalible. Otherwise you will need copy the getavatarurl function from admin/functions.php and change the MySQL part to match the format that the other script is using (mysql_query istead of $DB_site->query for example).
I really appreciate your help...but I just can't make this work.

I have tried every combination of includes, requires, PN database connection syntaxes, plain mysql_query queries, playing with the variables all over the place..... you name it.

I've never in my life heard of someone putting images into a sql database....I can't even fathom the reasoning behind....

Here I am 8 hours into this and I can't even get a URL to an image...if someone told me they had to go through all this for an image url I would have laughed at them.

Is there any more that you can help me with on this? It is just plain beyond me and I've lost my marbles trying to get it.

All I want is the URL to the avatar so I can make a simple <img src= link .

Again...thanks for your help..and patience with me.

Brew

NTLDR 11-03-2002 04:48 PM

There may be a custom avatars as files hack avalible that will allow you to store them as files as oposed to in the DB, but I'm not 100% sure.

How are you getting the userid for the user's avatar you want to display?

One of the reasons I'd say for having them in the DB is so that if you move host, or when you back up your DB you have everything. Plus its easier to prevent hotlinking but adding a bit of PHP to the avatar.php and attachment.php which is harder and not allways avalible if they are stored as files.

Brew 11-03-2002 05:05 PM

Quote:

Originally posted by NTLDR
There may be a custom avatars as files hack avalible that will allow you to store them as files as oposed to in the DB, but I'm not 100% sure.

How are you getting the userid for the user's avatar you want to display?

One of the reasons I'd say for having them in the DB is so that if you move host, or when you back up your DB you have everything. Plus its easier to prevent hotlinking but adding a bit of PHP to the avatar.php and attachment.php which is harder and not allways avalible if they are stored as files.

I've been in the process all morning trying to decide whether to use Kier's avatar to files hack. The thread is ver convoluted and confusing....

But looking at the hack and comparing what is there with my ver of vB (2.2.8) I think it should work...I just need to look at the tables yet to verify that all should be ok.

Can I ask you one more question?

I am documenting my changes and have it pretty much done. I think there would be a lot of people interested in the integration of Post Nuke and vBulletin.

Is there someone to go to where I can be sure I'm not violating the licensing with the way I worded the docs? Are there people here that would be available to test my docs to be sure they're accurate before I release it?

Thanks again!

Brew
www.ornamentalplaster.com

NTLDR 11-03-2002 05:13 PM

The only way you can violate the vB Licence Agreement if you post compleate or extensive blocks of vB Source Code. I know know about PostNuke, but as its free I think, I don't see any problem. Just make sure if you have used other peoples code/hacks that they get credit.

You can post it in the Beta Releases forum first so people can test it and then move it to the full releases when your sure its ready for "the masses" to install :)

Brew 11-04-2002 02:13 AM

Thanks again for your help NTLDR!

Here's the link to the beta forums here in vBulletin.org where I posted the hack:

vb and PN integration beta

Brew


All times are GMT. The time now is 06: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.03480 seconds
  • Memory Usage 1,776KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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