vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Chatbox 1.2.4 (https://vborg.vbsupport.ru/showthread.php?t=42725)

Anitah 11-21-2002 06:35 AM

I manually created the shoutbox for each of my templates but this caused an error in my database (the error was not apparant until I did a backup and restore on a test database for a new upgrade).

How can I get this to work with more than one template?

SpeedStreet 11-22-2002 09:35 PM

DATABASE ISSUE

If you install this hack vanilla, you will get an error if you try to backup to an .sql file!!!

Here is a fix:

Simply go into the install instructions and replace any calls to the REPLACE field in shoutbox_swear with REDO. Then, manipulate the query so that you have a REDO field where the replace field is.

Replace is a SQL command, and that is why it has been puking. If I have permission from the author, I can release an updated version of this hack.

If you need help deciphering which of the replace calls you need to replace (confusing, huh?), please PM me and I will help out the best way I can.

p0s3id0n 11-22-2002 09:50 PM

absolutely as you said :):)... sorry for being away from this
thread so long, but errr... you know ... life ;)...

I am preparing a new realease of this hack to correct for
example the f*cking 'replace' word i used from the start
and got stuck with (first of all coz i was too lazy to correct
all the code)...

You can use reserved words in sql queries to mysql, even if
you should not :p... you just have to put a ` around the word in
each query using it as a i did in the code.
If you are using phpmyadmin for example you have a checkbox
which gives you the choice to put those things or not.

@ john : of course you have my permission to correct
my error, and i gladly thank you in advance, and apologize
for my lack of support to this thread... I'll try to get some
time to make a final realease soon.

SpeedStreet 11-22-2002 09:59 PM

Here is the update to accomodate the replace reserved word, just to make phpmyadmin happy without having to configure additional settings :)

luvjeffrey 11-25-2002 05:03 AM

Great hack...installed without a hitch

SpeedStreet 11-26-2002 02:47 PM

Hey p0s3id0n,

Here's some additions I have made to your hack.

PHP Code:

In template shoutbox_chat right after </head>
 
Add:
<
font size="1" color="#FF0000"><b>
<
a href="http://YOURSITE.COM/forums/online.php" style="text-decoration: none" target="_blank">
<
font color="#808080" face="Arial">Want to see who is in the Chatbox?&nbsp
Click Here to see 'Who's Online'</font></a></b></font><br><br> 

This simply creates a link for people to click on so that they can easily view the 'Who's Online' page without having to dig for it :)

If you want the Who's Online page to say 'In YOURFORUMS ChatBox', simply use this three second hack to get it to work!

UPDATE WHO'S ONLINE

SpeedStreet 11-27-2002 04:22 PM

As is becoming standard...I have fixed my own problem :)

My list has Rule 1:, Rule 2:, etc. So I wanted the drop down to reflect this.

Simply go into warn.php

Find:

PHP Code:

// New Prevent Warning Usergroup Function
          
$all_warns $DB_site->query("
          SELECT name, points
          FROM warnings
          ORDER BY points
          DESC"
); 

Replace With:

PHP Code:

// New Prevent Warning Usergroup Function
          
$all_warns $DB_site->query("
          SELECT name, points
          FROM warnings
          ORDER BY name
          ASC"
); 

Now, my list is sorted by name in an ascending order!

Easy Enuf :)

XIanX 11-29-2002 02:41 AM

SpeedStreet, I have cleaned up your addon code a bit.

Here is the revamped code:
Code:

<font size="1" color="#FF0000"><b>
<a href="$bburl/online.php?s=$session[sessionhash]" style="text-decoration: none" target="_blank">
<font color="#808080" face="Arial">Want to see who is in the Chatbox?&nbsp;
Click Here to see 'Who's Online'</font></a></b></font><br><br>


Athmo 12-03-2002 06:09 PM

Wow!!!

Realy great hack!

But errr....
Some users of our forum are asking for this...

Is it possible that eg. the first 5 lines in the frame get refreshed constantly and the rest of the frame is to readback the past conversations?

Dev-United 12-03-2002 06:15 PM

Quote:

Originally posted by Dev-United
Mozilla and MSIE6 problem. The buttons overlap. I am using MSIE6 myself but I have no problems. But several of the members have reported this bug. One of the members has also posted a screen shot:
The answer to this question can be found here http://development4life.net/portal/b...s=&threadid=94

This might be fixed in the nev version though.


All times are GMT. The time now is 12:58 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.01530 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_php_printable
  • (1)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