Skocz do zawartości


- - - - -

Modyfikacje IP.Board 3.0.x: Dodatkowe serwisy w "podziel się"


  • Proszę się zalogować aby odpowiedzieć
10 odpowiedzi na ten temat

#1 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5435 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 11 wrzesień 2010 - 16:56

Nazwa pliku: Dodatkowe serwisy w "podziel się"
Plik Dodał: Spanner
Plik wysłano: 11 wrz 2010
Plik zaktualizowany: 11 wrz 2010
Kategoria pliku: Modyfikacje IP.Board 3.0.x
Typ:: Dodatek
Wersja:: 1.0.0

Author: Spanner (IPSBeyond.pl)

Opis: Dodatkowe serwisy w "podziel się".
Description: Additional services in "Share Links".

Serwisy/Services:

  • Ask.com
  • Bebo
  • BlinkList
  • Blip
  • BlogMarks
  • Bloglines
  • co-robie.pl
  • Dzone
  • Fark
  • Flaker
  • FriendFeed
  • Furl
  • Gary's Guide
  • GG
  • Google Bookmarks
  • Grono
  • Kaboodle
  • Mister Wong
  • MySpace
  • Nasza Klasa
  • Netvouz
  • Newsvine
  • Orkut
  • Simpy
  • Slashdot
  • Spurl
  • Squidoo
  • StumbleUpon
  • Stylehive
  • Surfpeople
  • Technorati
  • Windows Live
  • Wykop
  • Yahoo! Bookmarks

Instukcja instalacji/Instalation

[IP.Board 3.1.x] Nowy serwis "podziel się"

Instrukcja po polsku: Dodatkowe serwisy w "podziel się"
English instruction: Additional services in "Share Links"

Kliknij tutaj aby pobrać plik

#2 TurkuSevdali_Aska

TurkuSevdali_Aska

    Coś tam wie o IP.Board

  • Premium
  • PipPip
  • 434 postów
  • Płeć:Kobieta
  • Skąd:Kraków
  • Wersja:IP.Board 3.1.x

Napisany 26 wrzesień 2010 - 01:15

Czy można wybrać które serwisy chce się dodać?
Türkülerdir Sevdam...

#3 Duke_

Duke_

    Umie pomóc

  • Moderator Globalny
  • 1461 postów
  • Płeć:Mężczyzna
  • Skąd:Zweibrücken - Niemcy
  • Wersja:IP.Board 3.2.x

Napisany 26 wrzesień 2010 - 08:49

oczywiscie, ze mozna
Dodany obrazek 2.5 V6 i500 by Duke_ - Black Pearl

Dodany obrazek

Pomoglem ? Podziekuj naciskajac " + " to nic nie kosztuje a dobrze o Tobie swiadczy ;)

#4 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5435 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 26 wrzesień 2010 - 17:49

tak dodajesz ręcznie tylko te serwisy, które chcesz używać

#5 TurkuSevdali_Aska

TurkuSevdali_Aska

    Coś tam wie o IP.Board

  • Premium
  • PipPip
  • 434 postów
  • Płeć:Kobieta
  • Skąd:Kraków
  • Wersja:IP.Board 3.1.x

Napisany 26 wrzesień 2010 - 20:37

Dzięki za info.
Türkülerdir Sevdam...

#6 Duke_

Duke_

    Umie pomóc

  • Moderator Globalny
  • 1461 postów
  • Płeć:Mężczyzna
  • Skąd:Zweibrücken - Niemcy
  • Wersja:IP.Board 3.2.x

Napisany 26 wrzesień 2010 - 23:04

Zobacz postTurkuSevdali_Aska, o 26 wrzesień 2010 - 20:37, powiedział:

Dzięki za info.

nie ma za co :)
Dodany obrazek 2.5 V6 i500 by Duke_ - Black Pearl

Dodany obrazek

Pomoglem ? Podziekuj naciskajac " + " to nic nie kosztuje a dobrze o Tobie swiadczy ;)

#7 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5435 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 04 październik 2010 - 16:53

Zapytanie automatyzujące instalację:

INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Ask.com', 'ask', 1, 12, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Bebo', 'bebo', 1, 13, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('BlinkList', 'blink_list', 1, 14, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Blip', 'blip', 1, 15, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('BlogMarks', 'blog_marks', 1, 16, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Bloglines', 'bloglines', 1, 17, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('co-robie.pl', 'co_robie', 1, 18, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Dzone', 'dzone', 1, 19, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Fark', 'fark', 1, 20, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Flaker', 'flaker', 1, 21, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('FriendFeed', 'friend_feed', 1, 22, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Furl', 'furl', 1, 23, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Garys Guide', 'garys_guide', 1, 24, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('GG', 'gg', 1, 25, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Google Bookmarks', 'google_bookmarks', 1, 26, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Grono', 'grono', 1, 27, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Kaboodle', 'kaboodle', 1, 28, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Mister Wong', 'mister_wong', 1, 29, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('MySpace', 'myspace', 1, 30, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Nasza Klasa', 'nasza_klasa', 1, 31, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Netvouz', 'netvouz', 1, 32, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Newsvine', 'newsvine', 1, 33, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Orkut', 'orkut', 1, 34, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Simpy', 'simpy', 1, 35, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Slashdot', 'slashdot', 1, 36, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Spurl', 'spurl', 1, 37, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Squidoo', 'squidoo', 1, 38, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('StumbleUpon', 'stumble_upon', 1, 39, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Stylehive', 'stylehive', 1, 40, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Surfpeople', 'surfpeople', 1, 41, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Technorati', 'technorati', 1, 42, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Windows Live', 'windows_live', 1, 43, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Wykop', 'wykop', 1, 44, 1);
INSERT INTO ibf_core_share_links (share_title, share_key, share_enabled, share_position, share_canonical) VALUES ('Yahoo! Bookmarks', 'yahoo_bookmarks', 1, 45, 1);

Należy zmienić tylko prefix ibf_ na taki jak mamy w naszej bazie

#8 PersonalMode

PersonalMode

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 2 postów
  • Płeć:Mężczyzna
  • Wersja:IP.Board 3.1.x

Napisany 27 luty 2011 - 11:34

Witam, Dzięki Dodałem Yahoo, Furl, MySpace, ... z zmianę.

Jednak ja również zamierza dodać do udziału Blogger/Blogspot, ale nie mogę.

I konsultacji z plików facebook, twitter,... umieszczone w katalogu /admin/sources/classes/share/plugins/

Kod bazowy jest zawsze taki sam, ale trzymałem się linii 85.

Czy możesz mi pomóc?

Dziękuję

-------------------------------------------------------------

Hi,

Thank you to your modification, I could add Yahoo, Furl, MySpace,....

However, I also try to add a share link t Blogger/Blogspot, but I do find how.

I checked files for facebook, twitter,... which are in /admin/sources/classes/share/plugins/

The code is always the same but I stick in the line 85

Can you help me?

Thanks

#9 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5435 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 27 luty 2011 - 17:16

Hello,
try

<?php
/**
 * SpannerDEV Application
 * (DB31) Share Links
 *
 * @author	  Spanner
 * @copyright   (c) 2005 - 2011 SpannerDEV
 * @package	 SpannerDEV Apps
 * @subpackage  Blogger
 * @link		http://www.spannerdev.pl
 * @link		http://www.ipsbeyond.pl
 * @version	 1.0.0 
 *
 */
 
 
class sl_blogger
{
	/**#@+
	* Registry Object Shortcuts
	*
	* @access	protected
	* @var		object
	*/
	protected $DB;
	protected $settings;
	protected $lang;
	protected $member;
	protected $memberData;
	protected $cache;
	protected $caches;
	/**#@-*/
	
	/**
	 * Construct.
	 * @access	public
	 * @param	object		Registry
	 * @return	void
	 */
	public function __construct( $registry )
	{
		/* Make object */
		$this->registry   =  $registry;
		$this->DB		 =  $this->registry->DB();
		$this->settings   =& $this->registry->fetchSettings();
		$this->request	=& $this->registry->fetchRequest();
		$this->lang	   =  $this->registry->getClass('class_localization');
		$this->member	 =  $this->registry->member();
		$this->memberData =& $this->registry->member()->fetchMemberData();
		$this->cache	  =  $this->registry->cache();
		$this->caches	 =& $this->registry->cache()->fetchCaches();
	}
	
	/**
	 * Requires a permission check
	 *
	 * @access	public
	 * @param	array		Data array
	 * @return	boolean
	 */
	public function requiresPermissionCheck( $array )
	{
		return false;
	}

	/**
	 * Redirect to Twitter
	 * Exciting, isn't it.
	 *
	 * @access	private
	 * @param	string		Plug in
	 */
	public function share( $title, $url )
	{
		$title = IPSText::convertCharsets( $title, IPS_DOC_CHAR_SET, 'utf-8' );
		$url   = "http://www.blogger.com/blog_this.pyra?t=" . urlencode( $title ). "&u=" . urlencode( $url ) . "&n=" . urlencode( $title );
		
		$this->registry->output->silentRedirect( $url );
	}	
}


#10 PersonalMode

PersonalMode

    IP.Board Newbie

  • Użytkownicy
  • Pip
  • 2 postów
  • Płeć:Mężczyzna
  • Wersja:IP.Board 3.1.x

Napisany 27 luty 2011 - 18:55

Great, thanks Spanner

#11 Spanner

Spanner

    PHP & IP.Board Developer

  • Administrator
  • 5435 postów
  • Płeć:Mężczyzna
  • Skąd:KrK
  • Wersja:IP.Board 3.3.x

Napisany 28 luty 2011 - 07:41

Your welcome :)


Modyfikacje IP.Board 3.0.x i 3.1.x: (DB31) Top topic starters , Modyfikacje IP.Board 2.3.x i 2.2.x: (DB23) Hide CODE Content , Spolszczenie i Modyfikacje , Modyfikacje IP.Board 2.0.x i 1.x.x: (DB20) View New Posts Counter , Modyfikacje IP.Board 3.x.x: (DB31) Top X Shoutbox Shouters


1 użytkowników czyta ten temat

0 użytkowników, 1 gości, 0 anonimowych użytkowników