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.

announcement bot

3 posters

Go down

Solved announcement bot

Post by darkgoku October 20th 2014, 11:04 am

how would i make a announcement bot for very important stuff


Last edited by darkgoku on October 20th 2014, 11:31 am; edited 1 time in total
darkgoku
darkgoku
Forumember

Posts : 340
Reputation : 3
Language : English

Back to top Go down

Solved Re: announcement bot

Post by Mati October 20th 2014, 11:06 am

What you mean can you explain a bit more please.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: announcement bot

Post by darkgoku October 20th 2014, 11:12 am

on this post i used a code i found but it will not change the name of the bot http://academyofeca.forumotion.com/t1-test123334444444
darkgoku
darkgoku
Forumember

Posts : 340
Reputation : 3
Language : English

Back to top Go down

Solved Re: announcement bot

Post by Mati October 20th 2014, 11:15 am

Can you post the code here so we can change the name.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: announcement bot

Post by darkgoku October 20th 2014, 11:18 am

[list=linenums]
[*]$(function() {
[*]var p = {
[*]post: $('.post')[0],
[*]date: $('.posthead').first().find('h2').html(),
[*]announce: 'Ad code here!',//Enter the code beside the advertising
[*]member: 'Bot',//Define Name of a Bot
[*]imagem: 'https://i.imgur.com/tdaNexK.jpg',//Picture of the Bot
[*]message: '1000',//Total Number of Post
[*]register: 'Always',//Date Registred
[*]location: 'Anúncio'//Location
[*]};
[*]$(p.post).after('
[*]<div id="ann" class="post">
[*]<div class="postmain">
[*]<div class="posthead">
[*]  <h2>'+p.date+'</h2>
[*]</div>
[*]    <div class="postbody">
[*]          <div class="user">
[*]                <div class="user-ident">
[*]                  <h4 class="username">
[*]                    <strong>'+p.membro+'</strong>
[*]                  </h4>
[*]                    <div class="user-basic-info">
[*]                      <img src="'+p.imagem+'" alt="">
[*]                        <br>Advertisement<br>
[*]                    </div>
[*]                </div>
[*]<div class="user-info">
[*]<span class="label"><span>Messages</span>: </span>'+p.message+'<br>
[*]<span class="label"><span>Date Registered</span>: </span>'+p.register+'<br>
[*]<span class="label"><span>Location</span>: </span>'+p.location+'<br>
[*]</div>
[*]        </div>
[*] <div class="post-entry">
[*]  <div class="entry-content">
[*]      '+p.announce+'
[*]  </div>
[*]  </div>
[*]</div>
[*]<div class="postfoot"></div>
[*]</div>');
[*]$('#ann').find('h2').find('strong').html('#ADS');
[*]});
[/list]
darkgoku
darkgoku
Forumember

Posts : 340
Reputation : 3
Language : English

Back to top Go down

Solved Re: announcement bot

Post by Mati October 20th 2014, 11:24 am

Please copy the current code or link me to the thread you got the code from also use code tag next time.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: announcement bot

Post by darkgoku October 20th 2014, 11:27 am

i fixed it thanks for the help tho
darkgoku
darkgoku
Forumember

Posts : 340
Reputation : 3
Language : English

Back to top Go down

Solved Re: announcement bot

Post by Mati October 20th 2014, 11:28 am

I'm glad you fixed it Smile
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Solved Re: announcement bot

Post by Ange Tuteur October 20th 2014, 2:52 pm

As no solution was given, I'll garbage this topic.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top


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