The Lifestream Home The Lifestream Forums The Lifestream Shop Donate to The Lifestream
The Lifestream

ARCHIVED FORUMS

Hello. You are currently viewing the old vBulletin forums, which are now in readonly archive mode.
Please go to https://thelifestream.net/forums to go to the current forums.


Go Back   The Lifestream Forums > Site, Forums, Staff & Projects > Forum News & Information

Forum News & Information News and issues concerning the forums go here

Reply
 
Thread Tools
Old 03/03/2012   #1
Cthulhu
Default New forums frontpage optimizations available

I've made some tweaks and edits and hacks here and there in various plugins and templates. You can now choose to disable the 'Welcome Back' box on the forums home page and the 'Top 10 stats' from displaying in your options, at the bottom of that page.

Turning them off will severely decrease forums front page load times and server load. The 'Welcome Back' box will save 5 queries and, if you have 11,500+ posts like me, reduce the load time from 1 second to 0.1 second (it was 4 - 15 seconds on our old server). The 'Top 10 stats' will save at least 3, if not more queries as well as a number of requests to the server, as these stats are loaded asynchronously, i.e. they're retrieved separately so they don't show up as causing load on the front page itself (but in the background, it does).

I'm inclined to turn these options off by default, even; these plugins all suck in terms of performance and the amount of valid information they supply.
Cthulhu is offline   Reply With Quote
Thanked by:
Madame Mayor (03/04/2012)
Old 03/03/2012   #2
Cthulhu
Default

It seems that the setting is not set by default if you're an existing user; if you're missing the stats, go to your options page (yes this is a link click me) and at the very least press the save button once.
Cthulhu is offline   Reply With Quote
Old 03/03/2012   #3
Octo
Default

Heres a question, and I dunno if it would make any difference because I know fuck all about these things so apologies in advance: When I go to my user CP it displays the infractions I received that I have since expired/been reversed.....is there any reason to keep this stuff if its no longer active? I mean if it's designed to serve as a warning I totally understand, I just thought maybe some slowdown could be avoided if that stuff doesn't need to be remembered?
__________________
BUY THINGS FROM ME I HAVE AN REDBUBBLE!

(Mostly Manics related things but some other stuff and more things being added all the time! <3

https://www.redbubble.com/people/rom...dropdown&asc=u
Octo is offline   Reply With Quote
Old 03/03/2012   #4
Flintlock
Default

Cthulhu wrote: your options page (yes this is a link click me)
While you're fixing everything (and thank you for that), how about making the default link colour stand out from the default text colour a bit more?
Flintlock is offline   Reply With Quote
Old 03/03/2012   #5
Cthulhu
Default

Yes. Do suggest colors / styles, I suck at that kinda thing.
Cthulhu is offline   Reply With Quote
Old 03/03/2012   #6
Fangu
Default

Octo, not sure what you mean?
__________________
Quotes and shit
Pixel wrote: Someone say Pixel Porn?
(SPOILER)
Joe wrote: How does Tidus make Yuna feel better?

Elixer.
Shademp wrote: #Fangustyle
Ghost X wrote: As long as Fangu delivers the pizza, I will not particularly mind what is on it. Even if it is hot fiery death in plant form.


Progress!
2012
Member of the Year, Best Site Contributor (2nd), Best Newcomer, Hottest Female, Bounciest Boobies (3rd), Member You’d Most Like to Meet in Real Life, Most Improved (3rd), Best Drunk/Stoner, “Needs to Spend Less Time on TLS” Award (3rd), Best Ship (1st, Avengu) (3rd, Sprexanghululock), Most Likely to Survive the Zombie Apocalypse (3rd), Most Likely to Save the World, Most Suited to Be on Cosmos’ Side (2nd)

2013
TLS Lifetime Achievement Award (3rd), Best Site Contributor (3rd), Hottest Female, Biggest Non-FF Geek (3rd), Most in Need of Daylight (2nd), Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), Horniest Member (2nd), Best Drunk/Stoner (3rd), The TLS Literature Prize, Most Talented (Art, Writing, Music, Etc.) (3rd), Best Ass (3rd), Most Fervent TLSer, Most Likely to Go the Extra Mile (3rd)

2014
Member of the Year (2nd), Best Site Contributor (3rd), Hottest Female (2nd), Nicest Smile, Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), The Lifestream Literature Prize, Best Ass (2nd), Sexiest Voice, Best Ship/TLS OTP (3rd, Sprexanghululock), Most Fervent TLSer (3rd), Most Likely to Make the Best-Tasting Food (2nd), Most Likely to Go the Extra Mile (2nd)

