Thread: Integration with vBulletin - News Slideshow
View Single Post
  #278  
Old 06-18-2007, 05:03 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not seeing where to set it....and any attempts to do so end up in errors in IE where the entire slideshow is pushed to the far right on my main page. What in slideshow.php needs to be edited and how?

This is the HMTL part of the file:
Code:
<!-- JoomlaWorks "Frontpage Slideshow" for Joomla 1.0.x (v1.1) -->
<link href="/forums/clientscript/mod_fpslideshow/mod_fpslideshow.css" rel="stylesheet" type="text/css"/>
<style type="text/css" media="screen">
	#fpss-container {width:<?php echo $width; ?>;}
	#fpss-slider, #slide-loading, .slide {width:<?php echo $width; ?>;height:<?php echo $height; ?>;}
	#slide-outer, #slide-outer .slide-inner {height:<?php echo $height; ?>;}
</style>
<!--[if lt IE 7]>
<style type="text/css" media="screen">
	html {filter:expression(document.execCommand("BackgroundImageCache", false, true));}
</style>
<![endif]-->
<script language="javascript" type="text/javascript" src="/forums/clientscript/mod_fpslideshow/prototype.lite.js"></script>
<script language="javascript" type="text/javascript" src="/forums/clientscript/mod_fpslideshow/moo.fx.js"></script>
<script language="javascript" type="text/javascript" src="/forums/clientscript/mod_fpslideshow/moo.fx.pack.js"></script>
<script language="javascript" type="text/javascript" src="/forums/clientscript/mod_fpslideshow/mod_fpslideshow.js"></script>
<div id="fpss-container">
  <div id="fpss-slider">
    <div id="slide-loading"><img src="/forums/clientscript/mod_fpslideshow/loading.gif" alt="loading" /></div>
    <div id="slide-wrapper">
      <div id="slide-outer">
        <?php
$forumid = implode(',', $forumid);
$getnews = $db->query_read("SELECT threadid from " . TABLE_PREFIX . "thread WHERE attach !='0' AND forumid in($forumid) ORDER by sticky DESC, threadid DESC LIMIT $limit");
while ($news = $db->fetch_array($getnews)) { $myid[]=$news['threadid']; }
$div_id = 1;
foreach ($myid as $threadid) {
$getpics = $db->query_read("SELECT t.threadid as tid, t.title as title,t.replycount as rcount, p.pagetext as pagetext,a.attachmentid as attach,f.forumid as forumid,f.title as forum from " . TABLE_PREFIX . "thread as t
LEFT JOIN " . TABLE_PREFIX . "post as p on(t.firstpostid=p.postid)
LEFT JOIN " . TABLE_PREFIX . "attachment as a on(a.postid=p.postid)
LEFT JOIN " . TABLE_PREFIX . "forum as f on(t.forumid=f.forumid)
where t.threadid='$threadid' 
ORDER BY attach DESC
LIMIT 1");
while ($pic = $db->fetch_array($getpics)) {
$replies=$pic['rcount'];
if ($replies=='1') { $update="(1 update)"; } else if ($replies>'1') { $update="($replies updates)"; } else { $update=""; }

$foto="<div class=\"slide\">\n<div class=\"slide-inner\">\n<a href=\"/forums/showthread.php?t=".$pic['tid']."\"><img alt=\"Read full article\" src=\"/forums/attachment.php?attachmentid=".$pic['attach']."
\" /></a>\n<div class=\"fpss_introtext\">";

$maxchars="270";

$foto.= "<h1><a href=\"/forums/showthread.php?t=".$threadid."\">".ucwords($pic['title'])."</a></h1>";

$pic['pagetext'] = $bbcode_parser->do_parse($pic['pagetext']);
if (strlen($pic['pagetext']) > $maxchars) {$pic['pagetext'] = stripslashes(fetch_trimmed_title($pic['pagetext'], $maxchars));}
$pagetext = trim(substr($pagetext2, 0, strrpos(substr($pagetext2, 0, $maxchars), ' ')));

$foto .= ''.$pic['pagetext'].' <i>[ <a class="more" href="/forums/showthread.php?t='.$threadid.'"> read more</a> ]</i>';

$foto .= "<a title=\"Go there\" class=\"readon\" href=\"/forums/forumdisplay.php?f=".$pic['forumid']."\">".$pic['forum']."</a>&nbsp;&nbsp;&nbsp;<strong>$update</strong>";
$foto .= "</div>\n</div>\n</div>\n";

echo $foto;
$div_id++;
}
}
$db->free_result($getpics);
unset($pic);
$db->free_result($getnews);
unset($news);
?>
      </div>
    </div>
  </div>
  <div id="navi-outer">
    <div class="ul_container">
      <ul>
        <li><a href="#prev" onclick="showPrev();clearSlide();" title="Previous">&laquo;</a></li>
        <?php
		$fpss_nav_buttons = $div_id++;
		for ($i=1;$i<$fpss_nav_buttons;++$i) {
		?>
        <li><a class="navi" href="#<?php echo ($i < 10) ? "0".$i : $i; ?>"><?php echo ($i < 10) ? "0".$i : $i; ?></a></li>
        <?php } ?>
        <li><a href="#next" onclick="showNext();clearSlide();" title="Next">&raquo;</a></li>
        <li><a href="#play/pause" onclick="playButtonClicked();return false;" id="playButton">Pause</a></li>
      </ul>
    </div>
  </div>
</div>
Does anyone know?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01503 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete