IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Apr 2018, 11:43

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

» Numbering of messages in the topic
by SLGray Mon 04 Dec 2017, 22:40

Recent Tutorials
Top posting users this month
Who is online?
In total there are 10 users online :: 1 Registered, 0 Hidden and 9 Guests :: 2 Bots

alla13

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

forum auto post (bot)

View previous topic View next topic Go down

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 779
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
View user profile

PostMAX on Tue 07 Feb 2017, 01:13

hello @Ange Tuteur

can you check this javascript for auto post ?
Code:
$(function() {
var p = {
post: $('.post')[0],
author: $('.author:first').html(),
date: $('.topic-title').first().html(),
announce: 'Hello, Thanks for your post!',//Enter the code beside the advertising
member: 'Administrators bot',//Define Name of a Bot
imagem: 'http://i.imgur.com/tdaNexK.jpg',//Picture of the Bot
message: '100000',//Total Number of Post
register: 'Always',//Date Registred
location: 'AVACS Live Chat Support Forum'//Location
};
$(p.post).after('
<div class="post row1 online" style="margin:10px 0px 10px 0px">
<span class=corners-top><span></span></span>
<div class=postbody>
 <h2 class="topic-title">'+p.date+'</h2>
<p class="author">'+p.author+'</p>
  <div class=content>'+p.announce+'</div>
</div>
<div class=postprofile>
<dl><dt><img src='+p.imagem+'><br><b style=font-size:1.2em>'+p.membro+'</b></dt><br><dd>
<span class="label">Messages: </span>'+p.message+'<br>
<span class="label">Date Registered: </span>'+p.register+'<br>
<span class="label">Location: </span>'+p.location+'<br>
</dd>
</dl>
</div>
<span class=corners-bottom><span></span></span></div>
');
});


problem is that define name of bot is showing undefined and
Code:
author: $('.author:first').html(),
here showing author post but i am wanting bot id will show or post message not author.

how to do it if you make a correction for me dear coding master ange
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4730
Points : 9818
Reputation : 2365
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Tue 07 Feb 2017, 11:25

Replace "membro" with "member" and it'll fix the name. Other than that correction, that's all I can provide for this code since I didn't write it.

--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 779
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
View user profile

PostMAX on Tue 07 Feb 2017, 12:43

Ok @Ange Tuteur write that code for me please.

According to your direction it fixed the undefined user.

Here is screenshot

But author should be Administrator bot nor thw first poster or topic writer. Because admin bot should post his message as author.

Another issue is that there should be a little space between messages and numbers of message. For example: Messages:100000

But it should be: Messages: 100000

And also the number of messages should be increased for every auto post but I don't know it is possible or not?

Thanks in advance Rose
avatar
MAX

Gender : Unspecified
Posts : 83
Points : 779
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
View user profile

PostMAX on Fri 10 Feb 2017, 00:02

avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4730
Points : 9818
Reputation : 2365
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 10 Feb 2017, 10:58

Hey,

Sorry, but I'll providing no more support than I already have. If you need any help, please take your queries to the Official Forumotion Support Forum. I believe I already told you this numerous times, but if you've forgotten already, please see the links below and read them.

http://fmdesign.forumotion.com/t1187-important-my-departure-from-forumotion#28245
http://fmdesign.forumotion.com/t501p25-starred-forums#29125

P.S.
There's no need to tag me twice or bump your topic. The reason I did not reply is because I've been out for the past few days. I always check each and every topic that's new when I log in. You can check my last connection via http://fmdesign.forumotion.com/memberlist to see if I logged in recently.

--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 779
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
View user profile

PostMAX on Fri 10 Feb 2017, 11:25

Yeah I know all everything ange but as your good friend you can help me a bit of your time if you don't mind.

My thanks always to you that you helped me a lot. You are the best cooding master of the world.

Thanks Rose
avatar
Ange Tuteur
Administrator
Gender : Male
Age : 22
Posts : 4730
Points : 9818
Reputation : 2365
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 10 Feb 2017, 11:57

Ah yes, a fair weather friend who only comes to me when they need something. No, sorry, but if it's not related to FAE or an existing tutorial I've written, I'm no longer providing much support. If you were my "friend", like you say, you'd understand why I want to move on to other things besides coding and support, and respect my decision, instead of badgering me with request after request, not to mention lie to me to try and get help too.

Sorry, but I've made my decision. If you don't like it, that's fine, but at least have the courtesy to respect it.

--------

Ange Tuteur
Tips and TricksContact Me

avatar
MAX

Gender : Unspecified
Posts : 83
Points : 779
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
View user profile

PostMAX on Fri 10 Feb 2017, 14:05

Ok,

I respect your decision but I regard you as my best friend not a fair weather friend what you mentioned above.



avatar
SLGray
Valued Member
Gender : Male
Age : 45
Posts : 2465
Points : 4974
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Fri 10 Feb 2017, 14:36

It sounds like you do not understand what true friends mean. You are just asking for codes without learning anything.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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