php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#316356 - 11/25/07 05:13 AM Re: ubb.social [Re: Ian_W]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Okay - the problem is the subject of the post is being surrounded by....

<span id="subject0">subject placed correctly here</span>

Code:
<a href="http://www.google.com/bookmarks/mark?op=edit&bkmk=http://www.fansfocus.com/forums/ubbthreads.php/ubb/showflat/Number/1031688#Post1031688&amp;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&amp;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&amp;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....)

Top
#316357 - 11/25/07 07:45 AM Re: ubb.social [Re: Ian_W]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
yes, give me today to look it over smile
_________________________
- Allen wavey
- What Drives You?

Top
#316358 - 11/25/07 08:04 AM Re: ubb.social [Re: AllenAyres]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Okay - I think I have cracked this smile

In showflat.inc.php

replace

$postrow[$i]['Subject'] = "<span id=\"subject$i\">$Subject</span>";


with

$postrow[$i]['Subject'] = "<span id=\"subject$i\">$Subject</span>";
$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....)

Top
#316366 - 11/26/07 10:01 AM Re: ubb.social [Re: Ian_W]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
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}&amp;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&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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}&amp;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'] = "<span id=\"subject$i\">$Subject</span>"; with $postrow[$i]['Subject'] = "<span id=\"subject$i\">$Subject</span>"; $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....)

Top
#316368 - 11/26/07 10:16 AM Re: ubb.social [Re: Ian_W]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
If adding to each post - it might be better to locate it above
<a href="#top">{$lang.TOP}</a> on the post_side.tpl, adding a <br /> 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....)

Top
#316369 - 11/26/07 11:54 AM Re: ubb.social [Re: Ian_W]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
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....)

Top
#317108 - 05/30/08 10:41 PM Re: ubb.social [Re: Ian_W]
willing Offline
User

Registered: 04/17/07
Posts: 42
Hi Ian I'm really interested in this.

Does it work on 7.3?

Thanks

Top
#317187 - 06/09/08 10:28 PM Re: ubb.social [Re: willing]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
It should work fine smile
_________________________
- Allen wavey
- What Drives You?

Top
#317188 - 06/09/08 10:51 PM Re: ubb.social [Re: AllenAyres]
willing Offline
User

Registered: 04/17/07
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

Top
#317197 - 06/11/08 03:20 AM Re: ubb.social [Re: willing]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
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....)

Top
#317198 - 06/11/08 03:36 AM Re: ubb.social [Re: Ian_W]
willing Offline
User

Registered: 04/17/07
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

Top
#317216 - 06/11/08 11:14 PM Re: ubb.social [Re: willing]
willing Offline
User

Registered: 04/17/07
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

Top
#317220 - 06/12/08 11:56 PM Re: ubb.social [Re: willing]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
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?

Top
#317221 - 06/13/08 04:26 AM Re: ubb.social [Re: AllenAyres]
willing Offline
User

Registered: 04/17/07
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

Top
#317310 - 06/27/08 08:07 PM Re: ubb.social [Re: willing]
willing Offline
User

Registered: 04/17/07
Posts: 42
I hope a bit of a bump is acceptable (if not, I understand)!

Any word on this at all friendly folk!

laugh

Top
#317404 - 07/13/08 11:11 PM Re: ubb.social [Re: willing]
willing Offline
User

Registered: 04/17/07
Posts: 42
OK. Anyone able to do this for me - will pay!

Thanks

Top
#317411 - 07/16/08 08:51 AM Re: ubb.social [Re: Ian_W]
Crasher Offline
Lurker

Registered: 10/18/07
Posts: 6
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

Top
#317413 - 07/17/08 09:36 AM Re: ubb.social [Re: Crasher]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
If I get time I'll look at this today smile
_________________________
- Allen wavey
- What Drives You?

Top
#317414 - 07/17/08 09:39 AM Re: ubb.social [Re: Ian_W]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
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?

Top
#317417 - 07/17/08 06:29 PM Re: ubb.social [Re: AllenAyres]
willing Offline
User

Registered: 04/17/07
Posts: 42
Thanks I will look forward to that!

smile

Top
Page 2 of 3 < 1 2 3 >


Who's Online
0 registered (), 27 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks