PDA

View Full Version: Uimh CSS nó íomhánna ar leathanaigh plugin ispy



Snake
16-04-10, 17:33
Dia duit Michel, aon seans a d'fhéadfaí tú a bheith ag féachaint agus a fheiceáil má tá shocrú éasca do seo;

Juice Ríomhaireachta - Spy Suíomh (http://www.computer-juice.com/forums/pt/vaispy.php)

Is cosúil nach bhfuil an script ag fáil an comhad CSS i gceart agus é ag lorg in áit mícheart le haghaidh íomhánna ...

vBET
16-04-10, 17:52
Mar a fheiceann agam nach bhfuil an leathanach seo a aistriú ar chor ar bith. Nach bhfuil an chuid is mó Hook global_complete dócha a úsáidtear ann. Is féidir leat triail a chomhtháthú le haghaidh mods nach bhfuil ag baint úsáide as Hook global_complete.

Féach anseo le haghaidh cur síos:

Déan seiceáil ar dtús i ndáiríre ní nach bhfuil global_complete a úsáidtear ann.

Snake
20-04-10, 14:11
Níl mé go hionraic bhfuil a fhios conas a leanúint na treoracha sin, tá sé ina mod simplí Ritheann, de ajax smaoineamh mé, ach amháin comhad php, aon táirge nó teimpléid. Seo é an t-ábhar comhad.


<? Php
//################################################ ################################//
AINM / / MOD: VBISpy # / /
//################################################ ################################//
/ / CUR SÍOS: Cuireann sé seo le haghaidh foinse cumhachta modhnú ar "beo" scrollaigh # / /
/ / Nuashonrú de phoist nua chuig an fóram # / /
//################################################ ################################//
/ / AG: MPDev # / /
/ / DÁTA: 9.26.06 # / /
/ / LEAGAN: 1.0.12 # / /
//################################################ ################################//

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

/ / #################### MHÍNIÚ tairisigh TÁBHACHTACH #######################
shainmhíniú ('THIS_SCRIPT', 'vaispy');

/ / ################### RÉAMH-CACHE TEIMPLÉID AGUS SONRAÍ ######################
/ / Grúpaí a fháil frása speisialta
$ Phrasegroups = eagar ();

/ / A fháil teimpléid sonraí speisialta ó na datastore
$ Specialtemplates = eagar ();

/ / Réamh-cache teimpléid úsáid ag gach gníomh a
$ Globaltemplates = eagar ();

/ / Réamh-cache teimpléid úsáid ag gníomhartha sonracha
$ Actiontemplates = eagar ();

/ / CHEANGAL ######################### SIAR-################### DEIREADH #########
require_once ('/ global.php.');

/ / Config ######################### VARS ##################### #######
/ / An líon laethanta a scanadh ar an tábla do .. (86,400 Is ionann líon na soicind i 24 uair an chloig)
$ Daysprune = 1;

/ Ní / An bhfuil liosta na fóraim fiú amháin má tá siad ceadanna (catagóirí tástála, srl)
$ Blockforums = "";

/ / Config ######################### VARS ##################### #######

$ Forumperms = eagar ();
$ Lastpostid = (int) $ _REQUEST ['seo caite'];
$ Liostáil = (int) $ _REQUEST ['síntiús a'];

foreach ($ vBulletin-> forumcache MAR $ fóram) {
$ Forumid = $ fóram ['forumid'];
$ Forumperms = & $ vBulletin-> userinfo ['forumpermissions']["$ forumid "];

más rud é (! isset ($ vBulletin-> forumcache ["$ forumid"]) NÓ! ($ & $ forumperms vBulletin-> bf_ugp_forumpermissions ['canview']) NÓ! ($ & $ forumperms vBulletin-> bf_ugp_forumpermissions ['canviewothers'] ) NÓ! verify_forum_password ($ forumid, $ vBulletin-> forumcache ["$ forumid"] ['pasfhocal'], bréagach))
{
$ Blockforums .=','.$ fóram ['forumid'];
}
}
unset ($ fóram);

$ Datecut = "AGUS thread.lastpost> =". (TIMENOW - ($ daysprune * 86,400));
$ Prefetched = null;

############################################################################
/ / Faigh Snáitheanna mé Posted In
require_once (. Treo 'áirítear / / functions_forumdisplay.php');
$ Thoradh = $ db-> query_read ("
SELECT threadid
Ó ". TABLE_PREFIX." Snáithe mar snáithe
NUAIR NACH thread.forumid SA (0 $ blockforums) agus
thread.visible = 1 agus
thread.open <> 10 agus
thread.lastpostid> $ lastpostid
$ Datecut
");

$ IdsArray = eagar ();
cé go ($ id = $ db-> fetch_array ($ thoradh))
{
$ IdsArray [] = $ id ['threadid'];
}

$ Dotthreads = fetch_dot_threads_array (implode (',', $ idsArray));
############################################################################
/ / Snáitheanna Faigh

/ Nach / Ná leagtha le níos mó ná 20 ach amháin má tá a fhios agat conas a mhodhnú html ag bun an leathanaigh (agus ar líne 291)
$ Limitq = (isset ($ _REQUEST ['déanamh']) "20":? "5,20");

más rud é ($ suibscríobh == 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 MAR preview,
post.userid MAR lastpuserid
Ó ". TABLE_PREFIX." Subscribethread MAR subscribethread
Join istigh ". TABLE_PREFIX." Snáithe MAR snáithe AR (subscribethread.threadid = thread.threadid)
Join LEFT ". TABLE_PREFIX." Deletionlog MAR deletionlog AR (thread.threadid = deletionlog.primaryid AGUS Cineál = 'snáithe')
Join LEFT ". TABLE_PREFIX." Iar MAR iar AR (post.postid = thread.lastpostid)
CÁ = subscribethread.userid ". $ VBulletin-> userinfo ['userid']."
NACH AGUS thread.forumid SA (0 $ blockforums)
AGUS thread.visible = 1
AGUS subscribethread.canview = 1
AGUS thread.lastpostid> $ lastpostid
AGUS TÁ deletionlog.primaryid NULL
$ Datecut
ORDU AG thread.lastpost desc TEORAINN $ limitq
");
}
eile
{
$ 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 MAR preview,
post.userid MAR lastpuserid
Ó ". TABLE_PREFIX." Snáithe MAR snáithe
Join LEFT ". TABLE_PREFIX." Deletionlog MAR deletionlog AR (thread.threadid = deletionlog.primaryid AGUS Cineál = 'snáithe')
Join LEFT ". TABLE_PREFIX." Iar MAR iar AR (post.postid = thread.lastpostid)
CÁ oscailte <> 10
$ Datecut
NACH AGUS thread.forumid SA (0 $ blockforums)
AGUS thread.visible = '1 '
AGUS thread.lastpostid> $ lastpostid
AGUS post.visible = 1
AGUS TÁ deletionlog.primaryid NULL
ORDU AG thread.lastpost desc TEORAINN $ limitq
");
}

$ As a chéile = $ highestid = 1;
$ Rowcolor = "alt2";

cé go ($ snáithe = $ db-> fetch_array ($ getthreads)) {
$ Dath = $ dath == 'alt1'? 'Alt2': 'alt1';

$ Thread ['teideal'] = htmlspecialchars_uni (fetch_censored_text (fetch_trimmed_title (unhtmlspecialchars ($ thread ['teideal']), 85)));
$ Thread ['dáta'] = vbdate ($ vBulletin-> roghanna thread ['dateformat'], $ ['lastpost'], 1);
$ Thread ['am'] = vbdate ($ vBulletin-> roghanna ['timeformat'], $ thread ['lastpost']);

/ / Faigh réidh html agus an chéad BBCode
$ Thread ['Réamhamharc'] = strip_tags (strip_bbcode thread ($ ['Réamhamharc'], fíor, fíor));
$ Thread ['Réamhamharc'] = htmlspecialchars_uni (fetch_trimmed_title ($ thread ['Réamhamharc'], 200));
$ Thread ['Réamhamharc'] = fetch_censored_text (fetch_word_wrapped_string ($ thread ['Réamhamharc'], 20));

$ Thread ['replycount'] = vb_number_format (thread $ ['replycount']);
$ Thread ['tuairimí'] = vb_number_format ($ thread ['tuairimí']);

$ Tforumid = $ thread ['forumid'];
$ Thread ['fóram'] = htmlspecialchars_uni ($ vBulletin-> forumcache ["$ tforumid"] ['teideal']);

más rud é ($ thread ['lastpostid'] == $ thread ['firstpostid'])
{
$ Etype = "Snáithe nua";
}
eile
{
$ Etype = "Nua Post";
}

/ / Statusicon
/ / Fillteán ponc a thaispeáint?
más rud é ($ vBulletin-> userinfo ['userid'] AGUS $ vBulletin-> roghanna ['showdots'] AGUS $ dotthreads ["$ thread [threadid]"])
{
$ Thread ['statusicon'] .= '_dot';
$ Thread snáithe ['dot_count'] = $ dotthreads ["$ [threadid ]"][' chomhaireamh '];
$ Thread snáithe ['dot_lastpost'] = $ dotthreads ["$ [threadid ]"][' lastpost '];
}

/ / Seó fillteán te?
más rud é ($ vBulletin-> roghanna ['usehotthreads'] AGUS (($ thread ['replycount']> = $ vBulletin-> roghanna ['hotnumberposts'] AGUS $ vBulletin-> roghanna ['hotnumberposts']> 0) NÓ ( $ thread ['tuairimí']> = $ vBulletin-> roghanna ['hotnumberviews'] AGUS $ vBulletin-> roghanna ['hotnumberviews']> 0)))
{
$ Thread ['statusicon'] .= '_hot';
}

/ Thaispeáint / fillteán faoi ghlas?
más rud é ($ thread ['oscailte'])
{
$ Thread ['statusicon'] .= '_lock';
}

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

más rud é (['déanamh'] $ _REQUEST == "xml")
{

Snake
20-04-10, 14:11
Seo é an dara cuid stadanna, vbet fóram post mór.


$ Aschur .= <<<VAPRINT
<event>
<id> {$ thread ['lastpostid']}</ id>
<what> $ etype </ a>
']}</ am <when> {$ thread ['dáta']} {$ thread ['nuair a>
<title> {$ thread ['teideal']}</ teideal>
<preview> {$ thread ['Réamhamharc']}</ réamhamharc>
<poster> {$ thread ['póstaer']}</ lastposter>
<threadid> {$ thread ['threadid']}</ threadid>
<postid> {$ thread ['lastpostid']}</ postid>
<lastpost> {$ thread ['lastpost']}</ lastpost>
<userid> {$ thread ['userid']}</ lastpuserid>
<forumid> {$ thread ['forumid']}</ forumid>
<forumname> {$ thread ['fóram']}</ forumname>
<views> {$ thread ['tuairimí tuairimí']}</>
<replies> {$ thread ['freagraí']}</ replycount>
<statusicon> {$ thread ['statusicon']}</ statusicon>
</ Imeacht>
VAPRINT;
}
eile
{
$ Rowcolor = ($ rowcolor == "alt1" "alt2":? "Alt1");

$ Nuair = $ gearrthóg = $ poster_clip = $ póstaer = null;

más rud é (stristr ($ etype, "snáithe"))
{
$ Post_url = "showthread.php? T = {$ thread ['threadid']}";
}
eile
{
$ Post_url = "showthread.php? P = {$ thread ['lastpostid']} # {iar $ thread ['lastpostid']}";
}

más rud é ($ thread ['teideal'])
{
$ Gearrthóg = "<strong> Unknown </ strong>";
}
eile
{
$ Gearrthóg = "<strong> <img src=\\"{$thread['statusicon']}\\" alt=\\"\\" /> <sprioc = \\" _blank \\ "href = \\" $ {post_url} \\ "> {$ thread ['teideal']}</ a> <> / láidir";
}

más rud é ($ thread ['Réamhamharc'])
{
$ Gearrthóg .= "<br /> {$ thread ['Réamhamharc']}";
}

$ Gearrthóg .= "({$ thread ['tuairimí'] tuairimí}, {$ thread ['replycount']} freagraí)";

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

$ Poster_clip .= "snáithe /> {$ thread ['dáta']} {$ <br ['t-am']}";

más rud é ($ thread ['fóram'])
{
$ Nuair .= "<strong> <a target=\\"_blank\\" href=\\"forumdisplay.php?f={$thread['forumid']}\\"> {$ thread']}</ fóram [' a>> </ strong ";
}
eile
{
$ Áit a = "";
}

más rud é (is_browser ('ceoldrámaíocht'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$row}"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width = "20" aicme = "$ rowcolor smallfont "nowrap =" nowrap "ailíniú =" ionad "> $ etype </ td> <td class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left"> $ poster_clip </ td > <td class="$rowcolor smallfont" width="80%"> $ clip </ td> <td class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center"> $ áit a </ td> </ tr> </ tábla> </ div> \\ n
VAPRINT;
}
eile
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$row}"> <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ etype </ div> </ td> <td aicme = " $ rowcolor smallfont "> <div class="smallfont"> $ poster_clip </ div> </ td> <td class="$rowcolor smallfont"> <div class="smallfont"> $ clip </ div> </ td > <td class="$rowcolor smallfont" align="center"> <div class="smallfont"> $ áit </ div> </ td> </ tr> \\ n
VAPRINT;
}

$ Ró + +;
más rud é ($ thread ['lastpostid']> $ highestid)
{
$ Highestid = $ thread ['lastpostid'];
}
}
}

