WordPress

Witaj Gościu ( Zaloguj | Rejestruj )

Każdy temat założony w ewidentnie złym dziale będzie usuwany! Proszę czytać opisy działów i regulamin!

 
Reply to this topicStart new topic
> system komentarzy, podmiana z theme jillij do k2
pedewu
post 04.5.2008 - 21:40
Post #1


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



witam wszystkich b. serdecznie
jestem nowym uzytkownikiem wp, wczesniej mialem trochę do czynienia z php i css
dlatego radzę sobie jako tako z dostosowywaniem theme [w tym przypadku k2] do wlasnych potrzeb.
nie mogę jednak poradzic sobie z kilkoma rzeczami:

1. chciałbym umieścić w theme k2 system komentarzy z theme Jillij.
chodzi o układ, wyglad itp. podany na zdjęciu łącznie z formularzem. nie wiecie jakie fragmenty kodu mam powycinać i skleić w calosc
zeby uzyskac taki efekt [comment.php?] i zeby na stronie glownej odnosniki do komentarzy byly zachowane ze starego theme K2?

CODE
http://corrristo9.w.interia.pl/AAA.jpg

powyzej system komenatarzy z theme k2

CODE
http://corrristo9.w.interia.pl/3w.jpg

powyzej system komentarzy z theme Jillij

CODE
http://corrristo9.w.interia.pl/5w.jpg

odnoski komentarzy z theme k2 na stronie głownej

wie ktoś? pozdrawiam

Go to the top of the page
 
+Quote Post
Riff
post 05.5.2008 - 12:58
Post #2


aktywność:
*****

Grupa: +Bloger
Postów: 395

Nr: 3 158



Wszystko związane z wyglądem formularza komentarzy i samych komentarzy zawarte jest w pliku comments.php - najprostsza metoda - podmień te pliki i zobacz, czy działa wink.gif.


--------------------
Jestem studentem, jeśli pomogłem, Ty pomóż mi:


Go to the top of the page
 
+Quote Post
pedewu
post 05.5.2008 - 14:25
Post #3


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



sama podmiana pliku comments.php niestety nic nie daje.
jest jakiś inny sposób?
Go to the top of the page
 
+Quote Post
Riff
post 05.5.2008 - 16:22
Post #4


aktywność:
*****

Grupa: +Bloger
Postów: 395

Nr: 3 158



Jak to nie daje? Przecież zmienia się kod, więc dać coś musi wink.gif. Czy aby podmieniasz właściwe pliki we właściwym folderze?


--------------------
Jestem studentem, jeśli pomogłem, Ty pomóż mi:


Go to the top of the page
 
+Quote Post
pedewu
post 05.5.2008 - 17:19
Post #5


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



wp-content/theme/k2
do tego folderu wgrywam plik comments.php ze ściezki .../theme/jillij/
i zupełnie nic się nie dzieje. może ten kod ze źródla strony coś da.

CODE


<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>platanbb clothing? Blog Archive ? Hello world!</title>

<meta name="generator" content="WordPress 2.3" /> <!-- leave this for stats -->

<link rel="stylesheet" href="http://www.pedewu.webd.pl/wp-content/themes/jillij-1/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="platanbb clothing RSS Feed" href="http://www.pedewu.webd.pl/?feed=rss2" />
<link rel="pingback" href="http://www.pedewu.webd.pl/xmlrpc.php" />

<style type="text/css" media="screen">
body {
background: url("http://www.pedewu.webd.pl/wp-content/themes/jillij-1/images/jillijbgcolor.jpg");
}

#topheader {
background: url("http://www.pedewu.webd.pl/wp-content/themes/jillij-1/images/jillijbgtop.jpg") no-repeat bottom center;
}

#page {
background: url("http://www.pedewu.webd.pl/wp-content/themes/jillij-1/images/jillijbgwide.jpg") repeat-y top; border: none;
}

#footer {
background: url("http://www.pedewu.webd.pl/wp-content/themes/jillij-1/images/jillijfooter.jpg") no-repeat center;
}
</style>

