Welcome Guest ! Please   Login or Register


Check out our latest Premium Themes, Majestic , Majestic - Dark and Musk Themes for MyBB 1.8 Click to Shop Now

Now open for Custom Theme requests : Click to Order Now





 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TeslaDark - Delaying Announcement Loading

thenation7 Offline
Customer
****

Posts: 7
Joined: Feb 2014
Likes Received : 0

Nationality: Undisclosed

Mood: None

Points: 187.18Points
Post: #1
TeslaDark - Delaying Announcement Loading

Hi,

I made a slight modification to your Announcements section to instead parse an RSS feed of a forum and paste the title/description from those threads into the <li>s for the announcement (making it easier to modify).

But, what I've noticed is that my script runs on document.ready and if there is nothing in the <li> on document.ready then the Announcements never load. I've gotten around that by hardcoding a blank li to start it out. But, is there any way I can delay the start of the Announcement scrolling to wait for my other function to finish?
02-06-2014 12:05 AM
Find
0
Quote




envira Online
Doctor Web
*******

Posts: 1,235
Joined: Aug 2012
Likes Received : 299

Facebook Google Plus Twitter
Nationality: India

Mood: Lazy

Points: 61,250.85Points
Post: #2
RE: TeslaDark - Delaying Announcement Loading

Hello,
you can delay the start of announcements by editing the fading time in the jquery file included in the js folder in images folder of the theme.
I need more information regarding what you say.
regards

[Image: lt79ucY.png]
02-06-2014 11:32 AM
Find
0
Quote




thenation7 Offline
Customer
****

Posts: 7
Joined: Feb 2014
Likes Received : 0

Nationality: Undisclosed

Mood: None

Points: 187.18Points
Post: #3
RE: TeslaDark - Delaying Announcement Loading

The issue is that the announcements widget itself needs to have values when it's called for it to work. Currently, since my script is running on document.ready; there are no values when the announcements javascript tries to run.

Can you point me to where the javascript for the announcements is? I will just set a timer to wait a few milliseconds first.
02-06-2014 12:39 PM
Find
0
Quote





Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Flat desire, announcement unaligned Enviroment 16 2,247 10-18-2015 04:17 PM
Last Post: Enviroment
  TeslaDark ( Header ) Salue 1 578 08-19-2014 06:29 PM
Last Post: envira
  TeslaDark Problems DeadFalls 2 682 07-23-2014 04:57 AM
Last Post: envira
  Should be my final questions on TeslaDark SuperNova 10 1,490 05-14-2014 06:01 PM
Last Post: SuperNova
  Customising TeslaDark SuperNova 2 633 04-26-2014 04:08 PM
Last Post: SuperNova
  TeslaDark - Locked thread image missing SuperNova 5 947 04-17-2014 05:52 PM
Last Post: SuperNova
  How to customize TeslaDark? StaticSilva 3 794 03-12-2014 02:42 PM
Last Post: envira

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

About Myskins

MySkins Studio is MyBB Themes Resource Website.

At MySkins Studio, We procreate MyBB Themes both custom MyBB Themes and premium Mybb Themes.We believe in quality and assure you the best MyBB themes at a very reasonable price , that suits your taste.

Feel free to drop in a request and get a quote.