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)

Alzeimer 01-03-2005 08:36 PM

Cannot see the file modifications, I get a blank screen, can someone attach them in a txt file?

Vman 01-03-2005 11:26 PM

Quote:

Originally Posted by BBCVman
How do I mass prune shouts...I can't seem to find that!

ANYONE.....or does everyone just let their shouts stackup so you have 44 pages in 5 days...If there was an option for this I did not see it, So Please point me in the right direction...Thanks.....

noppid 01-04-2005 02:37 AM

Ok Ok already. I recreated the notes for you guys. This is not official but it's what I have and use.

moethelawn 01-04-2005 04:37 AM

Huh... after my vB 3.0.4 update, the shoutbox is blank... and I found out that all the shoutbox templates disappeared. So I dug around and found the templates in the installer and then I manually created the templates. Actually, once I put the 'SHOUTBOX' template in a couple of styles, the other shoutbox templates that disappeared came back (but there were a couple of other styles I had to manually add the templates back up again).

Now I can shout again from the homepage... BUT if I click and go into shoutbox.php... it gives me this crap:

Code:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/gamerene/public_html/forums/shoutbox.php(1059) : eval()'d code on line 46

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/gamerene/public_html/forums/shoutbox.php(1059) : eval()'d code on line 47

I've already made the necessary file changes since the upgrade.

Any ideas?

TruckMuddr 01-04-2005 08:04 AM

Quote:

Originally Posted by dleblanc3
Is there a way to display on the CMPS?

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.

noppid 01-04-2005 10:58 AM

Quote:

Originally Posted by moethelawn
Huh... after my vB 3.0.4 update, the shoutbox is blank... and I found out that all the shoutbox templates disappeared. So I dug around and found the templates in the installer and then I manually created the templates. Actually, once I put the 'SHOUTBOX' template in a couple of styles, the other shoutbox templates that disappeared came back (but there were a couple of other styles I had to manually add the templates back up again).

Now I can shout again from the homepage... BUT if I click and go into shoutbox.php... it gives me this crap:

I've already made the necessary file changes since the upgrade.

Any ideas?


We had to run the installer after upgrading to to 3.0.3 and 3.0.4 and then everything worked fine. Oddly enough my template edits remained intact. But, hey, it works! :)

zell_11 01-04-2005 08:53 PM

Hye can u tell me how to get this on ever page

moethelawn 01-05-2005 12:35 AM

Quote:

Originally Posted by noppid
We had to run the installer after upgrading to to 3.0.3 and 3.0.4 and then everything worked fine. Oddly enough my template edits remained intact. But, hey, it works! :)

I still have the problem... even after uninstalling and reinstalling the shoutbox...

Hmm... could this be affected by my previous 1.0.3 Shoutbox installation?

noppid 01-05-2005 01:32 AM

Quote:

Originally Posted by moethelawn
I still have the problem... even after uninstalling and reinstalling the shoutbox...

Hmm... could this be affected by my previous 1.0.3 Shoutbox installation?

If you mean after the upgrade to 3.0.4 nothing shows up on the shoutbox.php then I'd have to say no. I'm certain when I re-ran the installer it said I was on 1.03 and then when done 1.04. I thought I was on 1.04 but apparently I had downloaded the update and not installed it.

I have the hack on 3 sites. It does work. Abiet I have modified some templates and limited the operation in use and operation through the ACP settings and template mods. I believe I posted the shoutbox display code I use on forumhome and the settings I use to get the desired result. You can see this at the sites in my sig.

moethelawn 01-05-2005 04:08 AM

Quote:

Originally Posted by noppid
If you mean after the upgrade to 3.0.4 nothing shows up on the shoutbox.php then I'd have to say no. I'm certain when I re-ran the installer it said I was on 1.03 and then when done 1.04. I thought I was on 1.04 but apparently I had downloaded the update and not installed it.

I have the hack on 3 sites. It does work. Abiet I have modified some templates and limited the operation in use and operation through the ACP settings and template mods. I believe I posted the shoutbox display code I use on forumhome and the settings I use to get the desired result. You can see this at the sites in my sig.

Reinstalled it again.... and it worked. I guess it didn't like my first reinstall, lol...


All times are GMT. The time now is 09:12 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.01835 seconds
  • Memory Usage 1,770KB
  • 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
  • (2)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
  • (3)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