Modified:
trunk/htdocs/core/V2EXCore.php
trunk/htdocs/img/splash/0709/en_us.png
Log:
[Usability] Use JS to remove friends.
Modified: trunk/htdocs/core/V2EXCore.php
==============================================================================
--- trunk/htdocs/core/V2EXCore.php (original)
+++ trunk/htdocs/core/V2EXCore.php Tue Oct 16 07:40:18 2007
@@ -1054,7 +1054,10 @@
echo('<script type="text/javascript"
src="http://pub.mybloglog.com/comm2.php?mblID=' . MBL_ID . '&c_width=160&c_sn_opt=y&c_rows=6&c_img_size=h&c_heading_text=Recent+V2EXers&c_color_heading_bg=FFFFFF&c_color_heading=999999&c_color_link_bg=FFFFFF&c_color_link=0033FF&c_color_bottom_bg=FFFFFF"></script>');
}
_v_hr();
- echo('<div align="center"><a
href="http://www.spreadfirefox.com/?q=affiliates&id=3028&t=177"><img
border="0" alt="Get Thunderbird!" title="Get Thunderbird!" src="http://sfx-images.mozilla.org/affiliates/thunderbird/reclaimyourinbox_small.png"/></a></div>');
+ echo('<div align="center"><a
href="http://www.spreadfirefox.com/?q=affiliates&id=3028&t=177"><img
border="0" alt="Get Thunderbird!" title="Get Thunderbird!" src="http://sfx-images.mozilla.org/affiliates/thunderbird/reclaimyourinbox_small.png"/></a>');
+ _v_hr();
+ echo('<span class="tip_i"><small>Sponsored by <a
href="http://www.lusinshop.com/" target="_blank" style="color: ' .
rand_color() . ';" class="var">Lusin Shop</a></small></span>');
+ echo('</div>');
echo('</div>');
/*
echo('<script language="javascript"
src="/js/awstats_misc_tracker.js" type="text/javascript"></script>
@@ -4912,7 +4915,7 @@
$txt_friend = '<span class="tip_i"> You have
added this member as friend</span>';
} else {
mysql_free_result($rs);
- $txt_friend = '<span class="tip"> <a
href="/friend/remove/' . $O->usr_nick . '" class="g">No Longer Friend</a></span>';
+ $txt_friend = '<span class="tip"> <a href="#;"
onclick="location.href = \'/friend/remove/' .
urlencode($O->usr_nick) . '\'" class="g">No Longer Friend</a></span>';
}
}
if ($do == 'remove') {
@@ -4933,7 +4936,7 @@
$rs = mysql_query($sql);
if (mysql_num_rows($rs) == 1) {
- $txt_friend = '<span class="tip"> <a
href="/friend/remove/' . $O->usr_nick . '" class="g">No Longer Friend</a></span>';
+ $txt_friend = '<span class="tip"> <a href="#;"
onclick="location.href = \'/friend/remove/' .
urlencode($O->usr_nick) . '\'" class="g">No Longer Friend</a></span>';
} else {
$txt_friend = '<span class="tip"> <a
href="/friend/connect/' . $O->usr_nick . '" class="g">Add as Friend</a></span>';
}
Modified: trunk/htdocs/img/splash/0709/en_us.png
==============================================================================
Binary files. No diff available.