Hello @Ange Tuteur and all,
From topic: Fast BBCodes for Staff in posts on editor, I have a idea for my project.
And I need your help!
I am working on a program that it will be exported to a special BBCode. I have to do many steps to correct the BBCode to get it done. And then post it into my forum.
Step.1, Following topic "Fast BBCodes for Staff in posts on editor", I tried and I got BBCode as per below image:
I call the left of code in Red is A and the right of code in Blue is B.
Step.2, My program will be get code like below:
From the begining of code we have [DhtmlXQ] (I call it "C").
       And at the end we have [/DhtmlXQ] (I call it "D").
Step.3, I also have the code template as per below:
I call it "E"
I call it "F"
Step.4, What I have to do will be: Replace code "C" by "E" and "D" by "F" that we have in step.2 and Step.3.
At that time we will have full coding that I need per below:
So, now what I need your help is:
- How can we creat a new BBCode button that "A" from step.1 will be replaced by "E" from step.3.
And "B" from step.1 will be replaced by "F" from step.3.
- When we hit this button code will be showed like below ("E" and "F"), then I insert code from step.2.
One more special request.
Is there anyway when we hit the button the code above is showing, then I insert all the code in step.2 BUT "C" and "D" in step.2 will be auto removed?
Here are the attached files of HTML and JavaScript that I got. Link: SAMPLE.
I do not know about coding and html.
I am waiting for your response.
Thank you very much!
Alex.
From topic: Fast BBCodes for Staff in posts on editor, I have a idea for my project.
And I need your help!
I am working on a program that it will be exported to a special BBCode. I have to do many steps to correct the BBCode to get it done. And then post it into my forum.
Step.1, Following topic "Fast BBCodes for Staff in posts on editor", I tried and I got BBCode as per below image:
I call the left of code in Red is A and the right of code in Blue is B.
Step.2, My program will be get code like below:
- Code:
[DhtmlXQ][DhtmlXQ_ver]www_dpxq_com[/DhtmlXQ_ver][DhtmlXQ_init]500,350[/DhtmlXQ_init][DhtmlXQ_binit]9999999949999999999999317399999999990241515224999999999999999999[/DhtmlXQ_binit][DhtmlXQ_title]VnChess-Hòa-Unknow 2014-12-28 20_30_45[/DhtmlXQ_title][DhtmlXQ_date]2014-12-28[/DhtmlXQ_date][DhtmlXQ_red]VnChess[/DhtmlXQ_red][DhtmlXQ_black]Unknow[/DhtmlXQ_black][DhtmlXQ_result]和局[/DhtmlXQ_result][DhtmlXQ_movelist]49594132736351506362504062523241594924425251022031414030515042605040[/DhtmlXQ_movelist][DhtmlXQ_type]实战中残局[/DhtmlXQ_type][DhtmlXQ_firstnum]0[/DhtmlXQ_firstnum][DhtmlXQ_refer]http%3A//www.dpxq.com/%0D%0Ahttp%3A//www.dpxq.com/hldcg/dhtmlxq/frame.htm[/DhtmlXQ_refer][DhtmlXQ_generator]www.dpxq.com[/DhtmlXQ_generator][/DhtmlXQ]
From the begining of code we have [DhtmlXQ] (I call it "C").
       And at the end we have [/DhtmlXQ] (I call it "D").
Step.3, I also have the code template as per below:
I call it "E"
- Code:
<iframe src="http://www.dpxq.com/DhtmlXQ_www_dpxq_com/DhtmlXQ_www_dpxq_com.htm" frameborder="0" scrolling="no" width="800" height="560" style="width:800px;height:560px;" name='NoFile_[DhtmlXQiFrame]
I call it "F"
- Code:
[/DhtmlXQiFrame]'></iframe>
Step.4, What I have to do will be: Replace code "C" by "E" and "D" by "F" that we have in step.2 and Step.3.
At that time we will have full coding that I need per below:
- Code:
<iframe src="http://www.dpxq.com/DhtmlXQ_www_dpxq_com/DhtmlXQ_www_dpxq_com.htm" frameborder="0" scrolling="no" width="800" height="560" style="width:800px;height:560px;" name='NoFile_[DhtmlXQiFrame][DhtmlXQ_ver]www_dpxq_com[/DhtmlXQ_ver][DhtmlXQ_init]500,350[/DhtmlXQ_init][DhtmlXQ_binit]9999999949999999999999317399999999990241515224999999999999999999[/DhtmlXQ_binit][DhtmlXQ_title]VnChess-Hòa-Unknow 2014-12-28 20_30_45[/DhtmlXQ_title][DhtmlXQ_date]2014-12-28[/DhtmlXQ_date][DhtmlXQ_red]VnChess[/DhtmlXQ_red][DhtmlXQ_black]Unknow[/DhtmlXQ_black][DhtmlXQ_result]和局[/DhtmlXQ_result][DhtmlXQ_movelist]49594132736351506362504062523241594924425251022031414030515042605040[/DhtmlXQ_movelist][DhtmlXQ_type]实战中残局[/DhtmlXQ_type][DhtmlXQ_firstnum]0[/DhtmlXQ_firstnum][DhtmlXQ_refer]http%3A//www.dpxq.com/%0D%0Ahttp%3A//www.dpxq.com/hldcg/dhtmlxq/frame.htm[/DhtmlXQ_refer][DhtmlXQ_generator]www.dpxq.com[/DhtmlXQ_generator][/DhtmlXQiFrame]'></iframe>
So, now what I need your help is:
- How can we creat a new BBCode button that "A" from step.1 will be replaced by "E" from step.3.
And "B" from step.1 will be replaced by "F" from step.3.
- When we hit this button code will be showed like below ("E" and "F"), then I insert code from step.2.
- Code:
<iframe src="http://www.dpxq.com/DhtmlXQ_www_dpxq_com/DhtmlXQ_www_dpxq_com.htm" frameborder="0" scrolling="no" width="800" height="560" style="width:800px;height:560px;" name='NoFile_[DhtmlXQiFrame][/DhtmlXQiFrame]'></iframe>
One more special request.
Is there anyway when we hit the button the code above is showing, then I insert all the code in step.2 BUT "C" and "D" in step.2 will be auto removed?
Here are the attached files of HTML and JavaScript that I got. Link: SAMPLE.
I do not know about coding and html.
I am waiting for your response.
Thank you very much!
Alex.
Last edited by AlexisMcDevin on January 6th 2015, 4:02 pm; edited 1 time in total