PDA

Zobacz pełną wersję: Nie css lub obrazów na ispy strony wtyczki



Snake
16-04-10, 17:33
Hi Michel, możliwość, iż może rzucić okiem i sprawdzić, czy jest łatwo naprawić tego;

Sok komputerowe - Spy Site (http://www.computer-juice.com/forums/pt/vaispy.php)

Wydaje się, że skrypt nie jest uzyskanie pliku css prawidłowo i szuka w niewłaściwym miejscu dla obrazów ...

vBET
16-04-10, 17:52
Jak widzę to strona nie jest przetłumaczona na wszystkie. Najprawdopodobniej global_complete hak nie jest używany tam. Możesz spróbować integracji dla modów, które nie wykorzystują global_complete haka.

Zobacz tutaj opis:

Proszę najpierw sprawdzić, czy naprawdę global_complete nie jest używany tam.

Snake
20-04-10, 14:11
Szczerze mówiąc nie wiem, jak do tej instrukcji, jest to prosty mod, działa z ajax myślę, tylko jeden plik php, żaden produkt lub szablonów. Oto zawartość pliku.


<? Php
//################################################ ################################//
/ / MOD NAZWA: VBISpy # / /
//################################################ ################################//
/ / Opis: Ten modyfikacji vBulletin dodaje "na żywo" przewijania # / /
/ / Update nowych postów na forum # / /
//################################################ ################################//
/ / BY: MPDev # / /
/ / Data: 26.09.06 # / /
/ / Wersja: 1.0.12 # / /
//################################################ ################################//

/ / ####################### SET PHP ŚRODOWISKA ###################### #####
error_reporting (E_ALL & ~ E_NOTICE);

/ / #################### DEFINE WAŻNE Stałe #######################
define ('THIS_SCRIPT "," vaispy');

/ / PRE-################### CACHE SZABLONY I DANE ######################
/ / Pobierz specjalnych grup wyrażenie
$ Phrasegroups = array ();

/ / Pobranie danych specjalnych szablonów z magazynu danych
$ Specialtemplates = array ();

/ / Pre-cache szablonów używanych przez wszystkich działań
$ Globaltemplates = array ();

/ / Pre-cache szablonów używanych przez konkretne działania
$ Actiontemplates = array ();

/ / ######################### Wymagać BACK-END ################### #########
require_once ('/ global.php.');

/ / CONFIG VARS ##################### ######################### #######
/ / Liczba dni do skanowania tabeli .. (86400 reprezentuje liczbę sekund, w ciągu 24 godzin)
$ Daysprune = 1;

/ / Nie lista tych forach, nawet jeśli mają uprawnienia (kategorie testów, itp.)
$ Blockforums = "";

/ / CONFIG VARS ##################### ######################### #######

$ Forumperms = array ();
$ Lastpostid = (int) $ _REQUEST ['ostatni'];
$ Zapisać = (int) $ _REQUEST ['subscribe'];

foreach ($ vbulletin-> forumcache dolarów forum) {
$ Forumid = $ forum ['forumid'];
$ Forumperms = & $ vbulletin-> userinfo ['forumpermissions']["$ forumid "];

if (! isset ($ vbulletin-> forumcache ["$ forumid"]) LUB! ($ forumperms & $ vbulletin-> bf_ugp_forumpermissions ['canview']) OR! ($ forumperms & $ vbulletin-> bf_ugp_forumpermissions ['canviewothers'] ) LUB! verify_forum_password ($ forumid, $ vbulletin-> forumcache ["$ forumid"] ['password'], false))
{
$ Blockforums .=','.$ forum ['forumid'];
}
}
unset ($ forum);

$ Datecut = "I thread.lastpost> =". (TIMENOW - ($ daysprune * 86400));
$ Wielkość bufora = null;

############################################################################
/ / Pobierz wątki, którą zamieściliśmy na
require_once (. DIR "/ includes / functions_forumdisplay.php ');
$ Result = $ db-> query_read ("
SELECT threadid
Z ". Table_prefix". Wątek jako wątek
GDZIE NIE thread.forumid IN (0 $ blockforums) i
thread.visible = 1 i
thread.open <> 10 i
thread.lastpostid> $ lastpostid
$ Datecut
");

$ IdsArray = array ();
while ($ id = $ db-> fetch_array ($ wynik))
{
$ IdsArray [] = $ id ['threadid'];
}

$ Dotthreads = fetch_dot_threads_array (implode (',', $ idsArray));
############################################################################
/ / Pobierz wątki

/ / Nie ustawiony na więcej niż 20, chyba że wiesz, jak zmodyfikować html na dole strony (i na linii 291)
$ Limitq = (isset ($ _REQUEST ['do']) "20": "5,20");

if ($ subskrybować == 1)
{
$ Getthreads = $ db-> query_read ("
SELECT subscribethread.subscribethreadid,
thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext jak podgląd,
post.userid AS lastpuserid
Z ". Table_prefix". Subscribethread AS subscribethread
INNER JOIN ". Table_prefix". Wątek jako wątek ON (subscribethread.threadid = thread.threadid)
LEFT JOIN ". Table_prefix". Deletionlog AS Deletionlog ON (thread.threadid = deletionlog.primaryid I type = 'nić')
LEFT JOIN ". Table_prefix." Post AS post (post.postid = thread.lastpostid)
GDZIE subscribethread.userid = ". $ Vbulletin-> userinfo ['userid']."
I NIE thread.forumid IN (0 $ blockforums)
I thread.visible = 1
I subscribethread.canview = 1
I thread.lastpostid> $ lastpostid
I deletionlog.primaryid IS NULL
$ Datecut
ORDER BY DESC LIMIT $ thread.lastpost limitq
");
}
więcej
{
$ Getthreads = $ db-> query_read ("
SELECT thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext jak podgląd,
post.userid AS lastpuserid
Z ". Table_prefix". Wątek jako wątek
LEFT JOIN ". Table_prefix". Deletionlog AS Deletionlog ON (thread.threadid = deletionlog.primaryid I type = 'nić')
LEFT JOIN ". Table_prefix." Post AS post (post.postid = thread.lastpostid)
W miejscach gdzie otwarte <> 10
$ Datecut
I NIE thread.forumid IN (0 $ blockforums)
I thread.visible = '1 '
I thread.lastpostid> $ lastpostid
I post.visible = 1
I deletionlog.primaryid IS NULL
ORDER BY DESC LIMIT $ thread.lastpost limitq
");
}

$ Row = $ highestid = 1;
$ Rowcolor = "alt2";

while ($ temat = $ db-> fetch_array ($ getthreads)) {
$ Kolor = $ kolor == 'alt1? "Alt2": "alt1";

$ Temat ['title'] = htmlspecialchars_uni (fetch_censored_text (fetch_trimmed_title (unhtmlspecialchars ($ temat ['title']), 85)));
$ Temat ['data'] = vbdate ($ vbulletin-> Opcje ['dateformat'], $ temat ['Chcesz zostać'], 1);
$ Temat ['czas'] = vbdate ($ vbulletin-> Opcje ['timeformat'], $ temat ['Chcesz zostać']);

/ / Pozbądź html i bbcode first
$ Temat ['podgląd'] = strip_tags (strip_bbcode ($ temat ['podgląd'], true, true));
$ Temat ['podgląd'] = htmlspecialchars_uni (fetch_trimmed_title ($ temat ['podgląd'], 200));
$ Temat ['podgląd'] = fetch_censored_text (fetch_word_wrapped_string ($ temat ['podgląd'], 20));

$ Temat ['replycount'] = vb_number_format ($ temat ['replycount']);
$ Temat ['poglądy'] = vb_number_format ($ temat ['poglądy']);

$ Tforumid = $ temat ['forumid'];
$ Temat ['forum'] = htmlspecialchars_uni ($ vbulletin-> forumcache ["$ tforumid"] ['title']);

if ($ temat ['lastpostid'] == $ temat ['firstpostid'])
{
$ Etype = "Nowy wątek";
}
więcej
{
$ Etype = "Nowy";
}

/ / Statusicon
/ / Folder dot show?
if ($ vbulletin-> userinfo ['userid'] i $ vbulletin-> Opcje ['showdots'] i $ dotthreads ["$ temat [threadid]"])
{
$ Temat ['statusicon'] .= "_dot";
$ Temat ['dot_count'] = $ dotthreads ["$ temat [threadid ]"][' count '];
$ Temat ['dot_lastpost'] = $ dotthreads ["$ temat [threadid ]"][' Chcesz zostać '];
}

/ / Pokaż foldera?
if ($ vbulletin-> Opcje ['usehotthreads'] I (($ temat ['replycount']> = $ vbulletin-> Opcje ['hotnumberposts'] i $ vbulletin-> Opcje ['hotnumberposts']> 0) OR ( $ temat ['poglądy']> = $ vbulletin-> Opcje ['hotnumberviews'] i $ vbulletin-> Opcje ['hotnumberviews']> 0)))
{
$ Temat ['statusicon'] .= "_hot";
}

/ / Pokaż folderze zablokowane?
if (! $ temat ['open'])
{
$ Temat ['statusicon'] .= "_lock";
}

$ Temat ['statusicon'] = "blank.gif";

if ($ _REQUEST ['do'] == "xml")
{

Snake
20-04-10, 14:11
Oto druga część, forum vBET zatrzymuje duże posty.


$ Output .= <<<VAPRINT
<event>
<id> {$ temat ['lastpostid']}</ id>
<what> $ etype </ co>
<when> {$ temat ['data']} {$ temat ['']}</ czasie>
<title> {$ temat ['title']}</ title>
<Podgląd> {$ temat ['podgląd']}</ podglądu>
<poster> {$ temat ['plakat']}</ lastposter>
<threadid> {$ temat ['threadid']}</ threadid>
<postid> {$ temat ['lastpostid']}</ postid>
<lastpost> {$ temat ['Chcesz zostać']}</ Chcesz zostać>
<userid> {$ temat ['userid']}</ lastpuserid>
<forumid> {$ temat ['forumid']}</ forumid>
<forumname> {$ temat ['forum']}</ forumname>
<views> {$ temat ['poglądy']}</ widoki>
<replies> {$ temat ['odpowiedzi replycount']}</>
<statusicon> {$ temat ['statusicon']}</ statusicon>
</ Event>
VAPRINT;
}
więcej
{
$ Rowcolor = ($ rowcolor == "alt1" "alt2": "alt1");

$ Gdzie = $ plik = $ poster_clip = $ email = null;

if (stristr ($ etype "wątku"))
{
$ Post_url = "showthread.php? T = {$ temat ['threadid']}";
}
więcej
{
$ Post_url = "showthread.php? P = {$ temat ['lastpostid']} # post {$ temat ['lastpostid']}";
}

if (! $ temat ['title'])
{
$ Plik = "<strong> nieznany </ strong>";
}
więcej
{
$ Plik = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a target = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ temat ['title']}</ a> </ strong>";
}

if ($ temat ['podgląd'])
{
$ Plik .= "<br /> {$ temat ['podgląd']}";
}

$ Plik .= "({$ temat ['poglądy']} poglądów, {$ temat ['replycount']} odpowiedzi)";

if ($ temat ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ temat ['lastposter']}</ a>";
}

$ Poster_clip .= "<br /> {$ temat ['data']} {$ temat ['czas']}";

if ($ temat ['forum'])
{
$ Gdzie .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ temat ['']}</ forum a> </ strong> ";
}
więcej
{
$ Gdzie = "";
}

if (is_browser ('opera'))
{
$ Wielkość bufora .= <<<VAPRINT
<div id="row{$row}"> <br cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width = "20" class = "$ rowcolor smallfont "nowrap =" nowrap "align =" center "> $ etype </ td> <td class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left"> $ poster_clip </ td > <td class="$rowcolor smallfont" width="80%"> $ plik </ td> <td class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center"> $, gdzie </ td> </ tr> </ table> </ div> \\ n
VAPRINT;
}
więcej
{
$ Wielkość bufora .= <<<VAPRINT
<tr id="row{$row}"> <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ etype </ div> </ td> <td class = " $ rowcolor smallfont "> <div class="smallfont"> $ poster_clip </ div> </ td> <td class="$rowcolor smallfont"> <div class="smallfont"> $ plik </ div> </ td > <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $, gdzie </ div> </ td> </ tr> \\ n
VAPRINT;
}

$ Row + +;
if ($ temat ['lastpostid']> $ highestid)
{
$ Highestid = $ temat ['lastpostid'];
}
}
}

if ($ row <20)
{
for ($ x = $ row, $ x <21; $ x + +)
{
if (is_browser ('opera'))
{
$ Wielkość bufora .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
więcej
{
$ Wielkość bufora .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> <td class="$rowcolor smallfont"> </ td> < td class = "$ rowcolor smallfont"> </ td> <td class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}

/ / Pamięci oszczędności
unset ($ temat);
$ Db-> free_result ($ getthreads);

if ($ _REQUEST ['do'] == "xml")
{
header ('Content-Type: text / xml' ($ stylevar ['charset'] =''; charset = '$ stylevar [' charset '].!?.''));
echo '<? xml version = "1.0" encoding = "". $ stylevar [' charset '].'"?>'. "\\ R \\ n";

if ($ output)
{
echo "<events> $ output </ Wydarzenia>";
}
więcej
{
echo "<events />";
}

exit;
}

$ Navbits = array ();
$ Navbits [$ parent] = 'Spy strony ";
$ Navbits = construct_navbits ($ navbits);

eval ('$ navbar = "". fetch_template ("navbar").'";');
$ Navbar = process_replacement_vars ($ navbar);

eval ('$ headinclude = "". fetch_template ("headinclude").'";');
$ Headinclude = process_replacement_vars ($ headinclude);

eval ('$ footer = "". fetch_template ("stopka").'";');
$ Footer = process_replacement_vars ($ stopka);

echo <<<VAPRINT
$ Stylevar [htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$ Headinclude
<style type="text/css">
. Div spyfade1,. Rozpiętości spyfade1,,. Spyfade1 td,. Spyfade1 img {
opacity: 0.90;
filter: alpha (opacity = 90);
-Moz-opacity: 0.90;
}
. Div spyfade2,. Spyfade2 span,. Spyfade2 td,. Spyfade2 img {
opacity: 0.80;
filter: alpha (opacity = 80);
-Moz-opacity: 0.80;
}
. Div spyfade3,. Rozpiętości spyfade3,. Spyfade3 td,. Spyfade3 img {
opacity: 0.70;
filter: alpha (opacity = 70);
-Moz-opacity: 0.70;
}
. Div spyfade4,. Rozpiętości spyfade4,. Spyfade4 td,. Spyfade4 img {
opacity: 0.50;
filter: alpha (opacity = 50);
-Moz-opacity: 0.50;
}
. Div spyfade5,. Rozpiętości spyfade5,. Spyfade5 td,. Spyfade5 img {
opacity: 0.30;
filter: alpha (opacity = 30);
-Moz-opacity: 0.30;
}
</ Style>
<script language="javascript" src="clientscript/va_prototype.js"> </ script>
<script language="javascript" src="clientscript/va_effects.js"> </ script>
<script language="javascript" src="clientscript/va_spy.js"> </ script>
type="text/javascript"> language="javascript" <script

</ Script>
Sok Computer <title> - Spy strony </ title>
</ Head>
<body onload="spyinit();">
$ Header
$ Navbar

<table width="90%" align="center"> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; subskrybowane wątki tylko </ td>
<td width="50%" align="right">
<img id="vaplay" src="images/misc/play_down.gif" style="cursor:pointer;" alt="Play" title="Gra Comments" onclick="playSpy();" />
<img id="vapause" src="images/misc/pause_up.gif" style="cursor:pointer;" alt="Pause" title="Pause Comments" onclick="pauseSpy();" />
</ Td> </ tr> </ table>
<br />
VAPRINT;

if (is_browser ('opera'))
{
$ Output .= <<<VAPRINT
<br class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </ td>
<td class="tcat" width="225" nowrap="nowrap" style="height:25px;"> członkowskich </ td>
<td class="tcat" width="80%" style="height:25px;"> Temat / Post </ td>
<td class="tcat" width="200" nowrap="nowrap" Forum style="height:25px;">
</ Tr>
<td colspan="4" class="alt1">
$ Wielkość bufora
<div id="row21" style="display:none;" class="spyfade1"> </ div>
<div id="row22" style="display:none;" class="spyfade2"> </ div>
<div id="row23" style="display:none;" class="spyfade3"> </ div>
<div id="row24" style="display:none;" class="spyfade4"> </ div>
<div id="row25" style="display:none;" class="spyfade5"> </ div>
</ Td> </ tr>
</ Table>
VAPRINT;
}
więcej
{
$ Output .= <<<VAPRINT
<br class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="spy_table">
<thead>
<tr align="center"> <td class="thead" width="100"> wydarzeń </ td> <td class="thead" width="100"> członkowskich </ td> <td class = "thead "> Temat / Post </ td> <td class="thead" width="190"> Forum </ td> </ tr>
</ Thead>
<tbody class="alt1">
$ Wielkość bufora
<tr id="row21" style="display: none;" class="spyfade1"> <td align="center"> </ td> <td </ td> <td < / td> <td align="center"> </ td> </ tr>
<tr id="row22" style="display: none;" class="spyfade2"> <td align="center"> </ td> <td </ td> <td < / td> <td align="center"> </ td> </ tr>
<tr id="row23" style="display: none;" class="spyfade3"> <td align="center"> </ td> <td </ td> <td < / td> <td align="center"> </ td> </ tr>
<tr id="row24" style="display: none;" class="spyfade4"> <td align="center"> </ td> <td </ td> <td < / td> <td align="center"> </ td> </ tr>
<tr id="row25" style="display: none;" class="spyfade5"> <td align="center"> </ td> <td </ td> <td < / td> <td align="center"> </ td> </ tr>
</ Tbody>
</ Table>
VAPRINT;
}

$ Output .= <<<VAPRINT
$ Stopki
VAPRINT;

echo $ output;
?>

vBET
21-04-10, 01:59
I to jest problem - wyjście jest po prostu drukowane, więc nie ma możliwości, by przełożyć je w normalny sposób.

ALE - mamy rozwiązanie tego problemu - ten, który pokazałem Ciebie. Będzie obsługiwał przypadków takich jak ten. Proszę nam powiedzieć dokładnie co krok masz problemy. Pomożemy Ci daniele instrukcji lub nawet zmienić go na bardziej zrozumiałe:)

PS.
Czy jesteś pewien, że licencja tego moda pozwala na publikowanie jego kod? Jeśli nie, to proszę go usunąć.

Snake
22-04-10, 09:46
Powiem wprost, chcę, aby to robić, mogę zapłacić.

vBET
22-04-10, 14:23
Powiem wprost, chcę, aby to robić, mogę zapłacić.

Oczywiście oferujemy również płatnych usług, takich jak instalacja, upgrade. Nie myśleliśmy o usługi integracji, ale można kupić usługę aktualizacji (http://www.vbenterprisetranslator.com/upgrade-service.php), a my zrobimy to za Ciebie.

Należy pamiętać, że będziemy potrzebować dostępu do FTP i Admin CP, aby móc to zrobić integracji (Admin CP - może nie, jeśli aktualne ustawienia są OK, FTP ostatecznie tak).

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations by vB Enterprise Translator 4.10.1