Author Topic: New calendar module "concert calendar"  (Read 85744 times)

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #50 on: February 07, 2011, 06:55:10 PM »
thx for the feedback boudi.
the module should now go to AMASP.

time for droplet...

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #51 on: February 14, 2011, 08:00:28 PM »
could somebody test the droplet. http://www.websitebaker2.org/forum/index.php/topic,13792.msg140452.html#msg140452
don't forget to change/add the right path to concertcalendar-page.

it works for me, but don't work for user D72.

Offline Vincent

  • Posts: 376
  • Gender: Male
    • websites voor ondernemers
Re: New calendar module "concert calendar"
« Reply #52 on: February 15, 2011, 09:47:24 AM »
Hi dbs,

I used it here: http://www.vasilenedea.com (dit it a couple of months ago) and it always worked fine there (I mean also the older version of module itself).

Regard, thanks for this fine droplet,

Vincent

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #53 on: February 15, 2011, 01:38:37 PM »
thx vincent, good to hear it works.
you have only one next concert. the effect of the droplet is better to see with more as one next concerts.
nice site. ;-)

dbs

Offline novacultura

  • Posts: 6
Re: New calendar module "concert calendar"
« Reply #54 on: March 10, 2011, 11:33:44 AM »
Great calendar module. (nearly) exactly what I needed for my site. Congratulations!

But one suggestion: Is there a possibility to show date, event name AND place (city) in the list of the upcoming events? I suppose it should be easy - if I only knew how  :-(

Thanx for suggestions
Michael

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #55 on: March 10, 2011, 02:31:59 PM »
hi, you can change the view.php at line 94.
old:
Code: [Select]
$content .= " <a class='toggle' onclick='toggle_visibility(".$divtxt.");'>".$data['concert_name']."</a>";new:
Code: [Select]
$content .= " <a class='toggle' onclick='toggle_visibility(".$divtxt.");'>".$data['concert_name']."&nbsp;&nbsp;" .$data['concert_place']."</a>";

Offline novacultura

  • Posts: 6
Re: New calendar module "concert calendar"
« Reply #56 on: March 10, 2011, 07:40:52 PM »
Hey, great!
Thanks a lot for melping an semi-analphabet in php.
The result can shortly be seen here: http://novacultura.de/wb/pages/agenda.php
Thanks to that modified module I can now run my website with 100% WebsiteBaker.
Thank you very much.
Michael

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #57 on: March 10, 2011, 07:52:38 PM »
nice :-)

but a little bit more css-styling for the concertcalendar is needed.

and i am a php-analphabet too.

Offline berny

  • Posts: 37
Re: New calendar module "concert calendar"
« Reply #58 on: March 20, 2011, 10:15:53 PM »
I have a problem:

If i want to add a concert, there is a error:
notice: Undefined variable: concert_id in modules/concert/add_concert.php on line 32

There ist a Problem with the
concert_id = $database->get_one("SELECT LAST_INSERT_ID()");

I think, the server dont serve the last id...
what could this be ???

If i add a new concert, i have the error, but the concert will be saved in the database.
But if a other user want to add a new concert, it will not be saved...

i dont know, whow to solve this problem....

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #59 on: March 20, 2011, 10:38:45 PM »
hi, you are right. look here:
http://www.websitebaker2.org/forum/index.php/topic,13792.msg107078.html#msg107078

but i don't have problems with more as one user.

Offline berny

  • Posts: 37
Re: New calendar module "concert calendar"
« Reply #60 on: March 21, 2011, 10:18:51 AM »
The Problem with more user:
when i am logged in as admin, i have no problem.
When at the same time a other User ist logged in, and also administrate the calender, he has this Problem.
This could be a random..

I think:
last_Insert_id()
in the normal way, this must be requestet direct after the mysql-Statement.
Maybe here is the Problem, beacause the last Id will be asked with a function, maybe there is an other Statement between the two requests, and produced this error?

how to request the Last id without this functions (direkt request in the module?)
is there a posibillity to solve this Problem on this way?

sorry, for my bad english ;-)

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #61 on: March 21, 2011, 11:55:37 AM »
my english is also bad.

you will become problems in many modules if 2 users work at the same time.
i am not a coder, maybe the thread-opener ist the right adress.

dbs
(my german is better)

Offline berny

  • Posts: 37
Re: New calendar module "concert calendar"
« Reply #62 on: March 23, 2011, 08:56:53 AM »
OK, i have an issue, but i dont know, that it works correkt..

it make no sense to get the Last-id in the select.
The concert_id is a parameter in the select query and also the parameter for the last_id
this cannot work.

Issue:
add_concert.php line 32:
delete the " 'concert_id', " and the " '$concert_id', " in the select query.
The concert_id is auto increment, it will be get a new ID, therefore i dont have to predefine ist.

