The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

making a bump Button for just one part of the forum... in phpBB2

View previous topic View next topic Go down

Solved making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 7th 2014, 8:18 pm

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


Last edited by APE on May 22nd 2014, 1:06 am; edited 3 times in total

APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Illest on May 7th 2014, 8:25 pm

Hello,

Take a look at this thread to see if it helps you. Very Happy

https://www.phpbb.com/community/viewtopic.php?t=1022705

Illest
Forumember

Male Posts : 135
Reputation : 9
Language : English
Location : USA

http://mixedmedia.userboard.net

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 7th 2014, 8:37 pm

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




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Illest on May 7th 2014, 8:39 pm

@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.

Illest
Forumember

Male Posts : 135
Reputation : 9
Language : English
Location : USA

http://mixedmedia.userboard.net

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 8th 2014, 5:38 am

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 Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Pizza Boi on May 8th 2014, 6:17 am

Hi Very Happy

Wouldn't this be achievable by just changing the link value and the content value here? http://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 8th 2014, 6:49 am

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 :
Code:
if (/\/t\d+.*/.test(location.pathname))

But that would most likely apply to all topics.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Pizza Boi on May 8th 2014, 6:51 am

Hi Very Happy

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

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 9th 2014, 12:43 am

@Ange 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 Smile
it is for a phpBB2 forum it will be on one part of the forum
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.

APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 9th 2014, 1:23 am

Thanks for the info, I will see what I can come up with when I am free.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 9th 2014, 1:36 am

@Ange Tuteur wrote:Thanks for the info, I will see what I can come up with when I am free.
Thank you so much Wink:rose:

APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 21st 2014, 10:10 pm

BUMP!! to Ange Tuteur Hello




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 21st 2014, 10:26 pm

@APE wrote:BUMP!! to Ange Tuteur Hello
Thanks, I knew I would forget since I was away. I'll most likely be away for longer so I got to it quickly. salut

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 ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 21st 2014, 10:29 pm

@Ange Tuteur wrote:
@APE wrote:BUMP!! to Ange Tuteur Hello
Thanks, I knew I would forget since I was away. I'll most likely be away for longer so I got to it quickly. salut

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 ?
yes its to be added to this forum only plz
http://fishcrazyaquatics.4umotion.com/f36-aquatic-exchange-buy-sell-or-trade

APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 21st 2014, 10:39 pm

Thanks, try this Smile:
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');
  });
  }
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 21st 2014, 10:54 pm

Wow you are so god damn good at this stuff Ange Tuteur Thank you so much :wouhou:
just a reminder that your photobucket one you did still needs a fix on IE problem I pm'ed you about Wink

SOLVED WITH THANKS




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 21st 2014, 11:16 pm

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 ??




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 22nd 2014, 12:22 am

Oops I forgot about WYSIWYG mode, this should do it ! Very good

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. Wink

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by APE on May 22nd 2014, 1:04 am

Now its solved thank you so so much cheersthumrightrock:rose:




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: making a bump Button for just one part of the forum... in phpBB2

Post by Ange Tuteur on May 22nd 2014, 1:09 am

Any time Wink

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum