Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 6th January 2011, 05:24
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default show passkey along with announce on upload
to show users passkey along with announce


open upload/torrent.php


find
Code:
OpenTable(_btupload);
and replace
Code:
if (!$stealthmode) echo "<p>" . _btofficialurl."  <b>".$announce_url."</b></p>\n";
with

Code:
if (!$stealthmode) echo "<p>" . _btofficialurl." <b>".$announce_url."</b><br />OR <b>".$announce_url."?passkey=" . $user->passkey . "</b></p>\n";
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #2  
Old 7th January 2011, 07:52
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
You may try using
PHP Code:
if (!$stealthmode) echo "<p>" _btofficialurl." <b>".$announce_url."</b>" . (($user->passkey != "")? "<br />OR <b>".$announce_url."?passkey=" $user->passkey "</b>" "" ). "</p>\n"
so that if a user don't have a passkey set it don't show
Instead of this
PHP Code:
if (!$stealthmode) echo "<p>" _btofficialurl." <b>".$announce_url."</b><br />OR <b>".$announce_url."?passkey=" $user->passkey "</b></p>\n"
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
announce , passkey , show , upload

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:33. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.