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.

automatic post

2 posters

Go down

Solved automatic post

Post by DeathLess July 6th 2017, 7:54 am

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

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by Guest July 6th 2017, 8:56 am

Yes, it's possible. Forum link?
avatar
Guest
Guest


Back to top Go down

Solved Re: automatic post

Post by DeathLess July 6th 2017, 10:49 am

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

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by SLGray July 6th 2017, 7:02 pm

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: automatic post

Post by DeathLess July 7th 2017, 5:53 am

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.
DeathLess
DeathLess
Forumember

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by SLGray July 7th 2017, 6:14 pm

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: automatic post

Post by DeathLess July 7th 2017, 7:46 pm

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.
DeathLess
DeathLess
Forumember

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by SLGray July 7th 2017, 8:04 pm

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: automatic post

Post by Guest July 7th 2017, 8:16 pm

Hi,

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


Back to top Go down

Solved Re: automatic post

Post by DeathLess July 8th 2017, 7:30 am

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by DeathLess July 8th 2017, 7:32 am

Wolfuryo wrote:Hi,

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

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by Guest July 8th 2017, 10:38 am

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.
avatar
Guest
Guest


Back to top Go down

Solved Re: automatic post

Post by DeathLess July 8th 2017, 12:12 pm

Thanks!!
It's WORKING!
DeathLess
DeathLess
Forumember

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

http://www.minervasite.org/

Back to top Go down

Solved Re: automatic post

Post by SLGray July 8th 2017, 7:13 pm

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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