![]() |
Using quick reply on nonvb page
Just how can this be done ?
I took a look at showthread.php ( it calls the template showthread_quickreply ) and the template itself. Seems relatively straightforward. but including it in a non vb page, i keep getting ( in standard toolbar mode as i set WYSIWYG as 1. ) the page going to the top of the page ( with the URL having an appended # ) upon clicking on any of the buttons, like B, I or U etc. My template for the non vb page for the part calling the 'quick reply bit': Code:
<tr> PHP Code:
Code:
<script type="text/javascript"> |
is this inside the forums directory?
here's a snippet of mine PHP Code:
HTML Code:
<script type="text/javascript"> |
Nope doesn't work.
I am wondering if we can just take out unneeded variables, and hidden tags stuff. Or must everything be intact ? But I am not quoting any post or anything. I am merely trying to use it to replace a normal textarea with a standard toolbar editor box instead. |
in your script you've got
PHP Code:
the variables don't really matter depending on how you're processing the data afterwords. is this inside or outside of the forums directory? |
I removed the $SHOWQUICKREPLY = TRUE
because it is not in the template code anyways. The quick reply box shows, just that clicking on B, or I, U etc. doesnt do anything but bring me to the top of the page, and appends a # to the URL. I am quite sure the vbcode() function is not executed ( the onclick event ), so yeah, it's something to do with the js. Everything is in the forums dir. |
i just noticed i have the same problem lol
ok let me check the js references. |
Woot, I got it to work :)
just for future reference in case others need to use this. Php code here : PHP Code:
The 'your_quickreply_template' template : Code:
<script type="text/javascript"> Hope this comes in handy :) |
nice one, i'll definately have to play with thsi tonight.
|
Nice post but my question still remains.
I?m trying to make a forum with several threads showing as well as posts. The thing is below every thread there is a WYSIWYG, so a quick reply box can be written. Several javascripts define the WYSIWYG. As there are several WYSIWYG there are several JS repeating themselves. Well, my problem lies in between. Bump.... We made this in a non vb area because I found the vBulletin's data manager with a 2000 lines and I can?t just repeat them. Anyway, I?m still studing the http://www.vbulletin.com/docs/html/data_managers See what we made in a non vb area while I?m trying to figure out the vbulletin?s data manager: <script type="text/javascript"> <!-- var WYSIWYG = $WYSIWYG; var threadedmode = $threadedmode; var require_click = $QRrequireclick; var istyles = new Array(); istyles = { $istyles_js }; var normalmode = false; //--> </script> |
All times are GMT. The time now is 02:08 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|