1
twitchy
social bookmarking
  • 2007/6/7 14:53

  • twitchy

  • Just popping in

  • Posts: 12

  • Since: 2007/5/22


ive done a site search and havent been able to find this altho i could be using the wrong terminology (again !) i'm looking for a module that'll add digg it, redd it, del.icio.us etc. little icon links to articles. does anybody know of one ?

2
JMorris
Re: social bookmarking
  • 2007/6/7 15:30

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Now, but I can point you in the direction of the next-best thing.

http://addtobookmarks.com/

Just add the script to your theme (and optionally) templates and customize the CSS to match your site.

You can see it in action here (theme integration) and here (block integration)

HTH.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
twitchy
Re: social bookmarking
  • 2007/6/7 16:11

  • twitchy

  • Just popping in

  • Posts: 12

  • Since: 2007/5/22


JMorris to the rescue again

thats just what i'm looking for - I'll give it a go asap

many thx

4
gestroud
Re: social bookmarking
  • 2007/6/7 16:18

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


News 1.53 has all of that included already with no need to work on templates.

Example.

If you need to change the postion, just open up the article.html file and shift it.

5
twitchy
Re: social bookmarking
  • 2007/6/7 18:12

  • twitchy

  • Just popping in

  • Posts: 12

  • Since: 2007/5/22


@ gestroud is this an upgrade from news 1.44 ? as this is what i'm working with. if so is there a way to upgrade without losing all the material so far?

@JMorris sorry i dont have much experience with XOOPS but is it the theme.html of your theme that you add the code too ? as i cant seem to get it working

thx for taking the time out to help me

6
gestroud
Re: social bookmarking
  • 2007/6/7 18:28

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


Total upgrade, no loss of data, instructions included

7
JMorris
Re: social bookmarking
  • 2007/6/7 18:45

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:

twitchy wrote:
@JMorris sorry i dont have much experience with XOOPS but is it the theme.html of your theme that you add the code too ? as i cant seem to get it working

thx for taking the time out to help me


If you're just wanting the social bookmarking for your News articles, use gestroud's approach. It is simple and easy to do.

With the AddTo script, yes, you add it to theme.html. Then just follow the direction.

Add this right before the closing head tag in your theme

<script language="JavaScript" type="text/javascript">
var 
addtoLayout=0;                // 0=Horizontal 1 row, 1=Horizontal 2 rows, 2=Vertical, 3=Vertical text only 
var addtoMethod=1;                // 0=direct link, 1=popup window
var AddURL document.location.href;    // this is the page's URL
var AddTitle escape(document.title);    // this is the page title
</script>


Then, either in your theme, or in a block, or in your templates, add the following.

<script language="JavaScript" src="http://yourdomain.com/addto/addto.js" type="text/javascript"></script>


Make sure you correct the domain and folder name accordingly.

Save, clear templates_c and go. Now your whole site can benefit from social bookmarking, not just the news.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

8
twitchy
Re: social bookmarking
  • 2007/6/7 21:41

  • twitchy

  • Just popping in

  • Posts: 12

  • Since: 2007/5/22


i have the right pathway in this:
<script language="JavaScript" src="http://yourdomain.com/addto/addto.js" type="text/javascript"></script>

but still nothing showing do i need to amend this
<script language="JavaScript" type="text/javascript"
var addtoLayout=0; // 0=Horizontal 1 row, 1=Horizontal 2 rows, 2=Vertical, 3=Vertical text only
var addtoMethod=1; // 0=direct link, 1=popup window
var AddURL = document.location.href; // this is the page's URL
var AddTitle = escape(document.title); // this is the page title
</script>

9
JMorris
Re: social bookmarking
  • 2007/6/7 22:31

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Since you're adding it to your theme, make sure the AddTo files are uploaded to your XOOPS_Root/addto folder and use the following code.

Before the </head> tag
<style type="text/css">
@
import "<{$xoops_url}>/addto/addto.css";
</
style>
<
script language="JavaScript" type="text/javascript">
var 
addtoLayout=0;    // 0=Horizontal 1 row, 1=Horizontal 2 rows, 2=Vertical, 3=Vertical text only 
var addtoMethod=1;    // 0=direct link, 1=popup window
var AddURL document.location.href;    // this is the page's URL
var AddTitle escape(document.title);    // this is the page title
</script>


I did goof and forget the CSS part. Sorry 'bout that.

Then, in your theme where you want the icons to show up, add this
<script language="JavaScript" src="<{$xoops_url}>/addto/addto.js" type="text/javascript"></script>


Save.
Clear the templates_c folder.
Customize the CSS of <{$xoops_url}>/addto/addto.css to match your site's colors.

The example above is a horizontal layout. See the comments of the javascript to reorient the icons.

HTH.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

10
twitchy
Re: social bookmarking
  • 2007/6/8 9:16

  • twitchy

  • Just popping in

  • Posts: 12

  • Since: 2007/5/22


sorry JMorris to keep bothering you. I still cant get it working :(

do i add

<style type="text/css">
@import "<{$xoops_url}>/addto/addto.css";
</style>
<script language="JavaScript" type="text/javascript">
var addtoLayout=0; // 0=Horizontal 1 row, 1=Horizontal 2 rows, 2=Vertical, 3=Vertical text only
var addtoMethod=1; // 0=direct link, 1=popup window
var AddURL = document.location.href; // this is the page's URL
var AddTitle = escape(document.title); // this is the page title
</script>


to theme.html too ? (thats what ive done and still cant get it working )

Login

Who's Online

169 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits