[Final] Version 1.2014.0 - Formel 1 WebTipp - phpBB3

In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
Forumsregeln
phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17475
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Sorry for late reaction....

yes, you found a bug ;-)

Solution:

OPEN includes/functions_formel.php

FIND:

Code: Alles auswählen

function formel_del_tip($user_id,$race_id)
{
	global $db, $user, $phpEx;
REPLACE WITH:

Code: Alles auswählen

function formel_del_tip($user_id,$race_id)
{
	global $db, $user, $phpEx, $phpbb_root_path;
z4reg
Mitglied
Beiträge: 29
Registriert: 12.06.2008 10:00
Wohnort: Asia

Beitrag von z4reg »

Nice Fixed :D thanks

Will be waiting for final version & some new features :wink:
z4reg
Mitglied
Beiträge: 29
Registriert: 12.06.2008 10:00
Wohnort: Asia

Beitrag von z4reg »

After submitting tips for race ahead of next race .... it returns to to first upcoming race!

Example: next race is silverstone and after submitting tips for Hockenheim or any next race ..after submiiting tips it redirects me back to tips for silverstone ?
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17475
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Yes, thats correct.

After submitting a tip, the MOD returns to the "actual race".
z4reg
Mitglied
Beiträge: 29
Registriert: 12.06.2008 10:00
Wohnort: Asia

Beitrag von z4reg »

Shouldn't it return to race where user just submitted tip?
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17475
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

No, it was designed to return to the actual race.

Not every user want to tip for all races.... the actual race is the main view point.
z4reg
Mitglied
Beiträge: 29
Registriert: 12.06.2008 10:00
Wohnort: Asia

Beitrag von z4reg »

Can you please explain about race time & deadline ..

I always have problem with deadline !

For this race(silverstone) had to set 5:00:00

board time zone is UTC/GMT
British timezone = utc/gmt +1

Another question is countdown based on user time(get from browser) or server time ?

thanks ;)
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17475
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Race time = Race Start Time.
Deadline = Deadline in Seconds before Race Time.

Example:

Race Time is 14:00 UTC
Deadline is set to 600 Seconds --> Deadline for the last tip is: 13:50 UTC ( 600 Seconds = 10 Minutes )

All times are bases on UTC
This mod recalculates the times to your timezone corresponding to your settings in your personal profile.
z4reg
Mitglied
Beiträge: 29
Registriert: 12.06.2008 10:00
Wohnort: Asia

Beitrag von z4reg »

Okay thanks

//Check if user is formel moderator or has admin access
if ($user_id == $formel_config['mod_id'] || ($is_admin == 1) )

replace with
if ($auth->acl_get('a_') || $auth->acl_get('m_'))

this should be enough to give moderators permission to manage tipping result ?
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17475
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Not correct.

I grant my own F1 moderator and F1 admin permissions.

You are trying to grant permission for global moderator and admin rights.
Antworten

Zurück zu „[3.0.x] Mods in Entwicklung“