Status
Not open for further replies.

kamrul

Active Member
726
2009
6
0
Plugin install---
Code:
http://hotfile.com/dl/21849478/862f62f/vbulletin-plugins.xml.html
add this code --FORUMHOME-->navbar--> below

Code:
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top">
<!--{%SHOUTBOX%}-->
</td>
<if condition="$bbuserinfo['field6'] == 'Yes'"><else />
<td width="10">&nbsp;</td><td valign="top" width="300">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
    <td class="tcat" align="center">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestposts')"><img id="collapseimg_forumhome_latestposts" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestposts].gif" alt="" border="0" /></a>
        Latest Posts
    </td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_latestposts" style="$vbcollapse[collapseobj_forumhome_latestposts]">
    <tr>
        <td class="alt1" align="left" width="100%">
<div style="padding: 2px; margin-top: 3px; margin-left: 2px; width: 100%;">
<div style="border: 0pt none; height: 218px; width: 98%; overflow: auto;">
<div id="tabContent"></div>$latest_posts

</div>
</div>
</if>
<script type="text/javascript">
var tabVar=new ajaxtabs("tabs", "tabContent")
tabVar.setpersist(true)
tabVar.setselectedClassTarget("link") //"link" or "linkparent"
tabVar.init()
</script>





        
        </td>

    </tr>
</tbody>
</table></td></tr></table>
This is for infernoshot not others.
 
Last edited:
95 comments
No, the chatbox we have here is Cyb - Chatbox and was editing using div's.

This is for Inferno Shoutbox.
Anyway, good work.
 
If you want it for cyb, just do this;

1. Import the plugin.

2. Go to Admin CP > vBulletin Options > Cyb - ChatBox >
Position on page (Disable if you add ChatBox manually in templates) <- Make it disabled.


3.Now, add this to the very bottom of your navbar template:
<br />


<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top">
$cybchatbox
</td>
<if condition="$bbuserinfo['field6'] == 'Yes'"><else />
<td width="10">&nbsp;</td><td valign="top" width="300">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" align="center">
<a style="float:$stylevar
" href="#top" onclick="return toggle_collapse('forumhome_latestposts')"><img id="collapseimg_forumhome_latestposts" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestposts].gif" alt="" border="0" /></a>
Latest Posts
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_latestposts" style="$vbcollapse[collapseobj_forumhome_latestposts]">
<tr>
<td class="alt1" align="left" width="100%">
<div style="padding: 2px; margin-top: 3px; margin-left: 2px; width: 100%;">
<div style="border: 0pt none; height: 218px; width: 98%; overflow: auto;">
<div id="tabContent"></div>$latest_posts

</div>
</div>
</if>
<script type="text/javascript">
var tabVar=new ajaxtabs("tabs", "tabContent")
tabVar.setpersist(true)
tabVar.setselectedClassTarget("link") //"link" or "linkparent"
tabVar.init()
</script>






</td>

</tr>
</tbody>
</table></td></tr></table>

<br />​


Enjoy.

Edit: Temp fix for the height alignment issue.
Make this: Message listing area height (ChatBox) 140.​
 
Table Size Fixed, For the CYB.

Code:
<br />


<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top">
$cybchatbox
</td>
<if condition="$bbuserinfo['field6'] == 'Yes'"><else />
<td width="10">&nbsp;</td><td valign="top" width="450">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestposts')"><img id="collapseimg_forumhome_latestposts" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestposts].gif" alt="" border="0" /></a>
Latest Posts
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_latestposts" style="$vbcollapse[collapseobj_forumhome_latestposts]">
<tr>
<td class="alt1" align="left" width="100%">
<div style="padding: 2px; margin-top: 3px; margin-left: 2px; width: 100%;">
<div style="border: 0pt none; height: 123px; width: 98%; overflow: auto;">
<div id="tabContent"></div>$latest_posts

</div>
</div>
</if>
<script type="text/javascript">
var tabVar=new ajaxtabs("tabs", "tabContent")
tabVar.setpersist(true)
tabVar.setselectedClassTarget("link") //"link" or "linkparent"
tabVar.init()
</script>






</td>

</tr>
</tbody>
</table></td></tr></table>

<br />
 
This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.
This limit is reached.
To download this file, the uploader either needs to transfer this file into his/her Collector's Account, or upload the file again. The file can later be moved to a Collector's Account. The uploader just needs to click the delete link of the file to get further information.




can some one tell me the mod name ? so I can find it somewhere or link me please ?
 
http://imgcentre.com/img/uploads/big/afdd5c3781.png

How would I make my latest posts:
http://imgcentre.com/img/uploads/big/3641bcda0e.png

Have that underline between them?
My Template:
Code:
<br />

<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top">
$cybchatbox
</td>
<if condition="$bbuserinfo['field6'] == 'Yes'"><else />
<td width="10">&nbsp;</td><td valign="top" width="300">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestposts')"><img id="collapseimg_forumhome_latestposts" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestposts].gif" alt="" border="0" /></a>
Latest Posts
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_latestposts" style="$vbcollapse[collapseobj_forumhome_latestposts]">
<tr>
<td class="alt1" align="left" width="100%">
<div style="padding: 2px; margin-top: 3px; margin-left: 2px; width: 100%;">
<div style="border: 0pt none; height: 175px; width: 98%; overflow: auto;">
<div id="tabContent"></div>$latest_posts

</div>
</div>
</if>
<script type="text/javascript">
var tabVar=new ajaxtabs("tabs", "tabContent")
tabVar.setpersist(true)
tabVar.setselectedClassTarget("link") //"link" or "linkparent"
tabVar.init()
</script>






</td>

</tr>
</tbody>
</table></td></tr></table>

<br />
My Plugin Template:
Code:
$siteposts = $db->query_read("
SELECT thread.lastposter, thread.lastpost, thread.views, thread.open, thread.forumid, thread.replycount, thread.threadid, thread.pollid, thread.title, user.username, user.userid, user.usergroupid, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid FROM thread as thread 
LEFT JOIN user AS user ON (user.username = thread.lastposter) ORDER BY lastpost DESC LIMIT 0, 15");
    while($latest = $db->fetch_array($siteposts)) 
    {
    
$latest['title'] = str_replace($hidechar, " ", $latest['title']);

if (strlen($latest['title']) > 28)
        {        
            $latest['title'] = substr($latest['title'], 0, 28) . '...';
        }
        else
        {
            $latest['title'] = $latest['title'];
        }

$latest['title'] = htmlspecialchars($latest['title']);
$trans = array("&amp;" => "&");
$latest['title'] = strtr($latest['title'], $trans);
$latest['replycount'] = number_format($latest['replycount']);
$lastest[musername] = fetch_musername($latest);
$lastest[musername] = $db->escape_string($lastest['musername']);
$date = date("g:i a",$latest['lastpost']);

$latest_posts .= "
<div style='padding: 4px;'>
<div style='font-size: 11px;'>&bull; <a href='showthread.php?t=$latest[threadid]' title='$latest[title]' style='font-size: 10px;'><b>$latest[title]</b></a></div>
<div style='padding-top: 1px; padding-bottom: 1px;'><a href='member.php?u=$latest[userid]' style='font-size: 9px;'>$latest[musername] Posted this thread at $date</a></div>

</div>";
}
$db->free_result($siteposts);
 
Status
Not open for further replies.
Back
Top