Help to add a second Event4U
-> Events 4U

#1: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 09:16
    ----
Hi,

I've have added Event4U to my (test)site and it works just fine Smile It's just what I wanted.

But I would like to add a second Event4U-calender, so I have to different calenders (Dualigual site - so one calender for Danish and one for English language).

I tried to change all hits of "event4u" to "event4u2" - inside the files and the file-/directorynames. It didn't work - the site becomes unavailable.

Who can I do this?

Thanks,

Taxviper

#2: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 09:19
    ----
By the way - I have of cause also added the need two tables to my DB, also called "event4u2"-something.

- Taxviper

#3: Re: Help to add a second Event4U Author: Ertan, Location: Germany PostPosted: 18.08.2004 17:19
    ----
hhmmm

so i would do :

1. search (case sensitive) for "_events4u" replace it with "_events4u2" / here the 2 tables name

2. search (case sensitive) for "Events4U" replace it with "Events4U2" / thats the module_name=>foldername

3. search (case sensitive) for "$events4u" replace it with "$events4u2" /


good luck

ertan

if error post it here Wink

#4: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 20:50
    ----
I'm sad to say - it still dosn't work.

The site works fine until I (administrator) logs in. Then you only gets the header.

I also tried to make the tables manually - with the sql-file. No luck.

When i again delete all the files added to the admin-folders, the site works again.

Can the error be something about CPGnuke tries to install the module?

Thanks,

Taxviper

#5: Re: Help to add a second Event4U Author: Ertan, Location: Germany PostPosted: 18.08.2004 21:03
    ----
you have to rename the files

admin/modules/events4u.php
=>events4u2.php

case.events4u.php =>case.events4u2.php

and so on ....

then

search (case sensitive) for things with events4u.php in it and replace it with "events4u2.php"

thats the concept Wink

#6: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 21:31
    ----
I did all that Crying or Very sad

If I could I would attach the files here - but it seams that I can't attach file to the posts.

I searched and replaced the three like you wrote.
I renamed all the files and directories
I searched and replaced "events4u.php" with "events4u2.php" also

Still no luck

Taxviper

#7: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 21:51
    ----
I found if I delete the file /admin/links/adlnk_events4u2.php

the site will run - but of cause with out the second calender.

So I guess the "error" is in this file.

I have posted the code of this file below:

PHP:
<?php
/************************************************************************/
/* Events4U2 */
/* ==================================================================== */
/* ported cpgnuke germany 26.03.2004 */
/* www.cpgnuke.de @ EA */
/* ==================================================================== */
/*
CPG-NUKE: Advanced Content Management System
********************************************
Copyright (c) 2004 by CPG Dev Team
cpgnuke.com*/
/* ==================================================================== */
/* based on Calendar Module for vkpMx 2.x & phpNuke 5.5-7.0 */
/* Copyright (c) 2004 by A.Ellsel (kalender@pragmamx.org) */
/* www.pragmamx.org & ww.shiba-design.de */
/* -------------------------------------------------------------------- */
/* KalenderMx is based on EventCalendar 2.0 */
/* Copyright (c) 2001 Originally by Rob Sutton */
/* smart.xnettech.net (Nuke Site) */
/* Development continued by Aleks A.-Lessmann */
/* Included some ideas and changes by: */
/* flobee, bulli-frank, kicks, kochloeffel, FrankySz, Jubilee */
/* -------------------------------------------------------------------- */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 or a newer version. */
/************************************************************************/

//
require_once("modules/Events4U2/includes/functions.php");
if ((
calIsAdmin()) or ($radminsuper)) {
$menuitems['_AMENU9'][_EVENTS4U]['URL'] = adminlink('CalendarAdmin');
$menuitems['_AMENU9'][_EVENTS4U]['IMG'] = "events4u2.gif";


}




?>

Or am I all wrong Question

Sorry to ask all this questions, but I really like this calender and I need two of them on one site.

Hope you can help Smile

- Taxviper

#8: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 21:59
    ----
New development Very Happy

I have the module running now - I did everything once again and now the module is running.

And i have deleted the file mentioned in my last post. Therefore I have no config-page for Events4u2-module.

So thanks so far - but how do I get the admin-part to work also?

- Taxviper

#9: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 18.08.2004 22:17
    ----
Maybe just a little to fast - it's not working.

I can see the block (of events4u2), but if I click them - back to square 1 (again a page with only the header).

So maybe the "error" is in the functions.php-file??

- Taxviper

#10: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 20.08.2004 20:42
    ----
Hi again,

Do no one have any ideas - because I would love to get it to work Smile

Hopes from

Taxviper

#11: Re: Help to add a second Event4U Author: Ertan, Location: Germany PostPosted: 21.08.2004 17:10
    ----
mail me your patched files Wink

#12: Re: Help to add a second Event4U Author: taxviper,  PostPosted: 21.08.2004 19:10
    ----
Have done that - thanks Smile

Taxviper



-> Events 4U

All times are GMT + 1 Hour

Page 1 of 1