Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-01-2002, 08:42 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #12  
Old 11-01-2002, 08:47 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use:

PHP Code:
$avurl=getavatarurl($userid); 
$avurl is the URL $userid is the userid of the person whoose avatar you want to find.
Reply With Quote
  #13  
Old 11-02-2002, 09:40 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 11-02-2002, 09:52 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #15  
Old 11-02-2002, 10:04 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 11-03-2002, 03:13 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 11-03-2002, 04:48 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 11-03-2002, 05:05 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 11-03-2002, 05:13 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 11-04-2002, 02:13 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 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.04177 seconds
  • Memory Usage 2,259KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete