vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Shoutbox Hack - 1.0 Gamma 1 (Outdated -> RC1 in Full Releases) (https://vborg.vbsupport.ru/showthread.php?t=59548)

TheSonic 01-04-2004 04:00 PM

Great hack ! Thanks!

Quote:

Originally Posted by Link14716
It's a simple template edit to the FORUMHOME template. I don't have the HTML right now, but it's not that hard, just a simple form and textarea.

Can someone post a modified FORUMHOME-Template, so users can add shouts directly from the Forum's Mainpage?

Thanks.

Link14716 01-04-2004 04:05 PM

Yeah, I found that error a while ago, it's fixed for Beta 6.

I'll make a quick edit to the FORUMHOME template and post it here.

Link14716 01-04-2004 04:20 PM

Ok, this will make a small textarea under the shouts. In FORUMHOME, find this:
HTML Code:

$latestshouts
and add this after it:
HTML Code:

<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="Shout Now!" class="bginput" accesskey="s"></form>
Or for a small input box under the last shouts, add this:
HTML Code:

<form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60"><input type="submit" name="submit" value="Shout Now!" class="bginput" accesskey="s"></form>

tomshawk 01-04-2004 04:31 PM

Perfect, thank you Link14716

Link14716 01-04-2004 05:05 PM

Ok, in Beta 6, there is a toggable setting - you can select an input box, a textarea, or neither to show up on FORUMHOME.

TheSonic 01-04-2004 05:27 PM

Link, you are the man !
Thanks for this great hack and the html-code :D

TheSonic 01-04-2004 05:37 PM

AH, one thing... Is there a way that the user will not be forwarded to the shoutbox.php-Mainpage, then he ads a shout. I just want the shout added and the user should stay on forumhome.

Link14716 01-04-2004 05:43 PM

An option will be in the next release.

For now, though, find this:
PHP Code:

// ########################### START ADD SHOUT ############################ 

Now search under it for this:
PHP Code:

    $do "main"

Change that to this:
PHP Code:

header("Location: index.php");
exit; 

And that should work.

TheSonic 01-04-2004 05:53 PM

Yes, works (after using a ; instead of : after ..php.)

For the next version, it would be cool if the script could check, if the user is on the forumhome or in shoutbox.php and stay after adding a new shout at the user's current location.

Link14716 01-04-2004 05:57 PM

Quote:

Originally Posted by TheSonic
Yes, works (after using a ; instead of : after ..php.)

For the next version, it would be cool if the script could check, if the user is on the forumhome or in shoutbox.php and stay after adding a new shout at the user's current location.

Damned shift key! Yeah, that's a better idea. Let me implement it now...


All times are GMT. The time now is 06:34 AM.

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.01049 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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