Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo Retro Fansite Pull data in real time.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="React" data-source="post: 482993" data-attributes="member: 117627"><p>Hi guys, I hope that I am in the appropriate section, going to sound like a noob as I haven't got very good experience when it comes to backend.</p><p></p><p>I am working on a fansite for my friends retro HabHub, on the /homepage I would like it to function automatically so that it would pull and update the information in real-time.</p><p></p><p>[ATTACH=full]16206[/ATTACH]</p><p></p><p>Could the "Event Schedule" area work with Discord, like pull the required information from the events channel in the Discord Server?</p><p></p><p> </p><p></p><p>[ATTACH=full]16207[/ATTACH]</p><p>Also, for the "HabHub News" area I have a JavaScript script that you show a different "article" automatically, every 60 seconds, however nothing happens.</p><p></p><p>[ICODE]</p><p></p><p><script></p><p>export default {</p><p> data() {</p><p> return {</p><p> articles: [</p><p> "https://habhub.net/community/articles/welcome-to-habhub",</p><p> "https://habhub.net/community/articles/rare-release",</p><p> "https://habhub.net/community/articles/secrets-of-the-public-rooms",</p><p> "https://habhub.net/community/articles/twitterx-giveaway",</p><p> "https://habhub.net/community/articles/rare-release-2",</p><p> "https://habhub.net/community/articles/the-habhub-way",</p><p> "https://habhub.net/community/articles/the-future-of-habhub",</p><p> "https://habhub.net/community/articles/supreme-structures",</p><p> "https://habhub.net/community/articles/crazy-cats"</p><p> ],</p><p> currentArticleIndex: 0</p><p> };</p><p> },</p><p> computed: {</p><p> currentArticle() {</p><p> return this.articles[this.currentArticleIndex];</p><p> }</p><p> },</p><p> methods: {</p><p> updateArticle() {</p><p> this.currentArticleIndex = (this.currentArticleIndex + 1) % this.articles.length;</p><p> }</p><p> },</p><p> mounted() {</p><p> this.updateArticle();</p><p> setInterval(this.updateArticle, 60000); // Change article every 60 seconds</p><p> }</p><p>};</p><p></script></p><p>[/ICODE]</p><p></p><p>This is the code, however as I said, I am inexperienced & I don't want to be spoonfed anything, that won't help me. Suggestions/Ideas would be greatly appreciated, helping me to complete what I would like to do.</p><p>Don't comment if you're going to bring hate, I understand I have possibly approached this completely the wrong way, I am trying to learn.</p><p></p><p>Thanks in advance!</p></blockquote><p></p>
[QUOTE="React, post: 482993, member: 117627"] Hi guys, I hope that I am in the appropriate section, going to sound like a noob as I haven't got very good experience when it comes to backend. I am working on a fansite for my friends retro HabHub, on the /homepage I would like it to function automatically so that it would pull and update the information in real-time. [ATTACH type="full" alt="1723660087079.png"]16206[/ATTACH] Could the "Event Schedule" area work with Discord, like pull the required information from the events channel in the Discord Server? [ATTACH type="full" width="434px" alt="1723660187474.png"]16207[/ATTACH] Also, for the "HabHub News" area I have a JavaScript script that you show a different "article" automatically, every 60 seconds, however nothing happens. [ICODE] <script> export default { data() { return { articles: [ "https://habhub.net/community/articles/welcome-to-habhub", "https://habhub.net/community/articles/rare-release", "https://habhub.net/community/articles/secrets-of-the-public-rooms", "https://habhub.net/community/articles/twitterx-giveaway", "https://habhub.net/community/articles/rare-release-2", "https://habhub.net/community/articles/the-habhub-way", "https://habhub.net/community/articles/the-future-of-habhub", "https://habhub.net/community/articles/supreme-structures", "https://habhub.net/community/articles/crazy-cats" ], currentArticleIndex: 0 }; }, computed: { currentArticle() { return this.articles[this.currentArticleIndex]; } }, methods: { updateArticle() { this.currentArticleIndex = (this.currentArticleIndex + 1) % this.articles.length; } }, mounted() { this.updateArticle(); setInterval(this.updateArticle, 60000); // Change article every 60 seconds } }; </script> [/ICODE] This is the code, however as I said, I am inexperienced & I don't want to be spoonfed anything, that won't help me. Suggestions/Ideas would be greatly appreciated, helping me to complete what I would like to do. Don't comment if you're going to bring hate, I understand I have possibly approached this completely the wrong way, I am trying to learn. Thanks in advance! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Habbo Retro Fansite Pull data in real time.
Top