The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Has anyone figured out how to add the editor to 4.0 custom scripts? I am trying to figure out but why try to reinvent the wheel if someone already figured it out.
Thanks Steve |
|
#2
|
|||
|
|||
|
i would like to know this as well.
I have it working on my scripts but its layout is all wrong. |
|
#3
|
||||
|
||||
|
the template :
Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}vbulletin-formcontrols.css" />
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}editor.css" />
<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}bbcode.css" />
<form class="vbform block" action="file.php" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})">
<div class="wysiwyg_block">
<div class="blockbody formcontrols">
<div class="blockrow">
{vb:raw messagearea}
</div>
</div>
</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="mydo" />
<input type="submit" class="button" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase myphrase}" accesskey="s" tabindex="2" />
</div>
</div>
</form>
PHP Code:
|
|
#4
|
|||
|
|||
|
Well thank you xman_79. That will help quite a bit.
You can submit the article or I can submit an article, your call xman_79. |
|
#5
|
||||
|
||||
|
Welcome ..
My problem is : I don't speack english ...
|
|
#6
|
|||
|
|||
|
No worries, I will put the article up then. I'm gonna test the code to make sure it works and test various ways but over all I'm confident it works.
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
||||
|
||||
|
Quote:
Quote:
My name is Suleiman . http://www.vbulletin-ressources.com/...ad.php?t=17708 |
|
#9
|
|||
|
|||
|
Done and done, thanks, I went off of your article on that site to finish up mine.
|
|
#10
|
|||
|
|||
|
abDoes anyone know how to activate the new attachment option in the code above?
I see this in newthread PHP Code:
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|