Button adding prefixed didn't work on my forum
3 posters
Page 1 of 1
Button adding prefixed didn't work on my forum
I followed this TUT: https://help.forumotion.com/t134270-buttons-to-add-prefixes-in-topic-titles#903824
code add in my forum:
Css:
JS:
But nothing was added in my forum.
---------------
Edit: I just realized that it did affect in my forum but only work when I edit the topic.
When I create a new topic, there's no option appear. Is this the default of this TUT? If so, can I have them in the create a new topic.
---------------
my forum: http://www.1000sunny.net/
ver phpbb3
code add in my forum:
Css:
- Code:
#button_label {
color: #09c;
background-color: #fff;
border: 1px solid #464646;
border-radius: 2px;
}
JS:
- Code:
jQuery(document).ready(function() {
jQuery('#modif_topic_title').after('<input type="button" value="Tag Thảo Luận" onclick="set_solved(this.form.elements[\'modif_topic_title\'],\'[Thảo Luận]\')" style="display: inline;" id="button_label">');
});
But nothing was added in my forum.
---------------
Edit: I just realized that it did affect in my forum but only work when I edit the topic.
When I create a new topic, there's no option appear. Is this the default of this TUT? If so, can I have them in the create a new topic.
---------------
my forum: http://www.1000sunny.net/
ver phpbb3
Last edited by Yuushishio on March 16th 2016, 12:32 am; edited 1 time in total
Re: Button adding prefixed didn't work on my forum
Hi,
As far as I know and comprehend, the code is only written for when there's an edit to the thread. Due to the fact that: "Modify topic title" only appears when clicking edit. For the moment, I wouldn't be able to provide you with a code that will meet your standards.
Forgive me,
Sir Chivas.
As far as I know and comprehend, the code is only written for when there's an edit to the thread. Due to the fact that: "Modify topic title" only appears when clicking edit. For the moment, I wouldn't be able to provide you with a code that will meet your standards.
Forgive me,
Sir Chivas.
Re: Button adding prefixed didn't work on my forum
If you want one when you create a topic, you can use the topic icon option.
AP > Display > Colors & Pictures > Pics Management
Advanced Mode
Topic Icons Tab
AP > Display > Colors & Pictures > Pics Management
Advanced Mode
Topic Icons Tab
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Button adding prefixed didn't work on my forum
Thank you. I figured out how to solve it by myself through editing the template.
Post & Private Messages/Posting_body.
I just changed the part
to this
Then change the JS to
Now I can add tags and thing by just create a new topic
This works for phpbb3 (I've not tried them in other version)
Result in my forum (I added a lot of tag, they work perfectly as the original 'only modify' version)
You guys can try it too XD!
Post & Private Messages/Posting_body.
I just changed the part
- Code:
<!-- BEGIN switch_subject -->
<dl>
<dt><label>{L_SUBJECT}</label></dt>
<dd>
<input class="inputbox medium" type="text" name="subject" value="{SUBJECT}" maxlength="{TOPIC_TITLE_MAXLENGTH}" title="{TOPIC_TITLE_LENGTH_EXPLAIN}" onkeypress="if (event.keyCode==13){return false}" />
to this
- Code:
<!-- BEGIN switch_subject -->
<dl>
<dt><label for="SUBJECT">{L_SUBJECT}</label></dt>
<dd>
<input class="inputbox medium" type="text" name="subject" value="{SUBJECT}" maxlength="{TOPIC_TITLE_MAXLENGTH}" title="{TOPIC_TITLE_LENGTH_EXPLAIN}" onkeypress="if (event.keyCode==13){return false}" />
<dt><label for="modif_topic_title">{L_TOPIC_TITLE_MODIFY}</label></dt>
<dd>
<input style="display:none" type="text" class="inputbox medium" name="modif_topic_title" id="modif_topic_title" value="{MODIF_TOPIC_TITLE}" maxlength="{TOPIC_DESCRIPTION_MAXLENGTH}" onkeypress="if (event.keyCode==13){return false}" />
Then change the JS to
- Code:
jQuery(document).ready(function() {
jQuery('#modif_topic_title').after('<input type="button" value="label" onclick="set_solved(this.form.elements[\'subject\'],\'[content]\'); set_solved(this.form.elements[\'modif_topic_title\'],\'[content]\')" style="display: inline;" id="button_label">');
});
Now I can add tags and thing by just create a new topic
This works for phpbb3 (I've not tried them in other version)
Result in my forum (I added a lot of tag, they work perfectly as the original 'only modify' version)
You guys can try it too XD!
Re: Button adding prefixed didn't work on my forum
Thanks for posting the solution.
Topic solved and archived
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Adding a Live SharpCharts from stockcharts.com didnt work
» Advertising
» In the mobile version of my forum, the top "create new topic" button does not work.
» Adding the mention @ in Java doesn't work
» Adding a reply button next to the quote button to automatically tag users?
» Advertising
» In the mobile version of my forum, the top "create new topic" button does not work.
» Adding the mention @ in Java doesn't work
» Adding a reply button next to the quote button to automatically tag users?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum