Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-17-2008, 01:31 PM   #1
Vigilante
Confirmed User
 
Join Date: Nov 2006
Location: Tätervolk City
Posts: 696
PhpBB anyone - Why isnīt that included?

Damnit you should think that a board system that is online this long have all the basic things included but it doensīt seem so.

Anyone have a an idea what i have to do to see which users voted on a poll for what choice?

I tried both methods i found using google but none of them worked
Vigilante is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2008, 01:34 PM   #2
gotekix
Confirmed User
 
Industry Role:
Join Date: Jul 2005
Location: Hawaii
Posts: 243
Simple Machines Forum is a good way to go if you want a fully-functional forum for free. I had some issues myself using phpBB so now I'm using SMF and much happier.
gotekix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2008, 01:37 PM   #3
Vigilante
Confirmed User
 
Join Date: Nov 2006
Location: Tätervolk City
Posts: 696
Thanks but i will definatly not moe agin ^^. Just took me forever to migrate from vbb to phpBB. So any sql hobbit around that could show me how i can add this feature.

The two solutions i found were rather short so i guess that is not a big tghing.

You get a link on a pr3 for your help if you want.
Vigilante is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2008, 01:47 PM   #4
Adultnet
Confirmed User
 
Join Date: Sep 2003
Posts: 8,713
keep your version and get some one to fix the problem
__________________


TrafficCashGold Paying Webmasters Since 1996!

Awesome Conversions! Fast Weekly Payments! Over 125 Tours!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2008, 02:19 PM   #5
Vigilante
Confirmed User
 
Join Date: Nov 2006
Location: Tätervolk City
Posts: 696
Bumpftdhrt
Vigilante is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2008, 02:48 PM   #6
Vigilante
Confirmed User
 
Join Date: Nov 2006
Location: Tätervolk City
Posts: 696
Solved ...somehow at least doesnīt look good.


OPEN VIEWTOPIC.PHP

FIND


Code:
$poll_info[$i]['poll_option_text'] = censor_text($poll_info[$i]['poll_option_text']);


AFTER, ADD:
Code:
 /* Begin 'Show voters' MOD by Ernst Vaarties */
      $sql_voters = '
      SELECT username, vote_user_id
      FROM ' . POLL_VOTES_TABLE . ', ' . USERS_TABLE . '
      WHERE topic_id = ' . $topic_id . '
      AND poll_option_id = ' . $poll_info[$i]['poll_option_id'] . '
      AND ' . POLL_VOTES_TABLE . '.vote_user_id = ' . USERS_TABLE . '.user_id
      ORDER BY username ASC, vote_user_id ASC';
      
      $results_voters = $db->sql_query($sql_voters);
      $voters_total = 0;
      $voters_string = "";
      
      // Add all voters to a string.
      while ($row_voters = $db->sql_fetchrow($results_voters)) {
        $voters_total = $voters_total + 1;
        $voters_string = $voters_string . ", " . $row_voters['username'];
            }
      
      // Is the total nr of voters <> the nr of votes for the poll? Add this to the same string.
      if ($voters_total <> $poll_info[$i]['poll_option_total']){
        $voters_string = $voters_string . ", <> " . ($poll_info[$i]['poll_option_total'] - $voters_total);
      }
      
      $voters_string = ltrim($voters_string, ", ");
      
      // Add the string to the list.
      $poll_info[$i]['poll_option_voters'] = $voters_string;
      $db->sql_freeresult($results_voters);
      /* End 'Show voters' MOD by Ernst Vaarties */
FIND


Code:
    'POLL_OPTION_VOTED'      => (in_array($poll_option['poll_option_id'], $cur_voted_id)) ? true : false)


BEFORE, ADD


Code:
    'POLL_OPTION_VOTERS'    => $poll_option['poll_option_voters'],



OPEN VIEWTOPIC_BODY.HTML

FIND


Code:
    {L_NO_VOTES}<!-- ELSE -->{poll_option.POLL_OPTION_PERCENT}


INLINE, AFTER, ADD


Code:
 <dd class="resultbar">{poll_option.POLL_OPTION_VOTERS}</dd>

and then deleteing the template cache made these damn names show up but as said ...doensīt look good.
Vigilante is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright Đ 2000- Jelsoft Enterprises Limited.