<!--[if lt IE 7]>
<style type="text/css" media="screen, tv, projection">
body { behavior: url("http://www.pedewu.webd.pl/wp-content/themes/jillij-1/code/csshover.htc"); }
</style>
<![endif]-->

<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.pedewu.webd.pl/xmlrpc.php?rsd" />
<style type="text/css">
#headerimg {
background: url(http://www.pedewu.webd.pl/wp-content/uploads/2008/05/cropped-p4230126.jpg) no-repeat;
}

#headerimg h1,#headerimg h1 a, .description, #headerimg h1 a:hover, #headerimg h1 a:visited {
color:#FFFFFF;
}


</style>
</head>
<body>
<div id="page">

<div id="topheader">
</div>

<div id="header">
<div id="headerimg">
<h1><a href="http://www.pedewu.webd.pl/"> </a></h1>
<div class="description">Just another WordPress weblog</div>
</div>
</div>
<div id="sidebar">

<ul>

<li class="pagenav"><h2>Strony</h2><ul><li class="page_item page-item-6"><a href="http://www.pedewu.webd.pl/?page_id=6" title="ciuchy">ciuchy</a></li>
<li class="page_item page-item-7"><a href="http://www.pedewu.webd.pl/?page_id=7" title="druk cyfrowy">druk cyfrowy</a></li>
<li class="page_item page-item-8"><a href="http://www.pedewu.webd.pl/?page_id=8" title="kontakt">kontakt</a></li>
<li class="page_item page-item-2"><a href="http://www.pedewu.webd.pl/?page_id=2" title="platanbb">platanbb</a></li>
</ul></li>
<li class="LargeMenu"><h2>Archiwa</h2>
<ul>
<li>
<table id="wp-calendar" summary="Kalendarz">
<caption>maj 2008</caption>
<thead>
<tr>
<th abbr="poniedziałek" scope="col" title="poniedziałek">P</th>
<th abbr="wtorek" scope="col" title="wtorek">W</th>
<th abbr="środa" scope="col" title="środa">Ś</th>
<th abbr="czwartek" scope="col" title="czwartek">C</th>
<th abbr="piątek" scope="col" title="piątek">P</th>
<th abbr="sobota" scope="col" title="sobota">S</th>
<th abbr="niedziela" scope="col" title="niedziela">N</th>
</tr>
</thead>

<tfoot>
<tr>
<td colspan="3" id="prev" class="pad"> </td>
<td class="pad"> </td>
<td colspan="3" id="next" class="pad"> </td>
</tr>
</tfoot>

<tbody>
<tr>
<td colspan="3" class="pad"> </td><td>1</td><td>2</td><td>3</td><td><a href="http://www.pedewu.webd.pl/?m=20080504" title="Hello world!, ">4</a></td>
</tr>
<tr>
<td id="today">5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td>
</tr>
<tr>
<td>12</td><td>13</td><td>14</td><td>15</td><td>16</td><td>17</td><td>18</td>
</tr>
<tr>
<td>19</td><td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>25</td>
</tr>
<tr>
<td>26</td><td>27</td><td>28</td><td>29</td><td>30</td><td>31</td>
<td class="pad" colspan="1"> </td>
</tr>
</tbody>
</table> </li>
</ul>
</li>

<li class="categories"><h2>Kategorie</h2><ul> <li class="cat-item cat-item-1"><a href="http://www.pedewu.webd.pl/?cat=1" title="Zobacz wszystkie wpisy oznaczone jako Uncategorized">Uncategorized</a> (2)
</li>
</ul></li>


<li><h2>Meta</h2>
<ul>
<li><a href="http://www.pedewu.webd.pl/wp-login.php">Zaloguj się</a></li>
<li><a href="http://validator.w3.org/check/referer" title="Strona jest zgodna z XHTML 1.0 Transitional">Poprawny <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
</ul>
</li>



<li class="LargeMenu"><h2>Szukaj</h2>
<ul>
<li><form method="get" id="searchform" action="http://www.pedewu.webd.pl/">
<div><input type="text" value="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Szukaj" />
</div>
</form>
</li>
</ul>
</li>


</ul>

</div>

<div id="content" class="widecolumn">


