Hire A Programmer
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherHire A Programmer

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2005, 10:12 PM
ArabianKnight ArabianKnight is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 92 ArabianKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 22 m 43 sec
Reputation Power: 4
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")."&nbsp;"
    .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.

Reply With Quote
  #2  
Old August 2nd, 2005, 12:43 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,627 jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 3 Days 3 h 11 m 51 sec
Reputation Power: 835
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.

Reply With Quote
  #3  
Old August 2nd, 2005, 02:14 AM
ArabianKnight ArabianKnight is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 92 ArabianKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 22 m 43 sec
Reputation Power: 4
Quote:
Originally Posted by jharnois
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.


So I need to code a javascript file for it?

Reply With Quote
  #4  
Old August 2nd, 2005, 10:00 AM
Michael2003 Michael2003 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Posts: 1,037 Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 20 m 3 sec
Reputation Power: 21
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.

Reply With Quote
  #5  
Old August 2nd, 2005, 07:19 PM
ArabianKnight ArabianKnight is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 92 ArabianKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 22 m 43 sec
Reputation Power: 4
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?

Reply With Quote
  #6  
Old August 2nd, 2005, 07:21 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,627 jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level)jharnois User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 3 Days 3 h 11 m 51 sec
Reputation Power: 835
Moved to Hire A Programmer ...

Reply With Quote
  #7  
Old August 2nd, 2005, 07:46 PM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonders.
Posts: 5,553 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 h 36 m 8 sec
Reputation Power: 378
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook MySpace
$40.00 and i will get you the script.. just hit me up if you want it.

Reply With Quote
  #8  
Old August 3rd, 2005, 07:46 AM
nightwolfz nightwolfz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Europe
Posts: 4 nightwolfz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 36 sec
Reputation Power: 0
Send a message via MSN to nightwolfz
$30 and I'll do this



Reply With Quote
  #9  
Old August 3rd, 2005, 02:09 PM
ArabianKnight ArabianKnight is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 92 ArabianKnight User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 22 m 43 sec
Reputation Power: 4
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?

Reply With Quote
  #10  
Old August 3rd, 2005, 02:43 PM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonders.
Posts: 5,553 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1Folding Points: 110977 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 h 36 m 8 sec
Reputation Power: 378
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook MySpace
Quote:
Originally Posted by ArabianKnight
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?

$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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherHire A Programmer > Need help incorporating javascript (I think) into my quickyreply.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |