91
reynaldo
Re: ShortURLs hack
  • 2004/2/25 21:49

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Martinjn:

As far as I know, everything you posted is correct. Maybe your module is generating some error and you can't see it because of the OutputBuffer function in my Hack.

I've found out that if you are using ShortUrls 0.2 and you activate PHP debug *or* a module spits an error during execution, you may get a blank page, this is caused by the Gzhandler directive at the first call to ob_start()

Just to be sure, edit Xoops_shorturls.php and comment out the first line, the one that says:
ob_start("ob_gzhandler");

Try it and let me know if you see an error.



92
reynaldo
Re: ShortURLs hack
  • 2004/2/24 4:54

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


wrtbooks:

I don't know if there is as I just started using XOOPS as of version 2.06

I don't know the way previous XOOPS versions work, but have you tried to use it with them?



93
reynaldo
Re: TRUE Multisites hack.... at last!
  • 2004/2/23 19:41

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


I would like to add....
you have to be careful what tables you share among sites.

For example, you can share users,topics,groups, groups_users_links, but you SHOULDN'T share group_permissions or each time you make changes to a group permissions in one site, it would extend to the others.

You may think this is cool, but think about it:

Site 1: Modules A, B and C installed.
Site 2: Modules A, D, and F installed.

Each time you set permissions in Site 1, it would set permissions to module A in Site 2, but it would leave unaccessible modules D and F.

If you still don't get it, just try it and you will understand it inmediately,



94
reynaldo
Re: TRUE Multisites hack.... at last!
  • 2004/2/23 19:31

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

basby wrote:
What happens if there is a new XOOPS version. How to update your Xoops? In fact you need to chane more than one xoops-es,

Any ieas on that?


Basby:
I'm using it with several domains, each one of them having their installation of Xoops. That's my setup, but as you can see from previous posts, you can modify the mainfile.php to run more than one XOOPS site from the same directory.

Anyway, if you have all your sites running from the same XOOPS installation, you would only have to upgrade one site and all of them would be automatically upgraded, *unless* a new version of XOOPS brings updates to the DB, in that case you would have to reinstall XOOPS to each one of the domains even if they all use the same dir.

That is the main reason why I wouldnt like to run lots of XOOPS sites from the same dir. I don't know, it would make me nervous knowing that if something goes wrong, all my sites would be down at once. And of course I would have to upgrade every site anyway after any major XOOPS release. Just my opinion and my 2 cents



95
reynaldo
Re: ShortURLs hack
  • 2004/2/20 5:37

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Koreus:

I'll take a look at it



96
reynaldo
Re: TRUE Multisites hack.... at last!
  • 2004/2/20 5:35

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


It's interesting we arrived at the same solution with different code

My code is just a little different from yours:

Database.php:
function prefix($tablename='')
{
    
$myCommonTables = array('avatar''avatar_user_link''online''priv_msgs''stories''topics''users');
    
$myPrefix '';
    
    if (
in_array($tablename,$myCommonTables))
    {
        
$myPrefix 'xoops';
    }
    else 
$myPrefix $this->prefix;


    if ( 
$tablename != '' 
    {
        return 
$myPrefix .'_'$tablename;
    } 
    else 
    {
        return 
$myPrefix;
    }
}


As I don't use the same files with different domains/subdomains I didn't have to include the mainfile.php modification.



97
reynaldo
Re: TRUE Multisites hack.... at last!
  • 2004/2/15 7:11

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:
im running 5 diferent sites with the same users, same files, sabe db, diferent subdomains,... is easy: just edit some lines in "mainfile.php" and "database.php"...


Mikhail:

Those are specifically the two files I had to edit :)

Would you mind posting which lines you have to add/modify in order to get it to work, or the url where you found the info?

I decided to do this hack myself as I couldn't find any resource explaining this.



98
reynaldo
TRUE Multisites hack.... at last!
  • 2004/2/15 6:47

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


I'm working on a TRUE multisites hack for Xoops.
Currently I'm testing it on my sites to make sure it is error free before releasing it.

What I mean for "TRUE" is that you are able to share only those tables you want to share, you no longer have the share all/none situation.

This hack is so simple yet so powerful you only have to edit two files to make it work.

Keep checking and post any ideas you may have, I'll post the download link as soon as I'm sure everything is working as expected.

Now some keywords to make sure everybody looking for multisites help get to this post, LOL:
[size=xx-small]multisites, multi sites, multisite, multi site, multi-sites, multi-site, multiple site, multiple sites.[/size]



99
reynaldo
New Version 0.2 :-)
  • 2004/2/15 4:04

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


I just added a new version: 0.2
This version adds support for gzip compression for browsers that support it.

In theory your pages should transfer faster from your server
to your browser.

It was already supported by Xoops, but got disabled with the original version of this hack.

Enjoy it and post your results!

The url for download is:
http://www.wtmmail.com/XoopsShortUrls/ShortURLs_0.2_for_Xoops.zip



100
reynaldo
Re: ShortURLs hack
  • 2004/2/15 3:25

  • reynaldo

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/2/13


Quote:

script_fu wrote:
Hi Reynaldo,
Very nice hack should be part of the core. Tell me i've been trying to pull of many sites at once. What do you use for a multisite cms?


The best thing I've found until now for a multisite cms is PostNuke. I tried to modify the core of Xoops, but after so many modifications, I stopped as I would have to do the same for each new release




TopTop
« 1 ... 7 8 9 (10) 11 »



Login

Who's Online

162 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits