The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

4 posters

Go down

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

Post by Ape 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 making a bump Button for just one part of the forum... in phpBB2 687474703a2f2f7777772e73706c6174746572737061696e7462616c6c2e636f6d2f696d616765732f627574746f6e5f746f7069635f62756d702e676966next 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
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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


making a bump Button for just one part of the forum... in phpBB2 Left1212making a bump Button for just one part of the forum... in phpBB2 Center11making a bump Button for just one part of the forum... in phpBB2 Right112
making a bump Button for just one part of the forum... in phpBB2 Ape_b110
making a bump Button for just one part of the forum... in phpBB2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 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
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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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? https://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

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

Back to top Go down

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

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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
Pizza Boi
Hyperactive

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

Back to top Go down

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

Post by Ape 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
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 May 21st 2014, 10:10 pm



making a bump Button for just one part of the forum... in phpBB2 Left1212making a bump Button for just one part of the forum... in phpBB2 Center11making a bump Button for just one part of the forum... in phpBB2 Right112
making a bump Button for just one part of the forum... in phpBB2 Ape_b110
making a bump Button for just one part of the forum... in phpBB2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 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


making a bump Button for just one part of the forum... in phpBB2 Left1212making a bump Button for just one part of the forum... in phpBB2 Center11making a bump Button for just one part of the forum... in phpBB2 Right112
making a bump Button for just one part of the forum... in phpBB2 Ape_b110
making a bump Button for just one part of the forum... in phpBB2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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


making a bump Button for just one part of the forum... in phpBB2 Left1212making a bump Button for just one part of the forum... in phpBB2 Center11making a bump Button for just one part of the forum... in phpBB2 Right112
making a bump Button for just one part of the forum... in phpBB2 Ape_b110
making a bump Button for just one part of the forum... in phpBB2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://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 May 22nd 2014, 1:04 am

Now its solved thank you so so much  cheers  thumright  rock  :rose:


making a bump Button for just one part of the forum... in phpBB2 Left1212making a bump Button for just one part of the forum... in phpBB2 Center11making a bump Button for just one part of the forum... in phpBB2 Right112
making a bump Button for just one part of the forum... in phpBB2 Ape_b110
making a bump Button for just one part of the forum... in phpBB2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19369
Reputation : 2006
Language : fluent in dork / mumbojumbo & English haha

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 May 22nd 2014, 1:09 am

Any time Wink

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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