Changeset 1299
- Timestamp:
- 01/28/07 17:13:20 (2 years ago)
- Files:
-
- feedmelinks/img/icon.gif (modified) (previous)
- feedmelinks/index.php (modified) (7 diffs)
- feedmelinks/install/index.php (modified) (5 diffs)
- feedmelinks/install/traditional-install.php (modified) (2 diffs)
- feedmelinks/modules/my-recent.inc.php (modified) (1 diff)
- feedmelinks/modules/new-user-no-links.inc.php (added)
- feedmelinks/modules/new-user-no-tags.inc.php (added)
- feedmelinks/modules/recent-with-times.inc.php (modified) (1 diff)
- feedmelinks/modules/utils.inc.php (modified) (3 diffs)
- feedmelinks/right-click.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/index.php
r1288 r1299 1 1 <% 2 2 ob_start(); 3 include _once( "modules/class.gzip_encode.inc.php" );3 include( "modules/class.gzip_encode.inc.php" ); 4 4 5 5 # $Id$ … … 70 70 71 71 if( $l ) { 72 include _once( "$modules/view-link.inc.php" );72 include( "$modules/view-link.inc.php" ); 73 73 } else if( $mesg ) { 74 74 %> … … 311 311 <div id="leftColumn"> 312 312 313 <?php 314 $num_links = get_simple_rs( getQuery( "links_per_user", $u )); 315 if( $num_links < 1 ) { 316 include( "modules/new-user-no-links.inc.php" ); 317 } 318 ?> 319 313 320 <div class="box"> 314 321 <div class="subhead"> 315 <%= get_ownoun() %> <%= getCatsName() %> 316 (Sort by: 317 318 <% if( $taglist_sort_order == "alphabetic" ) { %> 319 <a href="<%= $page %>?taglist_sort_order=popularity">Popularity</a> 320 <% } else { %> 321 Popularity 322 <% } %> 323 | 324 <% if( $taglist_sort_order == "alphabetic" ) { %> 325 A-Z<% 326 } else { %> 327 <a href="<%= $page %>?taglist_sort_order=alphabetic">A-Z</a><% 328 } %>) 329 </div> 330 331 <% 322 <?php 332 323 $qs = getQuery( "sorted_tags_per_user", $u ); 333 324 $q = mysql_query( $qs ); 334 325 if( $q ) 335 $num Rows = mysql_num_rows($q);326 $num_tags = $numRows = mysql_num_rows($q); 336 327 else { 337 %> 338 <!-- ERROR: running <%= $qs %> --> 339 <% 340 } 341 if( $numRows ) { 328 ?> <!-- ERROR: running <%= $qs %> --> <?php 329 } 330 331 $tagbox_title = ($num_tags < 4) 332 ? "Tags are like labels for your links." : 333 ( 334 get_ownoun() 335 . " " 336 . getCatsName() 337 . " (Sort by: " 338 . (( $taglist_sort_order == "alphabetic" ) ? "<a href='" . $page . "?taglist_sort_order=popularity'>Popularity</a>" : "Popularity" ) 339 . " |" 340 . (( $taglist_sort_order == "alphabetic" ) ? "A-Z" : "<a href='" . $page . "?taglist_sort_order=alphabetic'>A-Z</a>") 341 ); 342 343 echo $tagbox_title; 344 ?> 345 346 </div> 347 348 <?php 349 350 351 if( $num_tags > 4 ) { 342 352 $qs2 = getQuery( "links_per_user", $u ); 343 353 $q2 = mysql_query( $qs2 ); 344 354 if( $q2 ) { 345 355 $numLinks = mysql_result($q2,0); 346 %>356 ?> 347 357 <div class=""> 348 358 <%= printLinkCount( $numLinks ) %> total links, … … 366 376 367 377 <% 368 }378 } 369 379 } else { 370 %> 371 <div> 372 (You do not have any <%= getCatsName() %> yet.<br /> 373 Try adding some, it's much nicer that way!) 374 </div> 375 376 <% 380 include( "modules/new-user-no-tags.inc.php" ); 377 381 } 378 382 %> … … 389 393 /> 390 394 <input type="hidden" name="op" value="createGroup" /> 391 <input type="submit" class="button" value=" create" />395 <input type="submit" class="button" value="Add tag" style="padding: 3px;" /> 392 396 </form> 393 397 </p> 398 399 <?php 400 if( $num_tags > 3 ) { 401 402 ?> 394 403 <p> 395 You can also <big><a href="/delete-unused-tags">Delete any unused tags</a></big>.404 You can also <big><a href="/delete-unused-tags">Delete any unused tags</a></big>. 396 405 </p> 406 <?php 407 } 408 ?> 397 409 </div> 398 410 </div> … … 400 412 <div id="rightColumn"> 401 413 <div id="news" class="box"> 402 <% include _once( "$modules/news-divs.inc.php" ); %>414 <% include( "$modules/news-divs.inc.php" ); %> 403 415 </div> 404 416 … … 407 419 <% include( "$modules/my-recent.inc.php" ); %> 408 420 409 <% include _once( "$modules/random-links.inc.php" ); %>421 <% include( "$modules/random-links.inc.php" ); %> 410 422 </div> 411 423 feedmelinks/install/index.php
r1074 r1299 30 30 31 31 <% 32 if( preg_match( "/MSIE/", $HTTP_USER_AGENT ) && preg_match( "/Windows/", $HTTP_USER_AGENT)) {32 if( $windows || (preg_match( "/MSIE/", $HTTP_USER_AGENT ) && preg_match( "/Windows/", $HTTP_USER_AGENT ))) { 33 33 %> 34 34 <h2>You appear to be using Microsoft Internet Explorer on Windows</h2> 35 35 You have the following install options: 36 36 37 <!-- 37 38 <div class="bullet_box"> 38 39 <div class="bullet_img"> … … 42 43 </div> 43 44 <br clear="all"> 45 --> 44 46 45 47 <div class="bullet_box"> … … 89 91 <a href="/add"><img src="/img/install-options/nomad.jpg" align="right" border="0" /></a> 90 92 </div> 91 <h2>Install nothin, AKA, "Nomad Mode"</h2> 92 To use Feed Me Links in Nomad Mode, click: 93 <h2>Install nothing, AKA, "Nomad Mode"</h2> 94 <p> 95 <small> 96 (Nomad mode is for users on public computers or anywhere that<br /> 97 you'd prefer not to change the browser by installing Feed Me Links)</small> 98 </p> 99 To use Feed Me Links in Nomad Mode, click or bookmark: 93 100 <big> <a href="/add">http://feedmelinks.com/add</a></big> 94 101 <p /> 95 <small>(Nomad mode is for users on public computers or anywhere that<br />96 you'd prefer not to change the browser by installing Feed Me Links)</small>97 102 </div> 98 103 <br clear="all"> … … 106 111 </ul> 107 112 108 Holy God, YES.</h3>113 </h3> 109 114 110 115 111 116 <a name="autoinstall"><br></a> 112 <h2>Installing Feed Me Links on Windows, using Internet Explorer</h2>113 117 114 118 <div style="width: 440px;"> … … 116 120 117 121 <p> 118 <h3>A. Set up your browser</h3>119 <ul>120 <li>Make sure your Links Toolbar is showing. If you cannot see it,121 go to the <b>View > Toolbars > Links</b> menu to make it appear. </li>122 <li>If the "Links" toolbar isn't fully showing, click and hold on123 "Links" while moving it to create more space. </li>124 <li>To remove any unwanted buttons, right click on the name and125 select "Delete". </li>126 </ul>127 128 <h3>B. Run the installer</h3>129 <ul>130 <li>when the window asks whether you want to "Open" or "Save", choose "Open"</li>131 <li><a style="font-size: 24pt; color: red; font-weight: bold; text-decoration: underline;" href="/install/InstallBookmarklet.exe">Install Away!</a></li>132 </ul>133 134 <h3>C. You're done! Bright moments!</h3>135 136 122 137 <h3> Alternative Browsers:Firefox, Mozilla, Safari, Opera, Netscape, etc!</h3>123 <h3>Firefox, Mozilla, Safari, Opera, Netscape, etc!</h3> 138 124 139 125 <ul> feedmelinks/install/traditional-install.php
r381 r1299 4 4 %> 5 5 <title> feedmelinks.com : the ADD LINK button </title> 6 <% include( "$modules/header.inc.php" ); %> 6 <% 7 $noBody = true; 8 include( "$modules/header.inc.php" ); 9 %> 10 11 <script language="javascript"> 12 13 var d=document; var _a=(d.all)?1:0; var l=(!d.getElementById && b.nn)?1:0; 14 function getE(e,f){if(l){f=(f)?f:self;V=f.document.layers;if(V[e])return V[e];for(W=0;W<V.length;)t=getE(e,V[W++]);return t;}if(_a)return d.all[e];return d.getElementById(e);} 15 function writeH(e,h){e=getE(e);if(l){Y=e.document;Y.write(h);Y.close();}else e.innerHTML=h;} 16 17 function remove_onclick_for_all_bookmarklets_on_page( optional_id ) { 18 19 var e = document.getElementById( "killme" ); 20 // isn't working; the href attribute is too long and weird with all the JS, maybe? 21 //alert( e.getAttribute( "href" )); 22 //e.setAttribute( "href", "#" ); 23 //alert( e.getAttribute( "href" )); 24 //alert( "remove_onclick_for_all_bookmarklets_on_page called" ); 25 // no-up until RP is back up 26 } 27 </script> 28 29 <body onLoad="remove_onclick_for_all_bookmarklets_on_page();"> 7 30 8 31 <!-- override the bgcolor cause the screenshots are on white --> … … 14 37 <div style="width: 720px;"> 15 38 16 <h1> Feed Me Links : ADD LINK button.</h1>39 <h1>Using Firefox, Mozilla, Safari*, Opera, and Netscape?</h1> 17 40 18 41 <div style="width: 55em;"> 19 42 20 <div> 21 <p> 22 <img src="img/the-button.gif" align="right" style="margin-left: 10px;" /> 23 <b>Feed Me Links</b> keeps all your links so you can use them from any 24 computer or browser. You can share your links with anyone on the 25 web and check out what sites other people are linking to. All of 26 this works by adding a new button to your browser called "Add Link". 27 28 29 When you visit on a site you want to remember, just click 'Add 30 Link'. The Feed Me Links gnomes will prompt you to name the link and 31 will you save it to a folder of your choosing. Never easier, you 32 salty gumshoe. 43 <big> 44 <ol> 45 <li>Drag the "<a title="Add Link" class="bookmarklet" id="killme" href="<%= getBookmarklet() %>">Add Link</a>" button to your browser's links bar: (DRAG, don't click!) 46 <li>If you're confused, please see the <a href="/install/traditional-install">detailed instructions</a>.</li> 47 <li>Enjoy!</li> 48 </ol> 49 </big> 33 50 34 51 </p> 52 53 <div style="border: 2px solid red; padding: 1em; margin-top: 2em; margin-bottom: 2em; text-align: center;"> 54 <a style="color: white;" href="<%= getBookmarklet() %>"><img src="/img/icon.gif" alt="Add Link" align="middle" border="0" /> Add Link</a><br /> 55 <!-- Drag the "Add Link" button to your browser's Links toolbar: --> 35 56 </div> 36 <br clear="all" />37 <br />38 57 39 <div style="border: 2px solid red; padding: 1em; margin-top: 2em; margin-bottom: 2em;"> 40 <span class="head">To Get It:</span> 41 drag the skull to your browser's Links toolbar: 58 ( * if you see the warning "This link may not be safe", please ignore it. Internet Explorer is not too smart about javascript. ) 42 59 43 <a style="color: white;" href="<%= getBookmarklet() %>"><img src="/img/icon.gif" alt="Add Link" align="middle" border="0" /> Add Link</a><br /> 60 <!-- <img src="img/the-button.gif" align="right" style="margin-left: 10px;" /> --> 61 <h3>So what does all this do, now?</h3> 62 <p> 63 Good question.<p/> 64 <b>Feed Me Links</b> keeps all your links so you can use them from any 65 computer or browser. You can share your links with anyone on the 66 web and check out what sites other people are linking to. All of 67 this works by adding a new button to your browser called "Add Link". 68 </p> 69 <p> 70 When you visit on a site you want to remember, just click 'Add 71 Link'. The Feed Me Links gnomes will prompt you to name the link and 72 will you save it to a folder of your choosing. Never easier, you 73 salty gumshoe. 74 </p> 44 75 45 </div> 46 ( * if you see "this link may not be safe", ignore it. Internet Explorer is not too smart about javascript. ) 76 <p><small> 77 * Safari users please note -- we have found many issues with Safari on Feed Me Links javascript and with browsing in general. We make an effort to make our code compatible with all browsers, but we've seen several issues in the past that can be traced back to how Safari renders web pages. Caveat Browser.</small></p> 78 79 <h2>Using Internet Explorer on Windows?</h2> 80 81 <h3>A. Set up your browser</h3> 82 <ul> 83 <li>Make sure your Links Toolbar is showing. If you cannot see it, 84 go to the <b>View > Toolbars > Links</b> menu to make it appear. </li> 85 <li>If the "Links" toolbar isn't fully showing, click and hold on 86 "Links" while moving it to create more space. </li> 87 <li>To remove any unwanted buttons, right click on the name and 88 select "Delete". </li> 89 </ul> 90 91 <h3>B. Drag the "Add Link" button to your Links toolbar</h3> 92 <ul> 93 <li>If the window asks whether you want to "Open" or "Save", choose "Open"</li> 94 ("Add Link" button above) 95 </ul> 96 97 <h3>C. All done!</h3> 98 47 99 48 100 <p> 49 101 no software will be installed on your computer, and you will NOT 50 102 need to restart your computer or your browser. No animals were 51 harmed in the making of this shhht. </p> </div>103 harmed in the making of this. </p> </div> 52 104 53 105 <h2> feedmelinks/modules/my-recent.inc.php
r1177 r1299 80 80 <table cellpadding="4" cellspacing="0" width="390"> 81 81 <tr> 82 <td class="rowNormal"><br /><center>(<%= $user == $u ? " you have" : "$user has" %> notadded any links yet)</center><br /></td>82 <td class="rowNormal"><br /><center>(<%= $user == $u ? "You haven't" : "$user hasn't" %> added any links yet)</center><br /></td> 83 83 </tr> 84 84 </table> feedmelinks/modules/recent-with-times.inc.php
r1290 r1299 83 83 $tag = mysql_result($q,$i,"tag"); 84 84 $tagID = mysql_result($q,$i,"tagID"); 85 if( isPublicLin e( $id )) {85 if( isPublicLink( $id )) { 86 86 87 87 if( $format == "1-per-line" ) { feedmelinks/modules/utils.inc.php
r1290 r1299 594 594 $pi["r34l"] = true; 595 595 $pi["chrishaney"] = true; 596 $pi[" fairybel"] = true;596 $pi["rugcarpet"] = true; 597 597 598 598 #$pi["rrhobbs"] = true; … … 3532 3532 $class = $class ? "class=\"$class\"" : ""; 3533 3533 $target = $target ? "target=\"$target\"" : ""; 3534 %><a <%= $title ? $title : "" %> href="<%= $url %>" <%= $class %> <%= $target %>><%= $text %></a><%= isPrivate( $id ) ? " " . getLinkLock( $id ) : "" %><% 3534 %><a <%= $title ? $title : "" %> href="<%= $url %>" <%= $class %> <%= $target %>><%= $text %></a><%= isPrivate( $id ) ? " " 3535 . getLinkLock( $id ) : "" 3536 . " " . get_report_link( getOwnerForLink( $id )) %><% 3535 3537 } else if( $id ) { 3536 3538 %><a href="/<%= $id %>"><%= getTitleForLink( $id ) %></a><% … … 3538 3540 $out = ob_get_clean(); 3539 3541 return $out; 3542 } 3543 3544 function get_report_link( $usr ) { 3545 if( ! $usr ) 3546 return ""; 3547 return "[<a href='/diespammersdie/report?user=$usr'>is this spam?</a>]"; 3540 3548 } 3541 3549 feedmelinks/right-click.php
r567 r1299 1 1 <% 2 echo " FOR OUR RIGHT-CLICKIN' BITCHES";2 echo "A service for our right-clickin' Windows users!"; 3 3 if( $op != "add" ) { 4 4 %> … … 31 31 </script> 32 32 </html> 33 <h1> do magical js shit...</h1>33 <h1>Do magical Javascript stuff here...</h1> 34 34 35 35 <!--