<div class="navigation">
<div class="alignleft"></div>
<div class="alignright"><a href="http://www.pedewu.webd.pl/?p=3">Nastęny wpis</a> ?</div>
</div>

<div class="post" id="post-1">
<h2><a href="http://www.pedewu.webd.pl/?p=1" rel="bookmark" title="Permanent Link: Hello world!">Hello world!</a></h2>

<div class="entrytext">
<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>

<p class="postmetadata alt">
<small>
This entry was posted on niedziela, maj 4th, 2008 at 01:26 and is filed under <a href="http://www.pedewu.webd.pl/?cat=1" title="Zobacz wszystkie wpisy oznaczone jako Uncategorized" rel="category">Uncategorized</a>. You can follow any responses to this entry through the <a href="http://www.pedewu.webd.pl/?feed=comments-rss2">RSS 2.0</a> feed.
You can <a href="#respond">leave a response</a>, or <a href="http://www.pedewu.webd.pl/wp-trackback.php?p=1">trackback</a> from your own site.
</small>
</p>

</div>
</div>


<!-- You can start editing here. -->

<h3 id="comments">7 Responses to ? Hello world! ?</h3>

<ol class="commentlist">


<li class="alt" id="comment-1">
<cite><a href='http://wordpress.org/' rel='external nofollow'>Mr WordPress</a> Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-1" title="">maj 4th, 200801:26 at </a> </small>

<p>Hi, this is a comment.<br />To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.</p>

</li>



<li class="" id="comment-2">
<cite><a href='http://www.platanbb.com' rel='external nofollow'>pedewu</a> Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-2" title="">maj 5th, 200811:22 at </a> </small>

<p>vgfgcfcv</p>

</li>



<li class="alt" id="comment-5">
<cite><a href='http://www.platanbb.com' rel='external nofollow'>pedewu</a> Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-5" title="">maj 5th, 200811:22 at </a> </small>

<p>vgfgcfcv</p>

</li>



<li class="" id="comment-3">
<cite><a href='http://www.platanbb.com' rel='external nofollow'>pedewu</a> Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-3" title="">maj 5th, 200811:22 at </a> </small>

<p>vgfgcfcv</p>

</li>



<li class="alt" id="comment-4">
<cite><a href='http://www.platanbb.com' rel='external nofollow'>pedewu</a> Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-4" title="">maj 5th, 200811:22 at </a> </small>

<p>vgfgcfcv</p>

</li>



<li class="" id="comment-6">
<cite>zoha Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-6" title="">maj 5th, 200812:18 at </a> </small>

<p>ale syf hahaha</p>

</li>



<li class="alt" id="comment-7">
<cite>zoha Says:</cite>
<br />

<small class="commentmetadata"><a href="#comment-7" title="">maj 5th, 200812:19 at </a> </small>

<p>ale syffff</p>

</li>



</ol>




<h3 id="respond">Leave a Reply</h3>


<form action="http://www.pedewu.webd.pl/wp-comments-post.php" method="post" id="commentform">


<p><input type="text" name="author" id="author" value="" size="22" tabindex="1" />
<label for="author"><small>Nazwa</small></label></p>

<p><input type="text" name="email" id="email" value="" size="22" tabindex="2" />
<label for="email"><small>Adres e-mail (nie będzie opublikowany)</small></label></p>

<p><input type="text" name="url" id="url" value="" size="22" tabindex="3" />
<label for="url"><small>Strona WWW</small></label></p>


<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> </code></small></p>-->

