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

    automatic post

    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved automatic post

    Post by DeathLess Thu 6 Jul - 8:54

    Hi!
    Is possible to post an automatic post, when somebody create a new topic?
    avatar
    Guest
    Guest


    Solved Re: automatic post

    Post by Guest Thu 6 Jul - 9:56

    Yes, it's possible. Forum link?
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Thu 6 Jul - 11:49

    Wolfuryo wrote:Yes, it's possible. Forum link?
    http://www.minervasite.org
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: automatic post

    Post by SLGray Thu 6 Jul - 20:02

    Do you mean a message or a form to fill out?



    automatic post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Fri 7 Jul - 6:53

    SLGray wrote:Do you mean a message or a form to fill out?
    A message.
    For exemple, x create a new topic, then the first message will be an automatic message.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: automatic post

    Post by SLGray Fri 7 Jul - 19:14

    For exemple, x create a new topic, then the first message will be an automatic message. 

    X message will be the first message.  Did you mean first reply?



    automatic post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Fri 7 Jul - 20:46

    SLGray wrote:For exemple, x create a new topic, then the first message will be an automatic message. 

    X message will be the first message.  Did you mean first reply?
    Oh, yes. Sorry.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: automatic post

    Post by SLGray Fri 7 Jul - 21:04

    Are you using #phpBB3 ?



    automatic post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Guest
    Guest


    Solved Re: automatic post

    Post by Guest Fri 7 Jul - 21:16

    Hi,

    So basically:I make a new topic, then a message(not mine) is automatically posted, right?
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Sat 8 Jul - 8:30

    SLGray wrote:Are you using #phpBB3 ?
    phpBB3 with Forumactif Edge.
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Sat 8 Jul - 8:32

    Wolfuryo wrote:Hi,

    So basically:I make a new topic, then a message(not mine) is automatically posted, right?
    Yes.
    avatar
    Guest
    Guest


    Solved Re: automatic post

    Post by Guest Sat 8 Jul - 11:38

    Hi,

    Add the following javascript code with placement on topics:
    Code:
    window.atp = {};
    atp.copyright = "Coded by Wolfuryo. Use at your own risk :D. Usage of this code without this notice will result in the destruction of your forum";
    atp.config = {
        mess: "AUTOPOST",
        name: "BOT",
        avatar: "https://2img.net/u/3412/19/22/63/avatars/102172-85.jpg",
        fields: 1
    };
    atp.mo = function() {
        if (atp.config.name) {
            var nm = $("[href*='u']>span>strong").eq(0).text();
            atp.html = atp.html.replace(new RegExp(nm, "g"), atp.config.name);
        };
        if (atp.config.mess) {
            var ms = $("div.content>div").eq(0).html();
            atp.html = atp.html.replace(ms, atp.config.mess);
        };
        if (atp.config.avatar) {
            var sr = $(".user-avatar>a>img").eq(0).attr("src");
            atp.html = atp.html.replace(sr, atp.config.avatar);
        };
        if (atp.config.fields) {
            var fd = $(".field-info").first().html();
            var df = $(".contact-info").first().html();
            atp.html = atp.html.split(fd).join("").split(df).join("");
        };
        var ed = $("ul.profile-icons").eq(0).html();
        atp.html = atp.html.split(ed).join("");
    };
    atp.app = function() {
        $(".content-block.post").first().after(atp.html);
    };
    atp.init = function() {
        if (!/t\d+/.test(location.pathname)) return;
        atp.html = "<div class='content-block post row2 online'>" + $(".content-block.post").first().html() + "</div>";
        atp.mo();
        atp.app();
    };
    $(function() {
        atp.init();
    })

    What you can edit:
    Code:
    mess: "AUTOPOST",
    ->You can replace AUTOPOST with the message you want to posted. If you want the original message(the one posted by the creator of the topic), replace AUTOPOST with 0.
    Code:
    name: "BOT",
    The name that appears as the poster. Replace "BOT" with 0 to show to topic author's username.
    Code:
    avatar: "https://2img.net/u/3412/19/22/63/avatars/102172-85.jpg",
    ->The avatar. Again, replace with 0 to show the author's avatar.
    Code:
     fields: 1
    1 means that the fileds(by fields I mean reputation, number of messages etc.) are removed. 0->The fields from the topic's author are shown.
    DeathLess
    DeathLess
    Forumember


    Male Posts : 59
    Reputation : 1
    Language : ForuMotion Hungarian Translator
    Location : At Your Girlfriend's House

    Solved Re: automatic post

    Post by DeathLess Sat 8 Jul - 13:12

    Thanks!!
    It's WORKING!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: automatic post

    Post by SLGray Sat 8 Jul - 20:13

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    automatic post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

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