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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2004, 04:18 PM
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Basic Questions

I am a pretty advanced PHP coder, but I would like to utilize some of the built in vBulletin functions to save me time and keep my hack uniform, portable, and completely vB compatable. I also dont want to spend a lot of time searching for answers in the vB source, as it is not especially well documented.

1) What function parses text like a post, and what are its parameters (i.e. parsing flags)
2) After adding a permission variable in the admincp and altering it, what is required to access that permission variable.
3) After adding a field to the user table, can that data be accessed in bbuserinfo['field_name'] or do I need to find and edit the function that gets the user information.
4) What calls the special GUI textbox you see for posting? I dont want to just call one function, because different users want different displays that they set in their usercp.

Thats all, it saves me a quite a bit of time if someone who already mods vB could help me out.
Reply With Quote
  #2  
Old 09-13-2004, 04:46 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) look in the file includes/bbcodeparse.php
2) Do you mean when you add an option? You can call it in any file with global.php included using $vboptions[varname]
3) I'm not sure about that, even though I think so. Why not add it as a custom profile field. Those are available for sure ($bbuserinfo[fieldX]).
4) Can't help you with that sorry.
Reply With Quote
  #3  
Old 09-13-2004, 07:22 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moved to General vBulletin Questions. Please read the forum descriptions more closely in future Thanks
Reply With Quote
  #4  
Old 09-13-2004, 08:30 PM
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
2) Do you mean when you add an option? You can call it in any file with global.php included using $vboptions[varname]
I mean when you add a custom usergroup field ... heres that part of the code:
In AdminCP/usergroup.php
Code:
	print_table_header("Download Permissions");
	print_yes_no_row("Can Download Files? <dfn>Allows usergroup to download from the downloads section?</dfn>", 'usergroup[candownload]', $ug_bitfield['candownloadfiles']);
	print_yes_no_row("Can Manage Files?<dfn>Allows usergroup to manage files in the downloads section<br>Set individual permissions below...</dfn>", 'usergroup[canmanagefiles]', $ug_bitfield['canmanagefiles']);
	print_table_break();
above
Code:
above print_table_header($vbphrase['forum_viewing_permissions']);
I also modded init.php and added the following:
1) added downloadpermissions to special templates array
2) added a to the switch statement in $storeitems (the vboptions array)
3) added $_BITFIELD['downloadpermissions']

Quote:
3) I'm not sure about that, even though I think so. Why not add it as a custom profile field. Those are available for sure ($bbuserinfo[fieldX]).
Sounds like a plan, how do I go about doing that. Btw, i want this to be hidden from the user... not editable. (it counts their downloads, uploads, stores their latest file downloaded, ect.).

For this I will need to know two things:
1) how to create it
2) how do edit it

VB seems very coder friendly once you learn it, but I just need to learn all the built in functions

Quote:
Originally Posted by Dean C
Moved to General vBulletin Questions. Please read the forum descriptions more closely in future Thanks
I dont know whats with the mods here, but they just like moving things around. This is a question about coding not about functioning/functionality.
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 09:40 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.03702 seconds
  • Memory Usage 2,194KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete