Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#311028 08/03/2006 10:38 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Name: ubb.social - Definition

Author: Allen Ayres

Version: 7.0b

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 smile 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

Version History:
- 08/02/2006 - initial release
- 01/09/2007 - FULL_URL bug fixed, wordlets done smile
Attachments
2247-ubb.social.zip (1.69 KB, 125 downloads)

Last edited by AllenAyres; 01/09/2007 9:34 PM. Reason: Updated to 7.0b

- Allen wavey
- What Drives You?
Sponsored Links
AllenAyres #311029 08/03/2006 10:43 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Here's an example screen shot:
Attachments
2248-example.gif (6.34 KB, 370 downloads)


- Allen wavey
- What Drives You?
AllenAyres #312335 12/25/2006 6:49 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Cool - thanks smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #312347 12/26/2006 12:50 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I like it... I feel sorry for those who get digged though... I've heard of digging's completley downing servers lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312353 12/26/2006 1:18 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
That happens often - but you can't hardly buy that kinda advertisement smile


- Allen wavey
- What Drives You?
Sponsored Links
AllenAyres #312370 12/26/2006 7:58 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
haha, yeh but on a shared hosting enviroment it can be murder, especially on the helpdesk workers lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312481 01/04/2007 8:46 AM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
When I click on the link i get this... thining this is not right...
Attachments
2333-Picture6.png (19.2 KB, 364 downloads)

StanCA #312484 01/04/2007 9:24 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Doesn't look right, it should be loading the url to your forum in there

http://www.clubadventist.com/forum/ubbthreads.php/etc

I'd double-check your control panel settings to see if you use a relative url or the full one.


- Allen wavey
- What Drives You?
AllenAyres #312486 01/04/2007 9:26 AM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Where do I find that? am looking,,,,,,,

StanCA #312487 01/04/2007 1:00 PM
Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
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.

Sponsored Links
chillin #312490 01/04/2007 5:55 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Allen, you are using BASE_URL, not FULL_URL, hence his problem with the urls, everyone should be getting that problem unless their base_url is wrong

chillin #312492 01/04/2007 6:38 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Originally Posted by chillin
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312493 01/04/2007 6:40 PM
Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
and we use dreamhost! i was pretty impressed/amazed. Kudos to Rick on the new version.

chillin #312498 01/04/2007 8:28 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Oh wow, i've heard a buncha bad things about them too in reguards to stability, so it really is crazy in your case lol


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312502 01/04/2007 10:23 PM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
does anyone have this working??

Please post url
thanks

Last edited by StanCA; 01/04/2007 10:23 PM.
Ian Spence #312551 01/06/2007 9:24 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
The below fixes it, I'll update the first post once I get my computer back on Monday smile

Originally Posted by Ian Spence
Allen, you are using BASE_URL, not FULL_URL, hence his problem with the urls, everyone should be getting that problem unless their base_url is wrong


- Allen wavey
- What Drives You?
AllenAyres #312582 01/09/2007 9:35 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Bug fixed and Wordlets done thumbsup


- Allen wavey
- What Drives You?
AllenAyres #312588 01/10/2007 12:02 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Lookin Goot!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
AllenAyres #316354 11/24/2007 8:53 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
zip file attached with various icons I have collected for social networking sites - maybe of use to someone smile
Attachments
social_icons.zip (16.3 KB, 262 downloads)
SHA1: 119209c5bd175018ccaeede4ac3feafb4a9096f4


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316355 11/24/2007 11:21 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay - maybe I am an idiot - but can anyone tell me why this doesn't work? What have I missed?

Obviously under 7.2.x you need to alter post_side.tpl and post_top.tpl - and I have simplified the code - but it should still work...

Code
{if $smarty.section.post.iteration == 1}
<br /><br /> <span class="small">
<a 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}#Post{$postrow[post].Number}&title={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/delicious.gif" border="0" alt="Add {$postrow[post].Subject} to Del.icio.us" /></a>
<a 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}#Post{$postrow[post].Number}&title={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/digg.gif" border="0" alt="Digg {$postrow[post].Subject}" /></a>
<a 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}#Post{$postrow[post].Number}&t={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/yahoomyweb.gif" border="0" alt="Add {$postrow[post].Subject} to Yahoo My Web" /></a>
<a 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}#Post{$postrow[post].Number}&title={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/googlebookmarks.gif" border="0" alt="Add {$postrow[post].Subject} to Google Bookmarks" /></a>
<a 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}#Post{$postrow[post].Number}&t={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/facebook.gif" border="0" alt="Add {$postrow[post].Subject} to Facebook" /></a>
<a 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}#Post{$postrow[post].Number}&title={$postrow[post].Subject}" target="_blank"><img src="{$config.FULL_URL}/images/social/stumbleupon.gif" border="0" alt="Add {$postrow[post].Subject} to Stumbleupon" /></a>
</span>
{/if}

