Welcome, Guest. Please Login or Register.
May 13, 2025, 10:10:47 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  reduce $cgi query « previous next »
Pages: [1] Reply Ignore Print
Author Topic: reduce $cgi query  (Read 648 times)
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

reduce $cgi query
« on: April 23, 2003, 05:52:50 PM »
Reply with quote

this is just an idea:
open Load.php, search forfunction LoadBoard()
{
   global $moderators, $threadid, $yyThreadLine, $txt, $num, $thread, $board, $currentboard;
   global $caller, $modSettings, $realNames, $db_prefix, $isAnnouncement;
add after   global $action;search for   if ($board != '')replace with   if ($board != '' && ($action != '' || $action == 'display'))this will make the code works only in BoardIndex, MessageIndex and Display

haven't been tested
this change should reduce the query load for moderator names load, don't know if i need to add anything else that might use the moderator list to the list of $actions

comments?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:reduce $cgi query
« Reply #1 on: April 23, 2003, 06:53:27 PM »
Reply with quote

* cough *

Secret Project
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:reduce $cgi query
« Reply #2 on: April 23, 2003, 09:03:03 PM »
Reply with quote

Quote from: David on April 23, 2003, 06:53:27 PM
* cough *

Secret Project

I did it a better way.  I just removed $cgi from all the URLs and used $scripturl instead.

The board isn't needed.... the extra "board=" is extra 100% wasted bytes.... why should it be there?

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:reduce $cgi query
« Reply #3 on: April 23, 2003, 11:31:27 PM »
Reply with quote

well, while waiting for your secret project, i might make this into a mod
anyone has suggestions for other small optimization fixes?
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:reduce $cgi query
« Reply #4 on: April 23, 2003, 11:45:55 PM »
Reply with quote

Quote from: Spaceman-Spiff on April 23, 2003, 11:31:27 PM
well, while waiting for your secret project, i might make this into a mod
anyone has suggestions for other small optimization fixes?

Did you look at my Shorten URL mod?

I'm gonna make a few more mods... have to think of some... hmmm...

-[Unknown]
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:reduce $cgi query
« Reply #5 on: April 24, 2003, 02:42:35 AM »
Reply with quote

Quote from: [Unknown] on April 23, 2003, 09:03:03 PM
The board isn't needed.... the extra "board=" is extra 100% wasted bytes.... why should it be there?

-[Unknown]
You removed that? Must not have been uploaded. threadid is all that is needed when viewing/replying to a thread. Would be nice to remove that. Oh and Spacey - the way it is done in unknown's project is MUCH MUCH better. Take a look at it.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:reduce $cgi query
« Reply #6 on: April 24, 2003, 02:47:06 AM »
Reply with quote

Quote from: groundup on April 24, 2003, 02:42:35 AM
Quote from: [Unknown] on April 23, 2003, 09:03:03 PM
The board isn't needed.... the extra "board=" is extra 100% wasted bytes.... why should it be there?

-[Unknown]
You removed that? Must not have been uploaded. threadid is all that is needed when viewing/replying to a thread. Would be nice to remove that. Oh and Spacey - the way it is done in unknown's project is MUCH MUCH better. Take a look at it.

No, I meant that I left it in some places... I guess I could do that though.... hmmm... wouldn't be too hard.

-[Unknown]
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:reduce $cgi query
« Reply #7 on: April 24, 2003, 05:30:56 AM »
Reply with quote

Alright done.  $cgi no longer exists.

It's sad how often (now that it detects the board off the threadid...) it isn't needed.

-[Unknown]
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:reduce $cgi query
« Reply #8 on: April 24, 2003, 08:45:25 AM »
Reply with quote

Quote from: groundup on April 24, 2003, 02:42:35 AM
Oh and Spacey - the way it is done in unknown's project is MUCH MUCH better. Take a look at it.
well, i can't make a mod that changes all $cgi to $scripturl, that would be sorta pointless :P
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  reduce $cgi query « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.228 seconds with 20 queries.