PDA

View Full Version : Shoutbox Hack 1.04a ?


curetheitch
10-25-2004, 07:54 AM
I was just wondering if there's a way to put the Shoutbox Hack 1.04a on the portal page? Click here to view the shoutbox hack. (http://www.vbulletin.org/forum/showthread.php?t=68861)

This would be great :D Thanks :D.

deb0
11-06-2004, 08:58 PM
Yeah, me 2!!

Our Sponsors
 

e-steki
08-01-2005, 08:01 PM
Yeah, add me too.
I found such a hack in it's thread in vbulletin.org (post #375) but it doesn't seem to work...

ilynx2k5
08-03-2005, 06:20 PM
Ive got a work around....

Install the shoutbox as normal, then go to

Style Manager > Edit Templates and select adv_portal.

Find


$home[centerblocks]


and add this code above it


<if condition="$vboptions['shoutbox_forumhomeshouts'] == 1">
<!-- shoutbox hack (by squall14716) -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_shoutbox')"><img id="collapseimg_forumhome_shoutbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
<a href="shoutbox.php?$session[sessionurl]">
<if condition="$vboptions[shoutbox_numberofforumhomeshouts] == 1">
<phrase 1="$vbphrase[shoutbox_forumhome_latest]" 2="" 3="$vbphrase[shoutbox_forumhome_shout]">$vbphrase[shoutbox_forumhome_x_y_z]</phrase>
<else /><phrase 1="$vbphrase[shoutbox_forumhome_last]" 2="$vboptions[shoutbox_numberofforumhomeshouts]" 3="$vbphrase[shoutbox_forumhome_shouts]">$vbphrase[shoutbox_forumhome_x_y_z]</phrase>
</if></a></td>
</tr>
<tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_shoutbox]">
<tr valign="top">
<td class="alt2"><a href="shoutbox.php?$session[sessionurl]"><img src="$stylevar[imagesfolder]/icons/icon2.gif" alt="" title="" border="0" />
<if condition="!($permissions['shoutboxpermissions'] & SHOUTVIEW) || $bbuserinfo['shoutbanned'] == 1">
<td class="alt1" width="100%"><span class="smallfont"><b>$vbphrase[shoutbox_noviewperms]</b></span></td>
<else />
<if condition="$vboptions['shoutbox_iframe'] == 0">
<!-- IF THE IFRAME IS DISABLED -->
<td class="alt1" width="100%"><span class="smallfont">
<div class="smallfont" style="height:150px;width:100%;overflow:auto"><hr> $latestshouts<br/> </div> <if condition="$vboptions['shoutbox_shoutonforumhome'] == input && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60" <if condition="$vboptions['shoutbox_shoutcharlimit'] != 0">maxlength="$vboptions[shoutbox_shoutcharlimit]"</if>>&nbsp;&nbsp;<input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></if> <if condition="$vboptions['shoutbox_shoutonforumhome'] == textarea && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><center><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><textarea name="message" rows="5" cols="60" class="bginput" wrap></textarea><br><input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></center></if>
</span></td>
<else />
<!-- IF THE IFRAME IS ENABLED -->
<td class="alt1" width="100%"><span class="smallfont">
<if condition="$vboptions['shoutbox_shoutonforumhome'] == input && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60" <if condition="$vboptions['shoutbox_shoutcharlimit'] != 0">maxlength="$vboptions[shoutbox_shoutcharlimit]"</if>>&nbsp;&nbsp;<input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form><br /></if>
<iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="165" scrolling="auto" frameborder="0" name="forumhome_shoutbox" id="forumhome_shoutbox"></iframe>
<if condition="$vboptions['shoutbox_shoutonforumhome'] == textarea && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><center><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><textarea name="message" rows="5" cols="60" class="bginput" wrap></textarea><br><input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></center></if>
</span></td>
</if>
</tr>
</if>
</tbody>
</thead>
</table>
<br />
<!-- end shoutbox hack (by squall14716) -->
</if>



This will put your shoutbox above your welcome box. if you put the code above/below $home[rightblocks] or $home[leftblocks] you can put your shoutbox in the left or right columns

Hope this helps!

Our Sponsors
 

e-steki
08-03-2005, 07:11 PM
Thanks a lot, I'm going to try it out! :)

Scooterpig
08-05-2005, 04:47 AM
Works a treat, thank you..:)

JWEB
08-12-2005, 07:45 AM
Don't work with vB 3.0.7 & vba 2.xx

Scooterpig
08-12-2005, 10:29 PM
Don't work with vB 3.0.7 & vba 2.xx

Yet again incorrect JWEB!

Scooterpig
08-13-2005, 01:19 AM
How would you get the word Shoutbox within the top of the module please, as there's nothing there at the moment, even though it's obvious what it is.

unkemone
09-23-2005, 06:48 PM
It shows up but I get a blank block any ides ?