vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How can I do this? (https://vborg.vbsupport.ru/showthread.php?t=46856)

Auero 12-21-2002 12:58 AM

How can I do this?
 
What I want to be able to do is...

When someone goes to forum id 6 then there would be text already filled into the textbox on the new reply page.

But if someone goes to forum id 2 then the textbox on the new reply box remains default (blank).

Can I do this?

Auero 12-21-2002 03:14 AM

*bump*

Chris M 12-21-2002 06:27 AM

@Auero - It would help to know what kind of text you want - The Subject field filled out? The Message field filled out? The Message field containing a Quote of the last message?:)

Satan

Auero 12-21-2002 03:51 PM

I would like for the message field to be filled out when user makes a new thread forum 6 (for example).

But if user makes a new thread in forum 2 (for example) then the message field is blank.

DrkFusion 12-21-2002 03:54 PM

OK, so you want all other forums that have no ids 6 to have the newreply page to be blank like the default, and where the forum id is 6 there should be text already in it?

Regards

Auero 12-21-2002 09:04 PM

Yes :D

Auero 12-22-2002 11:18 PM

No one? :(

DrkFusion 12-23-2002 02:20 AM

Umm Ok let me try. :)

DrkFusion 12-23-2002 02:29 AM

Open newreply.php and find:
PHP Code:

  if ($foruminfo[allowicons]) {
    
$posticons=chooseicons($iconid);
  }  else {
    
$posticons="";
  }

  if (!isset(
$parseurl)) {
    
$parseurlchecked="CHECKED";
  } 

under it ADD:
PHP Code:

$forumidcheckss $DB_site->query_first("SELECT forumid FROM thread WHERE threadid='$threadid'");
if (
$forumidcheckss[forumid]==XX){
  
$replypagetexxxt="Text";
}else{
  
$replypagetexxxt="";


Changce the XX to the forumid
Open the template newreply, its under the new postings template and find
Code:

$message
REPLACE with
Code:

$message$replypagetexxxt
That should do it

Auero 12-23-2002 02:42 AM

..nope that didn't work :(

Thanks for trying though, drk.


All times are GMT. The time now is 03:57 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.00971 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete