|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help incorporating javascript(I think) into my quickyreply.
I want to add that sort of thing to my quick reply. Where you click a button to have a prompt ask you to insert the text that you want bolded. If someone were able to show me how to do it for the bold I could finish the rest but as I stand now I have no idea how to proceed. The quickreply code is this: Code:
<?
if($userloggedin){
$quickreplyform = "
<tr>
<td class=\"BoardColumn\" colspan=\"2\">
<a href=\"#quickreply\" onClick=\"javascript:toggleQuickReply();\" class=\"MainMenuLink\" name=\"quickreply\">
Quick Reply</a>
</td>
</tr>
<form name=\"postform\" id=\"postform\" action=\"post.php\" method=\"post\" onSubmit=\"return preventDoublePosts();\">
<tr id=\"quickreplyform\" style=\"display: none;\">
<td class=\"BoardColumn\" width=\"20%\" valign=\"top\" align=\"right\">
Subject:<br><br> Format:<br><br> Body:
</td>
<td class=\"BoardColumn\" width=\"80%\">"
.inputHidden("action", "process")
.inputHidden("threadid", $threadid)
.inputHidden("type", "quickreply")
.inputText("subject", "RE: ".$subject, 40)."<br>"
.inputTextArea("body", $body, 55, 5, "", "", "", "linewrapfix")
."<br>"
.inputSubmit(" Post ", "", "button")." "
.inputSubmit("Preview", "", "previewbutton")."
</td>
</tr>
</form>";
}else{
$quickreplyform = "";
}
?>
I really want to do this asap but have no idea where to begin and would appreciate help. NOTICE: I am reposting this because I was very vague before and the question made 0 sense whatsoever except to me. I apologize for that, lack of sleep does that to people it seems. Anyways, please help me and don't flame. ![]() |
|
#2
|
||||
|
||||
|
Please read the "How to post a question!" sticky in the Rules/Guidelines forum before starting another thread. Do not cross-post (Java is not JavaScript anyway). Do not bump threads, especially when it's only four hours old. Try to get the correct forum.
You need the JavaScript before you incorporate it into your PHP. And it doesn't look like you'll need too much help with that b/c it'll be a function call like toggleQuickReply() is. Start with this; it's what you use to get the user's text. You then, using JavaScript, put the [b] tags around it and append it to the contents of the <textarea>. Create some code and show it.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
|||
|
|||
|
Quote:
So I need to code a javascript file for it? |
|
#4
|
|||
|
|||
|
Yes (or you can just put it in <script> tags). Like jharnois said, just write a simple function that uses window.prompt() to get what the user wants to insert and than add it to the value of the textarea. You can then make it more complex to add where the cursor currently is if you want.
|
|
#5
|
|||
|
|||
|
I am far too nooby to accomplish this. How much would it cost me to pay one of you to do the whole markup code bar?
|
|
#6
|
||||
|
||||
|
Moved to Hire A Programmer ...
|
|
#7
|
||||
|
||||
|
$40.00 and i will get you the script.. just hit me up if you want it.
__________________
IE QUOTE | PHP Manual | Google | C/C++ Compiler | Linux Tutorials | General Stuff Game Dev |
|
#8
|
|||
|
|||
|
$30 and I'll do this
![]() |
|
#9
|
|||
|
|||
|
If I hire someone to do this I want them to do it for all the markup and to add it to the reply and quickreply php files.
For that how much would it cost? |
|
#10
|
||||
|
||||
|
Quote:
$150.00, onless you can send me a message on msn, aim or etc.. and maybe you can explain exactly what you want.. but from what i see it will cost you $150.00.. i do good work.. and i always try to go the extra mile... else then good luck. i will also add a few smilies ![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Hire A Programmer > Need help incorporating javascript (I think) into my quickyreply. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|