forum post report

Started by Bjw, July 16, 2011, 08:46:22 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Mindless

#7
If you take the forum from Btdev you'll see it has many corrections to be made, not exactly an easy job for anyone to take on. Those are done in V2 like i said i stopped working on V1 ages ago.

Bjw

Sorry for the double post but now am finding a lot of bugs as far as the integration into the code with the forums.Its the links for example user post history in there userdetails it shows the posts but when you click on the it redirects you to the forum index.I am sure it has to do with the different levels compared to the tbdev code.I will keep working and post anything I find or fix.

Bjw

I edited the reports also.

Had to change                case "Post":
                    $res_who2 = sql_query("SELECT subject FROM topics WHERE id = {$arr_info['2nd_value']}");
                    $arr_who2 = mysql_fetch_assoc($res_who2);
                    $link_to_thing = "<b>{$lang['reports_post']}</b> <a class='altlink' href='forums.php?action=view_topic&amp;topic_id={$arr_info['2nd_value']}&amp;page=last#{$arr_info['reporting_what']}'><b>" . htmlspecialchars($arr_who2['topic_name']) . "</b></a>";
                    break;
            }
        }



to                 case "Post":
 
                  $res_who2 = mysql_query("SELECT topic_name FROM topics WHERE id = " . $arr_info['2nd_value']);

                  $arr_who2 = mysql_fetch_assoc($res_who2);
                   
                  $link_to_thing = "<b>post:</b> <a class='altlink' href='forums.php?action=viewtopic&amp;topicid=" . $arr_info['2nd_value'] . "&amp;page=last#" . $arr_info['reporting_what'] . "'><b>" . htmlspecialchars($arr_who2['topic_name']) . "</b></a>";

                   break;   
   


                 working fine now     

Mindless

Aye V3 is coming on nicely - already huge changes done on the source code on the test site, no sure when its going to be on SVN. But like before just post the things found on any versions and i'll update the SVN codes.

Bjw

Thank you mindless its perfect and is appreciated.
I have the new u232 v2 on a test server and I love the looks and feel of it.I had no problems redoing the sql to import the users and torrents.I have done a bit of work on the css and think it looks great.I really am thinking of switching source but am waiting for the v3 release bfore jumping out there and switching.All your work is appreciated and thank you very much.

Mindless

#2
Snuggles must have had a seperate report system, he never included it - Its been updated on V2 for months that, V1 development stopped the minute i put V2 out.

Code (php) Select
<a class="altlink" href="forums.php?action=report_post&amp;topic_id='.$topic_id.'&amp;post_id='.$post_id.'"><img src="pic/forums/report.gif" alt="Report" title="Report" width="22" /> Report</a>
             
Should be :


Code (php) Select
<a href="'.$INSTALLER09['baseurl'].'/report.php?type=Post&amp;id='.$post_id.'&amp;id_2='.$topic_id.'"><img src="pic/forums/report.gif" alt="Report" title="Report" width="22" /> Report</a>

Bjw

I am running
/**
*   http://btdev.net:1337/svn/test/Installer09_Beta
*   Licence Info: GPL
*   Copyright (C) 2010 BTDev Installer v.1
*   A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
*   Project Leaders: Mindless,putyn.
**/

On Twilight I just noticed that the report forum post is not working .It just goes to the forum main index when you click report post.Now whats funny is it still has the url in the bar for example.

http://twilighttorrents.net/forums.php?action=report_post&topic_id=1058&post_id=5084

but is showing the main forum index?

any ideas?  it may be the forum structure.I will look at it a bit closer as I just learned of it :)