vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Is it only me? (https://vborg.vbsupport.ru/showthread.php?t=75534)

gothicuser 02-01-2005 06:55 AM

Is it only me?
 
This is certainly not meant as criticism.... more an (positive, I hope) observation.
How many other people have noticed that a good proportion of mods/hacks simply don't take into account for when people use a MySql table prefix when installing VB?
It's Murphy's law that yesterday I downloaded no less than four mods, and I ended up having to code in the prefix on all four of them :surprised: and let me tell you that my coding skills are akin the that of a retarded earthworm :disappointed:

Brad 02-01-2005 07:24 AM

It is up to the author to add that to his or her own hack, we can't enforce everyone to code to certain standards.

I agree it should be in every hack, but sometimes people do forget, espesscally when they don't use a prefix on their own set-up's.

Paul M 02-01-2005 10:45 AM

If people don't use them (like we don't) then it is very easy to miss them from hacks - after all, most people write hacks for their own boards to start with.

I'm not actually sure what the purpose of prefixes is - why are they used at all ?

sabret00the 02-01-2005 10:57 AM

because people like to have their vb tables have something like "vb3_" in front

personally prefixing is long for me when i'm writing something as it means i can't just throw it into phpmyadmin for bebugging :(

steven s 02-01-2005 11:11 AM

Although it makes it very easy to remove hacks when there are prefixes, especially when there is no uninstall.

cinq 02-01-2005 02:00 PM

I think as a general rule, if you are coding hacks for release here, you should include the table prefix.
Whilst you may not use them personally, something out there who ends up using your hack, may :)

Prefixing could help to organize the tables slightly, especially for some who only have limited creation of databases on shared hosting.

deathemperor 02-01-2005 04:50 PM

Quote:

Originally Posted by Paul M
I'm not actually sure what the purpose of prefixes is - why are they used at all ?

one of them is when you install different things on 1 db like 4images and vb, you'd need to know what table is used for. it's obiviously useful.

Erwin 02-01-2005 08:48 PM

Quote:

Originally Posted by Brad.loo
It is up to the author to add that to his or her own hack, we can't enforce everyone to code to certain standards.

I agree it should be in every hack, but sometimes people do forget, espesscally when they don't use a prefix on their own set-up's.

It's not too hard to add it to the hack yourself. :) Like Brad said, people who release hacks do it because they want to share what they have on their forums - don't expect them to do ALL the work. ;)

Paul M 02-01-2005 09:41 PM

Quote:

Originally Posted by deathemperor
one of them is when you install different things on 1 db like 4images and vb, you'd need to know what table is used for. it's obiviously useful.

That seems a very strange thing to do. I would never share vB's database with anything else. :surprised:

Tekton 02-01-2005 10:42 PM

Quote:

Originally Posted by Paul M
That seems a very strange thing to do. I would never share vB's database with anything else. :surprised:

We have photopost on the same database... or do you mean things that are completely different?

Jolten 02-01-2005 10:47 PM

I share Photopost as well.. but since Photopost is an addition, I prefix those tables not vBulletins.

Tekton 02-01-2005 11:13 PM

Quote:

Originally Posted by Jolten
I share Photopost as well.. but since Photopost is an addition, I prefix those tables not vBulletins.

Same here, no prefixes on normal vB stuff~ :)

Paul M 02-02-2005 01:48 AM

Quote:

Originally Posted by Tekton
We have photopost on the same database... or do you mean things that are completely different?

I don't know photopost - is it vB hack or addon ?

I mean completely different applications - I don't mean addon's to vB like Articles, Arcade, or even Flashchat - these are part of your vB and should use the same db (and should use table names that don't clash with the standard vb ones). Prefixes are then obsolete as the DB has a unique name, and all the tables within it are unique. Nothing is gained.

I'm sure people use them simply because they can - but I can't think of any good reason you should need to use them, and so far no one else seems to have.

Tekton 02-02-2005 02:31 AM

From what I know... photopost doesn't have to be used with vB, though it includes a lot of stuff that will do the integrating etc.

We usually have one seperate db for each site on the server.

Zachery 02-02-2005 03:48 AM

Quote:

Originally Posted by gothicuser
This is certainly not meant as criticism.... more an (positive, I hope) observation.
How many other people have noticed that a good proportion of mods/hacks simply don't take into account for when people use a MySql table prefix when installing VB?
It's Murphy's law that yesterday I downloaded no less than four mods, and I ended up having to code in the prefix on all four of them :surprised: and let me tell you that my coding skills are akin the that of a retarded earthworm :disappointed:

I haven't run into a single hack that didn't use them, I don't go around installing random hacks though...

gothicuser 02-02-2005 08:15 AM

Quote:

Originally Posted by Zachery
I don't go around installing random hacks though...

Nor do I!
I do have a parallel forum (testbed) running on a phpDev setup, and experiment locally any mods/hacks that look juicy, but I only ever install mods onto my "live" forums that are either useful, or requested/required.

Zachery 02-03-2005 01:24 AM

What hacks are you talking about btw ?


All times are GMT. The time now is 09:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02233 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete