vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 04-05-2005, 04:37 PM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Question Shoutbox LeftSide Module

I have the Shoutbox Hack found HERE installed and running and I would like to make a LeftSide Module similar to the "Latest Forum Topics" Module but only display the latest 5 shouts with:

- Username
- Shout Message
- Time Stamp

Any help would be appreciated.
  #2  
Old 04-07-2005, 10:34 AM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

bump...
  #3  
Old 04-26-2005, 10:39 AM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

My site is almost ready for launch, this is the last hack needed. Can anyone help me out here?
  #4  
Old 04-28-2005, 09:45 PM
Tigur Tigur is offline
Junior Member
 
Join Date: Apr 2005
Posts: 21
Default Re: Shoutbox LeftSide Module

http://www.vbadvanced.com/forum/show...light=shoutbox
  #5  
Old 05-20-2005, 11:10 AM
mawtenbiker mawtenbiker is offline
Junior Member
 
Join Date: May 2005
Posts: 5
Default Re: Shoutbox LeftSide Module

Quote:
Originally Posted by Tigur
If you are running a new version of VB this is not going to work.
  #6  
Old 05-23-2005, 03:58 PM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

Any takers? Name your price!

Here is an example of how I would like it to look...
Attached Images
File Type: jpg Shout_Block.jpg (28.3 KB, 57 views)
  #7  
Old 05-26-2005, 01:16 PM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

Ok, making progress...

I have the 'Shout Now' button working correctly, now I just need to know how to display the Last 5 Shouts, here is my Template Code:
PHP Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
<
tr>
<
td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] <a href="$vboptions[bburl]/shoutbox.php?">ShoutBox</a></b></span></td>
</
tr>
<
tr>
<
td class="$getbgrow"><span class="smallfont">

<
b><u>Username</u></b>
<
br />
Shout Text
<br />
<
i>Timestamp</i>
<
br /><br />

<
b><u>Username</u></b>
<
br />
Shout Text
<br />
<
i>Timestamp</i>
<
br /><br />

<
b><u>Username</u></b>
<
br />
Shout Text
<br />
<
i>Timestamp</i>
<
br /><br />

<
b><u>Username</u></b>
<
br />
Shout Text
<br />
<
i>Timestamp</i>
<
br /><br />

<
b><u>Username</u></b>
<
br />
Shout Text
<br />
<
i>Timestamp</i>
<
br /><br />

</
span>
<
center>
<
form action="$vboptions[bburl]/shoutbox.php?" method="post"><input type="hidden" name="do" value="addshout"><input type="text" class="bginput" name="message" value="" size="25" ><br />
<
span class="smallfont">
<
i>(50 Character Limit)</i>
</
span><br /><br />
<
input type="submit" name="submit" value="Shout Now" class="bginput" accesskey="s"></form>
</
center>
</
td>
</
tr>    
</
table>
<
br /> 
Again, it will need to look like the updated attached image and NOT use iFrames.
Attached Images
File Type: gif ShoutBlock_small.gif (6.6 KB, 19 views)

Last edited by DGTLMIK; 05-26-2005 at 01:18 PM.
  #8  
Old 06-03-2005, 12:21 AM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

More progress...

Here is my PHP code:
PHP Code:
<?php

$latestshouts 
$DB_site->query("
    SELECT s.*, u.username AS absusername
    FROM " 
TABLE_PREFIX "shoutbox_posts s 
    LEFT JOIN " 
TABLE_PREFIX "user u ON (s.userid=u.userid) 
    WHERE (deleted='0' OR deleted IS NULL)
    ORDER BY time DESC LIMIT 5
    "
);
while (
$shoutbox_post=$DB_site->fetch_array($latestshouts)) {
            
$shoutbox_post_user $shoutbox_post['username'];
            
$shoutbox_post_text $shoutbox_post['text'];
            
$shoutbox_text parse_bbcode2("$shoutbox_post_text"$vboptions['shoutbox_allowhtml'], $vboptions['shoutbox_allowimage'], $vboptions['shoutbox_allowsmilies'], $vboptions['shoutbox_allowbbcode'], 01);
            
$shoutbox_post_date vbdate($vboptions['dateformat'], $shoutbox_post['time'], 1);
            
$shoutbox_post_time vbdate($vboptions['timeformat'], $shoutbox_post['time']);
}

eval(
'$home[$mods[\'modid\']][\'content\'] .= "' fetch_template('adv_portal_shoutbox') . '";');

?>
Here is my new Template Code:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] <a href="$vboptions[bburl]/shoutbox.php?">Shoutbox</a></b></span></td>
</tr>

<if condition="!$bbuserinfo['userid']">
<tr><td class="$getbgrow"><span class="smallfont">Registered Members can use the Shoutbox here.<br /><br /><phrase 1="$vboptions[bburl]">$vbphrase[not_a_member_yet_register_now]</phrase></span></td></tr>

<else />

<tr><td class="alt2"><span class="smallfont">
<u>$shoutbox_post_user</u>:<br />
$shoutbox_text<br />
<i>$shoutbox_post_date @ $shoutbox_post_time</i>
</span></td></tr>

<tr><td class="alt1" align="center">
<form action="$vboptions[bburl]/shoutbox.php?" method="post"><input type="hidden" name="do" value="addshout"><input type="text" class="bginput" name="message" value="" size="17" >&nbsp;<input type="submit" name="submit" value="Go" class="bginput" accesskey="s"></form><br />
<span class="smallfont">
<i>(50 Character Limit)</i>
</span></td></tr>

</if>
</table>
<br />
Now, the problem is it only displays the 5th Latest Shout. I want it to display the Latest 5 Shouts in alternating colors like the Latest Forum Topics Module does (see attachment).

Brian, please help me out here, I can see the Finish Line ahead.
Attached Images
File Type: gif alt_colors.gif (4.6 KB, 26 views)

Last edited by DGTLMIK; 06-03-2005 at 10:29 AM.
  #9  
Old 06-03-2005, 11:35 AM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: Shoutbox LeftSide Module

Nevermind, 'jugo' helped me out HERE.

Last edited by DGTLMIK; 06-03-2005 at 12:12 PM.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shoutbox? boo Add-On Modules & Modifications 2 12-08-2004 11:44 AM
Shoutbox help :D curetheitch Add-On Modules & Modifications 2 07-13-2004 07:21 PM


All times are GMT -4. The time now is 04:21 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.