vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Test box on Custom Pages (https://vborg.vbsupport.ru/showthread.php?t=195426)

Sawa Dee SohL 11-04-2008 03:04 PM

Test box on Custom Pages
 
I ment TEXT Box

I've created a custom page for my forum, basically for Movie Reviews.

I have the text content on my forum, and was wondering how I can go about putting the following on the Custom page I made:

-Title & Text box (Max characters allowed is what is allowed in a post)

Basically, what would be on the page, along with the content is what you see when you make a new topic (ie the title, and text box).

And when they click 'submit' - it goes to the dedicated forum/Board I have set up, for the post/submission of the Review.

The way I created the Custom page was the easy way, my link comes out as: http://thesocialrev.com/forum/misc.p...mplate=reviews

Here's the code I started with, so you know where I'm at:
HTML Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="tcat">%ARTICLE1_TITLE%</td>
</tr>
<tr>
    <td class="alt1">
    %ARTICLE1_CONTENT%
    </td>
</tr>
</table>

$footer
</body>
</html>

I replaced %ARTICLE1_TITLE% / %ARTICLE1_CONTENT% with the title and content of my page, I have made no other changes.

(i know theres 2 ways to make a custom page, so I hope that will help show you how I did it, incase the way is different for each way)

Sorry if this is confusing

Lynne 11-04-2008 03:14 PM

It sounds to me like you just want a form to post a thread to a forum, no? Take a look at this - Form Hack

Sawa Dee SohL 11-04-2008 03:19 PM

Ty ty - I'll DL it and give it a shot.

I'll come back and say how it goes

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

I'm trying to ad more then the 3 Radio Buttons, this is the code I've added:

Part 1:

HTML Code:

$vbulletin->input->clean_array_gpc('p', array(
'normalanswer1' => TYPE_STR,
'radioanswer1' => TYPE_STR,
'radioanswer2' => TYPE_STR,
'radioanswer3' => TYPE_STR,
'radioanswer4' => TYPE_STR,
'radioanswer5' => TYPE_STR,
'radioanswer6' => TYPE_STR,
'radioanswer7' => TYPE_STR,
'radioanswer8' => TYPE_STR,
'radioanswer9' => TYPE_STR,
'radioanswer10' => TYPE_STR,
'radioanswer10other' => TYPE_STR,

Part 2:

HTML Code:

$normalanswer1 = $vbulletin->GPC['normalanswer1'];
$radioanswer1 = $vbulletin->GPC['radioanswer1'];
$radioanswer2 = $vbulletin->GPC['radioanswer2'];
$radioanswer3 = $vbulletin->GPC['radioanswer3'];
$radioanswer4 = $vbulletin->GPC['radioanswer4'];
$radioanswer5 = $vbulletin->GPC['radioanswer5'];
$radioanswer6 = $vbulletin->GPC['radioanswer6'];
$radioanswer7 = $vbulletin->GPC['radioanswer7'];
$radioanswer8 = $vbulletin->GPC['radioanswer8'];
$radioanswer9 = $vbulletin->GPC['radioanswer9'];
$radioanswer10 = $vbulletin->GPC['radioanswer10'];
$radioanswer10other = $vbulletin->GPC['radioanswer10other'];

Basically, all I did was ad more Radio features -but it still only shows the 3 - is that coded into / apart of the template, that cannot be changed? (basically tryin to create 10 for a rating of 1-10)

Kiros72 11-04-2008 05:23 PM

Hmm... how can I have the drop down box, direct where the form/post goes?

Lynne 11-04-2008 05:30 PM

Sawa, have you tried asking that question in the Form Hack thread? I'm not familiar with it, so I can't help with the code. But those that post in the modification thread should be able to help you.

Kiros, I'm not sure what you are talking about. You should start your own thread with your own questions and any information that will help us to help you.

Sawa Dee SohL 11-04-2008 07:10 PM

I've got it all sorted out but redirecting to the correct forum. Thanks! - It looks awefully sexy too :D


All times are GMT. The time now is 05:02 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.01083 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_html_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