PDA

View Full Version: Pa gen css oswa imaj ki nan paj Plugin ispy



Snake
16-04-10, 17:33
Hi Michel, nenpòt chans ou ta ka gen yon gade ak wè si gen yon ranje pi fasil pou sa a;

Ji Odinatè - espyon Sit (http://www.computer-juice.com/forums/pt/vaispy.php)

Sanble script la pa jwenn dosye a css kòrèkteman ak se kap nan plas mal pou imaj ...

vBET
16-04-10, 17:52
Kòm mwen wè paj sa a se pa sa tradui nan tout. Pifò pwobableman global_complete zen pa itilize la. Ou ka eseye entegrasyon pou Mods ki pa lè l sèvi avèk global_complete zen.

Gade la a pou deskripsyon:

Tanpri, tcheke premye reyèlman global_complete pa itilize la.

Snake
20-04-10, 14:11
Mwen franchman pa konnen kijan yo swiv enstriksyon sa yo, li se yon mod ki senp, kouri nan ajax mwen panse ke, jis yon sèl dosye php, pa gen pwodui oswa modèl. Isit la se sa ki dosye.


<? Php
//################################################ ################################//
/ / MOD NON: VBISpy # / /
//################################################ ################################//
/ / DESCRIPTION: Sa a modifikasyon pou vBulletin ajoute yon "viv" defile # / /
/ / Aktyalizasyon nan posts nouvo nan fowòm nan # / /
//################################################ ################################//
/ / BY: MPDev # / /
/ / DAT: 9.26.06 # / /
/ / Version: 1.0.12 # / /
//################################################ ################################//

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

/ / #################### Defini Constants ENPÒTAN #######################
defini ('THIS_SCRIPT', 'vaispy');

/ / ################### PRE-Cache modèl ak done ######################
/ / Jwenn gwoup fraz espesyal
$ Phrasegroups = array ();

/ / Jwenn done espesyal modèl soti nan datastore a
$ Specialtemplates = array ();

/ / Pre-kachèt modèl itilize pa tout aksyon
$ Globaltemplates = array ();

/ / Pre-kachèt modèl itilize pa aksyon espesifik
$ Actiontemplates = array ();

/ / ######################### EGZIJE do ki fin ################### #########
require_once ('/ global.php.');

/ / ######################### Config VARs ##################### #######
/ / Nimewo a nan jou a optik tab la pou .. (86400 reprezante kantite segonn nan 24 èdtan)
$ Daysprune = 1;

/ / Pa fè lis sa yo fowòm menm si yo gen autorisations (kategori tès, elatriye)
$ Blockforums = "";

/ / ######################### Config VARs ##################### #######

$ Forumperms = array ();
$ Lastpostid = (int) $ _REQUEST ['dènye'];
$ Abònman = (int) $ _REQUEST ['abònman'];

fortch ($ vBulletin-> forumcache AS $ fowòm) {
$ Forumid = $ fowòm ['forumid'];
$ Forumperms = & $ vBulletin-> uzrenfo ['forumpermissions']["$ forumid "];

si (! ise ($ vBulletin-> forumcache ["$ forumid"]) OSWA! ($ forumperms & $ vBulletin-> bf_ugp_forumpermissions ['canview']) OSWA! ($ forumperms & $ vBulletin-> bf_ugp_forumpermissions ['canviewothers'] ) OSWA! verify_forum_password ($ forumid, $ vBulletin-> forumcache ["$ forumid"] ['modpas'], fo))
{
$ Blockforums .=','.$ fowòm ['forumid'];
}
}
dezarme ($ fowòm);

$ Datecut = "AK thread.lastpost> =". (TIMENOW - ($ daysprune * 86400));
$ Prefetched = nil;

############################################################################
/ / Jwenn Threads mwen te Posted Nan
require_once (. DIR '/ gen ladan / functions_forumdisplay.php');
$ Rezilta = $ db-> query_read ("
CHWAZI threadid
KI SOTI NAN ". TABLE_PREFIX." Thread tankou fil
KI KOTE thread.forumid pa nan (0 $ blockforums) ak
thread.visible = 1 ak
thread.open <> 10 ak
thread.lastpostid> $ lastpostid
$ Datecut
");

$ IdsArray = array ();
pandan y ap ($ id = $ db-> fetch_array ($ rezilta))
{
$ IdsArray [] = $ id ['threadid'];
}

$ Dotthreads = fetch_dot_threads_array (enplod (',', $ idsArray));
############################################################################
/ / Jwenn Threads

/ / Pa mete plis pase 20 sof si ou konnen ki jan yo modifye html la nan fon an nan paj la (ak nan liy 291)
$ Limitq = (ise ($ _REQUEST ['fè']) "20":? "5,20");

si ($ abònman == 1)
{
$ Getthreads = $ db-> query_read ("
CHWAZI 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 preview,
post.userid AS lastpuserid
KI SOTI NAN ". TABLE_PREFIX." Subscribethread AS subscribethread
Enteryè JOIN ". TABLE_PREFIX." Thread AS fil SOU (subscribethread.threadid thread.threadid =)
A GOCH JOIN ". TABLE_PREFIX." Deletionlog AS deletionlog SOU (thread.threadid = deletionlog.primaryid ak kalite = 'thread')
A GOCH JOIN ". TABLE_PREFIX." Post AS post sou (post.postid thread.lastpostid =)
KI KOTE subscribethread.userid = ". $ VBulletin-> uzrenfo ['idantifyan']."
AK thread.forumid pa nan (0 $ blockforums)
AK thread.visible = 1
AK subscribethread.canview = 1
AK thread.lastpostid> $ lastpostid
AK deletionlog.primaryid SE null
$ Datecut
LÒD POU PA thread.lastpost DESC limit $ limitq
");
}
Lòt Bagay
{
$ Getthreads = $ db-> query_read ("
CHWAZI thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext AS preview,
post.userid AS lastpuserid
KI SOTI NAN ". TABLE_PREFIX." Thread AS fil
A GOCH JOIN ". TABLE_PREFIX." Deletionlog AS deletionlog SOU (thread.threadid = deletionlog.primaryid ak kalite = 'thread')
A GOCH JOIN ". TABLE_PREFIX." Post AS post sou (post.postid thread.lastpostid =)
KI KOTE louvri <> 10
$ Datecut
AK thread.forumid pa nan (0 $ blockforums)
AK thread.visible = '1 '
AK thread.lastpostid> $ lastpostid
AK post.visible = 1
AK deletionlog.primaryid SE null
LÒD POU PA thread.lastpost DESC limit $ limitq
");
}

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

pandan y ap ($ fil = $ db-> fetch_array ($ getthreads)) {
$ Koulè = $ koulè == 'alt1'? 'Alt2': 'alt1';

$ Fil ['title'] = htmlspecialchars_uni (fetch_censored_text (fetch_trimmed_title (unhtmlspecialchars ($ fil ['title']), 85)));
$ Fil ['dat'] = vbdate ($ vBulletin-> opsyon ['dateformat'], $ fil ['lastpost'], 1);
$ Fil ['tan'] = vbdate ($ vBulletin-> opsyon ['timeformat'], $ fil ['lastpost']);

/ / Jwenn debarase m de HTML ak BBCode premye
$ Fil ['preview'] = strip_tags (strip_bbcode ($ fil ['preview'], vre, vre));
$ Fil ['preview'] = htmlspecialchars_uni (fetch_trimmed_title ($ fil ['preview'], 200));
$ Fil ['preview'] = fetch_censored_text (fetch_word_wrapped_string ($ fil ['preview'], 20));

$ Fil ['replycount'] = vb_number_format ($ fil ['replycount']);
$ Fil ['views'] = vb_number_format ($ fil ['views']);

$ Tforumid = $ fil ['forumid'];
$ Fil ['fowòm'] = htmlspecialchars_uni ($ vBulletin-> forumcache ["$ tforumid"] ['title']);

si ($ fil ['lastpostid'] == $ fil ['firstpostid'])
{
$ Etype = "New Thread";
}
Lòt Bagay
{
$ Etype = "New Post";
}

/ / Statusicon
/ / Katab dot montre?
si ($ vBulletin-> uzrenfo ['idantifyan'] AK $ vBulletin-> opsyon ['showdots'] AK $ dotthreads ["$ fil [threadid]"])
{
$ Fil ['statusicon'] .= '_dot';
$ Fil ['dot_count'] = $ dotthreads ["$ fil [threadid ]"][' konte '];
$ Fil ['dot_lastpost'] = $ dotthreads ["$ fil [threadid ]"]['] lastpost ';
}

/ / Montre cho folder?
si ($ vBulletin-> opsyon ['usehotthreads'] AK (($ fil ['replycount']> = $ vBulletin-> opsyon ['hotnumberposts'] AK $ vBulletin-> opsyon ['hotnumberposts']> 0) OR ( $ fil ['views']> = $ vBulletin-> opsyon ['hotnumberviews'] AK $ vBulletin-> opsyon ['hotnumberviews']> 0)))
{
$ Fil ['statusicon'] .= '_hot';
}

/ / Montre fèmen folder?
si (! $ fil ['louvri'])
{
$ Fil ['statusicon'] .= '_lock';
}

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

si ($ _REQUEST ['fè'] == "xml")
{

Snake
20-04-10, 14:11
Mwen la se yon pati dezyèm lan, vbet fowòm sispann posts gwo.


$ Pwodiksyon .= <<<VAPRINT
<event>
<id> {$ fil ['lastpostid']}</ id>
<what> $ etype </ sa ki>
']}</ tan <when> {$ fil ['dat']} {$ fil ['lè>
<title> {$ fil tit tit']}</ ['>
<preview> {$ fil ['preview']}</ preview>
<poster> {$ fil ['lastposter afich']}</>
<threadid> {$ fil ['threadid']}</ threadid>
<postid> {$ fil ['lastpostid']}</ postid>
<lastpost> {$ fil lastpost lastpost ['']}</>
<userid> {$ fil ['lastpuserid idantifyan']}</>
<forumid> {$ fil ['forumid']}</ forumid>
<forumname> {$ fil ['fowòm']}</ forumname>
<views> {$ fil ['views views']}</>
<replies> {$ fil ['replies']}</ replycount>
<statusicon> {$ fil ['statusicon']}</ statusicon>
</ Evènman>
VAPRINT;
}
Lòt Bagay
{
$ Rowcolor = ($ rowcolor == "alt1" "alt2":? "Alt1");

$ = $ Kote clip = $ = $ poster_clip afich = nil;

si (stristr ($ etype, "thread"))
{
$ Post_url = "showthread.php? T = {$ fil ['threadid']}";
}
Lòt Bagay
{
$ Post_url = "showthread.php? P = {$ fil ['lastpostid']} {# post $ fil ['lastpostid']}";
}

si (! $ fil ['title'])
{
$ Clip = "<strong> Unknown </ strong>";
}
Lòt Bagay
{
$ Clip = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <yon sib = \\" _blank \\ "href = \\" {$ post_url} \\ "> {$ fil ['tit']}</ a> </ strong>";
}

si ($ fil ['preview'])
{
$ Clip .= "<br /> {$ fil ['preview']}";
}

$ Clip .= "({$ fil ['views']} views, {$ fil ['replycount']} replies)";

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

$ Poster_clip .= "tan <br fil /> {$ fil ['dat']} {$ ['']}";

si ($ fil ['fowòm'])
{
$ Kote .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ fil']}</ fowòm [' yon>> </ strong ";
}
Lòt Bagay
{
$ Kote = "";
}

si (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$row}"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width = "20" klas = "$ rowcolor smallfont "nowrap =" nowrap "aliman =" sant "> $ etype </ td> class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left"> $ poster_clip </ td > <td class="$rowcolor smallfont" width="80%"> $ clip </ td> class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center"> $ kote </ td> </ tr> </ tab> </ div> \\ n
VAPRINT;
}
Lòt Bagay
{
$ Prefetched .= <<<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> class="$rowcolor smallfont"> <div class="smallfont"> $ clip </ div> </ td > <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ kote </ div> </ td> </ tr> \\ n
VAPRINT;
}

$ Ranje + +;
si ($ fil ['lastpostid']> $ highestid)
{
$ Highestid = $ fil ['lastpostid'];
}
}
}

si ($ ranje <20)
{
pou ($ x = $ ranje; $ x <21; $ x + +)
{
si (is_browser ('opera'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
Lòt Bagay
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> class="$rowcolor smallfont"> </ td> < td class = "$ rowcolor smallfont"> </ td> class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}

/ / Memwa ekonomize
dezarme ($ fil);
$ Db-> free_result ($ getthreads);

si ($ _REQUEST ['fè'] == "xml")
{
header ('Content-Type: text / xml' ($ stylevar ['charset'] ='''; charset =' $ stylevar ['charset']:.!?.''));
eko '<? xml vèsyon = "1.0" kodaj = "'. $ stylevar ['charset'].'"?>'. "\\ R \\ n";

si ($ randman)
{
eko "<events> $ pwodiksyon </ evènman>";
}
Lòt Bagay
{
eko "<events />";
}

sòti;
}

$ Navbits = array ();
$ Navbits [$ paran] = 'espyon Sit';
$ 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);

eko <<<VAPRINT
$ Stylevar [htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$ Headinclude
<style type="text/css">
. Spyfade1 div,. Spyfade1 span,,. Spyfade1 td,. Spyfade1 img {
stupidity: 0.90;
filtre: alfa (stupidity = 90);
-Moz-stupidity: 0.90;
}
. Spyfade2 div,. Spyfade2 span,. Spyfade2 td,. Spyfade2 img {
stupidity: 0.80;
filtre: alfa (stupidity = 80);
-Moz-stupidity: 0.80;
}
. Spyfade3 div,. Spyfade3 span,. Spyfade3 td,. Spyfade3 img {
stupidity: 0.70;
filtre: alfa (stupidity = 70);
-Moz-stupidity: 0.70;
}
. Spyfade4 div,. Spyfade4 span,. Spyfade4 td,. Spyfade4 img {
stupidity: 0.50;
filtre: alfa (stupidity = 50);
-Moz-stupidity: 0.50;
}
. Spyfade5 div,. Spyfade5 span,. Spyfade5 td,. Spyfade5 img {
stupidity: 0.30;
filtre: alfa (stupidity = 30);
-Moz-stupidity: 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> Ji Odinatè - espyon Sit </ title>
</ Tèt>
<body onload="spyinit();">
$ Header
$ Navbar

<table width="90%" align="center"> <tr> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; abòne fil sèlman </ 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> </ tab>
<br />
VAPRINT;

si (is_browser ('opera'))
{
$ Pwodiksyon .= <<<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;"> Member </ 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>
</ Tab>
VAPRINT;
}
Lòt Bagay
{
$ Pwodiksyon .= <<<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"> Evènman </ td> class="thead" width="100"> Member </ td> <td class = "thead "> Thread / Post </ 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> align="center"> </ td> </ tr>
<tr id="row22" style="display: none;" class="spyfade2"> <td align="center"> </ 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> align="center"> </ td> </ tr>
<tr id="row24" style="display: none;" class="spyfade4"> <td align="center"> </ 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> align="center"> </ td> </ tr>
</ Tbodi>
</ Tab>
VAPRINT;
}

$ Pwodiksyon .= <<<VAPRINT
$ Footer
VAPRINT;

eko $ randman;
?>

vBET
21-04-10, 01:59
Lè sa a se pwoblèm nan - randman se senpleman enprime, kidonk pa genyen okenn posibilite yo tradui li nan fason nòmal.

MEN - nou gen solisyon pou sa - yon sèl la ki pwente mwen ou. Li pral okipe ka tankou sa youn. Tanpri di nou egzakteman ak ki etap ou gen pwoblèm. N ap ede ou enstriksyon frich oswa menm modifye li nan plis konprann:)

PS.
Èske ou asire w ke lisans sa a mod pèmèt yo pibliye postal li yo? Si ou pa Lè sa a, tanpri retire li.

Snake
22-04-10, 09:46
Kite m 'dwe klè, mwen vle ou fè travay sa a, mwen ka peye.

vBET
22-04-10, 14:23
Kite m 'dwe klè, mwen vle ou fè travay sa a, mwen ka peye.

Natirèlman nou ofri tou peye sèvis tankou enstalasyon, yo ajou. Nou pa t reflechi sou sèvis entegrasyon, men ou ka achte sèvis ajou (http://www.vbenterprisetranslator.com/upgrade-service.php) epi nou pral fè li pou ou.

Tanpri sonje ke nou pral bezwen aksè nan CP ftp ak Admin ou a dwe kapab fè sa a entegrasyon (VIP CP - petèt pa si anviwònman aktyèl yo se OK; ftp définitivement repons lan se wi).

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations made by vBET Translator 4.10.1