Next Problem:
In the save_concert.php line 53:
If there ist no date defined, it make no sense to compare a non defined Parameter.
Therfore replace:
(isset($concert_date) AND $concert_date == $fulldate)
Than the parser compare only, if the Parameter $concert_date is set.

This works fine, but i dont know, if this issue works also correct, because i dont know this script very well.
Maybe the Coder will read this an maybe he can repair this in a correct way ;-)

greetings from austria
Berny

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #63 on: March 23, 2011, 02:40:13 PM »
you could share your changes here (the file) and maybe a lot of people test it.
i will do it.

there is also another problem:
if you make a new entry with day 29 or 30 or 31 and you edit this concert later, the date in the backend displays automacally the day 1. and not 29. or 30. or 31.

in change_concert.php is a javascript- and a php-function for days after 28., but i can't solve this.

Offline berny

  • Posts: 37
Re: New calendar module "concert calendar"
« Reply #64 on: March 26, 2011, 11:51:21 AM »
Update the concert-kalendar

Please attention, use this issue of your own risk!

Changes:
Solve a Problem with the Last_insert_ID
Solve a Problem with the date.

I can reproduce the javascript Problem, but i am not very good in javascript therefor i also dont know an issue.
Maybe someone have a idea, to solve this Problem by activating the script only when focus the date-selects.
Then this javascript will be only active, when someone clicks on the Date so the Problem will only be secundare.
dirty, but maybe it works, untill the coder will have more time ;-)
(dont stress him, he have to do some other important things!!!  8-) )

[gelöscht durch Administrator]

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #65 on: March 26, 2011, 12:07:09 PM »
hi, can't update with this version-number. the -a is deadly. *g*
maybe wb don't like this.
edit: you must also change the info.php

for me is good to have the 2 changed files.  :wink:
« Last Edit: March 26, 2011, 12:25:08 PM by dbs »

Offline marmot

  • Posts: 1103
Re: New calendar module "concert calendar"
« Reply #66 on: March 30, 2011, 12:45:05 AM »
Hi,

did some code cleaning and hopefully solved the issue concerning days 29 to 31.

Changed files are:
add_concert.php
change_concert.php
save_concert.php
info.php

regards

Edit: new version 2.2, update is recommended because of security reasons
« Last Edit: January 08, 2013, 08:03:10 PM by marmot »

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #67 on: March 30, 2011, 08:04:10 AM »
thx marmot & berny,

but it's crazy, at the moment there are no problems with days from 29 - 31.
without changes at version 2.1.3.

i must wait until next month for more tests.

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #68 on: April 01, 2011, 06:09:56 PM »
today the old problem is again there.
after update with version 2.1.4 from marmot the problem is solved.

good work, THX  :-)

dbs
« Last Edit: April 01, 2011, 06:16:24 PM by dbs »

Offline vixrealitum

  • Posts: 9
Re: New calendar module "concert calendar"
« Reply #69 on: May 04, 2011, 12:18:06 PM »
hello I made a Polish translation of the concert calendar (version 2.1.4)

[gelöscht durch Administrator]
« Last Edit: May 05, 2011, 06:44:47 PM by vixrealitum »

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #70 on: May 04, 2011, 04:08:44 PM »
hi vixrealitum,

have you made a pl.php for translating or more other changes in the module?
what is new in the droplet-code?

dbs

Offline vixrealitum

  • Posts: 9
Re: New calendar module "concert calendar"
« Reply #71 on: May 05, 2011, 01:36:20 PM »
hi dbs

came the language file pl.php rest of the files is unchanged. Module and the droplet are working properly, shows links to the addresses of the date of events.


I have a question, I would like to add on the home page droplet concert consisting only of miniature posters acting as a link to the module. Is it possible to display thumbnails of such events in droplet?

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #72 on: May 05, 2011, 02:33:14 PM »
hi, if i understand you right: you have created a language-file (pl.php).
it would be better if you make a zip (contains only the pl.php) and in a next version of concertcalender it will be included.

in the droplet-code you have changed the path to the calender-page? but it is the same code like this droplet?
http://www.websitebaker2.org/forum/index.php/topic,13792.msg140452.html#msg140452

hm, everybody must change the path in droplet-code for own use. the title of the calendar-page can/will be different.

sorry for my english, thx for your work.  :wink:

dbs

Offline vixrealitum

  • Posts: 9
Re: New calendar module "concert calendar"
« Reply #73 on: May 05, 2011, 06:47:24 PM »
droplet is the same as in the official final version, I changed the path.

In a previous post, I changed the link only to the Polish language version.

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New calendar module "concert calendar"
« Reply #74 on: May 05, 2011, 07:04:44 PM »
Quote
In a previous post, I changed the link only to the Polish language version.
it's maybe a mistake, but the path is for the page with concertcalendar. the language of this page you choose in page-settings (or global settings).
« Last Edit: May 05, 2011, 09:07:55 PM by dbs »

 

postern-length