Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Scripting in Xenforo forums

Coder_new

New Coder
Hello,
I'm new to this forum, sorry if I'm posting in the wrong section.
I'm looking forward to develop a bot membership in a Xenforo based forum (not here I promise), that posts automatically some tweets and likes automatically an admin's posts. But I have no clue how to start, could you please help me?
Thank you.
 
Hello welcome to Code Forum!

I have moved this to the web development forum.

So basically you want you want to create posts every-time you make a tweet? Then also have it like all admin posts?
 
Hey and welcome, I have not done it my self but I would imagine you would use twitters API. so you could do a cron job for say every hour to check a Xenforo database to see if an admin has posted a post. If it finds that they have then use twitters API to post that post. As i said I have never done it but I would imagine that is how it is done :D
 
Hello welcome to Code Forum!

I have moved this to the web development forum.

So basically you want you want to create posts every-time you make a tweet? Then also have it like all admin posts?
Thank you !
Not my tweets but some specific tweets from a news page. I can handle the twitter API, however I have no clue to script in a Xenforo based forum. So the question is how to transform a membership in this forum into a bot that likes automatically based on a certain criteria (for instance admin posts) ?
 
Hey and welcome, I have not done it my self but I would imagine you would use twitters API. so you could do a cron job for say every hour to check a Xenforo database to see if an admin has posted a post. If it finds that they have then use twitters API to post that post. As i said I have never done it but I would imagine that is how it is done :D
Thank you!
Yes I thought to do it on a daily basis but I don't know which language to use to filter in the forum based on the admin name and then like his post automatically.
 
Don't tell Malcome but I am reading the documents on Xenforo ( i am promise boss) lol. but if it is how I think and its SQL based then don't think of it as a forum. Think of it as a table in a database. you could use PHP with some if functions so simply put pull User ID's Posts. If user ID Post doesn't contain alike from the current user then update a column with 1. If that makes any sense. I haven't got loads of time to dig around inside of the tables but if its doable in wordpress then im sure you can do it here too :D
 
Don't tell Malcome but I am reading the documents on Xenforo ( i am promise boss) lol. but if it is how I think and its SQL based then don't think of it as a forum. Think of it as a table in a database. you could use PHP with some if functions so simply put pull User ID's Posts. If user ID Post doesn't contain alike from the current user then update a column with 1. If that makes any sense. I haven't got loads of time to dig around inside of the tables but if its doable in wordpress then im sure you can do it here too :D

I think this is a good idea. I'm still investigating the documentation and probably share my progress if the administrators don't mind. My idea is not to create a spam bot but to try to attract th visitors to the forum with the tweets to share news :D
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom