The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
pbwow search results page help
Code:
<!-- INCLUDE overall_header.html --> <div class="clear" style="height:55px"></div> <div id="searchshell"> <div id="searchborder"> <div> <div> <div> <div> <div class="padding"> <div class="searchbox" style="height:60px"> <div class="listbox"> <ul> <li class="icon"><img src="/images/icons/arrow.gif" border="0" alt="{L_RETURN_TO}: {SEARCH_TOPIC}" /></li> <li class="text" style="width:400px"><span><b><!-- IF SEARCH_TOPIC --><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH_TOPIC}">{L_RETURN_TO}: {SEARCH_TOPIC}</a><!-- ELSE --><a class="{S_CONTENT_FLOW_BEGIN}" href="{U_SEARCH}" title="{L_SEARCH_ADV}">{L_RETURN_TO_SEARCH_ADV}</a><!-- ENDIF --></b></span> </li> </ul> <!-- IF SEARCH_IN_RESULTS --> <form method="post" action="{S_SEARCH_ACTION}"> <input type="hidden" name="show_results" value="posts" /> <ul style="padding-top:5px"> <li class="icon"><img src="/images/icons/search-text.gif" border="0" alt="Search" /></li> <li class="text"><span><b>{L_SEARCH_IN_RESULTS}:</b></span> </li> <li><span><input type="text" name="add_keywords" id="add_keywords" size="40" value="{SEARCH_WORDS}" /></span> </li> </ul> <div style="position: relative; clear: both; width: 1px;"><input type="submit" name="submit" value=" " style="position: absolute; top: -38px; left: 603px; background:url(/images/en_US/search-button.gif) no-repeat; height:42px; width:82px; border:none" /></div> </form> <!-- ENDIF --> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="cover" style="position:absolute; z-index:999999; top:0px; right:10px; width:300px; height:3000px; display:none; background-color:red;"></div> <div id="topicheader"> <div style="float: right;"> <a href="{U_INDEX}"><img src="/images/en_US/forum-index.gif" width="104" height="41" border="0" alt="" /></a> </div> <div id="topicview" style="margin-top: 14px;"> <ul> <li><span title="Current time"><small><font color="white"><b> <!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --></b><!-- IF SEARCH_WORDS -->: <a href="{U_SEARCH_WORDS}">{SEARCH_WORDS}</a><!-- ENDIF --><!-- IF IGNORED_WORDS --> | {L_IGNORED_TERMS}: <strong>{IGNORED_WORDS}</strong><!-- ENDIF --> | {CURRENT_TIME_CLEAN} </font></small></span></li> </ul> </div> </div> <!-- IF .searchresults --> <div id="paging"> <div class="lpage"> <!-- IF PAGINATION or .searchresults or S_SELECT_SORT_KEY or S_SELECT_SORT_DAYS --> <!-- INCLUDE pbwow_pagination.html --> <!-- ENDIF --> </div> </div> <!-- IF S_SHOW_TOPICS --> <div id="postbackground"> <div class="right"> <table width="90%" border="0" cellpadding="0" cellspacing="0" class="tableoutline" style="margin: 0 auto;"> <tr> <td class="tableheader"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><img src="/images/pixel.gif" border="0" width="1" height="22" alt="" /></td> <td style="padding: 0 0 0 5px;"><span> <a class="filter" href="#">{L_SUBJECT}</a></span></td> </tr> </table> </td> <td class="tableheader"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><img src="/images/pixel.gif" border="0" width="1" height="22" alt="" /></td> <td style="padding: 0 0 0 5px;"><span> <a class="filter" href="#">{L_FORUM}</a></span></td> </tr> </table> </td> <td align="center" class="tableheader"><span> <a class="filter" href="#">{L_AUTHOR}</a></span></td> <td align="center" class="tableheader"><span> <a class="filter" href="#">{L_REPLIES}</a></span></td> <td align="center" class="tableheader"><span> <a class="filter" href="#">{L_VIEWS}</a></span></td> <td align="center" class="tableheader"><span> <a class="filter" href="#">{L_LAST_POST}</a></span></td> <td class="tableheader"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><img src="/images/pixel.gif" border="0" width="1" height="22" alt="" /></td> <td style="padding: 0 0 0 5px;"><span> <a class="filter" href="#">{L_LAST_UPDATED}</a></span></td> </tr> </table> </td> </tr> <!-- BEGIN searchresults --> <tr class="rows"> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta2"> <!-- ELSE --><td class="t2"><!-- ENDIF --> <!-- IF searchresults.S_TOPIC_UNAPPROVED or searchresults.S_POSTS_UNAPPROVED or searchresults.S_TOPIC_REPORTED or searchresults.ATTACH_ICON_IMG --> <div style="float:right; display:inline"> <!-- IF searchresults.S_TOPIC_UNAPPROVED or searchresults.S_POSTS_UNAPPROVED --><a href="{searchresults.U_MCP_QUEUE}">{searchresults.UNAPPROVED_IMG}</a> <!-- ENDIF --> <!-- IF searchresults.S_TOPIC_REPORTED --><a href="{searchresults.U_MCP_REPORT}"><img src="/images/biohazard-button.gif" border="0" /></a> <!-- ENDIF --> <!-- IF searchresults.ATTACH_ICON_IMG -->{searchresults.ATTACH_ICON_IMG} <!-- ENDIF --> </div> <!-- ENDIF --> <!-- IF searchresults.S_UNREAD_TOPIC --> <a href="{searchresults.U_NEWEST_POST}"><img src="/images/square-new.gif" width="15" height="15" style="vertical-align:middle;" border="0" alt="" /></a> <!-- ELSE --> <a href="{searchresults.U_VIEW_TOPIC}"><img src="/images/square.gif" width="15" height="15" style="vertical-align:middle;" border="0" alt="" /></a> <!-- ENDIF --> <a href="{searchresults.U_VIEW_TOPIC}" class="active">{searchresults.TOPIC_TITLE}</a> <!-- IF searchresults.PAGINATION --> <small>[Page: {searchresults.PAGINATION}</small>] <!-- ENDIF --> </td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta3"><!-- ELSE --><td class="t3"><!-- ENDIF --><!-- IF not searchresults.S_TOPIC_GLOBAL --><a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a><!-- ELSE --> ({L_GLOBAL})<!-- ENDIF --></td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta3" style="white-space:nowrap"> <!-- ELSE --><td class="t3" style="white-space:nowrap"><!-- ENDIF --><!-- IF searchresults.U_TOPIC_AUTHOR --><!-- IF searchresults.TOPIC_AUTHOR_COLOUR --><a href="{searchresults.U_TOPIC_AUTHOR}" style="text-decoration:none; color:{searchresults.TOPIC_AUTHOR_COLOUR}"><!-- ELSE --><a href="{searchresults.U_TOPIC_AUTHOR}" style="text-decoration:none; color:#d7cea4"><!-- ENDIF -->{searchresults.TOPIC_AUTHOR}</a><!-- ELSE -->{searchresults.TOPIC_AUTHOR}<!-- ENDIF --></td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta4"> <!-- ELSE --><td class="t4"><!-- ENDIF -->{searchresults.TOPIC_REPLIES}</td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta5"> <!-- ELSE --><td class="t5"><!-- ENDIF -->{searchresults.TOPIC_VIEWS}</td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta6" style="white-space: nowrap"> <!-- ELSE --><td class="t6" style="white-space: nowrap" ><!-- ENDIF -->{L_POST_BY_AUTHOR} <b><!-- IF searchresults.U_LAST_POST_AUTHOR --><a href="{searchresults.U_LAST_POST_AUTHOR}" style="text-decoration:none; color:#d7cea4">{searchresults.LAST_POST_AUTHOR}</a><!-- ELSE -->{searchresults.LAST_POST_AUTHOR}<!-- ENDIF --></b></td> <!-- IF searchresults.S_ROW_COUNT is even --><td class="ta6" style="white-space: nowrap"> <!-- ELSE --><td class="t6" style="white-space: nowrap" ><!-- ENDIF -->{L_POSTED_ON_DATE} <a href="{searchresults.U_LAST_POST}"><b>{searchresults.LAST_POST_TIME}</b></a></td> </tr> <!-- END searchresults --> </table> </div> </div> <!-- ELSE --> <script type="text/javascript"> //<![CDATA[ var objGlobal; var startContainerHeight=0; var topPadding=365; if(Browser.safari) topPadding=240; var topScrollLocation=0; function floater(){ try{ var scrollTopValue=document.documentElement.scrollTop; if(Browser.safari) scrollTopValue=document.body.scrollTop; var divHeight=document.getElementById("floatingContainer"+previousPost).offsetHeight; var browserHeight=document.documentElement.clientHeight; if(scrollTopValue>topPadding && divHeight<browserHeight){ if((scrollTopValue+divHeight)<(document.body.offsetHeight-260)) objGlobal.style.top=scrollTopValue-topPadding+"px"; }else{ objGlobal.style.top="0px"; } }catch(err){ } } function init(){ objGlobal = document.getElementById("floatingContainer2"); window.onscroll=floater; switchPost(postIdArray[0]) } function testFunc(){ alert(objGlobal.style.top) objGlobal.style.top=200+"px"; } var previousPost=0; var previousBg=1; function hilightPost(postId) { var obj; if(postId != previousPost && postId != 0){ obj = document.getElementById("colorMod" + postId); obj.style.backgroundColor="#0D242D"; } } function restorePost(postId) { var obj; if(postId != previousPost && postId != 0){ obj = document.getElementById("colorMod" + postId); obj.style.backgroundColor="transparent"; } } function switchPost(postId, linkId) { var obj; if (postId == previousPost) { document.location.href=linkId; }else{ if(previousPost) { obj = document.getElementById("colorMod" + previousPost); // added to avoid javascript error for no search results if (obj == null) { return; } obj.style.backgroundColor="transparent"; obj = document.getElementById("floatingContainer" + previousPost); obj.style.display="none"; obj = document.getElementById("searchArrow" + previousPost); obj.style.visibility="hidden"; obj = document.getElementById("miniText" + previousPost); obj.innerHTML='<img src="/images/en_US/button-preview-post.gif" border="0" alt="" />'; } obj = document.getElementById("searchArrow" + postId); // added to avoid javascript error for no search results if (obj == null) { return; } obj.style.visibility="visible"; obj = document.getElementById("floatingContainer" + postId); obj.style.display="block"; obj = document.getElementById("colorMod" + postId); obj.style.backgroundColor="#063449"; obj = document.getElementById("miniText" + postId); obj.innerHTML='<img src="/images/en_US/button-jumpto-post.gif" border="0" alt="" />'; var divHeight=document.getElementById("floatingContainer"+postId).offsetHeight; if(startContainerHeight==0) startContainerHeight = document.getElementById("searchbackground").offsetHeight; obj = document.getElementById("floatingContainer"); if(!Browser.opera) if (divHeight > startContainerHeight){ obj.style.height=divHeight+"px"; obj = document.getElementById("searchbackground"); obj.style.height=divHeight+"px"; }else{ obj.style.height=startContainerHeight+"px"; obj = document.getElementById("searchbackground"); obj.style.height=startContainerHeight+"px"; } //alert(obj.style.height) previousPost = postId; floater(); //testFunc(); } } function checkSearchField(){ textSearch = document.searchForm.searchText.value; characterName = document.searchForm.characterName.value; return true; } //]]> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|