2015
Member you'd most like to bone (2nd), Best Drunk/Stoner (3rd), Hottest female (3rd), Sexiest voice (3rd)

2016
Best Drunk (2nd), Most Likely To Suggest An Award They'll Never Win
Fangu is offline   Reply With Quote
Old 03/04/2012   #7
Octo
Default

Sorry, I totally forgot about this

When you click on 'User CP' the first page there has Subscribed Threads and Latest Infractions received (although you might not see this if you've been a good girl!)

I was just wondering if we could save some memory if the database didn't have to remember expired/inactive infractions? It could be that the difference would be negligable though.
Octo is offline   Reply With Quote
Old 03/04/2012   #8
Fangu
Default

They're not that big of a problem, as they don't do a lot of extraction from the database. The ones that is causing problems are the ones that for example counts through 13,000 rows in the database.

Also, minor tech detail - the database will always keep, or remember, as you say, the subscribed threads and latest infractions. What is removed if those were to be 'removed' is the code that fetches them from the database. It's this 'fetching code' that causes problems if they rely on a query to the database that needs a lot of action to give the wanted result.

Like the plugin Yop were talking about, which basically goes through every single post you've ever written, finds out which subforum it belongs to, counts the number of posts per subforum, and then produces the result 'this is the subforum you've posted the most in'. And that happens every time you reload the front page.

IMO most of the features in a forum like this will be thought through to some degree. But when third parties starts adding plugins and stuff, they can be built in a way that can cause stress if the forum is to be used by a lot of people. That's why it's a good idea to check out the code for the plugins before installing them - if you have the skill to understand how they work, of course.
__________________
Quotes and shit
Pixel wrote: Someone say Pixel Porn?
(SPOILER)
Joe wrote: How does Tidus make Yuna feel better?

Elixer.
Shademp wrote: #Fangustyle
Ghost X wrote: As long as Fangu delivers the pizza, I will not particularly mind what is on it. Even if it is hot fiery death in plant form.


Progress!
2012
Member of the Year, Best Site Contributor (2nd), Best Newcomer, Hottest Female, Bounciest Boobies (3rd), Member You’d Most Like to Meet in Real Life, Most Improved (3rd), Best Drunk/Stoner, “Needs to Spend Less Time on TLS” Award (3rd), Best Ship (1st, Avengu) (3rd, Sprexanghululock), Most Likely to Survive the Zombie Apocalypse (3rd), Most Likely to Save the World, Most Suited to Be on Cosmos’ Side (2nd)

2013
TLS Lifetime Achievement Award (3rd), Best Site Contributor (3rd), Hottest Female, Biggest Non-FF Geek (3rd), Most in Need of Daylight (2nd), Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), Horniest Member (2nd), Best Drunk/Stoner (3rd), The TLS Literature Prize, Most Talented (Art, Writing, Music, Etc.) (3rd), Best Ass (3rd), Most Fervent TLSer, Most Likely to Go the Extra Mile (3rd)

2014
Member of the Year (2nd), Best Site Contributor (3rd), Hottest Female (2nd), Nicest Smile, Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), The Lifestream Literature Prize, Best Ass (2nd), Sexiest Voice, Best Ship/TLS OTP (3rd, Sprexanghululock), Most Fervent TLSer (3rd), Most Likely to Make the Best-Tasting Food (2nd), Most Likely to Go the Extra Mile (2nd)

2015
Member you'd most like to bone (2nd), Best Drunk/Stoner (3rd), Hottest female (3rd), Sexiest voice (3rd)

2016
Best Drunk (2nd), Most Likely To Suggest An Award They'll Never Win
Fangu is offline   Reply With Quote
Thanked by:
Octo (03/04/2012)
Old 03/04/2012   #9
Octo
Default

Ahh right, I think I get it. In any case I've turned off the top 10 statistics and the welcome page thingy and stuff.
Octo is offline   Reply With Quote
Old 03/22/2012   #10
Flintlock
Default

Cthulhu wrote: Yes. Do suggest colors / styles, I suck at that kinda thing.
Sorry for the delay in this. I've been playing around with using custom CSS to recolour the links on TLS, and after a lot of tweaking, the colour I've come up with is #7FCFCF. Only on the default "The Lifestream" skin, though; it doesn't stand out so well on "The Lifestream Green", for example.

I just went for something that stands out a little more than the default link colour, and something that works with the general colour scheme. I am using it for all links on TLS now, not just the in-post ones, and I think it goes well with the banner (which is still ever so slightly off-centre, in case you'd forgotten).

Most good modern browsers are capable of changing a page's CSS on the fly (albeit temporarily), so give it a try and let me know what you think. I could also take a screenshot, I suppose, but I don't have time at this very moment.
Flintlock is offline   Reply With Quote
Old 03/27/2012   #11
Flintlock
Default

Now I have time for screenshots. Here they are, from a few different places:

Post


Menu bar


Cyber stats


I think the colour stands out from regular text much better, and goes with the general colour scheme of the default Lifestream skin. This is the code I added to my custom CSS in its entirety:

Code:
a { color: #7FCFCF; }
Simple. I think it should be the default link colour
Flintlock is offline   Reply With Quote
Thanked by 2:
Lex (03/27/2012), Vivi (03/27/2012)
Old 03/27/2012   #12
Fangu
Default

I approve of that cloor!
__________________
Quotes and shit
Pixel wrote: Someone say Pixel Porn?
(SPOILER)
Joe wrote: How does Tidus make Yuna feel better?

Elixer.
Shademp wrote: #Fangustyle
Ghost X wrote: As long as Fangu delivers the pizza, I will not particularly mind what is on it. Even if it is hot fiery death in plant form.


Progress!
2012
Member of the Year, Best Site Contributor (2nd), Best Newcomer, Hottest Female, Bounciest Boobies (3rd), Member You’d Most Like to Meet in Real Life, Most Improved (3rd), Best Drunk/Stoner, “Needs to Spend Less Time on TLS” Award (3rd), Best Ship (1st, Avengu) (3rd, Sprexanghululock), Most Likely to Survive the Zombie Apocalypse (3rd), Most Likely to Save the World, Most Suited to Be on Cosmos’ Side (2nd)

2013
TLS Lifetime Achievement Award (3rd), Best Site Contributor (3rd), Hottest Female, Biggest Non-FF Geek (3rd), Most in Need of Daylight (2nd), Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), Horniest Member (2nd), Best Drunk/Stoner (3rd), The TLS Literature Prize, Most Talented (Art, Writing, Music, Etc.) (3rd), Best Ass (3rd), Most Fervent TLSer, Most Likely to Go the Extra Mile (3rd)

2014
Member of the Year (2nd), Best Site Contributor (3rd), Hottest Female (2nd), Nicest Smile, Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), The Lifestream Literature Prize, Best Ass (2nd), Sexiest Voice, Best Ship/TLS OTP (3rd, Sprexanghululock), Most Fervent TLSer (3rd), Most Likely to Make the Best-Tasting Food (2nd), Most Likely to Go the Extra Mile (2nd)

2015
Member you'd most like to bone (2nd), Best Drunk/Stoner (3rd), Hottest female (3rd), Sexiest voice (3rd)

2016
Best Drunk (2nd), Most Likely To Suggest An Award They'll Never Win
Fangu is offline   Reply With Quote
Thanked by 2:
Flintlock (03/27/2012), Lex (03/27/2012)
Old 04/06/2012   #13
Fangu
Default

I disabled the stats by accident from the forum front page and now I can't seem to be able to activate it again. I've disabled and enabled but no. Halp?

Edit: Quick links > enable stats did the trick.
__________________
Quotes and shit
Pixel wrote: Someone say Pixel Porn?
(SPOILER)
Joe wrote: How does Tidus make Yuna feel better?

Elixer.
Shademp wrote: #Fangustyle
Ghost X wrote: As long as Fangu delivers the pizza, I will not particularly mind what is on it. Even if it is hot fiery death in plant form.


Progress!
2012
Member of the Year, Best Site Contributor (2nd), Best Newcomer, Hottest Female, Bounciest Boobies (3rd), Member You’d Most Like to Meet in Real Life, Most Improved (3rd), Best Drunk/Stoner, “Needs to Spend Less Time on TLS” Award (3rd), Best Ship (1st, Avengu) (3rd, Sprexanghululock), Most Likely to Survive the Zombie Apocalypse (3rd), Most Likely to Save the World, Most Suited to Be on Cosmos’ Side (2nd)

2013
TLS Lifetime Achievement Award (3rd), Best Site Contributor (3rd), Hottest Female, Biggest Non-FF Geek (3rd), Most in Need of Daylight (2nd), Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), Horniest Member (2nd), Best Drunk/Stoner (3rd), The TLS Literature Prize, Most Talented (Art, Writing, Music, Etc.) (3rd), Best Ass (3rd), Most Fervent TLSer, Most Likely to Go the Extra Mile (3rd)

