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.
The forum of the forums
4 posters

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

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 7 May - 20:18

    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 Thu 22 May - 1:06; edited 3 times in total
    Illest
    Illest
    Forumember


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

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

    Post by Illest Wed 7 May - 20:25

    Hello,

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

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


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 7 May - 20:37

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


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

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

    Post by Illest Wed 7 May - 20:39

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


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

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

    Post by Ange Tuteur Thu 8 May - 5:38

    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
    Pizza Boi
    Pizza Boi
    Hyperactive


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

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

    Post by Pizza Boi Thu 8 May - 6:17

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


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

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

    Post by Ange Tuteur Thu 8 May - 6:49

    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.
    Pizza Boi
    Pizza Boi
    Hyperactive


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

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

    Post by Pizza Boi Thu 8 May - 6:51

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


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Fri 9 May - 0:43

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


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

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

    Post by Ange Tuteur Fri 9 May - 1:23

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


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Fri 9 May - 1:36

    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 : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 21 May - 22:10




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


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

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

    Post by Ange Tuteur Wed 21 May - 22:26

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


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 21 May - 22:29

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


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

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

    Post by Ange Tuteur Wed 21 May - 22:39

    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');
            });
        }
    });
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 21 May - 22:54

    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 : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Wed 21 May - 23:16

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


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

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

    Post by Ange Tuteur Thu 22 May - 0:22

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


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

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

    Post by Ape Thu 22 May - 1:04

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


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

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

    Post by Ange Tuteur Thu 22 May - 1:09

    Any time Wink

    Topic archived

      Current date/time is Sun 22 Sep - 19:27