[x] Navigation

[x] Wer ist wo
 Bots:
1: Google > Forum 9.x
 Visitors:
1: Forum 9.x

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

[x] Downloads (Top)

Mod for CPGNuCalendar
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > Module & Blöcke

Author Message
clubhouse
Special-Agent


Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen

PostPost subject: Mod for CPGNuCalendar
Posted: 04.07.2009 12:25
Reply with quote

Moin Leute,

ich habe mir heute Nacht mal den Spass gemacht und nen Mod für den CPGNuCalender geschrieben.

Mit diesem Mod kein ein User nun angeben, ob er ein Event besucht, oder besucht hat. Dies wird dann in einem Block in seinem Profil mit angezeigt.

Schreibt mir mal was ihr davon haltet, und was man code technisch besser machen kann, damit es z.b. sicherer ist.

Gruß

_________________


clubhouse's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Poldi
Moderator


Joined: Nov 14, 2004
Posts: 705

PostPost subject: Re: Mod for CPGNuCalendar
Posted: 05.07.2009 01:16
Reply with quote

Also, bis jetzt scheint alles wunderbar zu funktionieren ...
mal sehen, was meine User dazu sagen.

Aber auf alle Fälle ne klasse Idee.

_________________
gG,
Poldi
www.green-dragon.de (Dragonfly 9.2.1)
www.tampones.de (Dragonfly 9.2.1)
www.bfg-deggendorf.de (Dragonfly 9.2.1)
www.sexy-goths.de (Dragonfly 9.1.2.1)
www.gig-hunter.de (deceased)
www.green-dragon.net (Dragonfly CVS ... Testseite)

Poldi's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.0.27-5.0.18/4.4.9-5.2.1/9.1.0.0-9.2.1
Back to top
View user's profile Visit poster's website
Poldi
Moderator


Joined: Nov 14, 2004
Posts: 705

PostPost subject: Re: Mod for CPGNuCalendar
Posted: 05.07.2009 11:03
Reply with quote

Erster Bugreport :
Wenn ein Event, für das man sich als User eingetragen hat, gelöscht wird, bleibt der Eintrag in der cpgnucalendar_user_on_event-Tabelle und wird als Leereintrag im Userblock angezeigt ...


Kein Bug, aber wünschenswert ... die Events im Userblock sollten nicht nach der event-ID, sondern nach dem Datum sortiert werden, ist irgendwie übersichtlicher.
Einfach :
PHP:
$getaid = $db->sql_query("select event_id, user_id, event_date FROM cms_cpgnucalendar_user_on_event where user_id = '".$userinfo['user_id']."' GROUP BY event_id ORDER BY event_id DESC LIMIT $length");
ändern in
PHP:
$getaid = $db->sql_query("select event_id, user_id, event_date FROM cms_cpgnucalendar_user_on_event where user_id = '".$userinfo['user_id']."' GROUP BY event_date ORDER BY event_date ASC LIMIT $length");

_________________
gG,
Poldi
www.green-dragon.de (Dragonfly 9.2.1)
www.tampones.de (Dragonfly 9.2.1)
www.bfg-deggendorf.de (Dragonfly 9.2.1)
www.sexy-goths.de (Dragonfly 9.1.2.1)
www.gig-hunter.de (deceased)
www.green-dragon.net (Dragonfly CVS ... Testseite)

Poldi's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.0.27-5.0.18/4.4.9-5.2.1/9.1.0.0-9.2.1
Back to top
View user's profile Visit poster's website
clubhouse
Special-Agent


Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen

PostPost subject: Re: Mod for CPGNuCalendar
Posted: 06.07.2009 15:43
Reply with quote

Moin,

danke für die Info.... is bisschen vermurkst der Kalender... ich finde die lösch Funktion der Events nicht mal....

Ich hab auch schon sowas vorgehen, das wenn kein Datum gewählt wurde, man selber ein Datum eingeben kann, aber das wird leider noch nicht übernommen, bzw ich weiß noch nicht wie ich es umsetzen kann.

Ich möchte es auch noch so hinbasteln, das im Block nen Roter oder Grüner Punkt gezeigt wird, man sich über das Klicken darauf anmelden kann, und man sieht wie viele Leute das Event besuchen.

_________________


clubhouse's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
clubhouse
Special-Agent


Joined: Nov 04, 2004
Posts: 478
Location: Eine Insel mit 2 Bergen

PostPost subject: Re: Mod for CPGNuCalendar
Posted: 07.07.2009 03:14
Reply with quote

So nen kleines Update. Nun sieht man auch in der Kalender und Block Übersicht wo man sich angemeldet hat.
_________________


clubhouse's Serverdaten - verwendete Vers. (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux Debian 4.0 / PHP 5.2.0-8+etch13 / SQL 5.0.32 / CMS 9.2.1
Back to top
View user's profile Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page    Forum Index > > Module & Blöcke
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy