making a bump Button for just one part of the forum... in phpBB2
4 posters
Page 1 of 1
making a bump Button for just one part of the forum... in phpBB2
Hi all is there away to make a button that posts only shows up in one forum like CLASSIFIEDS SECTION
and when pressed it will say something like "This items is Bumped as it is still available"
when a member opens a thread only they or the staff can use the button ?
EDIT: should add i would like to do this all by javascript and maybe CSS Not in templates
maybe adding a button like this next to the send button or if not it can be in the editor.
any help on this would be really good thank
Ape
and when pressed it will say something like "This items is Bumped as it is still available"
when a member opens a thread only they or the staff can use the button ?
EDIT: should add i would like to do this all by javascript and maybe CSS Not in templates
maybe adding a button like this next to the send button or if not it can be in the editor.
any help on this would be really good thank
Ape
Last edited by APE on May 22nd 2014, 1:06 am; edited 3 times in total
Re: making a bump Button for just one part of the forum... in phpBB2
Hello,
Take a look at this thread to see if it helps you.
https://www.phpbb.com/community/viewtopic.php?t=1022705
Take a look at this thread to see if it helps you.
https://www.phpbb.com/community/viewtopic.php?t=1022705
Re: making a bump Button for just one part of the forum... in phpBB2
No thats no good i need it to work with FM's forums that is not for fm's forum
But thank you for your help
Ape
But thank you for your help
Ape
Re: making a bump Button for just one part of the forum... in phpBB2
APE wrote:No thats no good i need it to work with FM's forums that is not for fm's forum
But thank you for your help
Ape
Some of Forumotion's forums are phpBB based, but you're welcome.
Re: making a bump Button for just one part of the forum... in phpBB2
Hi APE,
Which version of forum are we adding this to ? Also let me get this right, you only want it to show for staff, or all ?
Thanks you
Which version of forum are we adding this to ? Also let me get this right, you only want it to show for staff, or all ?
Thanks you
Re: making a bump Button for just one part of the forum... in phpBB2
Hi
Wouldn't this be achievable by just changing the link value and the content value here? https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic
Regards,
Pizza Boi
Wouldn't this be achievable by just changing the link value and the content value here? https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic
Regards,
Pizza Boi
Pizza Boi- Hyperactive
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: making a bump Button for just one part of the forum... in phpBB2
I believe he is wanting it to be applied on click of a button, not automatically. You could probably set the automatic one by a condition like this, though :
But that would most likely apply to all topics.
- Code:
if (/\/t\d+.*/.test(location.pathname))
But that would most likely apply to all topics.
Re: making a bump Button for just one part of the forum... in phpBB2
Hi
Hmm... what if he just applies that script to the button? Wouldn't that be possible? Also, if ever he does not do that, can you please make one for punBB as well, lol.
Regards,
Pizza Boi
Hmm... what if he just applies that script to the button? Wouldn't that be possible? Also, if ever he does not do that, can you please make one for punBB as well, lol.
Regards,
Pizza Boi
Pizza Boi- Hyperactive
- Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!
Re: making a bump Button for just one part of the forum... in phpBB2
it is for a phpBB2 forum it will be on one part of the forumAnge Tuteur wrote:Hi APE,
Which version of forum are we adding this to ? Also let me get this right, you only want it to show for staff, or all ?
Thanks you
and anyone can use it not just for staff members.
i would love to have it so if you click the button it will just post the text without having to click post reply or the Send button but if this can not be done that way it could be in the new editor.
Ape.
Re: making a bump Button for just one part of the forum... in phpBB2
Thanks for the info, I will see what I can come up with when I am free.
Re: making a bump Button for just one part of the forum... in phpBB2
Thank you so muchAnge Tuteur wrote:Thanks for the info, I will see what I can come up with when I am free.
Re: making a bump Button for just one part of the forum... in phpBB2
Thanks, I knew I would forget since I was away. I'll most likely be away for longer so I got to it quickly.APE wrote:BUMP!! to Ange Tuteur
Try below :
Modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and save :
- Code:
$(function() {
$('#quick_reply input.mainoption').after('<input id="bump" class="mainoption" style="margin-left:6px;" type="submit" value="Bump" name="post"></input>');
$('#bump').click(function() {
$('#quick_reply textarea').val('This items is Bumped as it is still available');
});
});
If it needs to be applied to a certain forum / category could you please provide a link to it ?
Re: making a bump Button for just one part of the forum... in phpBB2
yes its to be added to this forum only plzAnge Tuteur wrote:Thanks, I knew I would forget since I was away. I'll most likely be away for longer so I got to it quickly.APE wrote:BUMP!! to Ange Tuteur
Try below :
Modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and save :
- Code:
$(function() {
$('#quick_reply input.mainoption').after('<input id="bump" class="mainoption" style="margin-left:6px;" type="submit" value="Bump" name="post"></input>');
$('#bump').click(function() {
$('#quick_reply textarea').val('This items is Bumped as it is still available');
});
});
If it needs to be applied to a certain forum / category could you please provide a link to it ?
http://fishcrazyaquatics.4umotion.com/f36-aquatic-exchange-buy-sell-or-trade
Re: making a bump Button for just one part of the forum... in phpBB2
Thanks, try this :
- Code:
$(function() {
if (/f36/.test($('td.nav span.nav a.nav:last').attr('href'))) {
$('#quick_reply input.mainoption').after('<input id="bump" class="mainoption" style="margin-left:6px;" type="submit" value="Bump" name="post"></input>');
$('#bump').click(function() {
$('#quick_reply textarea').val('This items is Bumped as it is still available');
});
}
});
Re: making a bump Button for just one part of the forum... in phpBB2
Wow you are so god damn good at this stuff Ange Tuteur Thank you so much
just a reminder that your photobucket one you did still needs a fix on IE problem I pm'ed you about
SOLVED WITH THANKS
just a reminder that your photobucket one you did still needs a fix on IE problem I pm'ed you about
SOLVED WITH THANKS
Re: making a bump Button for just one part of the forum... in phpBB2
Wow hold on a sec this will only post if the editor mode is turned off is there away to make it so it works on or off plz ??
Re: making a bump Button for just one part of the forum... in phpBB2
Oops I forgot about WYSIWYG mode, this should do it !
I added some variables for easy customization too.
- Code:
$(function() {
var bumptxt = 'This items is Bumped as it is still available';
var forumid = /f36/;
if (forumid.test($('td.nav span.nav a.nav:last').attr('href'))) {
$('#quick_reply input.mainoption').after('<input id="bump" class="mainoption" style="margin-left:6px;" type="submit" value="Bump" name="post"></input>');
$('#bump').click(function() {
$('#quick_reply textarea').val(bumptxt);
$('#quick_reply iframe').contents().find('body').html(bumptxt);
});
}
});
I added some variables for easy customization too.
Re: making a bump Button for just one part of the forum... in phpBB2
Now its solved thank you so so much
Similar topics
» Online/Offline button for phpbb2
» Bump button modification
» Making phpbb3 RPG Sheet as phpbb2
» How to get a like button on the phpBB2?
» Facebook like button for Phpbb2?
» Bump button modification
» Making phpbb3 RPG Sheet as phpbb2
» How to get a like button on the phpBB2?
» Facebook like button for Phpbb2?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum