Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: [TINY MOD] Chiclets!!!! (Social bookmarking)  (Read 3776 times)

michael kennedy

  • Full Member
  • ***
  • Karma: 3
  • Posts: 207
    • SpektreDesign
[TINY MOD] Chiclets!!!! (Social bookmarking)
« on: January 03, 2007, 06:09:25 pm »

Everyone wants their web site or blog to get a lot of traffic, using chiclets is one way to do that.  It allows people to "socially" boomark your pages, and in this case, your individual articles.

Here's an example. Scroll down to the bottom of this article, and you'll see an array of tiny images at the bottom of the article.

[URL removed]

I'm not the best PHP scripter, but this works for me. If anyone thinks of a better way to do this, or spots a flaw, by all means post it here.

This is a very easy mod to install. There are only three steps. First, create a file called "sociotags.php" and add this code to it:

Code: [Select]
$fulluri = "http://";
$fulluri .= $_SERVER['HTTP_HOST'];
$fulluri .= $_SERVER['PHP_SELF'];
$fulluri .= "?".$_SERVER['QUERY_STRING'];  
?>







Delicious




digg




TailRank




connotea




De.lirio.us




feedmelinks




Ma.gnolia




NewsVine




Reddit




Shadows




YahooMyWeb




 
Next, search for "function comment" inside of snews.php and add this code into the COMMENTS function:

Code: [Select]
if ($freeze_status != 'freezed') {
echo '
';
include('sociotags.php'); // THIS IS ADDED IN HERE
echo '

'.l('addcomment').'

'; // THIS GETS MOVED DOWN HERE
html_input('form', '', 'post', '', '', '', '', '', '', '', '', '', 'post', db('website'), '');
html_input('text', 'name', 'name', '', '* '.l('name'), 'text', '', '', '', '', '', '', '', '', '');
Third, if create a folder called "chiclets" under your images folder. And you can right-click on the chiclet images (shown in the URL above) and save them to this folder.

Your done, upload the snews.php, sociotags.php, and new chiclets folder, and thats it. I'm sure snews can be modifed to include this (as one file) but I did it this way so it'd be easier to add/remove any of them at anytime if I wanted to.

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #1 on: January 04, 2007, 12:43:33 am »

This would make a nice addition to the Social Bookmarking MOD created by Mika if they were combined
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

michael kennedy

  • Full Member
  • ***
  • Karma: 3
  • Posts: 207
    • SpektreDesign
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #2 on: January 04, 2007, 12:56:59 am »

Yeah, his is pretty cool, though mine uses those nice little images.

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #3 on: January 04, 2007, 01:04:42 am »

That's easy enough to implement in Mika's MOD.. what I mean is I would like to see this MOD added to Mikas ;)
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6020
  • Semantically Challenged
    • snews.ca
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #4 on: January 04, 2007, 01:16:34 am »

Quote from: piXelatedEmpire
That's easy enough to implement in Mika's MOD.. what I mean is I would like to see this MOD added to Mikas ;)
Then... by all means... go right ahead and make it so and post it when you're done. :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #5 on: January 04, 2007, 01:37:52 am »

I meant the little images is easy enough to add to Mikas MOD, not mike's MOD.  My php skills are still in their infancy  :P
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

Davor

  • Newbie
  • *
  • Karma: 0
  • Posts: 13
    • Bijeli Anđeli
[TINY MOD] Chiclets!!!! (Social bookmarking)
« Reply #6 on: February 17, 2007, 07:47:37 pm »

Great mod, but it doesn't validate as XHTML 1.0 Transitional.
Here's what you should do:

replace & with &
move CSS to style.css - multiple