Webmastersite.net
Register Log In

adding new tables
what whoud be the best way?

Comments on adding new tables

gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Dec 30, 2004 - 6:10 AM:

I was adding new fields in the links table and it was pretty need to have their variables available to you right there without any manual changes. But than realized that I need a brand new table other way I won't be able to do what I actually need. I know that just by adding new table I won't be able to pull anything out of it - need to write some code first, but which file(s) should be used? Basically I just neet to pull out data from the table as is - nothing fancy, but I want to be able to use variables in the templates. Would be need to have it like an additional module that could be turned on/off in switches and you good to go. What's the easiest way on adding tables and working within WSNLinks theme?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 30, 2004 - 8:47 AM:

A new table would be an entirely new type of data and purpose not related to WSN Links and therefore you basically have to rewrite the script to match your purpose.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Feb 22, 2005 - 9:43 AM:

I desided to bump this topic up again since I think it might be related to the purpose of the directory at least from what I thik..

Anyways, here is what I was thinking - I would like to add fields like company name, address, contact information and everything that goes with it - basically extend merber's listing to make it more search effective. I though by adding more fields to the links table it will slow down things,and adding another table would make it easier. I don't khow this fur sure, just a guess. So, this is related to the directory purpose I think... what do you say?

Thank you.
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Feb 22, 2005 - 3:02 PM:

I don't think adding a bunch of custom fields will slow it down. I have a bunch of WSN Links sites, none of which is used for links. Each has a LOT of custom fields.

Works great. WSN Links is the best Article Management, News CMS, BLOG, Personals, and classifieds script there is. There are so many features that it works for just about anything you can think of, and everything is customizable to fit.

Add away without touching the PHP, you'll be fine.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 22, 2005 - 4:19 PM:

Tables are much slower to query than fields. Guides to mysql optimization commonly mention that it's good practice to try to merge tables where possible.

I tried a cross-table query not long ago and found it hopelessly slow on a large database, so that it basically killed the site... I had to add the field I needed back into the original table so that the selection would only come out of one talbe.
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Feb 23, 2005 - 9:52 AM:

Okay. Thanks for making it clear to me smiling face I love WSNLinks just trying to find ways to work it for all my needs, so far its the Greatest!

I still want to find out how to get that mod_gzip working properly to speed it up.

Thanks a lot!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 24, 2005 - 8:55 PM:

If your apache is running mod_gzip, then you don't need to do anything -- leave the WSN gzip setting off, as it would simply interfere with apache's version
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
Posted Mar 09, 2005 - 11:31 AM:

Paul wrote:
If your apache is running mod_gzip, then you don't need to do anything -- leave the WSN gzip setting off, as it would simply interfere with apache's version


That's the problem - my apache is not running mod_gzip.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 09, 2005 - 9:47 PM:

Well, did you check if you have the settings mentioned in the manual entry as causing it to fail?
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
#10 - Quote - Permalink
Posted Mar 10, 2005 - 6:26 AM:

well, I'm getting a little confused, but here is what I have in my php.ini:

-------------------------------------
Directive Local Value Master Value
output_buffering no value no value
output_handler ob_gzhandler no value
-------------------------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
-------------------------------------
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
-------------------------------------

My host told me to add the following line to the .htaccess CODE:
php_value output_handler ob_gzhandler

it actually helped - I didn't have the blank page anymore, but some options just stoped working (as I mentioned before).
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
#11 - Quote - Permalink
Posted Mar 10, 2005 - 6:59 AM:

hmm.. I just checked my site with
http://www.desilva.biz/gzip-test.php and it says it is compressed...
gemini
Forum Regular

Usergroup: Customer
Joined: Oct 30, 2003

Total Topics: 54
Total Comments: 197
gemini
#12 - Quote - Permalink
Posted Mar 10, 2005 - 7:07 AM:

Okay, I took that line out from .htaccess and the tool said that my pages are not gziped - I put it back it and it said I save 79%.

I believe that resolves the problem. I need less havier graphics.

Thank you Paul!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.