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

Reply
 
Thread Tools Display Modes
  #11  
Old 07-19-2008, 04:48 PM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is anyone insulting you?

Pointing out that what he said was right is insulting you?

How much more help do you want?
Write a plugin that gathers the info as the user is browsing the website and stores it in the database, write another plug-in that retrieves the data and display it accordingly.
Reply With Quote
  #12  
Old 07-19-2008, 06:47 PM
Gene Steinberg Gene Steinberg is offline
 
Join Date: Dec 2006
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
Why not just create a Custom "User Profile Field", allow users to select their browser and then display that in postbit?

For Part 1: Check the AdminCP side Menu
For Part 2: see this thread add info to the right?
Good suggestion.

How about, though, being able to just add something that does this automatically? I know I had something of that sort with SMF way back when -- and certainly vBulletin is far more advanced than that.

--------------- Added [DATE]1216498056[/DATE] at [TIME]1216498056[/TIME] ---------------

Quote:
Originally Posted by genesteinberg View Post
Good suggestion.

How about, though, being able to just add something that does this automatically? I know I had something of that sort with SMF way back when -- and certainly vBulletin is far more advanced than that.
I just wanted to add, Opserty, that I really appreciate your assistance. I did add this extra User CP option to our two vBulletin forums (we're about to spring for another license shortly) with the appropriate mods in the postbit template, and a tiny bit of customization. I'm not completely helpless. Well, make it mostly helpless.

But I'm still tempted by the possibilities of an intelligent user agent too if anyone wishes to contribute.
Reply With Quote
  #13  
Old 07-19-2008, 07:17 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vbulletin has a function called is_browser() which has a lot of browser detection code in it - its in functions.php if you want to look at it.
Reply With Quote
  #14  
Old 07-19-2008, 07:25 PM
Gene Steinberg Gene Steinberg is offline
 
Join Date: Dec 2006
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
vbulletin has a function called is_browser() which has a lot of browser detection code in it - its in functions.php if you want to look at it.
When we start getting deep and dirty into the code, you will lose me fast.

Care to suggest a way to implement this automatically in postbit? I can replace the optional field and use that, if I had guidance and such, and perhaps a few options.

I think I'm good at building a popular forum (see http://forum.theparacast.com and decide for yourself). I can assemble useful mods, customize them and I think I did a decent job with the default theme to turn it to our purposes and style. But for the rest, I can always use step-by-step assistance.

Thanks for the direction, though.
Reply With Quote
  #15  
Old 07-19-2008, 07:34 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately if you don't have experience with PHP then you will have to make a modification request and hope someone will take up the request.

We can give you guidance but we can't sit here and write the code out for you.

If you want to store it on a per user basis, you'd need to something like the following:
1. Extend the User Table
2. Extend the User DataManager
3. Fetch the Users Browser using the PHP Code and compare this to the one already stored.
4. If its different, then update the user table
5. Add the new "User" field into the postbit template using the $post array.
Reply With Quote
  #16  
Old 07-19-2008, 07:43 PM
Gene Steinberg Gene Steinberg is offline
 
Join Date: Dec 2006
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Honestly, I thought that was the purpose of my messages, to request just that sort of assistance.
Reply With Quote
  #17  
Old 07-20-2008, 05:29 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by genesteinberg View Post
He said I should look on the Internet to find the PHP code, then said it wouldn't work as I wanted it to. I understand the limits.
It would work how you wanted it to, but you were not going about the correct way of "thinking".

The purpose of this forum is to discuss programming, and to provide guidance, the forum you are looking for is: Modification Requests.
Reply With Quote
  #18  
Old 07-20-2008, 04:43 PM
Gene Steinberg Gene Steinberg is offline
 
Join Date: Dec 2006
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
It would work how you wanted it to, but you were not going about the correct way of "thinking".

The purpose of this forum is to discuss programming, and to provide guidance, the forum you are looking for is: Modification Requests.
Well, if it would work, then perhaps someone would clue me in on what to do next.

If you know, don't hold back.

I did post something in Modification Requests, but that came later. I had presumed there were existing solutions already available for vBulletin.
Reply With Quote
  #19  
Old 07-21-2008, 05:49 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Create a field in the user table to store the user agent. Then at global_start, parse and record the user agent. Use that data in your postbit.

That's the solution, how you code it, is your decision. Again - we are not here to code every bit of code you need, we provide guidance.
Reply With Quote
  #20  
Old 07-21-2008, 12:12 PM
Gene Steinberg Gene Steinberg is offline
 
Join Date: Dec 2006
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
Create a field in the user table to store the user agent. Then at global_start, parse and record the user agent. Use that data in your postbit.

That's the solution, how you code it, is your decision. Again - we are not here to code every bit of code you need, we provide guidance.
And what is there about all this that prevents you from providing the snippet of code that I can put in postbit to resolve this?
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 06:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08335 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
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
  • (6)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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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