<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Dodaj komentarz" />
<input type="hidden" name="comment_post_ID" value="1" />
</p>
<script language="javascript" type="text/javascript">
<!--
/* By Simon Willison: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
/*
// +----------------------------------------------------------------------+
// | Orginial Code Care Of: |
// +----------------------------------------------------------------------+
// | Copyright ? 2004 Bitflux GmbH |
// +----------------------------------------------------------------------+
// | Licensed under the Apache License, Version 2.0 (the "License"); |
// | you may not use this file except in compliance with the License. |
// | You may obtain a copy of the License at |
// | http://www.apache.org/licenses/LICENSE-2.0 |
// | Unless required by applicable law or agreed to in writing, software |
// | distributed under the License is distributed on an "AS IS" BASIS, |
// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
// | implied. See the License for the specific language governing |
// | permissions and limitations under the License. |
// +----------------------------------------------------------------------+
// | Author: Bitflux GmbH <devel@bitflux.ch> |
// | http://blog.bitflux.ch/p1735.html |
// +----------------------------------------------------------------------+
//
//
// +----------------------------------------------------------------------+
// | Heavily Modified by Jeff Minard (07/09/04) |
// +----------------------------------------------------------------------+
// | Same stuff as above, yo! |
// +----------------------------------------------------------------------+
// | Author: Jeff Minard <jeff-js@creatimation.net> |
// | http://www.creatimation.net |
// +----------------------------------------------------------------------+
//
//
// +----------------------------------------------------------------------+
// | What is this nonsense?? (07/09/04) |
// +----------------------------------------------------------------------+
// | This is a script that, by using XMLHttpRequest javascript objects |
// | you can quickly add some very click live interactive feed back to |
// | your pages that reuire server side interaction. |
// | |
// | For instance, you use this to emulate a "live searching" feature |
// | wherein users type in key phrases, and once they have stopped typing |
// | the script will automatically search and retrive *without* a page |
// | reload.
// | |
// | In another instance, I use this to product live comments by passing |
// | the text to a Textile class that parses it to valid HTML. After |
// | parsing, the html is returned and displayed on the page as the |
// | user types. |
// +----------------------------------------------------------------------+
*/


/*--------------------------------------
User configured variables
--------------------------------------*/
var inputId = 'livesearch';
// This is the id on the input/textarea that you want to use as the query.

var outputId = 'liveRequestResults';
// use this to have the results populate your own ID'd tag.
// leave it blank and a div tag will automatically be added
// with an id="liveSearchResults"

var processURI = './pt.php';
// this is the file that you request data from.

var emptyString = 'No Comment!';
// What to display in the results field when there's nothing
// Leaving this null will cause the results field to be set to display: none

/*--------------------------------------
Script Stuff
--------------------------------------*/
var liveReq = false;
var t = null;
var liveReqLast = "";
var isIE = false;

var inputElement;
var outputElement;

// on !IE we only have to initialize it once
if (window.XMLHttpRequest) {
liveReq = new XMLHttpRequest();
}

function liveReqInit() {

inputElement = document.getElementById(inputId);
outputElement = document.getElementById(outputId);

if( inputElement == null || outputElement == null )
return;


if (navigator.userAgent.indexOf("Safari") > 0) {
inputElement.addEventListener("keydown",liveReqStart,false);

} else if (navigator.product == "Gecko") {
inputElement.addEventListener("keypress",liveReqStart,false);

} else {
inputElement.attachEvent('onkeydown',liveReqStart);
isIE = true;
}

if(emptyString == '') {
// set the result field to hidden, or to default string
outputElement.style.display = "none";
} else {
outputElement.innerHTML = emptyString;
}
}

addLoadEvent(liveReqInit);

function liveReqStart() {
if (t) {
window.clearTimeout(t);
}
t = window.setTimeout("liveReqDoReq()",400);
}

function liveReqDoReq() {
if (liveReqLast != inputElement.value && inputElement.value != "") {
if (liveReq && liveReq.readyState < 4) {
liveReq.abort();
}
if (window.XMLHttpRequest) {
// branch for IE/Windows ActiveX version
} else if (window.ActiveXObject) {
liveReq = new ActiveXObject("Microsoft.XMLHTTP");
}

liveReq.onreadystatechange = liveReqProcessReqChange;
liveReq.open("GET", processURI + "?s=" + encodeURI(inputElement.value));
liveReqLast = inputElement.value;
liveReq.send(null);
} else if(inputElement.value == "") {
if(emptyString == '') {
outputElement.innerHTML = '';
outputElement.style.display = "none";
} else {
outputElement.innerHTML = emptyString;
}
}
}

function liveReqProcessReqChange() {
if (liveReq.readyState == 4) {
outputElement.innerHTML = liveReq.responseText;
if(emptyString == '') {
outputElement.style.display = "block";
}
}
}

