PHP-Nuke
  Strona głównaDownloadForumFAQ Zaloguj się  
Forum


 
Rules  Forum FAQ   Search   Usergroups   Register   Log in
 
 
Zadając pytanie dotyczące PHPNuke podaj jego wersje!!

View next topic
View previous topic
Post new topic   Reply to topic  PHP-Nuke.org.pl Forum Index » BBtoNuke - pomoc
Author Message
dragusinszy
~user



Joined: 2.01.2006
Posts: 45


Status: Offline


 
View Single PostPosted: 22 Mar 2006 21:47:20 Back to top  
User browserUser browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Crazy Browser 2.0.0 RC3

Robie własnie aktualizacje i.. napotkałem 1 trudność.

Mianowicie... Pisze coś takiego...




Code:
#
#-----[ DIY INSTRUCTIONS ]---------------------------------------------
#
BEFORE installing this MOD, you have to upload the file
install/update_to_latest.php, execute it and then delete it
from your webspace.

It will execute the following SQL statements:

CREATE TABLE nuke_bbsessions_keys (
   key_id varchar(32) DEFAULT '0' NOT NULL,
   user_id mediumint(8) DEFAULT '0' NOT NULL,
   last_ip varchar(8) DEFAULT '0' NOT NULL,
   last_login int(11) DEFAULT '0' NOT NULL,
   PRIMARY KEY (key_id, user_id),
   KEY last_login (last_login)
);

INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('allow_autologin','1');
INSERT INTO nuke_bbconfig (config_name, config_value) VALUES ('max_autologin_time','0');

UPDATE nuke_users SET user_active = 0 WHERE user_id = 1;
UPDATE nuke_bbconfig SET config_value = '.0.18' WHERE config_name = 'version';
#



I to mam wgrać do bazy? jeśli tak bo tak się domyślam to czy to mi nie pousówa postów które do tej pory mam?

Kapke niżej napotkałem takie polecenie





Code:
#-----[ OPEN ]---------------------------------------------
#
modules/Forums/groupcp.php

#
#-----[ FIND ]---------------------------------------------
# NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
#   $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts");
#
$temp_url = append_sid("search

#
#-----[ IN-LINE FIND ]---------------------------------------------
#
$username

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
$row['username']



a w tym pliku mam coś takiego:

Code:
 $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts");
        $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . $lang['Search_user_posts'] . '" title="' . $lang['Search_user_posts'] . '" border="0" /></a>';
        $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';

        return;
}



I nie wiem jak to połączyć... może mi ktoś poradzić...Smile?
View user's profile    
dudi
@admin



Joined: 13.12.2004
Posts: 3175
Helps: 330
Location: Tychy

Status: Offline


 
View Single PostPosted: 22 Mar 2006 21:51:36 Back to top  
User browserUser browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

1. Nic Ci nie pousuwa - doda tylko jedną tabele do bazy danych.

2. W linijce:
Code:
$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&amp;showresults=posts");

Zamieniasz
Code:
$username

na
Code:
$row['username']

_________________
Pomocy udzielam TYLKO na forum !!!
domy drewniane w technologii szkieletowej
View user's profile Visit poster's website  Autor postu dostał pochwałę  
dragusinszy
~user



Joined: 2.01.2006
Posts: 45


Status: Offline


 
View Single PostPosted: 22 Mar 2006 22:37:18 Back to top  
User browserUser browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Crazy Browser 2.0.0 RC3

Pomogło dziękuje ślicznie...


Lecz znów się zablokował na...

Code:

#
#-----[ FIND ]---------------------------------------------
#
$refresh = $preview ||

#
#-----[ AFTER, ADD ]---------------------------------------------
#
$orig_word = $replacement_word = array();



niby tak zrobiłem ale jakoś mi się to nie widzi.
To ma wyglądać tak?

Code:
$refresh = $preview || $orig_word = $replacement_word = array(); $poll_add || $poll_edit || $poll_delete;


Dodane po: 12 minutach:

Przy tym to kompletnie zgłupiałem... Bardzo prosze o pomoc.

Code:
#
#-----[ FIND ]---------------------------------------------




# NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
#      $select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
      $select_sql = ( !$submit ) ? "

#
#-----[ IN-LINE FIND ]---------------------------------------------
#
( !$submit ) ? "

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
(!$submit) ? '
View user's profile    
dudi
@admin



Joined: 13.12.2004
Posts: 3175
Helps: 330
Location: Tychy

Status: Offline


 
View Single PostPosted: 22 Mar 2006 22:50:45 Back to top  
User browserUser browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

ehh - przeczytaj instrukcje instalowania modyfikacji

1. Kod który masz dodać umieszczasz w kolejnej linijce, a nie w tej, której masz szukać.
Tam podany jest tylko fragment szukanego kodu, gdyż jest on modyfikowany przez wiele hacków, co utrudniało by jego odnalezienie w pliku.

2. Wyraźnie jest napisane co masz zrobić :>
Quote:
# NOTE --- This is a partial match, the whole line on a fresh installation looks like this:
# $select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';

to jest oryginalny kod, jeśli go nie znajdziesz to szukasz tego:
Quote:
$select_sql = ( !$submit ) ? "

jak już znajdziesz tą linijkę, to zamieniasz to co podaje instrukcja:
Modyfikacja:Jak instalować modyfikacje
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
( !$submit ) ? "

#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
(!$submit) ? '


Podstawy angielskiego by się przydało znać :>

_________________
Pomocy udzielam TYLKO na forum !!!
domy drewniane w technologii szkieletowej
View user's profile Visit poster's website  Autor postu dostał pochwałę  
dragusinszy
~user



Joined: 2.01.2006
Posts: 45


Status: Offline


 
View Single PostPosted: 23 Mar 2006 12:01:40 Back to top  
User browserUser browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Crazy Browser 2.0.0 RC3

faktycznie. Tam wszystko pisze... poradziłęm sobie całkiem całkiem i nawet działa. Lecz trafiłem na nowy problem ... który porusze w nowym temacie bo nie chce tu zaczynać innego...Smile Dzięki wielkie za pomoc:)
View user's profile    
Display posts from previous:   
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Nie możesz dołączać plików na tym forum
Możesz ściągać pliki na tym forum


Powered by phpBB [CR] © 2001, 2006 phpBB Group.
 

Copyright © 2004-2009 by phpnuke.org.pl :: PHP-Nuke Copyright © 2004 by Francisco Burzi.
Zdjęcia ślubne
Tworzenie strony: 0.30 sekund
Zapytań: 15