Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
Blackman

[FRAGE] Gäste

Recommended Posts

Wie stelle ich ein das Gäste zwar die Polls sehen dürfen, aber nicht die Ergebnisse ...

Ich will nämlich nicht das Member sich einfach ausloggen, anschauen welche Ergebnisse es gibt, und sich das mit den meißten Stimmen oder so aussuchen ?

Gibts da ne Möglichkeit ?

Sollte die Gäste, und Validating betreffen ...

BLACK

Share this post


Link to post

Gäste dürfen Umfrage-Zwischenstand nicht sehen

1. Öffne sources/topics.php

Suche in der function parse_poll()

       if (! $ibforums->member['id'] ) {

        $check = 1;

        $poll_footer = $ibforums->lang['poll_no_guests'];

       }
und ändere in
       if (! $ibforums->member['id'] ) {

//-- mod_results_not_for_guests exclude begin

        $check = 1;

//-- mod_results_not_for_guests exclude end

//-- mod_results_not_for_guests begin

        $check = 2;

//-- mod_results_not_for_guests end

        $poll_footer = $ibforums->lang['poll_no_guests'];

       }
Nun suche in der gleichen function parse_poll() etwas weiter unten den letzten if-Zweig für $check
       {

        $poll_answers = unserialize(stripslashes($poll_data['choices']));

        reset($poll_answers);

        

        // Show poll form
Und füge genau davor ein
//-- mod_results_not_for_guests begin

       if ($check == 2)

       {

        // Should we show the results or should we show nothing ?

        

        $html = $this->poll_html->poll_header($this->topic['tid'], $poll_data['poll_question'], $edit_link, $delete_link);

        }

       else

//-- mod_results_not_for_guests end

:)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×