Hello

September 10, 2010, 11:01:25 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
What sNews Is: - sNews is a simple, basic, customizable CMS tool suitable for developers with beginner-to-advanced PHP skills. It is also useful to have a good working knowledge of how to work with, set up and manage MySQL databases. sNews is not - geared towards the end-user who knows little or nothing about building and developing PHP-MySQL based websites.
News: Try sNews 1.7 DEMO
 
   Home   Help Search Login Register  
Pages: 1 [2] 3 4 5
  Print  
Author Topic: [MOD/ADDON] Social bookmarking feature (sNews 1.5)  (Read 37972 times)
Mika
Administrator
ULTIMATE member
******

Karma: 9
Posts: 1408


WWW
« Reply #15 on: October 27, 2006, 09:53:18 PM »

please paste the code around this
Quote
file_include(str_replace('[break]', '', $text), $shorten);"
and tell me have you done some other modifications to the article displaying routine in function center()

btw, as you have already seen, I have no problems with it
Logged

http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version
iatbm
Sr. Member
****

Karma: 0
Posts: 256


WWW
« Reply #16 on: October 27, 2006, 10:06:32 PM »

Did not make any modification to snews.php file yet ... this is the first one but not working ... yes I saw it working on your site earlier ... guess images are the problem
Logged

Mika
Administrator
ULTIMATE member
******

Karma: 9
Posts: 1408


WWW
« Reply #17 on: October 27, 2006, 10:20:20 PM »

your htacess maybe?
Logged

http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version
iatbm
Sr. Member
****

Karma: 0
Posts: 256


WWW
« Reply #18 on: October 27, 2006, 10:25:02 PM »

htacces is default that came with snews ....  .... I inserted function soc_bookmark above function center and lang  into language variables and
echo '

'.l('soc_bookmark').': ';
soc_bookmark(db('website').$category.'/'.$r['seftitle'].'/', $r['title'], 'Y');
echo '

';

above file_include(str_replace('[break]', '', $text), $shorten);"
Logged

Mika
Administrator
ULTIMATE member
******

Karma: 9
Posts: 1408


WWW
« Reply #19 on: October 27, 2006, 10:56:58 PM »

btw, mine is below center() but i dont think thats the problem
Logged

http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version
iatbm
Sr. Member
****

Karma: 0
Posts: 256


WWW
« Reply #20 on: October 27, 2006, 11:03:23 PM »

hmm ... have you tried this mod with images ?
Logged

Mika
Administrator
ULTIMATE member
******

Karma: 9
Posts: 1408


WWW
« Reply #21 on: October 27, 2006, 11:07:48 PM »

yes, and found no problem - I've put them all ... omg that looks like an overkill when you set them all to appear Cheesy
Logged

http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version
iatbm
Sr. Member
****

Karma: 0
Posts: 256


WWW
« Reply #22 on: October 27, 2006, 11:15:30 PM »

hmm ... some problems appear .. when I try to access some file in icons directory there is also snews error which should not be there I think ... I changed the folder to icons1 and now it works ... strange very strange hehe
Logged

burtrito
Newbie
*

Karma: 0
Posts: 3


« Reply #23 on: November 02, 2006, 04:29:53 AM »

I made some small changes to get this working on snews 1.4:

The 1.5 mod above uses the following code in the center function:

Code:
echo '

'.l('soc_bookmark').': ';
soc_bookmark(db('website').$category.'/'.$r['seftitle'].'/', $r['title'], 'Y');
echo '

';
If you have 1.4, use the below in the center function:

Code:
echo '

'.l('soc_bookmark').': ';
soc_bookmark($s .s('website').$category.'/'.$r['seftitle'].'/', $r['title'], 'Y');
echo '

';
I added mine below

Code:
if ($category <> s('home')) { $category = $category. "/"; }
I also had to alter the filenames of the icons to include an Uppercase first letter. e.g: Digg.jpg instead of digg.jpg (MyWeb.jpg and BlogMarks.jpg require two case changes)

Use the rest of Mika's code as instructed.
Logged
haelen
Jr. Member
**

Karma: 0
Posts: 62



« Reply #24 on: November 16, 2006, 10:01:27 AM »

This works fine for me *apart* from the fact that the 'icons' folder is not detected.  Has anyone else experienced this. (I did try changing the directory name, as someone else did, but to no avail.)

Tim
Logged
hrih
Newbie
*

Karma: 0
Posts: 3


« Reply #25 on: November 17, 2006, 10:18:40 PM »

Make sure that your icon names are all in small case letters

'blinkbits'=>  instead of  'BlinkBits'=>
Logged
haelen
Jr. Member
**

Karma: 0
Posts: 62



« Reply #26 on: November 17, 2006, 10:36:48 PM »

They are!  Sad
Logged
hrih
Newbie
*

Karma: 0
Posts: 3


« Reply #27 on: November 17, 2006, 11:10:12 PM »

simply correct the code


        'blinkbits'=>'http://www.blinkbits.com/bookmarklets/save.php?v=1&source_url='.$link.'&title='.$title,
        'blogmarks'=>'http://blogmarks.net/my/new.php?mini=1&simple=1&url='.$link.'&title='.$title,
        'del.icio.us'=>'http://del.icio.us/post?v=2&url='.$link.'&title='.$title,
        'digg'=>'http://digg.com/submit?phase=2&url='.$link.'&title='.$title,
        'fark'=>'http://cgi.fark.com/cgi/fark/edit.pl?new_url='.$link.'&title='.$title,
        'furl'=>'http://www.furl.net/storeIt.jsp?t='.$title.'&u='.$link,
        'google'=>'http://www.google.com/bookmarks/mark?op=add&bkmk='.$link.'&title='.$title,
        'ma.gnolia'=>'http://ma.gnolia.com/bookmarklet/add?url='.$link.'&title='.$title,
        'myweb'=>'http://myweb2.search.yahoo.com/myresults/bookmarklet?t='.$title.'&u='.$link,
        'netscape'=>'http://www.netscape.com/submit/?U='.$link.'&T='.$title,
        'netvouz'=>'http://netvouz.com/action/submitBookmark?url='.$link.'&title='.$title,
        'newsvine'=>'http://www.newsvine.com/_tools/seed&save?u='.$link.'&h='.$title,
        'rawsugar'=>'http://www.rawsugar.com/pages/tagger.faces?turl='.$link.'&tttl='.$title,
        'reddit'=>'http://reddit.com/submit?url='.$link.'&title='.$title,
        'scuttle'=>'http://www.scuttle.org/bookmarks.php/maxpower?action=add&address='.$link.'&description='.$title,
        'shadows'=>'http://www.shadows.com/features/tcr.htm?url='.$link.'&title='.$title,
        'simpy'=>'http://simpy.com/simpy/LinkAdd.do?title='.$title.'&href='.$link,
        'slashdot'=>'http://slashdot.org/bookmark.pl?url='.$link.'&title='.$title,
        'spurl'=>'http://www.spurl.net/spurl.php?url='.$link.'&title='.$title,
        'technorati'=>'http://technorati.com/faves?add='.$link.'&title='.$title,
        'wists'=>'http://wists.com/r.php?c=&r='.$link.'&title='.$title,
Logged
iatbm
Sr. Member
****

Karma: 0
Posts: 256


WWW
« Reply #28 on: November 18, 2006, 12:09:27 AM »

Quote from: haelen
This works fine for me *apart* from the fact that the 'icons' folder is not detected.  Has anyone else experienced this. (I did try changing the directory name, as someone else did, but to no avail.)

Tim
hi I feel your pain Cheesy .... it seems that /icons/ folder is used by default server icons so you just make new folder icons1 or whatever and put icons there Wink  .... oh and check out almost every website on the internet has /icons/ folder already there Cheesy .... solucija has it too Wink http://www.solucija.com/icons/
Logged

haelen
Jr. Member
**

Karma: 0
Posts: 62



« Reply #29 on: November 18, 2006, 09:00:55 AM »

Quote from: hrih
simply correct the code
This works perfectly now. (As long as I keep the directory name changed!)


Thanks again,
Tim
 Smiley
Logged
Pages: 1 [2] 3 4 5
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!