Go Back   vBulletin Modification Discussions > vBulletin Discusions > vBulletin Modifications
Home Register FAQ Members List Calendar Mark Forums Read
vBSEO Info Tags

About This Page: This is a discussion on Custom Template/Pages within the vBulletin Modifications forums, part of the vBulletin Discusions category, at vBulletin Modification Discussions. Ok, I am new to vBulletin, but not coding in general. I create a template that is basically another type of page that I want uses to use to post to my forums. The template loads great and looks good,


Reply
 
LinkBack Thread Tools
Old 02-28-2007, 10:01 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2007
Posts: 2
malebolgia is on a distinguished road
iTrader: (0)
Question Custom Template/Pages

Ok, I am new to vBulletin, but not coding in general. I create a template that is basically another type of page that I want uses to use to post to my forums. The template loads great and looks good, but I cannot for the life of me figure out how to post the information so that it will create a new thread.

My first thought was to basically create a big string of all the information that I want posted, put this text into the vB_Editor and then just post it like the standard newthread template.

When I do a vB_Editor['$editorid'].set_editor_contents(mystring), then perform a submit (document.vbForm.submit()), I get the error saying the editor text is not long enough (must be 10 characters).

On the form post, I left the original code, because I want to change as little as possible to get this to work.

If anyone knows what I am doing wrong, or even a product that will make this easier, please let me know. I need help!
malebolgia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Old 04-03-2007, 12:09 PM   #2 (permalink)
Junior Member
 
Join Date: Feb 2007
Posts: 2
malebolgia is on a distinguished road
iTrader: (0)
If anyone is every trying to do this, I can tell you that I figured it out. What needed to be done was:

vB_Editor['$editorid'].write_editor_contents(strPost,'false');
document.vbform.submit();

This took the variable strPost, which is a big html formatted string that contains all the information from all the controls on my form, and put the contents of it into the vB_Editor text area just before posting that very information.

This allowed me to add any controls and have the user fill them out, then have the information parsed, formatted, and displayed in a nice post. The other changes required me to create a newthread.php that was for my particular form, which was in addition to the newthread.
malebolgia is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply
Tags: , ,





Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


A vBSkinworks Design Recoded By vBModder.
All Code Distributed On This Site is © 2006 by it's author.
Search Engine Optimization by vBSEO 3.1.0

All times are GMT -7. The time now is 04:51 AM.
Online Users 61
Registered 0
Guests 61
Members 3123
Active Members 214
Threads 1572
Posts 6950
Top poster: Code Monkey (2179)
Welcome to our newest member, breakdown
Most users ever online was 235, 04-11-2007 at 08:59 AM.
Speak Out! vBulletin gets the web talking!


vBulletin Setup SEO

vBulletin graphics resource images