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 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 09:37 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.00993 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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