1
djRom
Double Installations of a module.
  • 2006/12/6 21:08

  • djRom

  • Just popping in

  • Posts: 5

  • Since: 2006/12/6


Hey everyone, this is my first post and I wasn't sure where I should post this question in. Anyway, I recently found out about this great software about a week ago, and have been testing it extensively. I got to say, I am very impressed, keep up the great work! :)

Anyway, here is my question. I am trying to use PiCal, but in the way I need to use it. I need one of two things to happen.

1. The ability to setup permissions so that a certain group of users can only post within their group or within private to themselves. I don't want them to be able to post publicly because anonymous users will be able to see certain events on the calendar that are setup by the webmasters. The same goes with registered users, that aren't in the specific group that I mentioned before.

OR...

2. Ideally I would just setup seperate calendars for general registered users to just be able to post privately for themselves. While the specific user group can post privately to themself, or to everyone in their group.

I am up for any kind of a solution. Thank you in advance, if you have any questions, I will be checking back here very periodically looking for an answer.

2
preachur
Re: Double Installations of a module.
  • 2006/12/6 21:40

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


There is a way to do it. Basically you have to change the values throughout the whole module though. Especially the MySQL table names. An example:

mylinks

folder SQL

BEFORE you install it a second time you would change all queries:

LIKE THIS:

CREATE TABLE mylinks_links (
lid int(11) unsigned NOT NULL auto_increment,
cid int(5) unsigned NOT NULL default '0',
title varchar(100) NOT NULL default '',
url varchar(250) NOT NULL default '',
logourl varchar(60) NOT NULL default '',
submitter int(11) unsigned NOT NULL default '0',
status tinyint(2) NOT NULL default '0',
date int(10) NOT NULL default '0',
hits int(11) unsigned NOT NULL default '0',
rating double(6,4) NOT NULL default '0.0000',
votes int(11) unsigned NOT NULL default '0',
comments int(11) unsigned NOT NULL default '0',
PRIMARY KEY (lid),
KEY cid (cid),
KEY status (status),
KEY title (title(40))
) TYPE=MyISAM;

TO:

CREATE TABLE mylinks_links2 (
lid int(11) unsigned NOT NULL auto_increment,
cid int(5) unsigned NOT NULL default '0',
title varchar(100) NOT NULL default '',
url varchar(250) NOT NULL default '',
logourl varchar(60) NOT NULL default '',
submitter int(11) unsigned NOT NULL default '0',
status tinyint(2) NOT NULL default '0',
date int(10) NOT NULL default '0',
hits int(11) unsigned NOT NULL default '0',
rating double(6,4) NOT NULL default '0.0000',
votes int(11) unsigned NOT NULL default '0',
comments int(11) unsigned NOT NULL default '0',
PRIMARY KEY (lid),
KEY cid (cid),
KEY status (status),
KEY title (title(40))
) TYPE=MyISAM;

Then you would need to update all files like includes/functions.php to reflect these changes as well. THEN install the module. You just want to make sure all of the table names are different and no part of the module is still trying to use the tables from the original module or else you will have problems.
Magick can never be restrained, but when freely given is thrice regained!

3
djRom
Re: Double Installations of a module.
  • 2006/12/7 16:24

  • djRom

  • Just popping in

  • Posts: 5

  • Since: 2006/12/6


Well, I changed the SQL file. But unfortunately there isn't any "Fuctions.php" in the includes folder. I've tried changing all of the .php's to have 2's after the names, but that wouldn't allow me to install it either. :-/

I am kinda curious if anyone can make the edits to the piCal module and just send it to me? I would really appreciate it. rom1200@yahoo.com

Thank you in advance, and thank you for getting back to me so soon.

4
djRom
Re: Double Installations of a module.
  • 2006/12/11 16:25

  • djRom

  • Just popping in

  • Posts: 5

  • Since: 2006/12/6


I guess no one is willing to give a newbie a hand? -_-

I really can't figure out exactly what needs to be changed to make this work. And I am running out of time for when I need it by.

5
Bender
Re: Double Installations of a module.
  • 2006/12/11 20:13

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


There is more to be changed than only the sql file. Also remember that in case of update you will allways have to take care of it again.

Anyway ... from the FAQ section:

https://xoops.org/modules/smartfaq/faq.php?faqid=274

Especially checkk the comments below since there is a redone translation of the article.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

6
djRom
Re: Double Installations of a module.
  • 2006/12/11 23:42

  • djRom

  • Just popping in

  • Posts: 5

  • Since: 2006/12/6


Thank you very much! :)

7
djRom
Re: Double Installations of a module.
  • 2006/12/13 14:15

  • djRom

  • Just popping in

  • Posts: 5

  • Since: 2006/12/6


Well, after several attempts to get piCal to work fully under piCal02, I have failed. Not quite sure what I am doing wrong, but I do manage to get it installed, its just missing a lot of functionality, and it reads off of piCal's categories and such. :(

Any other suggestions would be greatly appreciated. :)

8
Quest
Re: Double Installations of a module.
  • 2006/12/13 14:24

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


You probably missed something in your changes. Review eash and every file very carefully, it can be time consuming depending on the number and size of files within the module.
Including the xoops_version.php file.
Also make sure you generate the new one in your templates if you are using a cloned template set.

Hths,
Quest

Login

Who's Online

225 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 225


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