2014
Member of the Year (2nd), Best Site Contributor (3rd), Hottest Female (2nd), Nicest Smile, Member You'd Most Like to Meet in Real Life, Member You'd Most Like to Bone (2nd), The Lifestream Literature Prize, Best Ass (2nd), Sexiest Voice, Best Ship/TLS OTP (3rd, Sprexanghululock), Most Fervent TLSer (3rd), Most Likely to Make the Best-Tasting Food (2nd), Most Likely to Go the Extra Mile (2nd)

2015
Member you'd most like to bone (2nd), Best Drunk/Stoner (3rd), Hottest female (3rd), Sexiest voice (3rd)

2016
Best Drunk (2nd), Most Likely To Suggest An Award They'll Never Win
Fangu is offline   Reply With Quote
Old 04/10/2012   #14
Cthulhu
Default

I used some fancy CSS 3 selector to work around vB's terrible html semantics. Seriously, if you ever make forum software, no matter how shit it is, at least give posts a class 'post' or something. Else you'll make me do this:

Code:
div[id^="post_message_"] a { color: #7FCFCF; }
edit: okay spoiler tags were also given the new color. Fixxed:

Code:
div[id^="post_message_"] a:not(.spoiler) { color: #7FCFCF; }
mebbe, for semantics' sake, there should be different colors / styles for normal, viewed, and hover.
Cthulhu is offline   Reply With Quote
Thanked by 3:
Fangu (04/10/2012), The Man (04/10/2012), The Twilight Mexican (04/10/2012)
Old 04/10/2012   #15
The Man
Default

not a big fan of the way this fucks with my link colour i'll fuck with the CSS to fix this later I guess

And yeah I'd go with different colours for hover as well. I might even use a fourth colour for active since so few forums bother with that.
__________________


You’re better off not dreaming of the things to come
Dreams are always ending far too soon









“When I was twelve, I milked my eel into a pot of turtle stew.
I flogged the one-eyed snake, I skinned my sausage, I made
the bald man cry into the turtle stew, which I do believe my
sister ate. At least, I hope she did.” -Tyrion Lannister
“The management is very bad. In fact, let’s not mince words: The management is terrible!
We’ve had a string of embezzlers, frauds, liars, and lunatics making a string of catastrophic
decisions. This is a plain fact. But who elected them? It was you! You who appointed these
people! You who gave them the power to make your decisions for you! While I’ll admit that
anyone can make a mistake once, to go on making the same lethal errors century after
century seems to me nothing short of deliberate. You have encouraged these malicious
incompetents, who have made your working life a shambles. You have accepted without
question their senseless orders. You have allowed them to fill your workspace with dangerous
and unproven machines. You could have stopped them. All you had to say was, ‘No.’” -V
“If they can get you asking the wrong questions, they don’t have to worry about answers.” -Thomas Pynchon
“All for ourselves, and nothing for other people, seems, in every age of the world, to have been the vile maxim of the masters of mankind.” -Adam Smith
“Why throw money at problems? That's what money is for. Should the nation's wealth be redistributed? It has been and continues to be redistributed to a few people in a manner strikingly unhelpful.” -Kurt Vonnegut
“Socialism never took root in America because the poor see themselves not as an exploited proletariat but as temporarily embarrassed millionaires.” -John Steinbeck
“If you took the most ardent revolutionary, vested him in absolute power, within a year he would be worse than the Tsar himself.” -Mikhail Bakunin
“In all history, there is no instance of a country having benefited from prolonged warfare.” -Sun Tzu
“...pero Capitán, obedecer por obedecer, así, sin pensarlo... sólo lo hacen gentes como usted, Capitán.” -Dr Ferreiro, Pan’s Labyrinth
“If the doors of perception were cleansed, everything would appear to man as it is: infinite. For man has closed himself up, till he sees all things thro' narrow chinks of his cavern.” -William Blake
“Yeah, you really got my act down good, guys. That'll be great. ‘You know, when I’m done ranting about elite power that rules the planet under a totalitarian government that uses the media in order to keep people stupid, my throat gets parched! That’s why I drink Orange Drink.’” -Bill Hicks








last.fm (note: album artwork may sometimes be nsfw) · Fool's Gold · FFOF · FF
the lifestream last.fm group · my old music · my new music · pm for myspace/facebook
The Man is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:45 PM.



Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.