Info: Most are familiar with the mega-sites www.digg.com and http://del.icio.us - social networking sites that allow users to link articles/sites/etc that are interesting, funny, discussable This mod adds icons to the first post in a topic so it can be added as a social bookmark to digg or del.icio.us. Those making the links at those sites will need accounts there.
To Do: Adding to showthreaded. Maybe add for other sites as well like slashdot
Nice mod Allen! FWIW, our site essentially got 'digged'/'slashdotted' during a recent climbing accident in Oregon and we are on a shared server. UBB help up extremely well with over 625 users online at once hammering away for a few days steady.
Nice mod Allen! FWIW, our site essentially got 'digged'/'slashdotted' during a recent climbing accident in Oregon and we are on a shared server. UBB help up extremely well with over 625 users online at once hammering away for a few days steady.
Thats crazy, I got hit by digg once, vps was down for 3 days lol...
<br /><br /> <a rel="nofollow" href="http://del.icio.us/post?url={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&title={$postrow[post].SubjectSocial}" title="Add {$postrow[post].SubjectSocial} to del.icio.us" target="_blank"><img src="{$config.FULL_URL}/images/social/delicious.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Del.icio.us" title="Post {$postrow[post].SubjectSocial} to Del.icio.us" /></a> <a rel="nofollow" href="http://digg.com/submit?phase=2&url={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&title={$postrow[post].SubjectSocial}" title="Digg {$postrow[post].SubjectSocial}" target="_blank"><img src="{$config.FULL_URL}/images/social/digg.gif" border="0" alt="Digg {$postrow[post].SubjectSocial}" title="Digg {$postrow[post].SubjectSocial}" /></a> <a rel="nofollow" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&t={$postrow[post].SubjectSocial}" title="Post {$postrow[post].SubjectSocial} to Yahoo My Web" target="_blank"><img src="{$config.FULL_URL}/images/social/yahoomyweb.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Yahoo My Web" title="Add {$postrow[post].SubjectSocial} to Yahoo My Web" /></a> <a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&bkmk={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&title={$postrow[post].SubjectSocial}" title="Post {$postrow[post].SubjectSocial} to Google Bookmarks" target="_blank"><img src="{$config.FULL_URL}/images/social/googlebookmarks.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Google Bookmarks" title="Add {$postrow[post].SubjectSocial} to Google Bookmarks" /></a> <a rel="nofollow" href="http://www.facebook.com/sharer.php?u={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&t={$postrow[post].SubjectSocial}" title="Post {$postrow[post].SubjectSocial} to Facebook" target="_blank"><img src="{$config.FULL_URL}/images/social/facebook.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Facebook" title="Add {$postrow[post].SubjectSocial} to Facebook " /></a> <a rel="nofollow" href="http://www.stumbleupon.com/submit?url={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&title={$postrow[post].SubjectSocial}" title="Post {$postrow[post].SubjectSocial} to Stumbleupon" target="_blank"><img src="{$config.FULL_URL}/images/social/stumbleupon.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Stumbleupon" title="Add {$postrow[post].SubjectSocial} to Stumbleupon" /></a> <a rel="nofollow" href="http://reddit.com/submit?url={$config.FULL_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showflat{$var_sep}Number{$var_eq}{$postrow[post].Number}%2F%23Post{$postrow[post].Number}&title={$postrow[post].SubjectSocial}" title="Post {$postrow[post].SubjectSocial} to Reddit" target="_blank"><img src="{$config.FULL_URL}/images/social/reddit.gif" border="0" alt="Add {$postrow[post].SubjectSocial} to Reddit" title="Add {$postrow[post].SubjectSocial} to Reddit" /></a>
Notes:-
I am only using icons (which I have contained within /images/social), so have removed the div command. I am adding to all posts so have removed the smarty command, which limits it to the first post on a page only. I have added "no follow" to each link I have changed #Post{$postrow[post].Number} to %2F%23Post{$postrow[post].Number} - this allows the full post URL to go through to the bookmarks (it also ensures that the title of the post is carried over as well (which was not happening before)) I have added a few more links - I am not 100% sure which sites are the most popular. This is not updated with the language files though. Words are hardcoded. This needs to be added to post_top.tpl and post_side.tpl to show up in the posts for 7.2 and above. In showflat.inc.php replace $postrow[$i]['Subject'] = "$Subject"; with $postrow[$i]['Subject'] = "$Subject"; $postrow[$i]['SubjectSocial'] = "$Subject";
I have tested on yahoo, google & digg - so can only assume others work as well.
With the additions and things above from 7.0 to 7.3, I am a little confused as to what exactly needs to be done and in which files... Can someone hand hold me through what needs to be changed for this for the 7.3 version (don't want to do anything to mess it all up!)
I haven't looked at this in a while willing - I am working on the links project for now, if you haven't been assisted by the time I get through there I can look at this, but it's going to be a while... maybe Ian has time.
I'd like to see this up and running on 7.3 as well. I've not yet moved my boards to 7.3 so i may implement it now and then reimplement once the fix for 7.3 is available (pretty please ).
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.