However all I get are html links, then the image. confused


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316356 11/25/2007 6:13 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay - the problem is the subject of the post is being surrounded by....

subject placed correctly here

Code

<a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1031688#Post1031688&title=<span id="subject0">Email addresses - please update</span>" target="_blank"><img src="http://www.fansfocus.com/forums/images/social/googlebookmarks.gif" border="0" alt="Add <span id="subject0">Email addresses - please update</span> to Google Bookmarks" /></a>
<a href="http://www.facebook.com/sharer.php?u=http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1031688#Post1031688&t=<span id="subject0">Email addresses - please update</span>" target="_blank"><img src="http://www.fansfocus.com/forums/images/social/facebook.gif" border="0" alt="Add <span id="subject0">Email addresses - please update</span> to Facebook" /></a>
<a href="http://www.stumbleupon.com/submit?url=http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1031688#Post1031688&title=<span id="subject0">Email addresses - please update</span>" target="_blank"><img src="http://www.fansfocus.com/forums/images/social/stumbleupon.gif" border="0" alt="Add <span id="subject0">Email addresses - please update</span> to Stumbleupon" /></a>

Hence the links rather than just the image - also of course the title submitted will be incorrect.

I cannot trace how to remove the span from around the subject....

Is there any easy way?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316357 11/25/2007 8:45 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
yes, give me today to look it over smile


- Allen wavey
- What Drives You?
AllenAyres #316358 11/25/2007 9:04 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay - I think I have cracked this smile

In showflat.inc.php

replace

$postrow[$i]['Subject'] = "$Subject";


with

$postrow[$i]['Subject'] = "$Subject";
$postrow[$i]['SubjectSocial'] = "$Subject";

Then in the links use

{$postrow[post].SubjectSocial} instead of {$postrow[post].Subject}

However you also need to remove

#Post{$postrow[post].Number}

from each link, as the # seems to stop the title from being recognised within the bookmarking submission forms.

I have it working now at say...

http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1212027/

I can find no way though to add in the #postnumber

There may be another way to do this though - but at least it works smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316366 11/26/2007 11:01 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
This is my latest version smile

Code
<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.

Thanks to Allen for the original posts smile



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316368 11/26/2007 11:16 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
If adding to each post - it might be better to locate it above
{$lang.TOP} on the post_side.tpl, adding a
just above this line.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #316369 11/26/2007 12:54 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
In case anyone goes to my forums - I have now moved mine to the left of the edit/reply/quote buttons.

http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1276872/Main/113813/#Post1276872

This requires adding an extra class, otherwise there will be a short line to the left of the buttons - and changing the colspan on the post page.

In hindsight this is probably the best place for it - unless anyone else has any suggestions / comments....



Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #317108 05/30/2008 10:41 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Hi Ian I'm really interested in this.

Does it work on 7.3?

Thanks

willing #317187 06/09/2008 10:28 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It should work fine smile


- Allen wavey
- What Drives You?
AllenAyres #317188 06/09/2008 10:51 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Great!

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!)

Thanks

willing #317197 06/11/2008 3:20 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
I did alter this a bit and tweaked it a little.

I have not yet re-implemented this on 7.3 - sorry.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Ian_W #317198 06/11/2008 3:36 AM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
So should I use what you posted below? Not sure which files to change. Oh dear I wish I knew more.... smile

Thanks

willing #317216 06/11/2008 11:14 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Anyone able to put together what needs to be done for 7.3 in a simple way? (Small, sorry) donations possible as I would really like to get this going! smile

Thank you

willing #317220 06/12/2008 11:56 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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.


- Allen wavey
- What Drives You?
AllenAyres #317221 06/13/2008 4:26 AM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
OK thank you.
Would be really great I would really like to implement this but don't want to mess anything up!

smile

willing #317310 06/27/2008 8:07 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
I hope a bit of a bump is acceptable (if not, I understand)!

Any word on this at all friendly folk!

laugh

willing #317404 07/13/2008 11:11 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
OK. Anyone able to do this for me - will pay!

Thanks

Ian_W #317411 07/16/2008 8:51 AM
Joined: Oct 2007
Posts: 10
Newbie
Newbie
Offline
Joined: Oct 2007
Posts: 10
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 smile ).


I don't do a lot, but i do do this
Crasher #317413 07/17/2008 9:36 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
If I get time I'll look at this today smile


- Allen wavey
- What Drives You?
Ian_W #317414 07/17/2008 9:39 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Originally Posted by Ian_W
This is my latest version smile