// Update preview onload, just in case there already is some text
addLoadEvent(liveReqDoReq);

/* More user configured */
var inputId = 'comment';
// This is the id on the input/textarea that you want to use as the query.

var outputId = 'livePreview';
// use this to have the results populate your own ID'd tag.
// leave it blank and a div tag will automatically be added
// with an id="liveSearchResults"


var processURI = 'http://www.pedewu.webd.pl/wp-content/plugins//textile-live-preview-ajax-version/pt.php';
// this is the file that you request data from.

var emptyString = '';
// What to display in the results field when there's nothing
// Leaving this null will cause the results field to be set to display: none

-->
</script>

<div id="comment-preview">

<h3>Podgląd komentarza:</h3>

<div id="livePreview"></div>

</div>


</form>




</div>

<div id="footer">
<p>
platanbb clothing is proudly powered by <a href="http://wordpress.org">WordPress</a> <br />
<a href="feed:http://www.pedewu.webd.pl/?feed=rss2">Entries (RSS)</a> and <a href="feed:http://www.pedewu.webd.pl/?feed=comments-rss2">Comments (RSS)</a>. <!-- 23 queries. 0.1270.127 seconds. -->
Template : <a href="http://www.jillij.com/">Jillij</a>
</p>
</div>
</div>

<!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ -->

</body>
</html>


Ten post edytował pedewu 05.5.2008 - 17:20
Go to the top of the page
 
+Quote Post
pedewu
post 06.5.2008 - 21:18
Post #6


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



wiem,ze nieestetycznie tak post pod postem,ale czy ktoś jest w stanie
rozwiązać mój problem? unsure.gif
Go to the top of the page
 
+Quote Post
Riff
post 07.5.2008 - 13:53
Post #7


aktywność:
*****

Grupa: +Bloger
Postów: 395

Nr: 3 158



Hmm... może to brak kawy, ale ja w tym kodzie nic nie widzę - spróbujemy inaczej - z dotychczasowego tematu K2 usuń plik comments.php - jeśli komentarze nadal będą działać, to coś nie gra wink.gif.


--------------------
Jestem studentem, jeśli pomogłem, Ty pomóż mi:


Go to the top of the page
 
+Quote Post
pedewu
post 07.5.2008 - 23:07
Post #8


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



usunąlem comments.php a nawet ajax-comments.php.
ale bez większych zmian, w zasadzie to bez jakichkolwiek.
nadal można komentować,a sam wyglądam sie nie zmienil

biggrin.gif
Go to the top of the page
 
+Quote Post
Riff
post 08.5.2008 - 17:17
Post #9


aktywność:
*****

Grupa: +Bloger
Postów: 395

Nr: 3 158



?! Ale skoro usunąłeś pliki odpowiedzalne za wyświetlanie komentarzy i formularza dodającego komentarz, to jakim cudem Ci może to działać? Jesteś pewien, że edytujesz właściwy styl? Folderów nie pomyliłeś?


--------------------
Jestem studentem, jeśli pomogłem, Ty pomóż mi:


Go to the top of the page
 
+Quote Post
pedewu
post 08.5.2008 - 18:47
Post #10


aktywność:
*

Grupa: Bloger
Postów: 14

Nr: 4 072



no ok zgadza się, po usunieciu tych dwoch plikow oddanie komentarza jest juz niemozliwe,
formlularz po kliknieciu 'dodaj komentarz' nie reaguje. ale sama struktura została

CODE
http://www.pedewu.webd.pl/?p=1#comments


irytuje mnie pole formularza, wysunięte poza ramke strony.
gdzie mogę wyedytować cała podaną w linku stronę?
to na pewno nie page comments.php czy comments popup, usuwalem/podmienialem i nic to nie dalo

może pliki w katalogu js?
wp content/theme/k2/js..

Ten post edytował pedewu 08.5.2008 - 18:49
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



Wersja Lo-Fi Aktualny czas: 5 12 08 - 00:36
WebFan | Forum Komputerowe | Spotkania blogerów