vForums Support Banner


Visit Base Classics - Gaming Chairs

 

Welcome Guest! Please Login or Register
vForums Support :: System Improvements :: Suggestions :: Spoiler System - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Spoiler System (3rd May 09 at 5:53am UTC)
yes I know, its already a code, but it should be a core feature. One bad thing with features that are used a lot becuase they are meant to be used as a public display to all members is they cause mass amounts of lag, because they are called after the page already has loaded and not as it was loading. In the end, in my opinion, its the same setup as why the template system was implemented, because the lag of trying to read the external codes made a forum load really slow, and isn't the real goal of vforums to make a fully function forum which is unique, functional, and user friendly, and whats more user friendly then adding features that should of been added in the first place {Tongue Out} so that the forum loads after for all the other users. {Tongue Out}

now if i am wrong or what i am requestion doesn't make sence then please feel free to let me know,
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Spoiler System (3rd May 09 at 11:16pm UTC)
The loading time would make no difference regardless of whether it was integrated or placed in the forum's headers/footers. The reason being that Spoiler codes are solely JS codes, meaning they would load at pretty much the same time regardless of where in the page's source they are (in actuality, it may actually increase loading times, since it would likely be put into the functions.js file, which would then take longer to load because there'd be more content in it).

rroll.to— Shorten a link, rickroll your friends.
dog199200
Guest
Re: Spoiler System (4th May 09 at 12:17am UTC)
thats where i'd have to disagree, i find that non-core functions cause longer load time and even lag within the system, because its still trying to call from another source and not from its main function. {Tongue Out} like an info center for example, if you use a code for it in the header and footers, then it will add lag and a lot of loading time, where the template system made it so that there isn't as much lag or load time, despite it being essentially the same thing, and that goes for the board mods and mini-profile template as well. To back this up i'm sure you can ask anyone with a slow pc and they will confirm what i am saying. But yes i know what i am suggesting may seem a little out of place, but spoiler tags are becoming common in all forum systems these days and everyone is using them because there is so many used for them, such as hiding big images so they don't stretch the forum in loading and stuff, adding to that as said in the other topic, I say core functions will always load faster then javascript hense, adding in a js code for it will add further lag and longer load times. Adding to that if made part of the core system someone can design it better, such as adding head and base images of their own, set the width of the spoiler and stuff like that without having any coding knowledge unlike the one in the code database, where if you wnat to customize to so it matches the forum better you have to rework the table system and adjust the CSS which not everyone knows how to do, adding to that if part of the system, it can then be used as UBBC within the signature so people can put their sigs in a spoiler to prevent stretching.

Again it can be usaed in so many ways and different places and have better load time if it was a core function, and not a code {Tongue Out}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Spoiler System (4th May 09 at 12:29am UTC)
Posted By dog199200 on 4th May 09 at 12:17am
 
thats where i'd have to disagree, i find that non-core functions cause longer load time and even lag within the system, because its still trying to call from another source and not from its main function. {Tongue Out} like an info center for example, if you use a code for it in the header and footers, then it will add lag and a lot of loading time, where the template system made it so that there isn't as much lag or load time, despite it being essentially the same thing, and that goes for the board mods and mini-profile template as well. To back this up i'm sure you can ask anyone with a slow pc and they will confirm what i am saying. But yes i know what i am suggesting may seem a little out of place, but spoiler tags are becoming common in all forum systems these days and everyone is using them because there is so many used for them, such as hiding big images so they don't stretch the forum in loading and stuff, adding to that as said in the other topic, I say core functions will always load faster then javascript hense, adding in a js code for it will add further lag and longer load times. Adding to that if made part of the core system someone can design it better, such as adding head and base images of their own, set the width of the spoiler and stuff like that without having any coding knowledge unlike the one in the code database, where if you wnat to customize to so it matches the forum better you have to rework the table system and adjust the CSS which not everyone knows how to do, adding to that if part of the system, it can then be used as UBBC within the signature so people can put their sigs in a spoiler to prevent stretching.

Again it can be usaed in so many ways and different places and have better load time if it was a core function, and not a code {Tongue Out}

I think you're misunderstanding what I meant.

Spoiler tags use JS to work no matter what. Whether it was built-in or added manually, it would make no difference since it would use the exact same code. Sicne the majority of the built-in JS functions are in a JS file, adding more to this file would increase the loading time more than if it were simply placed in the board's global footer. {Wink}

rroll.to— Shorten a link, rickroll your friends.
dog199200
Guest
Re: Spoiler System (4th May 09 at 12:32am UTC)
so your saying the core system of vf is made out of JS when it really should be made of PHP{Confused} sorry thats all i got out of it, either way the feature would better integrate into the system if it was made part of the forum service itself.

I've been working on my own version of it, and was going to make it admin editable, but I have no idea how to setup an admin panel so that if someone inputs data, it saves it within the header/footers, so they wouldn't have to edit the code itself...
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Re: Spoiler System (4th May 09 at 2:02am UTC)
I don't know what you guys are saying. {Tongue Out} But my 512MB RAM desktop never lagged or even slowed down at all when there are allot of codes, or .js coding.

The only time the desktop is slow is when I have allot of other programs open, that's when web pages lag.


{Tongue Out}
dog199200
Guest
Re: Spoiler System (4th May 09 at 2:26am UTC)
not talked lag in general, we are mainly talking load time, meaning the amount of time it takes for everything to boot up, and dude your forums don't use a lot of coding other then for design, when you adding in features that are mass use,d then it tends to increase the load time, mainly in threads.
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Re: Spoiler System (4th May 09 at 2:29am UTC)
Oh, well when I used to run a PB forum, you should know how many codes there were just to make your forum look good, that still never made it slow. {Tongue Out}

PB lags now, the forum I am staff on takes about half a minute to a full minute for the whole forum to load and resize.
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Spoiler System (4th May 09 at 3:06am UTC)
Posted By dog199200 on 4th May 09 at 12:32am
 
so your saying the core system of vf is made out of JS when it really should be made of PHP{Confused} sorry thats all i got out of it, either way the feature would better integrate into the system if it was made part of the forum service itself.

I've been working on my own version of it, and was going to make it admin editable, but I have no idea how to setup an admin panel so that if someone inputs data, it saves it within the header/footers, so they wouldn't have to edit the code itself...



The core of VF is PHP, yes. However, to make a spoiler system, you would need to use a JS code. It would look something like this:

Code:
 
  1. <script>
  2. <!--
  3. function spoiler(spoilThis)
  4. {
  5.     if(spoilThis.style.visiblity = 'none')
  6.     {
  7.         spoilThis.style.visibility = '';
  8.     }
  9.     else
  10.     {
  11.         spoilThis.style.visibility = 'none';
  12.     }
  13. }
  14. //-->
  15. <script>
 




There is no possible PHP equivalent to this, because PHP runs before the browser even gets hold of the information. PHP cannot alter anything once the page is loaded, which is why this suggestion is only possible through JS, which is why there would be no point in making it integrated.

rroll.to— Shorten a link, rickroll your friends.
 Printable View

All times are GMT+0 :: The current time is 11:31am
Page generated in 0.2123 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums