111
aharon
Re: TRUE Multisites hack.... at last!
  • 2005/6/15 19:48

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Yes.. I have seen this one - but it seems f a r more complicated than the solution in this thread...

Hummm... Maybe I should get on with it and see how to change things with version 2.2...

Best wishes!

Aharon



112
aharon
Re: TRUE Multisites hack.... at last!
  • 2005/6/15 17:50

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Quote:

Mikhail Miguel wrote:
OBS:
IS JUST AN EXPERIMENTAL HACK,
IT IS NOT THE IDEAL WAY TO DO A "XOOPS MULTISITE".


database.php
function prefix($tablename='') {
if ( 
$tablename == '' ) {
return 
$this->prefix;
}
elseif ( 
$tablename == 'users' ) {
return 
'same_users';
}
elseif ( 
$tablename == 'groups_users_link' ) {
return 
'same_groups_users_link';
}
elseif ( 
$tablename == 'priv_msgs' ) {
return 
'same_priv_msgs';
}
elseif ( 
$tablename == 'session' ) {
return 
'same_session';
}
else {
return 
$this->prefix .'_'$tablename;
}
}




to use the same files with diferent sites/subdomains, just replace the mainfile.php for:
if (!(isset($subdominio))) {
$subdominio $HTTP_HOST;
$subdominio str_replace("www.","",$subdominio); 
$subdominio str_replace(".com","",$subdominio); 
$subdominio str_replace(".net","",$subdominio); 
$subdominio str_replace(".org","",$subdominio);


if (!(empty(
$subdominio))) {
include(
$subdominio."mainfile.php");
}
?>




This looks great and easy enough, but a meddling non-programmer like me, might have questions such as:

* Should
$subdominio str_replace("www.","",$subdominio);
be written as :
$subdominio str_replace("www.","",$THE_SUB_DOMAIN_NAME);

Otherwise, where do I tell XOOPS the name of the subdomain? (e.g. sub1.site.com, sub2.site.com, etc..)

* Where is database.php ?


Thanks!

Best wishes!

Aharon



113
aharon
Re: categories module (?)
  • 2005/6/13 17:17

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Probably a bit of a misunderstanding...
Thought the core development meant that it will be easier to implement categorisations. Hence, thinking of the hard work you mentioned to do with making a module that will do just that - produced an analogy..

All of which leads me to inquire whether or not paying a programmer to hack the module, might represent a bit of a waste as there are far more fun and contributory things s/he could do with their time..(?)

Aharon



114
aharon
Re: categories module (?)
  • 2005/6/13 16:45

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hummm... Do you think the introduction of categories in XOOPS core will be in a future far far away - or are we talking months..?
One doesn't want to pull a car with a horse if the engine works just fine..

Aharon



115
aharon
Re: Where do I find installation/usage info on the modules you can add?
  • 2005/6/13 16:21

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hummm... Are you asking about the mosule repository?



116
aharon
Re: categories module (?)
  • 2005/6/13 16:17

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hummm... Maybe it wasn't much used due to befriending difficulties..?

How much will it cost to hack the module so it:

a - Recognises installed modules and provides option to meta-categorise them?
b - Has a block displaying categories?
c - Has a block displaying related categories?

(Any such hack will be offered freely to the community..)


Thanks!

Aharon



117
aharon
Re: mymedia module = strange behaviour
  • 2005/6/13 15:56

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hi,

Thanks for the reply, wcrwcr.

Did my post come across accusingly? Was not intended at all, possibly the opposite..

Anyway, the php version is 4.X and the XOOPS version is 2.0.10...

I have a nagging feeling that the file I download might be the wrong one, because it tells me that it's "File Size 672.82 KB" - but the zipped file is 238 KB. (Even when I open it's 577 KB..)

Thanks!

Aharon



118
aharon
Re: categories module (?)
  • 2005/6/13 15:31

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Thanks Herko.

Have seen it before, but persuaded myself it was to do with metatags... I will have a look at it..

"Long ago" makes it sound like there wasn't much demand for such a module..?

Aharon



119
aharon
Re: mymedia module = strange behaviour
  • 2005/6/13 15:26

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Ahmmm... (Posted over the weekend, maybe a week day visitor has an idea..?)

Thanks!

Aharon



120
aharon
categories module (?)
  • 2005/6/13 15:11

  • aharon

  • Not too shy to talk

  • Posts: 172

  • Since: 2004/9/17


Hi,

Isn't it a bit ironic for a cms to have its parts marked out from one another by their functions rather than content?

Therefore, I wonder, whether or not there is an overall categories module somewhere, and I just didn't find it..(?)

A module that, for example, allow users to view political news information together with political t-shirts and blogs, etc... (Could also assist in having a "what's related" block..?)


Aharon




TopTop
« 1 ... 9 10 11 (12) 13 14 15 16 »



Login

Who's Online

479 user(s) are online (382 user(s) are browsing Support Forums)


Members: 0


Guests: 479


more...

Donat-O-Meter

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

Latest GitHub Commits