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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2009, 07:49 PM
carcomp carcomp is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help! Plugin / Database / Template coordination - How Do I?

I could not think of a single good thread title. Heres what I'm up to.

I want to do the following....

User goes to myforum/somephpfile.php?do=editmystuff&userid=vbulletinuse rid

This php file would just show a textbox with a submit button. Thats all for now. The user could type whatever they wanted, as well as bbcode (it would act like the vbulletin post editor). They could submit that data.

Next, that data would write to the mysql database. It would be stored so that the userid is the "key" and the text would be the "data".

Next, I want a plugin to 'eval' a string placed in MEMBERINFO template. Something like $showmystuff, so that it would pull that data back from the database and assign it to the 'eval'.

I want to be able to dump the 'stuff' that the user posted to the php file in the memberinfo page.

I'm sorry if I am not making good sense. I'm a vb programmer and i'm used to being able to edit code as it runs

Thanks all.
Reply With Quote
  #2  
Old 03-27-2009, 08:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why don't you just create a Profile Field and have the users put their text in there? Read up on Profile Fields in the manual which is linked in my sig.
Reply With Quote
  #3  
Old 03-27-2009, 08:37 PM
carcomp carcomp is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought about that. The thing is, I want this profile field to be a bigg text box so the user can create a sort of "page" like you would do on myspace even regular html. Do you know of a way to update a profile field from a php file? I don't really want the user to see all the other fields too.
Reply With Quote
  #4  
Old 03-27-2009, 09:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could write a page for just modifying that one profile field. However, I'm not sure that you may enter html into a profile field and have it parsed as html, so if your goal is to have html, then I don't think profile fields will do it.

vB suggests that you don't allow users to use html on the site because of the malicious things they could do. You'll have to be careful in writing this so that they can't do anything like that.
Reply With Quote
  #5  
Old 03-27-2009, 11:24 PM
carcomp carcomp is offline
 
Join Date: Feb 2008
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No i was using a metaphore... Like html... I guess that was a bad metaphore. BBcode would be more like it. I would like to give my users the ability to construct pages themselves. I suppose i'll just write some custom bbcodes to allow things like <tables>, <center> etc.

We run a VERY close membership forum. We have "bashes" where we all meet together. The likelyhood of some loser messing it up is pretty slim. Besides, I didn't think about just slapping it together and sending it online. I want to add the option to approve stuff later on etc. Maybe I feel a Mod coming on?

I certainly don't want you to do the coding for me, but do you know of any examples of something like you stated? I'm very new to how vbulletin works (like the $vbulletin->something-> something stuff). I'm reduced to just looking at php modules that I have already, and the plugins that are active on my site... Reverse engineering them.

I learn this way I guess. I taught myself Visual Basic (see www.mediaengine.org) for my current masterpiece in this fashion.. Looking at what others have done and finding new / better / different ways of doing it the way I want. Like I said though, I'm very new and tend to rely on others for the first 20% sometimes

BTW: I didn't know if it matters to you, but we (as a forum of 7 admins) regularly buy vbulletin licenses. You aren't helping a freeloader.

Check out our forum. http://www.quad4forums.com We are *very* proud of it. Check out the search thing in the navbar... Thats a 'mod of a mod'.. The live search mod.
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:22 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.03948 seconds
  • Memory Usage 2,201KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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