Welcome, Guest. Please Login or Register.
May 06, 2024, 07:34:58 PM
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  |  Completed mods  |  [DONE]Board Info Mod (part 1: db abstraction layer) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [DONE]Board Info Mod (part 1: db abstraction layer)  (Read 4579 times)
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
[DONE]Board Info Mod (part 1: db abstraction layer)
« on: July 13, 2002, 03:56:31 AM »
Reply with quote

I call this part 1 because I have SOOO much more planned and even a ton of optimization but it will take a while to convert all of the print statements ;)

this is a db abstraction layer

<mod info>
This mod creates a function in subs with and sends all queries to it.  This allows for control and logging of queries.  It also frees memory when it is done with the result.  There are a lot of modded features because more is coming as this is only part of the mod.

If you want to display this, place <yabb boardinfo> in your template. You will want to place it near the end as this will make your page extremely wide.  This is only enabled for admins because of this.

Some additional features:
If you have any mods, just change any "mysql_query" to "query"
It shows the time it took for a directive to load.
It counts the number of queries that the page has taken (yabb has an extremely high amount in it's current state)

OH.. MORE TO COME!

PS:  this will not work if you have any additional amount of queries.I have not tested the mod but I have used the script and it works perfectly.  If an error comes up that says the amount of spaces is wrong or something like that, just ignore it.
</mod info>


So.. should I add anything to it?  Anything you as the admin would like to know about your board?


Ready to see it?  :D
[edit]taken down because I can make it better and shouldn't have released a mod that isn't complete[/edit]
« Last Edit: July 23, 2002, 04:37:17 AM by groundup » 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
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[done]Board Info Mod (part 1: db abstraction layer)
« Reply #1 on: July 13, 2002, 04:12:52 AM »
Reply with quote

I am thinking of creating a find and replace script so that in the future you can change your mods with ease.  If you would like me to make it, just tell me.
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
KillaP
Full Member
***
Posts: 131


I'm fine..... No really I am.

WWW
Re:[done]Board Info Mod (part 1: db abstraction layer)
« Reply #2 on: July 13, 2002, 09:58:59 PM »
Reply with quote

Quote from: groundup on July 13, 2002, 04:12:52 AMI am thinking of creating a find and replace script so that in the future you can change your mods with ease.  If you would like me to make it, just tell me.

Sounds like a great idea, could be quite useful.  I think you should go for it.  Just my opinion though.  ;D
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[done]Board Info Mod (part 1: db abstraction layer)
« Reply #3 on: July 13, 2002, 10:11:16 PM »
Reply with quote

I thought I was near done with this and the print abstraction layer but it turns out to be a real pain in the ass to find a string in an array, then to make that string something else then to find another string down a couple of elements and add an element after that with yet another string :(
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
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #4 on: July 13, 2002, 10:20:34 PM »
Reply with quote

Welcome to PHP...  ;D
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #5 on: July 13, 2002, 11:13:48 PM »
Reply with quote

and it would be so easy in c++ which makes meh angry
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
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #6 on: July 13, 2002, 11:17:05 PM »
Reply with quote

Quote from: groundup on July 13, 2002, 11:13:48 PMand it would be so easy in c++ which makes meh angry
That was partly my line, I told you it was easy in c++.  It isn't that hard in PHP though.
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #7 on: July 14, 2002, 02:48:57 AM »
Reply with quote

I took a C++ class last year ::)
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
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #8 on: July 16, 2002, 11:35:09 PM »
Reply with quote

Around how many queries where there on the board index?
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #9 on: July 17, 2002, 01:46:22 AM »
Reply with quote

Quote from: Chris Cromer on July 16, 2002, 11:35:09 PMAround how many queries where there on the board index?
30 to 32
Logged

groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[DONE]Board Info Mod (part 1: db abstraction layer)
« Reply #10 on: July 23, 2002, 04:37:43 AM »
Reply with quote

I took the mod down, if you are interested in it, just contact me.
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
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [DONE]Board Info Mod (part 1: db abstraction layer) « 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.444 seconds with 19 queries.