Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 12-30-2001, 11:18 PM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I am sure it may be of some use to others as well and I am not sure it can be done (although I am sure if it can be done firefly or one of the other talented hackers can do it).

Here Goes:

I need a hack to where that in a certain forum when a member goes to post something, it fills in some information automatically in the post instantly (see below).

Say I am running a forum like this one and I will take hack submissions for example. With this hack it would fill in the following right after they click the new post button (this would be filled in the test box):

Hack Name:
Hack Version:
Hack Author:

ect.....

All the submitter would have to do is place the required information beside it such as:

Hack Name: (information goes here)
Hack Version: (version goes here)

and so on.


Is there anyway that this can be done? Or am I confusing someone in anyway? Should I *try* to provide a better example?

Any help with this would be appreciated and I would be greatful to the person that could help me out with this (whoever it may be).

Please at least look into it.
Reply With Quote
  #2  
Old 12-31-2001, 01:00 AM
-.valkyre's Avatar
-.valkyre -.valkyre is offline
 
Join Date: Oct 2001
Location: California
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing I could think of is this:

Have custom fields that the user enters and place the PHP code in Postbit template linking back to "post new topic / reply" templates...

OR, have custom fields for a certain forum (or the entire board), when you post a new topic that the user fills out such as his name, hack name, release version, etc..

Sound like what you want?
Reply With Quote
  #3  
Old 12-31-2001, 01:54 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I need it to where when they click "New Post" that it will already have the above information (or something of my choice) in the text area (only on certain forums though), all they have to do is fill in the information for each submission.

If you think you know how I would edit, please let me know Val...

Thanks,
Reply With Quote
  #4  
Old 12-31-2001, 05:27 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to edit the templates and PHP for newthread and newreply... as well as make a few templates and custom user fields.

In the php files... add an eval() statement that gets a template (see later) IF the forum ID is right.

I don't remember the syntax for a template eval()... just copy/paste another one.

Make it return a variable like $hackname

Make a hackname (or whatever) TEMPLATE...

It should have the HTML code for a text field that you type in...

Make it something like

Hack Author: < INPUT VALUE=$bbuserinfo[field7] >

Make field7 whatever field is the right custom user field.

Then in the newreply template...

Add $hackname to the appropriate spot where you want the text field to show up.

I'm too tired to try coding this, but this is a start...
Reply With Quote
  #5  
Old 12-31-2001, 06:39 AM
bbaddons's Avatar
bbaddons bbaddons is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Thanks for your help, but I am not really sure what all to add that to or what all to do. I would appreciate it if anyone could provide some step-by-step instructions on what to edit and where to edit, ect.

I appreciate your help though Palmer, Thanks,

Reply With Quote
Reply

Thread Tools
Display Modes

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:42 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.07217 seconds
  • Memory Usage 2,193KB
  • 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