I have added "no follow" to each link



Why do you use the nofollow tag? Shouldn't make any difference in the number of bots on your own site, eh? Just wondering about the strategy smile


- Allen wavey
- What Drives You?
AllenAyres #317417 07/17/2008 6:29 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Thanks I will look forward to that!

smile

willing #317482 08/04/2008 4:37 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
OK, I updated the download in the original post - I really didn't change much from the original. I did:

- remove the end post#, as it was preventing the subject from loading into digg and delicious correctly. It's not needed if you are only linking the starting post in a topic (as it is written)
- removed the extra span tags since they're redundant now
- update instructions for 7.3

I only included instructions for postside.tpl, they're pretty much identical for posttop.tpl if you want to put them there, I've never seen anyone use that tho.

I only included the 2 original sites too, if you want to customize this Ian's code is pretty easy to follow smile

I didn't include the nofollow tags - it can only help your site's SE rankings to allow the bots to see good links to and hopefully from the huge networking sites.


- Allen wavey
- What Drives You?
AllenAyres #317489 08/04/2008 11:19 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Hehe, I love how we reinvent the wheel in our own ways here wink... Seems we all like things working a different way wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317490 08/04/2008 11:29 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
good stuff, Allen [Linked Image]

sirdude #317491 08/05/2008 9:47 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Thanks, it looks like it adds the links to the post at the top of each page in a topic. hmmm...


- Allen wavey
- What Drives You?
AllenAyres #317493 08/05/2008 3:23 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
that's cuz you are using
PHP Code
{if $smarty.section.post.iteration == 1} 

which specifies the 1st post on the page..

just remove the {if ...} and the {/if} and it will show on all of em.. wink


sirdude #317494 08/05/2008 8:02 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
My question is, why list it on every post when you're simply bookmarking the thread?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #317495 08/05/2008 10:25 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
for me, it's obvious -- ease of use.

you can be reading a post that is really good.. maybe not the 1st post in the thread.. you like it, you 'digg it'.

no need to go to Top and book mark.. just digg it right there.

that's how i have my social stuff done. (i use scriptac, but it's the same idea)...

i css the 'Top' link to the right and have the little bookmark bar on the left for each post in the thread.

workie nicie wink

sirdude #317496 08/06/2008 1:00 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Thanks will take a look.

Is 2247-ubb.social the latest file by the way? Thanks

willing #317497 08/06/2008 1:01 PM
Joined: Apr 2007
Posts: 42
User
User
Offline
Joined: Apr 2007
Posts: 42
Sorry I might have missed this, how do we add Facebook and others? Does what is posted earlier on need adjustment?

Thanks

sirdude #317498 08/06/2008 1:15 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I keep the zip in the first post updated with current code, to avoid confusion - there'll be a time-stamp on files within too. I'll take a look at facebook code, but it should be about the same.

Originally Posted by sirdude
that's cuz you are using
PHP Code
{if $smarty.section.post.iteration == 1} 

which specifies the 1st post on the page..

just remove the {if ...} and the {/if} and it will show on all of em.. wink


hmm... kinda clutters up the interface more. I notice vb just puts a bar across the bottom of the page to do this social linking thing. Don't really want another bar tho, I'll have to think about it.


- Allen wavey
- What Drives You?
AllenAyres #317499 08/06/2008 1:35 PM
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
yah, Allen i can see your point and i believe it's a personal pref thing actually.

what i've done with a similar mod is allow the user to decide what they'd like to see.. i don't have a screenie, but can show where i put it for the single one..

[Linked Image]

the javascript bar is to the right of the 'using ubbcode' pulldown at the top of the re-designed quick reply box.. another spot for the single one is under the checkbox for 'enable sig'

some want just the one link dealio.. others want it in every post (although it is the same link to the topic) for convenience..

so i can see you quandry in a sense not knowing what the 'optimum' solution would be for MOST peeps wink

i ended up just making it a user preference, so they could choose: 1) every post 2) quick reply re-designed 3) never show

sirdude #317700 12/18/2008 7:28 AM
Joined: Oct 2007
Posts: 4
Lurker
Lurker
Offline
Joined: Oct 2007
Posts: 4
I have a need for the other way around!
A ubb.social that is placed in other news websites, and when someone clicks on the Icon, he will add NEWS, or information in the UBB Forum (not from the Forums to some Digg or similar, but from some news/blog website - add the article in the Forum).

Any idea how to do this? Or at least, what are the tables that are modified in an Insert Post in a Forum in UBB.

Placebo #317702 12/19/2008 12:47 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I think a year and 2 months before your first post is a new record smile

I understand the question, but don't see how it's possible, outside maybe a browser toolbar widget. Otherwise you'd have to convince these other sites to add code to post their articles to your forum.