más rud é ($ as a chéile <20)
{
haghaidh ($ x = $ as a chéile; $ x <21; $ x + +)
{
más rud é (is_browser ('ceoldrámaíocht'))
{
$ Prefetched .= <<<VAPRINT
<div id="row{$x}"> </ div> \\ n
VAPRINT;
}
eile
{
$ Prefetched .= <<<VAPRINT
<tr id="row{$x}"> <td class="$rowcolor smallfont" align="center"> </ td> <td class="$rowcolor smallfont"> </ td> < td aicme = "$ rowcolor smallfont"> </ td> <td class="$rowcolor smallfont" align="center"> </ td> </ tr> \\ n
VAPRINT;
}
}
}

/ / Cuimhne a shábháil
unset ($ snáithe);
$ Db-> free_result ($ getthreads);

más rud é (['déanamh'] $ _REQUEST == "xml")
{
header ('Content-Type: text / xml' ($ stylevar ['charset'] ='''; charset =' $ stylevar ['charset']:.!?.''));
macalla '<? xml version = "1.0" ionchódú = "'. $ stylevar ['charset'].'"?>'. "\\ R \\ n";

más rud é ($ aschur)
{
echo "$ <events> aschur </ imeachtaí>";
}
eile
{
macalla "<events />";
}

imeachta;
}

$ Navbits = eagar ();
$ Navbits [$ tuismitheoir] = 'Spy Suíomh';
$ 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 ('$ buntásc = "'. fetch_template ('buntásc').'";');
$ Buntásc = process_replacement_vars ($ buntásc);

macalla <<<VAPRINT
$ Stylevar [htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$ Headinclude
<style type="text/css">
. Spyfade1 div,. Spyfade1 réise,,. Spyfade1 td,. Spyfade1 img {
teimhneachta: 0.90;
scagaire: alfa (teimhneacht = 90);
-Moz-teimhneacht: 0.90;
}
. Spyfade2 div,. Réise spyfade2,. TD spyfade2,. Img {spyfade2
teimhneachta: 0.80;
scagaire: alfa (teimhneacht = 80);
-Moz-teimhneacht: 0.80;
}
. Spyfade3 div,. Spyfade3 réise,. Spyfade3 td,. Spyfade3 img {
teimhneachta: 0.70;
scagaire: alfa (teimhneacht = 70);
-Moz-teimhneacht: 0.70;
}
. Spyfade4 div,. Spyfade4 réise,. Spyfade4 td,. Spyfade4 img {
teimhneachta: 0.50;
scagaire: alfa (teimhneacht = 50);
-Moz-teimhneacht: 0.50;
}
. Spyfade5 div,. Spyfade5 réise,. Spyfade5 td,. Spyfade5 img {
teimhneachta: 0.30;
scagaire: alfa (teimhneacht = 30);
-Moz-teimhneacht: 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>
Juice Ríomhaireachta <title> - Spy Suíomh </ teideal>
</ Ceann>
<body onload="spyinit();">
$ Header
$ Navbar

<table width="90%" align="center"> <tr> <td width="50%" align="left"> <input type="checkbox" id="subscribe" value="1"> ; snáitheanna suibscríofa ach </ 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> </ tábla>
<br />
VAPRINT;

más rud é (is_browser ('ceoldrámaíocht'))
{
$ Aschur .= <<<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;"> Ballstáit </ td>
<td class="tcat" width="80%" style="height:25px;"> Thread / Iar </ td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;"> Fóram
</ 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>
</ Tábla>
VAPRINT;
}
eile
{
$ Aschur .= <<<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"> Imeacht </ td> <td class="thead" width="100"> Ballstáit </ td> <td aicme = "thead "> Tools / Iar </ td> <td class="thead" width="190"> Fóram </ 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>
</ Tábla>
VAPRINT;
}

$ Aschur .= <<<VAPRINT
$ Buntásc
VAPRINT;

macalla $ aschur;
?>

vBET
21-04-10, 01:59
Agus is é seo an cheist - aschur i gcló ach, mar sin níl aon seans a aistriú sé sa ghnáthbhealach.

ACH - ní mór dúinn a réiteach le haghaidh seo - an ceann a dúirt mé leat. Beidh sé déileáil le cásanna mar seo amháin. Cuir in iúl dúinn go díreach a bhfuil tú céim Trioblóidí. Beidh muid cabhrú leat treoracha branair nó fiú é a mhodhnú go dtí níos intuigthe:)

PS.
An bhfuil tú cinnte gur féidir ceadúnas seo a mod a fhoilsiú cód? Más rud é nach ansin déan é a bhaint di.

Snake
22-04-10, 09:46
Lig dom a bheith soiléir, ba mhaith liom tú a dhéanamh an obair seo, is féidir liom a íoc.

vBET
22-04-10, 14:23
Lig dom a bheith soiléir, ba mhaith liom tú a dhéanamh an obair seo, is féidir liom a íoc.

Ar ndóigh, seirbhísí a chuirimid ar fáil freisin d'íoc mar a shuiteáil, a uasghrádú. Ní raibh muid machnamh a dhéanamh ar sheirbhís chomhtháthú, ach is féidir a cheannach seirbhíse a uasghrádú (http://www.vbenterprisetranslator.com/upgrade-service.php) tú, agus beidh muid é a dhéanamh ar do shon.

Tabhair faoi deara go mbeidh orainn rochtain ar do CP FTP agus Riarachán a bheith in ann é seo a chomhtháthú (CP Admin - b'fhéidir nach ceart go leor má tá suímh iarbhír; FTP cinntitheach yes).

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