Latest topics
» [GAME] What are you thinking right now?
by universecat Yesterday at 21:46

» [GAME] Animal Game
by universecat Yesterday at 21:43

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by universecat Yesterday at 21:40

» [GAME] Count to One Million!
by universecat Yesterday at 21:40

» [GAME] Last Letter Game
by universecat Yesterday at 21:39

» [GAME] Post a random picture
by SLGray Yesterday at 16:28

» Dark Mode + Another Question
by Ace 1 Yesterday at 13:31

» Hi everyone!
by skouliki Yesterday at 02:01

» Hai Guys~
by skouliki Yesterday at 01:59

» Add a login popup for the toolbar
by Ape Sun 15 Oct 2017, 13:51

» Mobile Usability Test
by Ange Tuteur Sat 14 Oct 2017, 11:20

» Chit Chat Thread
by Ange Tuteur Sat 14 Oct 2017, 11:20

» [GAME] World Snake
by SLGray Thu 12 Oct 2017, 16:12

» [GAME] Never have I ever..
by Valoish Thu 12 Oct 2017, 13:01

» Browsers & Updates
by SLGray Mon 09 Oct 2017, 12:11

Recent Tutorials
Who is online?
In total there are 6 users online :: 1 Registered, 0 Hidden and 5 Guests :: 1 Bot

jlmic

[ 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

Title :
Gender : Unspecified
Posts : 83
Points : 557
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
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
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9534
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
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.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 557
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
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

Title :
Gender : Unspecified
Posts : 83
Points : 557
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile

PostMAX on Fri 10 Feb 2017, 00:02

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9534
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
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.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 557
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
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
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9534
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
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.
avatar
MAX

Title :
Gender : Unspecified
Posts : 83
Points : 557
Reputation : 5
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
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
Title :
Owner of 2 Forums
Gender : Male
Age : 44
Posts : 2447
Points : 4728
Reputation : 286
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
Awards :
View all awards
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.

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