vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Default editor content? (https://vborg.vbsupport.ru/showthread.php?t=210318)

MoMan 04-04-2009 07:06 PM

Default editor content?
 
1 Attachment(s)
I'm trying to use a certain forum on my site for product reviews, and I'd like to have users include product ratings, etc., in their replies. I wanted to use the extra threadfields mod for this, but it only works when posting threads, and not replies. Adapting it for replies would take a lot of extra coding and modification. So instead, I thought I'd take an easier approach, and simply add some default content to the message editor after a user clicks "post reply", and also to the quick reply box.

Is there any way to do with via the template editor, using conditionals so the custom text only shows up in a certain forum?

Attached is a screenshot of what I hope to accomplish. Any help would be appreciated!

TigerC10 04-05-2009 02:49 AM

This article will show you how to pre-fill data in your editor:
https://vborg.vbsupport.ru/showthread.php?t=135708

You'll just have to use the template conditionals you were talking about to fill in some data based on your requirements.

MoMan 04-08-2009 02:24 AM

Since I'm not using a mod in which I need to include the editor, I don't think I'd need to make all the changes mentioned in that article. Where would I place $article[message] within my vBulletin template?

TigerC10 04-08-2009 02:33 AM

Pay attention to the "edit" section of that article. When you call the construct_edit_toolbar('', in your template, your first argument will be a blank '',.

Change the '', in the template to what you want to display in the editor...

Code:

construct_edit_toolbar('Rating (/10)
Price:
Comments: ',

Can you dig it? (Note that the above code is only a small sample of what should be in your template. You will need to modify it with some if conditionals so that it doesn't display on every single discussion area).

Lynne 04-08-2009 03:12 AM

There is a mod called something like the Stencil Mod which may be what you want.

MoMan 04-08-2009 03:15 AM

That should take care of it- thanks a lot!

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

I could try that as well, Lynne, but it looks like significant modification would be needed for it to work with quick reply.

https://vborg.vbsupport.ru/showthread.php?t=130162


All times are GMT. The time now is 03:48 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.01161 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete