Przycisk AddThis w news, artyku?ach i na forum
|
andrulek |
Dodany dnia 23.03.2010 16:30:29
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
AddThis jest prostym darmowym widgetem pozwalaj?cym dodawa? notki do ponad 260 popularnych serwisów spo?eczno?ciowych i innych (np. Facebook, Twitter, Wykop, Blip, Ulubione), co mo?e si? przyczyni? do zwi?kszenia ruchu na naszej stronie. Je?li za?o?ymy sobie konto na AddThis, to b?dziemy mieli równie? dost?p do statystyk u?ycia naszego widgetu.
?eby zacz?? wchodzimy na strone: http://www.addthi..., wybieramy us?ug? (w naszym przypadku "Website") oraz styl przycisku. Na koniec klikamy na "Get Your Button" i ju? mamy kod swojego widgetu. Przypominam, ?e je?li chcemy mie? dost?p do statystyk u?ycia naszego przycisku na naszej stronie, to najpierw trzeba za?o?y? konto, ?eby otrzymany kod by? przypisany do naszego konta.
Mamy ju? kod i wygl?da on tak:
<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=naszeID"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=naszeID"></script>
<!-- AddThis Button END -->
1. AddThis w newsach:
W pliku includes/theme_functions_include.php odnajdujemy function newsopts i po:
126 $res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
wstawiamy:
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=naszeID"><img src="http://s7.addthis.com/static/btn/v2/lg-addthis-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=naszeID"></script>
<!-- AddThis Button END -->';
Przy newsach koniecznie w ten sposób, poniewa? NIE CHCEMY aby przycisk pojawia? nam si? w zajawce newsa na stronie g?ównej, gdy? wtedy odsy?a do strona/news.php, a nie do konkretnego newsa. Przy powy?szym kodzie przycisk addthis pojawia si? nam tylko po otwarciu newsa (przez czytaj wi?cej lub komentarze) i wtedy daje nam prawid?owy odno?nik do tego konkretnego newsa.
2. AddThis w artyku?ach:
W pliku includes/theme_functions_include.php odnajdujemy function articleopts i po:
146 $res .= "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
wstawiamy:
$res.=' <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=naszeID"><img src="http://s7.addthis.com/static/btn/v2/lg-addthis-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=naszeID"></script>
<!-- AddThis Button END -->';
3. AddThis na forum (dodawanie ca?ego w?tku, tematu do serwisów):
W pliku forum/viewthread.php po:
271 echo " <a href='".BASEDIR."print.php?type=F&thread=".$_GET['thread_id']."'><img src='".get_image("printer")."' alt='".$locale['519']."' title='".$locale['519']."' style='border:0;vertical-align:middle' /></a></div>\n";
wstawiamy:
echo ' <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=naszeID"><img src="http://s7.addthis.com/static/btn/v2/lg-addthis-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=naszeID"></script>
<!-- AddThis Button END -->';
Istnieje te? polski serwis tego typu (jedyny plus w porównaniu do AddThis to, ?e ma ?ledzika), ale zauwa?y?em, ?e wy?wietla AdSensy. Na AddThis ?adnych reklam nie znalaz?em - jest tylko malutki link do strony g?ównej serwisu. Polecam AddThis ze wzgl?du na przyjemniejszy wygl?d i brak reklam. Je?li chcesz szybko po??czy? swoj? witryn? ze stronami typu Social Media, to AddThis jest ?wietnym wyborem. |
|
|
|
W?cibski Go?? |
Dodany dnia 06.09.2025 14:52:27
|
Pan Kontekstualny
Postów: n^x
Data rejestracji: Zawsze
|
|
IP: localhost |
|
|
K@iTO |
Dodany dnia 24.03.2010 21:08:10
|

Pocz?tkuj?cy

Postów: 102
Data rejestracji: 08.08.2005 21:19
|
Gratki :D sam od dawna tego u?ywam dzia?anie mo?na zobaczy? na www.9dragons.svaj...
|
|
|
|
DragonTheDon |
Dodany dnia 29.03.2010 15:50:05
|

Przedszkolak

Postów: 21
Data rejestracji: 26.03.2010 12:26
|
Witam,
Modyfikacja jak najbardziej przydatna, tyle, ?e mam malutki problem.
Otó? chcia?bym umie?ci? go pod newsem, ze wzgl?du na brak miejsca w stopce newsa, ale nie bardzo wiem, gdzie wrzuci? owy skrypcik. Pomo?e kto??  |
|
|
|
andrulek |
Dodany dnia 30.03.2010 20:51:11
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Nie potrafi? sobie wyobrazi? dlaczego Ci si? nie mie?ci w stopce (to czego tam nadodawa?e??), ale spróbuj jeszcze pobra? ze strony addthis kod dla mniejszego przycisku.
Umie?ci? pod newsem? Nie bardzo rozumiem? Je?li chodzi Ci o tre?? newsa to po prostu wstawiasz kod addthis w odpowiednie miejsce newsa przy edycji, gdzie Ci pasuje wizualnie, ale te? tylko w tre?ci rozszerzonej, bo z tre?ci b?dzie linkowa? do strony g?ównej. Przy tym rozwi?zaniu jednak b?dziesz musia? wstawia? kod do ka?dego newsa. |
|
|
|
DragonTheDon |
Dodany dnia 30.03.2010 21:36:08
|

Przedszkolak

Postów: 21
Data rejestracji: 26.03.2010 12:26
|
http://7saudio.dr...readmore=1
Sprawd? sam jak si? rozje?d?a, wklepuj?c kod w wyznaczonym przez autora tematu miejscu. Pisz?c pod news'em, mia?em na my?li pod stopk? news'a w tre?ci rozszerzonej. Próbowa?em ju? chyba wszystkiego, ale czy na pewno wszystkiego?
Edytowane przez DragonTheDon dnia 30.03.2010 21:38:00
|
|
|
|
andrulek |
Dodany dnia 30.03.2010 22:27:25
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Trudno mi na t? chwil? cokolwiek powiedzie?, poniewa? masz inn? skórk? i nie na 100%. U mnie w firefox masz przycisk po prostu lini? ni?ej ni? stopka z wyrównaniem do lewej i nie wygl?da to ?le. U mnie jest równo w linii ze stopk? i nawet jak zmieniam rozdzielczo?ci to si? symetrycznie przesuwa. Mo?e to co? zale?ne od Twojego theme? A wstaw jeszcze to funkcj? "function newsopts" ze swojego pliku w ca?o?ci mi tu. |
|
|
|
DragonTheDon |
Dodany dnia 30.03.2010 22:33:19
|

Przedszkolak

Postów: 21
Data rejestracji: 26.03.2010 12:26
|
Od klamerki, do klamerki - rozumiem, ?e z pliku theme_functions_include.php. Oto on:
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.='
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&username=xa-4bb2516729e21003" class="addthis_button_compact">Podziel si?!</a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4bb2516729e21003"></script>
<!-- AddThis Button END -->';
return "<!--news_opts-->".$res;
}
Chodzi o to, ?e niby musz? mie? sta?? wysoko?? belki, ze wzgl?du na jej wype?nienie obrazkiem w tle, które pod wp?ywem "rozjazdu" - automatycznie si? powiela i dzi?ki temu, wed?ug mnie, troch? traci na estetyce.
Edytowane przez DragonTheDon dnia 30.03.2010 22:36:37
|
|
|
|
andrulek |
Dodany dnia 30.03.2010 22:56:16
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Spróbuj tak:
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' <!-- AddThis Button BEGIN -->
<a href="http://www.addthis.com/bookmark.php?v=250&username=xa-4bb2516729e21003" class="addthis_button_compact">Podziel si?!</a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4bb2516729e21003"></script>
<!-- AddThis Button END -->';
|
|
|
|
DragonTheDon |
Dodany dnia 30.03.2010 22:59:13
|

Przedszkolak

Postów: 21
Data rejestracji: 26.03.2010 12:26
|
Teraz to ju? dopiero "hardkor" 
Obrazeczek zosta? na swoim miejscu, a napis "Podziel si?!" zosta? wy?rodkowany.
Edytowane przez DragonTheDon dnia 30.03.2010 22:59:58
|
|
|
|
andrulek |
Dodany dnia 30.03.2010 23:09:26
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Dziwne, u mnie wy?rodkowa?o razem pod stopk?. Widocznie to co? zwi?zane z tym, ?e mamy inn? theme. W ogóle tu problem stwarza ten znacznik <div>. Wejd? tu http://www.addthi...ton-select i wybierz który? "Button" zamiast "Toolbox". Buttony nie maj? w kodzie <div> i u mnie pojawiaj? si? w jednej linii ze stopk?. Przetestuj i zobacz czy tak Ci pasuje. |
|
|
|
DragonTheDon |
Dodany dnia 30.03.2010 23:27:44
|

Przedszkolak

Postów: 21
Data rejestracji: 26.03.2010 12:26
|
Dok?adnie jest tak jak mówisz - wszystko zmie?ci?o si? w jednej linii.
Obrazek równie? pasuje 
Dzi?ki wielkie za po?wi?cony czas.
Pozdrawiam. |
|
|
|
fers |
Dodany dnia 19.04.2010 19:05:08
|

Przedszkolak

Postów: 37 Pomógł: 2 Ostrzeżeń: 1
Data rejestracji: 03.08.2008 20:12
|
Ukaza? mi si? napis "test" i koniec z przyciskiem AddThis, có? pewnie oprócz rejestracji i wstawienia kodu trzeba co? jeszcze ale gad?et ?adny i niekiedy op?aca si? go posiada? na swojej stronie. Pozdrawiam  |
|
|
|
andrulek |
Dodany dnia 20.04.2010 23:26:17
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Jak widzisz w linku u DragonTheDon gad?et dzia?a. Nawet rejestracja nie jest potrzebna, wystarczy sam kod bez logowania si? pobra?. Musia?e? co? skopa? przy wstawianiu kodu. |
|
|
|
Angius |
Dodany dnia 21.04.2010 12:00:42
|

Przedszkolak

Postów: 74 Ostrzeżeń: 4
Data rejestracji: 17.03.2010 19:12
|
Próbuj? wstawi? kod do newsów, wstawiam zgodnie z instrukcj? z przedrostkiem if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' po 126 linijce i wyskakuje mi b??d
Parse error: syntax error, unexpected T_VARIABLE in /var/www/virtual/incantator.cba.pl/includes/theme_functions_include.php on line 135
Darmowy Hosting CBA.PL
Mój kod wygl?da tak:
<!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=angius"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=angius"></script>
<!-- AddThis Button END -->
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Angius dnia 21.04.2010 12:01:17
//Angius
|
|
|
|
Gismo_PL |
Dodany dnia 21.04.2010 12:41:30
|

Bywalec

Postów: 462 Pomógł: 40 Ostrzeżeń: 2
v7.01.05 Data rejestracji: 25.02.2007 21:13
|
A czy w tym kodzie:
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.='
nie brakuje przypadkiem pojedynczego apostrofu przed ?rednikiem z ko?ca linii, czyli wówczas kod wygl?da?by nast?puj?co:
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' ';
|
|
|
|
Angius |
Dodany dnia 21.04.2010 14:47:02
|

Przedszkolak

Postów: 74 Ostrzeżeń: 4
Data rejestracji: 17.03.2010 19:12
|
Parse error: syntax error, unexpected '<' in /var/www/virtual/incantator.cba.pl/includes/theme_functions_include.php on line 127
Apostrof te? nic nie daje :/
//Angius
|
|
|
|
andrulek |
Dodany dnia 21.04.2010 16:28:26
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
Wstawiasz trzy linijki kodu po 126 linii a b??d masz a? w 135? Prze?lij wi?kszy fragment kodu, np od 110 do 140. |
|
|
|
Angius |
Dodany dnia 21.04.2010 17:44:25
|

Przedszkolak

