The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Activity Stream Refresh Code
I'm working on customizing the layout of my activity feed and I wiped pretty much all but {vb:raw activitybits} from the home template. This has definitely stopped the autorefresh from working. I can't figure out which part of the file refreshes. It seems like it loads them into a newactivity area, but I'd really just rather them pour right out into the activitybits as the ones before it.
Thanks for your help. Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} <title>{vb:rawphrase activity_stream} - {vb:raw vboptions.bbtitle}</title> <script type="text/javascript" src="clientscript/vbulletin_activitystream.js?v={vb:raw vboptions.simpleversion}"></script> <script type="text/javascript"> <!-- var activity_stream_options = { 'type' : 'home', 'mindateline' : '{vb:raw actdata.mindateline}', 'maxdateline' : '{vb:raw actdata.maxdateline}', 'minscore' : '{vb:raw actdata.minscore}', 'minid' : '{vb:raw actdata.minid}', 'maxid' : '{vb:raw actdata.maxid}', 'count' : '{vb:raw actdata.count}', 'totalcount' : '{vb:raw actdata.totalcount}', 'perpage' : '{vb:raw actdata.perpage}', 'sortby' : '{vb:raw actdata.sortby}', 'time' : '{vb:raw actdata.time}', 'show' : '{vb:raw actdata.show}', 'newcontent' : '{vb:raw actdata.new}', 'refresh' : '{vb:raw actdata.refresh}' }; // --> </script> {vb:cssfile activitystream.css} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"><h1>{vb:rawphrase activity_stream}</h1></div> <div class="block activitystream"> <div class="blockhead"> <div class="popupgroup" id="streamfilter"> <div class="popupmenu"> <a href="javascript://" class="popupctrl">{vb:rawphrase filter}</a> <table class="popupbody popuphover filter"> <thead> <tr> <th>{vb:rawphrase sort_by}</th> <th>{vb:rawphrase time}</th> <th>{vb:rawphrase show}</th> </tr> </thead> <tbody> <tr> <td> <span{vb:raw selected.recent}>{vb:rawphrase recent}</span> <a {vb:raw unselected.recent}href="activity.php?{vb:raw session.sessionurl}sortby=recent&{vb:raw arguments.sortby}">{vb:rawphrase recent}</a> <span{vb:raw selected.popular}>{vb:rawphrase popular}</span> <a {vb:raw unselected.popular}href="activity.php?{vb:raw session.sessionurl}sortby=popular&{vb:raw arguments.sortby}">{vb:rawphrase popular}</a> </td> <td> <span{vb:raw selected.anytime}>{vb:rawphrase anytime}</span> <a {vb:raw unselected.anytime} href="activity.php?{vb:raw session.sessionurl}time=anytime&{vb:raw arguments.time}">{vb:rawphrase anytime}</a> <span{vb:raw selected.today}>{vb:rawphrase last_24_hours}</span> <a {vb:raw unselected.today} href="activity.php?{vb:raw session.sessionurl}time=today&{vb:raw arguments.time}">{vb:rawphrase last_24_hours}</a> <span{vb:raw selected.week}>{vb:rawphrase last_7_days}</span> <a {vb:raw unselected.week} href="activity.php?{vb:raw session.sessionurl}time=week&{vb:raw arguments.time}">{vb:rawphrase last_7_days}</a> <span{vb:raw selected.month}>{vb:rawphrase last_30_days}</span> <a {vb:raw unselected.month} href="activity.php?{vb:raw session.sessionurl}time=month&{vb:raw arguments.time}">{vb:rawphrase last_30_days}</a> </td> <td> <span{vb:raw selected.all}>{vb:rawphrase all}</span> <a {vb:raw unselected.all} href="activity.php?{vb:raw session.sessionurl}show=all&{vb:raw arguments.show}">{vb:rawphrase all}</a> <span{vb:raw selected.photos}>{vb:rawphrase photos}</span> <a {vb:raw unselected.photos} href="activity.php?{vb:raw session.sessionurl}show=photos&{vb:raw arguments.show}">{vb:rawphrase photos}</a> <span{vb:raw selected.forum}>{vb:rawphrase forum}</span> <a {vb:raw unselected.forum} href="activity.php?{vb:raw session.sessionurl}show=forum&{vb:raw arguments.show}">{vb:rawphrase forums}</a> <vb:if condition="$show['as_cms']"> <span{vb:raw selected.cms}>{vb:rawphrase articles}</span> <a {vb:raw unselected.cms} href="activity.php?{vb:raw session.sessionurl}show=cms&{vb:raw arguments.show}">{vb:rawphrase articles}</a> </vb:if> <vb:if condition="$show['as_blog']"> <span{vb:raw selected.blog}>{vb:rawphrase blog}</span> <a {vb:raw unselected.blog} href="activity.php?{vb:raw session.sessionurl}show=blog&{vb:raw arguments.show}">{vb:rawphrase blogs}</a> </vb:if> <vb:if condition="$show['as_socialgroup']"> <span{vb:raw selected.socialgroup}>{vb:rawphrase social_groups}</span> <a {vb:raw unselected.socialgroup} href="activity.php?{vb:raw session.sessionurl}show=socialgroup&{vb:raw arguments.show}">{vb:rawphrase social_groups}</a> </vb:if> {vb:raw template_hook.activitystream_filter} </td> </tr> </tbody> </table> </div> </div> </div> <div class="blockbody"> <vb:if condition="$show['filterbar']"> <div class="filterbar"> {vb:rawphrase filter_by} <vb:each from="filter" value="stuff"> <span class="filtertype">{vb:raw stuff.phrase}</span> <a href="activity.php?{vb:raw session.sessionurl}&{vb:raw stuff.arguments}"><img src="{vb:stylevar imgdir_siteicons}/x.png" class="closeicon" alt="" title="{vb:rawphrase close}" /></a> </vb:each> <a href="activity.php{vb:raw session.sessionurl_q}">{vb:rawphrase clear_all}</a> </div> </vb:if> <div id="newactivity_container" class="newactivity hidden"> <span id="newactivitylink">{vb:rawphrase new_activity, '<span id="newactivitycount"></span>'}</span> </div> <div id="newactivity_nomore" class="newactivity hidden"> <span>{vb:rawphrase please_reload_stream}</span> </div> <ul id="activitylist"> <li id="olderactivity" class="hidden"> <div class="block1"><hr /></div> <div class="block2">{vb:rawphrase older_activity}</div> <div class="block3"><hr /></div> </li> {vb:raw activitybits} </ul> </div> </div> <div id="moreactivity_container" class="moreactivity userprof_headers userprof_headers_border"> <a id="moreactivitylink" <vb:if condition="!$show['moreactivity']">class="hidden" </vb:if>href="activity.php?{vb:raw session.sessionurl}">{vb:rawphrase more_activity}</a> <span id="noresults"<vb:if condition="!$show['nomoreresults']"> class="hidden"</vb:if>>{vb:rawphrase no_more_results}</span> <span id="noactivity"<vb:if condition="!$show['noactivity']"> class="hidden"</vb:if>>{vb:rawphrase no_recent_activity}</span> <img id="moreactivityprogress" class="hidden" src="{vb:stylevar imgdir_misc}/progress3.gif" alt="" /> </div> {vb:raw footer} </body> </html> Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} <title>{vb:rawphrase activity_stream} - {vb:raw vboptions.bbtitle}</title> <script type="text/javascript" src="clientscript/vbulletin_activitystream.js?v={vb:raw vboptions.simpleversion}"></script> <script type="text/javascript"> <!-- var activity_stream_options = { 'type' : 'home', 'mindateline' : '{vb:raw actdata.mindateline}', 'maxdateline' : '{vb:raw actdata.maxdateline}', 'minscore' : '{vb:raw actdata.minscore}', 'minid' : '{vb:raw actdata.minid}', 'maxid' : '{vb:raw actdata.maxid}', 'count' : '{vb:raw actdata.count}', 'totalcount' : '{vb:raw actdata.totalcount}', 'perpage' : '{vb:raw actdata.perpage}', 'sortby' : '{vb:raw actdata.sortby}', 'time' : '{vb:raw actdata.time}', 'show' : '{vb:raw actdata.show}', 'newcontent' : '{vb:raw actdata.new}', 'refresh' : '{vb:raw actdata.refresh}' }; // --> </script> {vb:cssfile activitystream.css} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div class="activity_wrap"> {vb:raw activitybits} </div> {vb:raw footer} </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|