Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=93)
-   -   show passkey along with announce on upload (http://www.bvlist.com/showthread.php?t=5885)

daffy 6th January 2011 05:24

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 "

" . _btofficialurl."  ".$announce_url."

\n";

with

Code:

if (!$stealthmode) echo "

" . _btofficialurl." ".$announce_url."OR ".$announce_url."?passkey=" . $user->passkey . "

\n";


joeroberts 7th January 2011 07:52

You may try using
PHP Code:

if (!$stealthmode) echo "<p>" _btofficialurl." <b>".$announce_url."</b>" . (($user->passkey != "")? "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>OR <b>".$announce_url."?passkey=" $user->passkey "</b></p>\n"



All times are GMT +2. The time now is 19:30.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.