vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom New Thread for Forums (https://vborg.vbsupport.ru/showthread.php?t=50531)

ULTIMATESSJ 03-20-2003 07:54 PM

Custom New Thread for Forums
 
Something i've been trying to do for months now, and running into many problems with, so i'm asking if anyone knows how i can do this, or someone who would be willing to release this

https://vborg.vbsupport.ru/showthrea...threadid=49179

heres my previous thread on it, i have others but they were ignored, i've tried editing newthread.php, with the code i posted in the last threads, but i ran into problems, so i'm asking if anyone will help or will release this, it's the same as whats done on vBulletin.org, so some should and indeed do know how to do this

filburt1 03-20-2003 10:24 PM

In the templates, just use "newthread$foruminfo[forumid] (can't remember if it's $foruminfo or $forum, vB is the king of inconsistency) as the image src for the new thread button. Then make buttons following that filename convension.

ULTIMATESSJ 03-21-2003 02:21 PM

heh i know how to do that, thats childs play, but what i am trying to do, is to change the post new thread screen and the showthread screen for a certain forum, so i can add more stuff, for example, vbulletin.org is running this in the hack releases forum, i want to add new fields above and below subject and reply and to alter those things, like it says in the link i showed

filburt1 03-21-2003 02:23 PM

Whoops, thought you meant changing the buttons. Just change in newthread.php and showthread.php which template gets eval'ed at the every end, then add a new template. Don't forget to add the template to $templatesused.

ULTIMATESSJ 03-23-2003 09:52 AM

Quote:

Yesterday at 04:23 PM filburt1 said this in Post #4
Whoops, thought you meant changing the buttons. Just change in newthread.php and showthread.php which template gets eval'ed at the every end, then add a new template. Don't forget to add the template to $templatesused.
well i put
Code:

$vbcode_smilies = '';
  $vbcode_buttons = '';
  if ($foruminfo[allowsmilies]) {
    if ($bbuserinfo[showvbcode] && $allowvbcodebuttons)
      $vbcode_smilies = getclickysmilies();
    eval("\$disablesmiliesoption = \"".gettemplate("newpost_disablesmiliesoption")."\";");
  } else {
    $disablesmiliesoption="";
  }
  if ($bbuserinfo[showvbcode] && $allowvbcodebuttons)
    $vbcode_buttons = getcodebuttons();

if ($foruminfo[forumid]==2) {
  eval("dooutput(\"".gettemplate("newthread_submissions")."\");");
  exit;
}

under

Code:

// ############################### start new thread ###############################

and i can alter the newthread template with the new template newthread_submissions in the second forum, one problem i have is that i don't know what i need to do after i've added the needed tables to the database

ULTIMATESSJ 04-27-2003 09:21 PM

bump, i am still getting mysql problems with this, it's been a few months, and i am still having problems with this, no matter what i have tried


All times are GMT. The time now is 02:58 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.01061 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_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