#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 24, 2013 7:53:58 GMT -8
That's correct. Since there's no lines in your news fader yet, the array that holds the news items is never declared, so it shows up as undefined when the browser looks for it. If you're doing that in either the layout templates or the plugin's build page, you should be able to surround it with that, as well as a closing {/if} at the end and it should work. Hello BrianSeems that this does not work for me (members only) with what I have: {if $[current_user.is_member]}<span id="newest-user" style="display: none;"><font style="color: #c0c0c0; font-size: 17px; font-weight: bold;">Welcome To Our Newest Member , $[newest_user]!</font></span> <span id="last-thread" style="display: none;"><font style="color: #c0c0c0; font-size: 17px; font-weight: bold;">Last Updated Thread: $[last_updated_thread]</font></span> <script type="text/javascript"> fContent.push(document.getElementById('last-thread').innerHTML); fContent.push(document.getElementById('newest-user').innerHTML); </script> {/if}I'm sure I've done something wrong. Would you please advise on what may be the problem please? There's no reason that shouldn't work. Can you link me to the forum where it's not working?
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Jul 24, 2013 11:27:49 GMT -8
Hello again Brianlink providedEDIT: think I found the problem and that is within the plugin. Once I erased what I had (any news) > save changes, then I get a "undefined" showing up. If I do a double space and save changes, then it works just fine. But when I add any type of news or whatever and save changes, it does not work when logging off. Hope that makes sense...
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 24, 2013 11:56:49 GMT -8
Hello again Brianlink providedEDIT: think I found the problem and that is within the plugin. Once I erased what I had (any news) > save changes, then I get a "undefined" showing up. If I do a double space and save changes, then it works just fine. But when I add any type of news or whatever and save changes, it does not work when logging off. Hope that makes sense... The code is working as intended as far as I can see. The newest user and latest thread both do not display in the news fader to guests. As I explained in the first post on this page, since you didn't enter any news to be displayed, there's no array indexes declared, so they come up as undefined whenever the code tries to bring them up. If you're going to have a news fader, it's assumed it will contain at least one line of news.
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Jul 24, 2013 14:03:29 GMT -8
Understood Brian on the undefined but the part that is not working when I enter these in separate Headlines: Welcome to aRMY83 and Staff™ and this If you are experiencing loading problems, the host provider(s) are currently troubleshooting this issue, and will have this service available soon. We appreciate your patience, and apologize for any inconvenience. or any other Headlines, then save changes, then log off, are showing to guests. My understanding when adding: {if $[current_user.is_member]}<span id="newest-user" style="display: none;"><font style="color: #c0c0c0; font-size: 17px; font-weight: bold;">Welcome To Our Newest Member , $[newest_user]!</font></span> <span id="last-thread" style="display: none;"><font style="color: #c0c0c0; font-size: 17px; font-weight: bold;">Last Updated Thread: $[last_updated_thread]</font></span> <script type="text/javascript"> fContent.push(document.getElementById('last-thread').innerHTML); fContent.push(document.getElementById('newest-user').innerHTML); </script> {/if}that nothing would show to guests what was entered in the Headlines of this plugin.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 24, 2013 14:24:50 GMT -8
No, that code simply adds the last thread and newest user to the existing headlines. Hence why when you hide it, those lines don't show.
If you're looking to hide the news fader as a whole from guests (or any plugin for that matter), simply go to Plugins > Manage and click on the Edit button next to the news fader plugin. You'll have the option to set view permissions from here.
|
|
inherit
First Contributor
66253
0
Mar 18, 2024 11:09:20 GMT -8
aRMY83
2,925
December 2005
army83
|
Post by aRMY83 on Jul 24, 2013 14:34:42 GMT -8
If you're looking to hide the news fader as a whole from guests (or any plugin for that matter), simply go to Plugins > Manage and click on the Edit button next to the news fader plugin. You'll have the option to set view permissions from here. Thanks Brian and I should have known that from the beginning.
|
|
fragglebuster
New Member
Looking for other book forums to join.
Posts: 178
inherit
denisemariegreen@hotmail.com
197164
0
Dec 1, 2013 12:01:33 GMT -8
fragglebuster
Looking for other book forums to join.
178
July 2013
fragglebuster
|
Post by fragglebuster on Aug 1, 2013 15:31:59 GMT -8
Nice plugin. I have the same problem as some of the others when I hit the backspace button whilst trying to add some news, but I can work around that till a fix is found. Thanks for creating another great plugin
|
|
fragglebuster
New Member
Looking for other book forums to join.
Posts: 178
inherit
denisemariegreen@hotmail.com
197164
0
Dec 1, 2013 12:01:33 GMT -8
fragglebuster
Looking for other book forums to join.
178
July 2013
fragglebuster
|
Post by fragglebuster on Aug 2, 2013 10:19:42 GMT -8
Arrrrgggghhhh, mine brokeded. I put in: <span id="newest-user" style="display: none;">Welcome to our newest member, $[newest_user]!</span> <span id="last-thread" style="display: none;">Last Updated Thread: $[last_updated_thread]</span> <script type="text/javascript"> fContent.push(document.getElementById('last-thread').innerHTML); fContent.push(document.getElementById('newest-user').innerHTML); </script> Worked fine last night, tonight it's just the news headline
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 2, 2013 11:11:26 GMT -8
It looks like it's working for me on the forum in your signature, fragglebuster.
|
|
fragglebuster
New Member
Looking for other book forums to join.
Posts: 178
inherit
denisemariegreen@hotmail.com
197164
0
Dec 1, 2013 12:01:33 GMT -8
fragglebuster
Looking for other book forums to join.
178
July 2013
fragglebuster
|
Post by fragglebuster on Aug 2, 2013 11:32:35 GMT -8
Yeah it;s working again now. I took out the HTML and put it back in again.
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 25, 2024 13:03:29 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Aug 3, 2013 12:02:44 GMT -8
thecreativepen.proboards.comHi, Brian Using Firefox23 - I enter text to show on the News Fader - Then I notice I made a typo error And while clicking on the key BACKSPACE on my keyboard it removes ALL THE CONTENT ((in the new add message area)) rather than moving back a space to edit the text/typo Steve
|
|
fragglebuster
New Member
Looking for other book forums to join.
Posts: 178
inherit
denisemariegreen@hotmail.com
197164
0
Dec 1, 2013 12:01:33 GMT -8
fragglebuster
Looking for other book forums to join.
178
July 2013
fragglebuster
|
Post by fragglebuster on Aug 3, 2013 12:55:01 GMT -8
Yeah it;s working again now. I took out the HTML and put it back in again. Okay, back to being stuck on the one news item
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 4, 2013 8:43:37 GMT -8
|
|
fragglebuster
New Member
Looking for other book forums to join.
Posts: 178
inherit
denisemariegreen@hotmail.com
197164
0
Dec 1, 2013 12:01:33 GMT -8
fragglebuster
Looking for other book forums to join.
178
July 2013
fragglebuster
|
Post by fragglebuster on Aug 4, 2013 11:07:08 GMT -8
I use Chrome. Okay, I installed the plugin for the News Fader, that was fine. I then added the code you gave for latest thread update and newest member added to the Layout Template, under the Home section. This worked at first, the news/announcements would show and then which thread was the latest to be updated and who the newest member was. It then stopped and I had to go and delete the code and re-save it for it to show again. I've had to do it twice. Maybe it's my browser, or maybe it's just me doing something wrong? <span id="newest-user" style="display: none;">Welcome to our newest member, $[newest_user]!</span> <span id="last-thread" style="display: none;">Last Updated Thread: $[last_updated_thread]</span> <script type="text/javascript"> fContent.push(document.getElementById('last-thread').innerHTML); fContent.push(document.getElementById('newest-user').innerHTML); </script>
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Aug 4, 2013 11:18:29 GMT -8
It likely has to do with your browser. Every time I've taken a look at it there's not been a problem.
Javascript embedded into the page can't just abruptly break for no reason when no changes have been made to the content it affects.
|
|