Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
FLS
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-12-31 15:27:58
was wondering if there is a mod created for FLS or if someone has it in the works

i can take the code out of another source but i will need help getting it to work on TTV2.04
Unknown User
2008-12-31 15:29:06
What Is This ??
Unknown User
2008-12-31 15:43:49
ts have it its on there staff page they have first line support added underneath. we should have it as we have support for: in account details maybe that could show up in staff page for others too see who can support on what.
Unknown User
2008-12-31 16:11:55
i know that its on Template-Shares TBdev and on TorrentStrike cos unfortunate to say ive used all 3 of theses crap codes (TT FTW)
Unknown User
2008-12-31 16:23:35
there is one in the v1 section would need modding to work on v2
Unknown User
2008-12-31 16:45:25
if someone could help modify it to work on TTV2 it would help loads as i ain't good at converting mods
Unknown User
2009-01-16 04:55:58
Ok heres my mod that works with v2 you may need to format it a little on the staff.php part

Add this to database

ALTER TABLE users ADD(support enum ('yes','no') NOT NULL default 'no');

ALTER TABLE `users` ADD `supportfor` TEXT NOT NULL;
In Account-Details.php



Find


print("<tr><td>Mod Comment</td><td align=left><textarea cols=50 rows=10 name=modcomment>$modcomment</textarea></td></tr>\n");





Add Below



///// First Line Support Mod Start

 $supportfor = htmlspecialchars($user["supportfor"]);

print("<tr><td class=rowhead>Support</td><td colspan=2 align=left><input type=radio name=support value=yes" .($user["support"] == "yes" ? " checked" : "").">Yes <input type=radio name=support value=no" .($user["support"] == "no" ? " checked" : "").">No</td></tr>\n");

print("<tr><td class=rowhead>Support for:</td><td colspan=2 align=left><textarea cols=60 rows=6 name=supportfor>$supportfor</textarea></td></tr>\n");

////// First Line Support Mod Stop[/codebox]



Admin-Modtask.php



Find

[code]mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded',





add after





supportfor='$supportfor', support='$support'

,



staff.php



Find



<?

end_frame();

stdfoot();

?>





Add above



<?

if (!$act) {

$dt = gmtime() - 180;

$dt = sqlesc(get_date_time($dt));

// LIST ALL FIRSTLINE SUPPORTERS

// Search User Database for Firstline Support and display in alphabetical order

$res = mysql_query("SELECT * FROM users WHERE support='yes' AND status='confirmed' ORDER BY username LIMIT 10") or sqlerr();

while ($arr = mysql_fetch_assoc($res))

{

$land = mysql_query("SELECT name,flagpic FROM countries WHERE id=$arr[country]") or sqlerr();

$arr2 = mysql_fetch_assoc($land);

$firstline .= "<tr height=15><td class=embedded><a class=altlink href=account-details.php?id=".$arr['id'].">".$arr['username']."</a></td>

<td class=embedded> ".("'".$arr['last_access']."'">$dt?"<img src=".$pic_base_url."images/button_online.gif border=0 alt=\"online\">":"<img src=".$pic_base_url."images/button_offline.gif border=0 alt=\"offline\">" )."</td>".

"<td class=embedded><a href=account-inbox.php?receiver=".$arr['username'].">"."<img src=".$pic_base_url."images/button_pm.gif border=0></a></td>".

"<td class=embedded>".$arr['supportfor']."</td></tr>\n";

}



begin_frame("Firstline Support");

?>



<table>

<tr>

<td class=embedded colspan=11>General support questions should preferably be directed to these users. Note that they are volunteers, giving away their time and effort to help you.

Treat them accordingly. <br></td></tr>

<!-- Define table column widths -->

<tr>

<td class=embedded width="30"><b>Username</b></td>

<td class=embedded width="5"><b>Active</b></td>

<td class=embedded width="5"><b>Contact</b></td>

<td class=embedded width="400"><b>Support for:</b></td>

</tr>





<tr>

<tr><td class=embedded colspan=11><hr color="#4040c0" size=1></td></tr>



<?=$firstline?>



</tr>

</table>

<?

end_frame();

}

?>



And Upload and Enjoy
Unknown User
2009-01-16 20:17:53
many thanks for this, i just needed the staff.php part i had the rest lol. NICE WORK
Unknown User
2009-07-06 11:33:01
Thanks works fine for me and my TT source .:)
Unknown User
2010-05-24 12:10:31
working ok
Unknown User
2011-10-10 20:02:07
moved to mods completed
Unknown User
2011-10-14 19:04:56
Thanks TheDoctorUK, good idea  ;)
Unknown User
2011-10-15 09:58:30
a problem, when i pm in member from FLS i have a blank page

[url="http://mydomain/account-inbox.php?receiver="]http://mydomain/account-inbox.php?receiver=[/url]member

inothers members of staff the pms are ok
Unknown User
2011-10-15 10:00:57
it looks like he hasnt ported it from v1 properly thats the url for the mailbox of v1, v2's mailbox is

mailbox.php?compose&id=$userid
Unknown User
2011-10-15 12:33:34
ok i change the

<td class=embedded><a href=account-inbox.php?receiver=".$arr['username'].">"."<img src=".$pic_base_url."images/button_pm.gif border=0></a></td>".

to

<td class=embedded><a href=mailbox.php?compose&id=$arr[id]>"."<img src=".$pic_base_url."images/button_pm.gif border=0></a></td>".

ok now  ;)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728