The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#9
|
|||
|
|||
![]() Quote:
![]() --------------- Added [DATE]1335461255[/DATE] at [TIME]1335461255[/TIME] --------------- I've changed external.php code to: Code:
if ($vbulletin->GPC['type'] == 'JS') { // javascript output $output = " function thread(threadid, title, poster, threaddate, threadtime, preview) { this.threadid = threadid; this.title = title; this.poster = poster; this.threaddate = threaddate; this.threadtime = threadtime; this.preview = preview; } "; $output .= "var threads = new Array(" . sizeof ($threadcache) . ");\r\n"; if (!empty($threadcache)) { require_once(DIR . '/includes/class_bbcode_alt.php'); foreach ($threadcache AS $threadnum => $thread) { $thread['title'] = addslashes_js(htmlspecialchars_uni($thread['prefix_plain']) . $thread['title']); $thread['poster'] = addslashes_js($thread['postusername']); $plaintext_parser = new vB_BbCodeParser_PlainText($vbulletin, fetch_tag_list($vbulletin->options['bburl'] . '/')); $preview = $plaintext_parser->parse($thread['message'], $thread['forumid']); unset($plaintext_parser); if (strlen($preview) > 23) $preview = substr($preview, 0, 23) . "..."; $preview = addslashes_js($preview); $output .= "\tthreads[$threadnum] = new thread($thread[threadid], '$thread[title]', '$thread[poster]', '" . addslashes_js(vbdate($vbulletin->options['dateformat'], $thread['dateline'])) . "', '" . addslashes_js(vbdate($vbulletin->options['timeformat'], $thread['dateline'])) . "', '" . $preview . "');\r\n"; } } } Code:
<script language="" type="text/javascript"> var name1 = new String(); var title1 = new String(); for (x = 0; x < 4; x++){ if (name1.length > 13){ name1 = name1.slice(0,9) + "…"; } preview1 = thread[x].preview; if (preview1.length > 26){ preview1 = preview1.slice(0,25) + "…"; preview1 = thread[x].preview; } if (title1.length > 26){ title1 = title1.slice(0,25) + "…"; } document.writeln("<a href=\"http://www.habbolandforum.net/showthread.php?t="+threads[x].threadid+"\" target=\"_blank\">"+title1+"</a><br /><div style=\"padding-bottom: 5px;\"><em>"+preview1+"</em></div>");} </script> It just shows nothing. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|