- Allen wavey
- What Drives You?
AllenAyres #317704 12/21/2008 8:30 AM
Joined: Oct 2007
Posts: 4
Lurker
Lurker
Offline
Joined: Oct 2007
Posts: 4
Thanks for replying!
Yes, there is some time between my registration and my post. The good news is that there are ppl reading here... smile

Back to the my question: It should work just the same way you post to DIgG.it, Facebook and others. A lot of website offers this feature of sharing somewhere else. It would be good to share content in the UBB Forum as well.
I would really need this feature for my message board. And yes, the other sites can add some code to post in my (UBB)forum. This will increase the interest and traffic.

I was trying to do this myself, but I need to know all the tables are affected by inserting a new post in UBB. I am sure it is not only the ubb_post table. There should be some others as well.
I also think this is a good feature for UBB in the next realease. It will increase the chance of ppl contributing with article to the UBB Forums.

Placebo #317732 01/08/2009 5:25 AM
Joined: Oct 2007
Posts: 4
Lurker
Lurker
Offline
Joined: Oct 2007
Posts: 4
Hey Allen smile Please share your opinion on this topic

Placebo #318022 07/04/2009 1:15 PM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
So is this working now for the latest version of threads?


AND is it the download that is in post number 1?

StanCA #318023 07/08/2009 1:56 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Hi Stan, I haven't tested it recently, but it should work fine. No major changes were made that would affect this. Let me know if you run into issues.


- Allen wavey
- What Drives You?
AllenAyres #318024 07/08/2009 1:57 PM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Does it do facebook?


Thanks

Placebo #318025 07/08/2009 2:02 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Originally Posted by Placebo
Hey Allen smile Please share your opinion on this topic


Once permission checks are done, I believe the posts table is the only one affected, unless you want to update post counts.


- Allen wavey
- What Drives You?
StanCA #318026 07/08/2009 3:34 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Originally Posted by StanCA
Does it do facebook?


Thanks
You might find the AddThis mod useful; it includes a LOT of various bookmarking sites...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #318027 07/11/2009 11:04 AM
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
just installed the AddThis thanks

StanCA #318264 10/12/2009 2:19 PM
Joined: May 2008
Posts: 7
Lurker
Lurker
Offline
Joined: May 2008
Posts: 7
I just added the set on my forums -

http://forums.bellaonline.com/ubbthreads.php?ubb=showflat&Number=555859

it's working fine on UBB 7.5.2. There are 2 downsides:

1) I have non-search-engine-friendly URLs so they have & and ? in them. That screws up the social networks which truncate all of that. So the links only point to the main forum page. Is there any way to escape those so that they get to the destination properly? You can click on one to see what I mean.

2) with the location of the icons underneath the profile they seem to indicate you're bookmarking the PERSON not the POST. Any way to move the icons over to near the other post related buttons (edit etc)?



and then the {if $type == "pm"} comes after that.


Last edited by bellaonline; 10/12/2009 3:48 PM.
bellaonline #318265 10/12/2009 2:45 PM
Joined: May 2008
Posts: 7
Lurker
Lurker
Offline
Joined: May 2008
Posts: 7
OK here are the full details of how I got a row of icons next to my edit buttons:

1) Upload the many icons (including a twitter.gif) to your social/threads images directory
2) Make sure spider-friendly URLs are on and you have full URLs SET
3) in showflat.inc.php look for: $postrow[$i]['Subject'] = $results[$i]['POST_SUBJECT'];
add in after that: $postrow[$i]['SubjectSocial'] = $results[$i]['POST_SUBJECT'];

4) in /templates/default/postside.tpl:

Find this: {$postrow[post].Signature}

Look below it for the
right before the edit buttons start up. Change that TD into the below code, to create a pair of side-by-side columns.






target="_blank">Add {$postrow[post].SubjectSocial} to Twitter


target="_blank">Add {$postrow[post].SubjectSocial} to Facebook


target="_blank">Add {$postrow[post].SubjectSocial} to Del.icio.us


target="_blank">Digg {$postrow[post].SubjectSocial}

Add {$postrow[post].SubjectSocial} to Yahoo My Web
title="Add {$postrow[post].SubjectSocial} to Yahoo My Web" />

Add {$postrow[post].SubjectSocial} to <br><br>Google Bookmarks
Add {$postrow[post].SubjectSocial} to Stumbleupon
title="Add {$postrow[post].SubjectSocial} to Stumbleupon" />


target="_blank">Add {$postrow[post].SubjectSocial} to Reddit



after this point you should have all the edit buttons, and then after all of them you need to close the new inner table plus the regular one with:




Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)