obey-robots.txt
View Thread
Post your improvements and modifications to viewforum.php here.
You like the fix for pol in viewforum.php
yes yes 100%[1 Vote]
no no 0%[0 Votes]
Total Votes : 1
 Print Thread
[FIX] poll missing in viewforum.php
Fusioneer
In forum_threads_list_panel.php, usually displayed on your home page, you see [Poll] when a subject/thread has a poll in it.
This does not correspond with viewforum.php, because [Poll] is not displayed when a subject/thread has a poll in it.

The fix is very easy!
Open viewforum.php and find the first instance of:
Download source  GeSHi: PHP
  1. $threadsubject =
Parsed in 0.035 seconds, using GeSHi 1.0.8.10


Alter this to (note the extra dot):
Download source  GeSHi: PHP
  1. $threadsubject .=
Parsed in 0.016 seconds, using GeSHi 1.0.8.10


Directly above it add:
Download source  GeSHi: PHP
  1. if ($tdata['thread_poll']) {
  2. $threadsubject = "<span class='small' style='font-weight:bold;'>[".$locale['global_051']."]</span> ";
  3. } else {
  4. $threadsubject = "";
  5. }
Parsed in 0.018 seconds, using GeSHi 1.0.8.10


Afterwards it looks like this:
Download source  GeSHi: PHP
  1. if ($tdata['thread_poll']) {
  2. $threadsubject = "<span class='small' style='font-weight:bold;'>[".$locale['global_051']."]</span> ";
  3. } else {
  4. $threadsubject = "";
  5. }
  6.  
  7. $threadsubject .= "<a href='viewthread.php?thread_id=".$tdata['thread_id']."'>".$tdata['thread_subject']."</a>";
  8.  
Parsed in 0.016 seconds, using GeSHi 1.0.8.10

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Use BBcode or HTML to refer to; '[FIX] poll missing in viewforum.php'
BBcode:
HTML: