vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Shoutbox Hack 1.04b (https://vborg.vbsupport.ru/showthread.php?t=68861)

Vman 01-12-2005 04:57 AM

Hell, Im still waiting on a reply for Pruning Shouts....I have asked this question 4 times and still nothing...Other than that...LOVE THE HACK!!!! and so do my members!!!

noppid 01-12-2005 05:14 AM

Quote:

Originally Posted by BBCVman
Hell, Im still waiting on a reply for Pruning Shouts....I have asked this question 4 times and still nothing...Other than that...LOVE THE HACK!!!! and so do my members!!!

Ok, I'm not awake but in phpmyadmin using the field time

delete from shout_posts where time < YOUR_TIME;

look up linux time functions to get YOUR_TIME figured out,

There's a start.

yoyoyoyo 01-12-2005 03:43 PM

Quote:

Originally Posted by TruckMuddr
Yes, I just tried it and it is very easy.

Make a new Template and use this code or if you change the code that was on the FORUMHOME template use that.
Template name: adv_portal_shout
Code:

<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>


Now, go to Add Module Under vBa CMPS, and enter this info:

Module Title: Shoutbox - Thats what I used, You can use anything
Module Identifier: Leave Blank
File to Include: None
OR Template to Include: shout - Same as the template but w/o "adv_portal"
Active: Yes
Column: Center Column
Display Order: Where ever you want it
Templates Used: Leave Blank

You may or may not have to go to Edit Page and Click on the page and make sure the shout box is checked.


Hope this helps and doesn't piss anyone off. Atleast someone is trying to help.


EXCELLENT! MY THANKS TruckMuddr!

Gary King 01-12-2005 11:47 PM

I can't seem to see the Edit/Delete buttons for shouts in the shoutbox, even though I have permissions to do so.

Anyone else have this problem?

noppid 01-13-2005 12:04 AM

Quote:

Originally Posted by Gary King
I can't seem to see the Edit/Delete buttons for shouts in the shoutbox, even though I have permissions to do so.

Anyone else have this problem?

Click on the posters name and you'll see a drop down menu.

Gary King 01-13-2005 12:05 AM

ah yes thank you, that's it :)

steadicamop 01-13-2005 06:55 PM

Quote:

Originally Posted by MooMan65
Great hack! Since upgrading to v3.0.5 I've changed from using BVShoutbox to this one, except I'm wondering has anyone figured out a reason/fix for the refresh bug? I'm getting the same issue where it refreshes the whole page when you submit a shout, but the auto-refresh works fine. I have members using Firefox and IE, and on different Windows versions all having the same problem, so it might be a coding issue. Anyone?

Yep I'm having the same issue .... a tad annoying but it works a charm otherwise!

RMS 01-14-2005 12:39 AM

I had this running fine earlier and I tried to get it to run on a a new style but it wouldn't. I tried to just reinstall it which ended up in me not being able to use the shoutbox in my original style either. I mean I could see everything fine in shoutbox.php but not on the index. So, I tried removing everything and redid everything (I think) but it's even worse now. Now, the empty box doesn't even show up on the index at all.

I'm trying to uninstall this now but I can't seem to get the uninstall script to run. It tells me "There is no record of being installed. It cannot be uninstalled." I'm looking at my database and clearly see that there are in fact many records. How can I fix this?

dede1 01-14-2005 04:28 PM

Hello,

I have two mistake lines in the Shoutbox Settings:

Quote:

Parse error: parse error, unexpected T_STRING in /var/www/vboard/Board/includes/adminfunctions_options.php(96) : eval()'d code on line 1
and then this error ist not yes/no Attitude

Quote:

Hierarchy Mode?
If you set this to option #1, then users <b>can</b> edit other users with the same hierarchy rank (default). If you set it to option #2, then users <b>can not</b> edit users with the same hierarchy rank.

Show an Input Box/Textarea on Forumhome?

With this option, you can show a textarea or an input box on forumhome allowing users to shout without going to into the shoutbox first.


Where is the mistake there?

yoyoyoyo 01-14-2005 09:10 PM

here's an odd bug, not sure if it has been reported: you can't start a shout with a non-alpha character or it takes you to the shoutbox.php page
Nothing to make me click uninstall, etc., but it is just odd

Also- something weird I discovered: go to the page that has the shout box and change the ? after the .php to a / (ie: index.php? to index.php/) and check out the shoutbox. then scroll up and down a few times in the shoutbox area with your scrolling mouse... pretty wacky. Again - not a bug with the shoutbox of course since the php code is incorrect for the URL, but I just thought it was cool to see and thought others might like to check it out.


All times are GMT. The time now is 01:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01446 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete