View Full Version: Hakuna css au picha katika kurasa ispy Plugin
Hi Michel, nafasi yoyote unaweza kuwa na kuangalia na kuona kama kuna ni rahisi kwa ajili ya kurekebisha hii;
Kompyuta Juice - Site kupeleleza (http://www.computer-juice.com/forums/pt/vaispy.php)
Inaonekana script si kupata faili css vizuri na ni kuangalia katika mahali sahihi kwa picha ...
Kama mimi kuona ukurasa huu si kutafsiriwa wakati wote. Ndoano pengine global_complete si kutumika huko. Unaweza kujaribu ushirikiano kwa mods ambayo si kutumia ndoano global_complete.
Angalia hapa kwa maelezo:
Tafadhali angalia kwanza je kweli global_complete si kutumika huko.
Mimi uaminifu hawajui jinsi ya kufuata maelekezo hayo, ni rahisi Mod, anaendesha ya Ajax nadhani, php faili moja tu, hakuna bidhaa au templates. Hapa ni yaliyomo faili.
<Php?
//################################################ ################################//
/ / MOD NAME: VBISpy # / /
//################################################ ################################//
/ / MAELEZO: Hii muundo kwa vBulletin anaongeza "live" scrolling # / /
/ / Update ya nafasi mpya forum # / /
//################################################ ################################//
/ / By: MPDev # / /
/ / DATE: 9.26.06 # / /
/ / TOLEO: 1.0.12 # / /
//################################################ ################################//
/ / ####################### SET PHP MAZINGIRA ###################### #####
error_reporting (E_ALL & ~ E_NOTICE);
/ / #################### Kufafanua constants MUHIMU #######################
define ('THIS_SCRIPT', 'vaispy');
/ / ################### PRE-Cache templates NA DATA ######################
/ / Kupata vikundi vya maneno maalum
$ Phrasegroups = array ();
/ / Kupata data maalum templates kutoka datastore
$ Specialtemplates = array ();
/ / Kabla ya cache templates kutumiwa na vitendo vyote
$ Globaltemplates = array ();
/ / Kabla ya cache templates kutumiwa na hatua mahususi
$ Actiontemplates = array ();
/ / ######################### Zinahitaji NYUMA-################### MWISHO #########
require_once ('/ global.php.');
/ / CONFIG ######################### VARS ##################### #######
/ / Idadi ya siku kwa Scan meza kwa .. (86,400 inawakilisha idadi ya sekunde katika masaa 24)
$ Daysprune = 1;
/ / Je, si orodha vikao haya hata kama wana ruhusa (mtihani makundi, nk)
$ Blockforums = "";
/ / CONFIG ######################### VARS ##################### #######
$ Forumperms = array ();
$ Lastpostid = (int) $ _REQUEST ['iliyopita'];
$ Kujiunga = (int) $ _REQUEST ['kujiunga'];
foreach ($ vBulletin-> forumcache AS $ forum) {
$ Forumid = $ jukwaa ['forumid'];
$ Forumperms = & $ vBulletin-> userinfo ['forumpermissions']["$ forumid "];
ikiwa (isset ($ vBulletin-> forumcache ["$ forumid"]) AU ($ forumperms & $! vBulletin-> bf_ugp_forumpermissions ['canview']) AU ($ forumperms! & $ vBulletin-> bf_ugp_forumpermissions ['canviewothers']! ) AU verify_forum_password! ($ forumid, $ vBulletin-> forumcache ["$ forumid"] ['password'], uongo))
{
$ Blockforums .=','.$ jukwaa ['forumid'];
}
}
unset ($ forum);
$ Datecut = "NA thread.lastpost> =". (TIMENOW - ($ daysprune * 86,400));
$ Prefetched = null;
############################################################################
/ / Get Threads nimekuwa Posted Katika
require_once (. DIR '/ inajumuisha / functions_forumdisplay.php');
$ Matokeo = $ db-> query_read ("
CHAGUA threadid
KUTOKA ". TABLE_PREFIX." Thread kama thread
WAPI thread.forumid NOT IN (0 $ blockforums) na
thread.visible = 1 na
thread.open <> 10 na
thread.lastpostid> $ lastpostid
$ Datecut
");
$ IdsArray = array ();
wakati ($ id = $ db-> fetch_array ($ matokeo))
{
$ IdsArray [] = $ id ['threadid'];
}
$ Dotthreads = fetch_dot_threads_array (implode (',', $ idsArray));
############################################################################
/ / Get Threads
/ / Je, si kuweka zaidi ya 20 isipokuwa wewe kujua jinsi ya kurekebisha html chini ya ukurasa (na katika mstari wa 291)
$ Limitq = (isset ($ _REQUEST ['kufanya']) "20": "5,20");
kama ($ kujiunga == 1)
{
$ Getthreads = $ db-> query_read ("
CHAGUA subscribethread.subscribethreadid,
thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext AS hakikisho,
post.userid AS lastpuserid
KUTOKA ". TABLE_PREFIX." Subscribethread AS subscribethread
Ndani JOIN "TABLE_PREFIX.." Thread AS thread ON (subscribethread.threadid = thread.threadid)
Kushoto JOIN "TABLE_PREFIX.." Deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid NA aina = 'thread')
Kushoto JOIN AS post post ON (post.postid = thread.lastpostid) "TABLE_PREFIX.."
WAPI subscribethread.userid = "$. VBulletin-> userinfo ['userid']."
NA thread.forumid NOT IN (0 $ blockforums)
NA thread.visible = 1
NA subscribethread.canview = 1
NA thread.lastpostid> $ lastpostid
NA deletionlog.primaryid NI null
$ Datecut
ORDER BY thread.lastpost DESC kikomo $ limitq
");
}
mwingine
{
$ Getthreads = $ db-> query_read ("
CHAGUA thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext AS hakikisho,
post.userid AS lastpuserid
KUTOKA ". TABLE_PREFIX." Thread AS thread
Kushoto JOIN "TABLE_PREFIX.." Deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid NA aina = 'thread')
Kushoto JOIN AS post post ON (post.postid = thread.lastpostid) "TABLE_PREFIX.."
WAPI wazi <> 10
$ Datecut
NA thread.forumid NOT IN (0 $ blockforums)
NA thread.visible = '1 '
NA thread.lastpostid> $ lastpostid
NA post.visible = 1
NA deletionlog.primaryid NI null
ORDER BY thread.lastpost DESC kikomo $ limitq
");
}
$ Mstari = $ highestid = 1;
$ Rowcolor = "alt2";
wakati ($ thread = $ db-> fetch_array ($ getthreads)) {
$ Rangi = $ rangi == 'alt1? 'Alt2': 'alt1';
$ Thread ['jina'] = htmlspecialchars_uni (fetch_censored_text (fetch_trimmed_title (unhtmlspecialchars ($ thread ['jina']), 85)));
$ Thread ['sasa'] = vbdate ($ vBulletin-> chaguzi ['dateformat'], $ thread ['lastpost'], 1);
$ Thread ['muda'] = vbdate ($ vBulletin-> chaguzi ['timeformat'], $ thread ['lastpost']);
/ / Ondoeni html na bbcode kwanza
$ Thread ['preview'] = strip_tags (strip_bbcode ($ thread ['preview'], kweli, kweli));
$ Thread ['preview'] = htmlspecialchars_uni (fetch_trimmed_title ($ thread ['preview'], 200));
$ Thread ['preview'] = fetch_censored_text (fetch_word_wrapped_string ($ thread ['preview'], 20));
$ Thread ['replycount'] = vb_number_format ($ thread ['replycount']);
$ Thread ['views'] = vb_number_format ($ thread ['views']);
$ Tforumid = $ thread ['forumid'];
$ Thread ['jukwaa'] = htmlspecialchars_uni ($ vBulletin-> forumcache ["$ tforumid"] ['jina']);
kama ($ thread ['lastpostid'] == $ thread ['firstpostid'])
{
$ Etype = "New Thread";
}
mwingine
{
$ Etype = "New Post";
}
/ / Statusicon
/ / Kuonyesha dot folder?
kama ($ vBulletin-> userinfo ['userid'] NA $ vBulletin-> chaguzi ['showdots'] NA $ dotthreads ["$ thread [threadid]"])
{
$ Thread ['statusicon'] .= '_dot';
$ Thread ['dot_count'] = $ dotthreads ["$ thread [threadid ]"][' kuhesabu '];
$ Thread ['dot_lastpost'] = $ dotthreads ["$ thread [threadid ]"][' lastpost '];
}
/ / Kuonyesha folda moto?
kama ($ vBulletin-> chaguzi ['usehotthreads'] NA (($ thread ['replycount']> = $ vBulletin-> chaguzi ['hotnumberposts'] NA $ vBulletin-> chaguzi ['hotnumberposts']> 0) AU ( $ thread ['views']> = $ vBulletin-> chaguzi ['hotnumberviews'] NA $ vBulletin-> chaguzi ['hotnumberviews']> 0)))
{
$ Thread ['statusicon'] .= '_hot';
}
/ / Kuonyesha imefungwa folder?
kama ($! thread ['wazi'])
{
$ Thread ['statusicon'] .= '_lock';
}
$ Thread ['statusicon'] = "blank.gif";
kama ($ _REQUEST ['kufanya'] == "xml")
{
Hapa ni sehemu ya pili, vbet jukwaa ataacha posts kubwa.
$ Pato .= <<<VAPRINT
<event>
<id> {$ thread ['lastpostid']}</ id>
<what> $ etype </ nini>
wakati <when> {$ thread ['tarehe']} {$ thread ['']}</ wakati>
<title> {$ thread ['cheo']}</ title>
<preview> {$ thread ['preview']}</ hakikisho>
<poster> {$ thread ['lastposter']}</ bango>
<threadid> {$ thread ['threadid']}</ threadid>
<postid> {$ thread ['lastpostid']}</ postid>
<lastpost> {$ thread ['lastpost']}</ lastpost>
<userid> {$ thread ['lastpuserid']}</ userid>
<forumid> {$ thread ['forumid']}</ forumid>
<forumname> {$ thread ['jukwaa']}</ forumname>
<views> {$ thread ['maoni']}</ maoni>
<replies> {$ thread ['replycount']}</ majibu>
<statusicon> {$ thread ['statusicon']}</ statusicon>
</ Tukio>
VAPRINT;
}
mwingine
{
Rowcolor $ = ($ rowcolor == "alt1" "alt2": "alt1");
$ Ambapo = $ cha picha = $ poster_clip = $ bango = null;
ikiwa (stristr ($ etype, "thread"))
{
$ Post_url = "showthread.php t? = {$ Thread ['threadid']}";
}
mwingine
{
$ Post_url = "p showthread.php? = {$ Thread ['lastpostid']} # post {$ thread ['lastpostid']}";
}
kama ($ thread ['jina']!)
{
$ Cha picha = "<strong> Unknown </ strong>";
}
mwingine
{
$ Cha picha = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <a lengo = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ thread ['cheo']}</ a> </ strong>";
}
kama ($ thread ["preview"])
{
$ Cha picha ya .= "<br /> {$ thread ['preview']}";
}
$ Cha picha ya .= "({$ thread ['views']} maoni, {$ thread ['replycount']} replies)";
kama ($ thread ['lastpuserid'])
{
$ Poster_clip = "<a target=\\"_blank\\" href=\\"member.php?u={$thread['lastpuserid']}\\"> {$ thread [" lastposter']}</ a> ";
}
$ Poster_clip .= "wakati <br /> {$ thread ['sasa']} {$ thread ['']}";
kama ($ thread ['jukwaa'])
{
$ Ambapo .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ thread ['jukwaa']}</ >> </ strong ";
}
mwingine
{
$ Ambapo = "";
}
ikiwa (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$row}"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width = "20" darasa = "$ rowcolor smallfont "nowrap =" nowrap "align =" kituo "> $ etype </ td> <td class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left"> $ poster_clip </ td > <td class="$rowcolor smallfont" width="80%"> $ cha picha ya </ td> <td class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center"> $ ambapo </ td> </ tr> </ meza> </ div> \\ n
VAPRINT;
}
mwingine
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$row}"> <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ etype </ div> </ td> <td darasa = " $ rowcolor smallfont "> <div class="smallfont"> $ poster_clip </ div> </ td> <td class="$rowcolor smallfont"> <div class="smallfont"> $ cha picha </ div> </ td > <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ ambapo </ div> </ td> </ tr> \\ n
VAPRINT;
}
$ Mstari + +;
kama ($ thread ['lastpostid']> $ highestid)
{
$ Highestid = $ thread ['lastpostid'];
}
}
}
kama ($ safu <20)
{
kwa ($ x = $ mstari; $ x <21; $ x + +)
{
ikiwa (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
mwingine
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> <td class="$rowcolor smallfont"> </ td> < a darasa = "$ rowcolor smallfont"> </ td> <td class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}
/ / Kumbukumbu ya kuokoa
unset ($ thread);
$ Db-> free_result ($ getthreads);
kama ($ _REQUEST ['kufanya'] == "xml")
{
header ('Content-Type: text / xml' ($ stylevar ['charset'] ='''; charset =' $ stylevar ['charset']:!..''));
echo '<xml version? = "1.0" encoding = "' $. stylevar ['charset'].'"?>'. "\\ R \\ n";
kama ($ matokeo)
{
echo "<events> $ pato </ matukio>";
}
mwingine
{
echo "<events />";
}
exit;
}
$ Navbits = array ();
$ Navbits [$ mzazi] = 'Site kupeleleza';
$ 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. ('footer').'";');
$ Footer = process_replacement_vars ($ footer);
echo <<<VAPRINT
$ Stylevar [htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$ Headinclude
<style type="text/css">
. Spyfade1 div. Spyfade1 span,,. Spyfade1 a,. Spyfade1 img {
opacity: 0.90;
filter: alpha (opacity = 90);
-Moz-opacity: 0.90;
}
. Spyfade2 div. Spyfade2 span,. Spyfade2 td, spyfade2. Img {
opacity: 0.80;
filter: alpha (opacity = 80);
-Moz-opacity: 0.80;
}
. Spyfade3 div. Spyfade3 span,. Spyfade3 a,. Spyfade3 img {
opacity: 0.70;
filter: alpha (opacity = 70);
-Moz-opacity: 0.70;
}
. Spyfade4 div. Spyfade4 span,. Spyfade4 a,. Spyfade4 img {
opacity: 0.50;
filter: alpha (opacity = 50);
-Moz-opacity: 0.50;
}
. Spyfade5 div. Spyfade5 span,. Spyfade5 a,. 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>
<script language="javascript" type="text/javascript">
</ Script>
<title> Kompyuta Juice - Site kupeleleza </ title>
</ Kichwa>
<body onload="spyinit();">
$ Header
$ Navbar
<table width="90%" align="center"> <tr> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; nilijisajili threads tu </ td>
<td width="50%" align="right">
<img id="vaplay" src="images/misc/play_down.gif" style="cursor:pointer;" alt="Play" title="Play Comments" onclick="playSpy();" />
<img id="vapause" src="images/misc/pause_up.gif" style="cursor:pointer;" alt="Pause" title="Pause Comments" onclick="pauseSpy();" />
</ Td> </ tr> </ meza>
<br />
VAPRINT;
ikiwa (is_browser ('opera'))
{
$ Pato .= <<<VAPRINT
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<tr> <td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </ td>
<td class="tcat" width="225" nowrap="nowrap" style="height:25px;"> Mwanachama </ td>
<td class="tcat" width="80%" style="height:25px;"> Thread / Post </ td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;"> Forum
</ Tr>
<tr> <td colspan="4" class="alt1">
$ Prefetched
<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>
</ Meza>
VAPRINT;
}
mwingine
{
$ Pato .= <<<VAPRINT
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="spy_table">
<thead>
<tr align="center"> <td class="thead" width="100"> Tukio </ td> <td class="thead" width="100"> Mwanachama </ td> <td darasa = "thead "> Thread / Post </ td> <td class="thead" width="190"> Forum </ td> </ tr>
</ Thead>
<tbody class="alt1">
$ Prefetched
<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>
</ Meza>
VAPRINT;
}
$ Pato .= <<<VAPRINT
$ Footer
VAPRINT;
echo $ pato;
?>
Na hili ni suala - pato ni tu kuchapishwa, hivyo hakuna uwezekano wa kutafsiri kwa njia ya kawaida.
Lakini - tuna ufumbuzi wa hili - moja ambayo nilivyosema wewe. Ni mapenzi kushughulikia kesi kama hii. Tafadhali tueleze hasa ambayo hatua una matatizo. Tutakusaidia maelekezo konde au hata kurekebisha kwa kueleweka zaidi:)
PS.
Una uhakika kwamba leseni ya Mod hii inaruhusu kuchapisha code yake? Kama siyo basi tafadhali kuondoa hiyo.
Hebu niwe wazi, i nataka kufanya kazi, i wanaweza kulipa.
Hebu niwe wazi, i nataka kufanya kazi, i wanaweza kulipa.
Bila shaka sisi kutoa pia walitoa huduma kama ufungaji, kuboresha. Sisi si kufikiri juu ya huduma ya muungano, lakini unaweza kununua kuboresha huduma (http://www.vbenterprisetranslator.com/upgrade-service.php) na sisi kufanya hivyo kwa ajili yenu.
Tafadhali kumbuka kuwa sisi watahitaji huduma ya CP yako FTP na Admin kuwa na uwezo wa kufanya hivyo ushirikiano (Admin CP - labda si kama mazingira halisi ni sawa; FTP kipekee ndiyo).
Automatic Translations (Powered by Google, Microsoft®,
Yandex, SDL Language Cloud, IBM Watson and Apertium):
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.