Postów: 74 Ostrzeżeń: 4
Data rejestracji: 17.03.2010 19:12
|
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: theme_functions_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
function check_panel_status($side) {
global $settings;
$exclude_list = "";
if ($side == "left") {
if ($settings['exclude_left'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_left']);
}
} elseif ($side == "upper") {
if ($settings['exclude_upper'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_upper']);
}
} elseif ($side == "lower") {
if ($settings['exclude_lower'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_lower']);
}
} elseif ($side == "right") {
if ($settings['exclude_right'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_right']);
}
}
if (is_array($exclude_list)) {
$script_url = explode("/", $_SERVER['PHP_SELF']);
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, "/")+1;
$match_url = "";
while ($base_url_count != 0) {
$current = $url_count - $base_url_count;
$match_url .= "/".$script_url[$current];
$base_url_count--;
}
if (!in_array($match_url, $exclude_list) && !in_array($match_url.(FUSION_QUERY ? "?".FUSION_QUERY : ""), $exclude_list)) {
return true;
} else {
return false;
}
} else {
return true;
}
}
function showbanners() {
global $settings;
ob_start();
if ($settings['sitebanner2']) {
eval("?><div style='float: right;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
}
if ($settings['sitebanner1']) {
eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
} elseif ($settings['sitebanner']) {
echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a>\n";
} else {
echo "<a href='".$settings['siteurl']."'>".$settings['sitename']."</a>\n";
}
$output = ob_get_contents();
ob_end_clean();
return $output;
}
function showsublinks($sep = "·", $class = "") {
$sres = dbquery(
"SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
);
if(dbrows($sres)) {
$i = 0;
$res = "<ul>\n";
while ($sdata = dbarray($sres)) {
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$li_class = ($i == 0 ? " class='first-link".($class ? " $class" : "")."'" : ($class ? " class='$class'" : ""));
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<li".$li_class.">".$sep."<a href='".$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
} else {
$res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
}
$i++;
}
$res .= "</ul>\n";
return $res;
}
}
function showsubdate() {
global $settings;
return ucwords(showdate($settings['subheaderdate'], time()));
}
function newsposter($info,$sep = "",$class = "") {
global $locale;
$res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
$res .= $locale['global_071'].showdate("longdate", $info['news_date']);
$res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
return "<!--news_poster-->".$res;
}
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
function articleposter($info, $sep = "", $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['global_071'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
return "<!--article_poster-->".$res;
}
function articleopts($info, $sep) {
global $locale; $res = "";
if ($info['article_allow_comments']) { $res = "<a href='articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep."\n"; }
$res .= $info['article_reads'].$locale['global_074']." ".$sep."\n";
$res .= "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--article_opts-->".$res;
}
function itemoptions($item_type, $item_id) {
global $locale, $aidlink; $res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> · <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> · <a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
}
return $res;
}
function showcopyright($class = "") {
$link_class = $class ? " class='$class' " : "";
$res = "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.<br />\n";
$res .= "Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'".$link_class.">GNU Affero GPL</a> v3.\n";
return $res;
}
function showcounter() {
global $locale,$settings;
return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
}
function panelbutton($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<img src='".get_image("panel_".($state == "on" ? "off" : "on"))."' id='b_$bname' class='panelbutton' alt='' onclick=\"javascript:flipBox('$bname')\" />";
}
function panelstate($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<div id='box_$bname'".($state == "off" ? " style='display:none'" : "").">\n";
}
// v6 compatibility
function opensidex($title, $state = "on") {
openside($title, true, $state);
}
function closesidex() {
closeside();
}
function tablebreak() {
return true;
}
?> Kliknij i zaczekaj na załadowanie kodu ...
Prosz?, ca?o?? pliku :)
Sam nie wiem, jakim cudem b??d w 135...
//Angius
|
|
|
|
andrulek |
Dodany dnia 22.04.2010 00:08:02
|

Przedszkolak

Postów: 35 Pomógł: 3 Ostrzeżeń: 1
Data rejestracji: 01.08.2008 20:26
|
U siebie w kodzie powiniene? wstawia? po linii 135, a nie 126. Poza tym bardziej chodzi o to ?eby? za??czy? wi?kszy fragment kodu z wstawionym kodem gad?etu, czyli w takiej postaci w jakiej Ci wywo?uje b??d. |
|
|
|
Angius |
Dodany dnia 22.04.2010 11:21:20
|

Przedszkolak

Postów: 74 Ostrzeżeń: 4
Data rejestracji: 17.03.2010 19:12
|
Wstawiam po 135 i wyskakuje mi b??d w 144 :/
Nie mam poj?cia, jak wstawiaj?c linijki mo?na wywo?a? b??d 9 linijek dalej :/
Kod wstawiony po 135
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
function articleposter($info, $sep = "", $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['global_071'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=angius"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=angius"></script>
<!-- AddThis Button END -->
return "<!--article_poster-->".$res;
}
function articleopts($info, $sep) {
global $locale; $res = "";
if ($info['article_allow_comments']) { $res = "<a href='articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep."\n"; }
$res .= $info['article_reads'].$locale['global_074']." ".$sep."\n";
$res .= "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--article_opts-->".$res;
Kliknij i zaczekaj na załadowanie kodu ...
I po 126
function newsposter($info,$sep = "",$class = "") {
global $locale;
$res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
$res .= $locale['global_071'].showdate("longdate", $info['news_date']);
$res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
return "<!--news_poster-->".$res;
}
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) $res.=' <!-- AddThis Button BEGIN -->
<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=angius"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=angius"></script>
<!-- AddThis Button END -->
return "<!--news_opts-->".$res;
}
function articleposter($info, $sep = "", $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['global_071'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
return "<!--article_poster-->".$res;
}
Kliknij i zaczekaj na załadowanie kodu ...
//Angius
|
|
|