PDA

View Full Version : [HTL] & [Normal] Shoutbox Hack - 1.03d


Pages : [1] 2 3

Link14716
01-09-2004, 10:00 PM
Re-released at https://vborg.vbsupport.ru/showthread.php?p=547790#post547790

VampireMan
01-10-2004, 10:11 AM
Im impressed , i thought it would be hard to improve on the shoutbox anymore.
Oh well it will keep the brides2be happy .. thanks

AshAbed
01-10-2004, 10:28 AM
would this work on rc2? i really want to install it, but dont want to take any chances ;)
thanks

VampireMan
01-10-2004, 10:29 AM
it works great on rc2

----
edit.

No need for extra posts for a silly reason.

Just a small question ... where's the installer ?

AshAbed
01-10-2004, 10:53 AM
its in upload/admincp
and i have a question... after i installed it it came out like this..
http://forums.rebelliongfx.com/shoutbox.php?
it seems like the vbphrases arent showing up...? if theres a page i need to edit/edited wrong can you please direct me to it? or please tell me what i should do to fix it
Thanks alot

Link14716
01-10-2004, 11:19 AM
I thought I had fixed that... the phrases should have been updated in step 6.

Well, to fix it in your case, just go into the phrase manager, click 'edit' on a phrase and save it without changing anything. I'll work on fixing the installer.

MindTrix
01-10-2004, 11:41 AM
Just installed, Took awhile :)

Yet problems, look at the screenshow too see what i mean ;)

Link14716
01-10-2004, 11:43 AM
Just installed, Took awhile :)

Yet problems, look at the screenshow too see what i mean ;)
I thought I had fixed that... the phrases should have been updated in step 6.

Well, to fix it in your case, just go into the phrase manager, click 'edit' on a phrase and save it without changing anything. I'll work on fixing the installer.
I have updated the installer fixing it, I hope.

MindTrix
01-10-2004, 11:44 AM
Okkk so meaning what? Im not going through the wholleeeee installer again :)

sabret00the
01-10-2004, 11:52 AM
look great, looks like i found my shoutbox :D

any news on being able to merge a thread into the shoutbox?

MindTrix
01-10-2004, 12:01 PM
Ok seems like i must have had an attitude in my last post ;)

Can you post a file giving the fixes, to anyone who installed it before the problems were fixed?

MindTrix
01-10-2004, 12:53 PM
Ok ran the installer again and sorted things out. I guess i should have looked when you said you fixed it all, but you could have mentioned that it needed to be ran to fix the errors ;)

MindTrix
01-10-2004, 12:55 PM
Number of Forum Home Shouts?
Enter the number of shouts to be displayed on forumhome if the option is enabled



In the admin CP needs to be changed because you have it set as a Yes / No option when people need to be able to input the ammount of shouts they wish displayed

Link14716
01-10-2004, 03:46 PM
It is both. If you set it to no, that setting doesn't matter, if it is set to yes, then that setting controls how many is displayed on forumhome.

And if you looked at the post I had quoted, it said to edit a phrase and then save it. That would have updated the phrase cache and fixed everything.;)

MindTrix
01-10-2004, 03:49 PM
I dont think you get what i mean ;)

If you select yes to for limiting the amount of shouts on the forum home, The option underneath should allow you too specify how many you want shown, according to the descritions. But it does not, it gives you a YES/NO option which is wrong:p

Link14716
01-10-2004, 03:52 PM
Haha... whoops. BRB.

MindTrix
01-10-2004, 03:54 PM
Ahhh now you understand :) lol

Link14716
01-10-2004, 03:56 PM
Installer updated. If you already used the installer to do a new install, use the query I put in the first post.

MindTrix
01-10-2004, 04:04 PM
Hehe thats better, Thanks!

Link14716
01-10-2004, 04:06 PM
look great, looks like i found my shoutbox :D

any news on being able to merge a thread into the shoutbox?
I'll probably make that after I squash all the bugs and release 1.0 Final. I can confirm a bug when a user in coventry shouts and someone who does not have permission to view shouts by coventry users sees the shout before and after it, the backgrounds are the same.

SB2002
01-10-2004, 04:38 PM
Looks great, although i only have one question. On forumhome, when it says lastest shout by..... every username is replace by a 0

this is after i have updated all counters and run the doupdate in shoutbox.php

any ideas anyone?

EDIT: not to worry, it's only the old shouts that are showing up like this, so nevermind.

Link14716
01-10-2004, 04:46 PM
Are you sure you ran shoutbox.php?do=update?

SB2002
01-10-2004, 05:47 PM
lol, i thought i had, but i'm almost ashamed to admit this, i forgot to remove the ? off of the end or i must have added an extra char. I ran it again just now and it's worked

/me is dumb

thanks for the help, great hack btw

NuclioN
01-10-2004, 09:35 PM
I give up on this hack because the mysql tableprefix must be put in the sqls before we can use it. :(

Link14716
01-10-2004, 09:45 PM
RC1 comes with an installer that inserts and creates everything with the prefix.

NuclioN
01-10-2004, 10:25 PM
That's good news Link14716 :) I hope you can make it look as the pos31don chatbox because that whas awesome on the forumhome.

Link14716
01-10-2004, 10:27 PM
Well, an input box on forumhome is an option and is enabled by default. :)

AshAbed
01-10-2004, 10:30 PM
<a href="http://forums.rebelliongfx.com/adv_index.php" target="_blank">http://forums.rebelliongfx.com/adv_index.php</a>
i tried to add the shoutbox on another page... the phrases dont show up and the scroll-section where the shouts should be dont show up
if it doesnt take a lot of your time could you possibly tell me how i could fix it
Thanks alot

Link14716
01-10-2004, 10:34 PM
I get a 404 error on the above URL.

Just make sure you make all appropriate changes that are supposed to be made to index.php to the other page and it should work.

AshAbed
01-11-2004, 01:11 AM
http://forums.rebelliongfx.com/adv_index2.php
i edited it just like i edited the index.php page and now its fine except the same messages repeat themselves alot of time... theres about 9 messages and they repeat untill theres 50...?
i think it has something to do with this code:
require_once('./includes/functions_bbcodeparse.php');
if ($vboptions['shoutbox_forumhomeshouts'] == 1) {
$noviewperms = $vbphrase['shoutbox_noviewperms'];
$shoutbox_posts = $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'
ORDER BY time DESC LIMIT $vboptions[shoutbox_numberofforumhomeshouts]
");
while ($shoutbox_post=$DB_site->fetch_array($shoutbox_posts)) {
if ($tachyuser != in_coventry($shoutbox_post['userid'])) {
if (($permissions['shoutboxpermissions'] & SHOUTCOVENTRY)) {
$shout_tachygoestocoventry = 1;
} elseif (!($permissions['shoutboxpermissions'] & SHOUTCOVENTRY)) {
$screwyoucoventryshout = 1;
}
}
$shoutbox_post_date = vbdate($vboptions['dateformat'], $shoutbox_post['time'], 1);
$shoutbox_post_time = vbdate($vboptions['timeformat'], $shoutbox_post['time']);
$shoutbox_post_text = $shoutbox_post['text'];
// In case you have the /me code hack...
$post['username'] = $shoutbox_post['username'];
$shoutbox_text = parse_bbcode2("$shoutbox_post_text", $vboptions['shoutbox_allowhtml'], $vboptions['shoutbox_allowimage'], $vboptions['shoutbox_allowsmilies'], $vboptions['shoutbox_allowbbcode'], 0, 1);
$ignore = array();
if (trim($bbuserinfo['ignorelist'])) {
$ignorelist = preg_split('/( )+/', trim($bbuserinfo['ignorelist']), -1, PREG_SPLIT_NO_EMPTY);
foreach ($ignorelist AS $ignoreuserid) {
$ignore["$ignoreuserid"] = 1;
}
}
if (isset($ignore["$shoutbox_post[userid]"]) AND !in_array($shoutbox_post['userid'], explode(' ', $bbuserinfo['buddylist']))) {
$ignoreuser = '1';
} else {
unset($ignoreuser);
}
if ($screwyoucoventryshout != 1) {
eval('$latestshouts .= "' . fetch_template('forumhome_shoutbit') . '";');
unset($shout_tachygoestocoventry);
} else {
unset($screwyoucoventryshout);
}
}
}

Link14716
01-11-2004, 01:37 AM
The only way that would happen is if you put in the code 10 times...?

AshAbed
01-11-2004, 03:54 PM
well.. i only put it in once lol, i deleted all the posts and posted twice, they show up 10 times...
would you consider doing it for me for 5$? or maybe 10 if takes time

Link14716
01-11-2004, 05:01 PM
PM me and I'll try to help you with it.

Vampire
01-11-2004, 05:53 PM
Perhaps you can help me. Every time I want so send my message I get this error, but when I refresh the site, the message is in the shoutbox
(Sorry for the englisch)


There seems to have been a slight problem with the PassTV database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience

Database error in vBulletin 3.0.0 Release Candidate 1:

Invalid SQL: UPDATE user SET shouts=shouts+1 WHERE userid='2'
mysql error: Table 'dbname.user' doesn't exist

mysql error number: 1146

Date: xxx
Script: http://myurl/shoutbox.php
Referer: http://myurl/index.php?
Username: xxx
IP Address: xxx

Link14716
01-11-2004, 05:58 PM
You must have a table prefix. I'll fix it in a few minutes.

Link14716
01-11-2004, 06:07 PM
Ok, I updated the zip with a new shoutbox.php. Re-download the zip and use the new shoutbox.php. That should get rid of the error.

Vampire
01-11-2004, 06:15 PM
it works, thx a lot :)

Ryan Ashbrook
01-11-2004, 07:21 PM
I ran the new query you posted in the first post of this thread but none of the shouts are showing up on the forumhome.

Have a clue?

The site is here: http://tgp.crystalterra.com/forums/

Link14716
01-11-2004, 07:23 PM
Make sure you edit the settings and turn on "Show Latest Shouts on Forum Home?" and set "Number of Forum Home Shouts?" to a non-zero positive number.

AshAbed
01-11-2004, 11:32 PM
incase anyone was wondering Link helped me out with getting the shoutbox to work on my portal, again great hack, thanks Link

The Quibbler
01-12-2004, 01:41 AM
Installed it :) Works very nice, except for one small thing with the "add a new shout" part. That doesn't look quite right, as you can see in the attached file. Any idea how I can fix that?

Link14716
01-12-2004, 07:10 AM
And RC2 is now released. It has some misc. fixes and all remaining English (a few words) are now in the phrase system. Other than that, it's pretty much RC1, but I still recommend an upgrade.

Link14716
01-12-2004, 07:11 AM
Installed it :) Works very nice, except for one small thing with the "add a new shout" part. That doesn't look quite right, as you can see in the attached file. Any idea how I can fix that?
I really don't know. All the editors have pissed me off from the begining.

Convergys
01-12-2004, 04:38 PM
I was using the BVshoutbox, and tried to install this, when running the install script, it said nothing needed to be changed.. but of course this isn't true because it shoulod have updated probably everything... Did I do something wrong?

Link14716
01-12-2004, 06:56 PM
Are you sure you selected a new install (install_shoutbox.php?step=2&version=new) ?

Ryan Ashbrook
01-12-2004, 07:27 PM
Make sure you edit the settings and turn on "Show Latest Shouts on Forum Home?" and set "Number of Forum Home Shouts?" to a non-zero positive number.
I have done so, 3 or 4 times.

Still, it does not show up.

Link14716
01-12-2004, 07:30 PM
Double check your index.php. The only way that should be happening is if the last edit isn't in there.

Ryan Ashbrook
01-12-2004, 07:51 PM
There was a mistake in the code, must've been my computer or something. All fixed. :)

geezzaa
01-12-2004, 10:02 PM
Hi.
I uploaded all the files without a hitch, but im now getting a parse error in admincp/index.php on line 25
Could you give me a hand with this please ?

Link14716
01-12-2004, 10:03 PM
That is unrelated to my hack as it doesn't touch admincp/index.php at all.

Cloudrunner
01-13-2004, 01:56 AM
Hey link, I uploaded all the files and such and ran the installer, however, all I get is that it automatically found my shoutbox version and when I click through, it says it doesn't need to update anything.

Nowhere in the installer does it ask for a new install (and I need a new install obviously).

Where for do I find this option?

Thanks
)O( Cloudrunner )O(

i.e. when I open the file for the first time I get:

Welcome to the upgrade/install script of the shoutbox hack by squall14716. This script will automatically install the phrases, settings, and database changes for you.

We have automatically detected your shoutbox verion. You may start the upgrade process by clicking the link below.

Click here to continue. And that's it.

monstergamer
01-13-2004, 02:02 AM
Hey link, I uploaded all the files and such and ran the installer, however, all I get is that it automatically found my shoutbox version and when I click through, it says it doesn't need to update anything.

Nowhere in the installer does it ask for a new install (and I need a new install obviously).

Where for do I find this option?

Thanks
)O( Cloudrunner )O(

i.e. when I open the file for the first time I get:

And that's it.what shoutbox did you have before
cause i was about to install this, cause we have been talking and he made an converter for the shoutbox here https://vborg.vbsupport.ru/showthread.php?t=59602and
i just wanted to know if it is working or not

Cloudrunner
01-13-2004, 02:07 AM
what shoutbox did you have before
cause i was about to install this, cause we have been talking and he made an converter for the shoutbox here https://vborg.vbsupport.ru/showthread.php?t=59602and
i just wanted to know if it is working or not
no other shoutbox...clean install...

Darkwolf
01-13-2004, 02:47 AM
/me click install

Link14716
01-13-2004, 10:20 AM
Well, in other words it sees the a setting that RC1 put in there controlling your shoutbox version. So that means that you have already ran the installer.

Take uninstall out of the Misc folder in the zip and run it in phpMyAdmin, then run these queries as well.
DELETE FROM phrasetype WHERE phrasetypeid='716';
ALTER TABLE language DROP phrasegroup_shoutbox;

Cloudrunner
01-13-2004, 10:35 AM
Well, in other words it sees the a setting that RC1 put in there controlling your shoutbox version. So that means that you have already ran the installer.

Take uninstall out of the Misc folder in the zip and run it in phpMyAdmin, then run these queries as well.
DELETE FROM phrasetype WHERE phrasetypeid='716';
ALTER TABLE language DROP phrasegroup_shoutbox;

If I run the uninstall from the misc folder I'll end up deleting settings from the phrase table that are inherent within vb3.

setting_stopshouting_title
setting_stopshouting_desc
options_options_stopshouting_text
options_options_stopshouting_title

None of the other settings, varnames, or tables are present in my database because I have never installed the shoutbox (rc1 or otherwise). This is a clean install attempt on an unhacked board (not live yet (testing server)).

I do, however, have a copy of the RC1. Should I run that first? Or hold off until we figure out why RC2 is not liking a clean install?

please advise.

Thanks
)O( Cloudrunner )O(

Link14716
01-13-2004, 10:44 AM
I'll look into it. It seems like an RC2 installer bug. Install it from the RC1 installer insetad for now.

EDIT: Attachment removed.

Cloudrunner
01-13-2004, 10:58 AM
I'll look into it. It seems like an RC2 installer bug. Install it from the RC1 installer insetad for now.

Looking at the install code for RC2, I'm personally thinking that perhaps it lies somewhere around here?

Between line 84 and line 100 if ($vboptions['shoutbox_version_no_touch'] != SHOUTBOX_VERSION_SH) {
// Version auto-detected (RC1 and above)
echo "We have automatically detected your shoutbox verion. You may start the upgrade process by clicking the link below.<br /><br />";
echo "<a href='".THIS_SCRIPT.".php?step=2&amp;version=".$vboptions['shoutbox_version_no_touch']."'>Click here to continue.</a>";
exit;
} elseif ($vboptions['shoutbox_version_no_touch'] == SHOUTBOX_VERSION_SH) {
echo "We have automatically detected your current shoutbox version, and it appears to be up-to-date.";
exit;
} else {
// Version cannot be auto-detected (Gamma 1 and below)
echo "We cannot detect your shoutbox version. This means that you are running 1.0 Gamma 1 or below, or have not installed the shoutbox yet. You may use this script to continue upgrading <b>but only if you are running 1.0 Gamma 1 or doing a clean install</b>! This script cannot upgrade your shoutbox if you are running Beta 5 or below, so upgrade to Gamma 1 manually first!<br /><br />";
echo "If you are running 1.0 Gamma 1, ";
echo "<a href='".THIS_SCRIPT.".php?step=2&amp;version=10g1'>click here to start the upgrade to ".SHOUTBOX_VERSION.".</a> ";
echo "If you want to do a new install of the shoutbox, ";
echo "<a href='".THIS_SCRIPT.".php?step=2&amp;version=new'>click here to install ".SHOUTBOX_VERSION.".</a> ";
exit;
}

Since back on line 61 your conditionals look for shoutbox_version_no_touch, and if not found they set $nextversion = "1.0 Release Candidate 1", but in the line 84 code it again looks for the shoutbox_version_no_touch, but has nothing in that conditional about the $nextversion variable?

Perhaps adding a conditional that compares what was set in $nextversion versus what is in SHOUTBOX_VERSION, or SHOUTBOX_VERSION_SH? The reason I say this is that for a clean install the following (from line 84) will always be "true": $vboptions['shoutbox_version_no_touch'] != SHOUTBOX_VERSION_SH because $vboptions['shoutbox_version_no_touch'] will be non-existant on a clean install, and therefore will never be = SHOUTBOX_VERSION_SH.

did that even make sense?

Link14716
01-13-2004, 06:54 PM
Yes, I saw that right after looking at it now. I don't see why I didn't catch it before.

I have fixed it, just give me a minute to put it in the zip.

Cloudrunner
01-13-2004, 07:02 PM
Yes, I saw that right after looking at it now. I don't see why I didn't catch it before.

I have fixed it, just give me a minute to put it in the zip.
kewl.

Thanks! I'l give it a shot as soon as the zip is up ;)

Link14716
01-13-2004, 07:02 PM
Installer fixed.

Maybe when I release the final I won't screw something up...

Link14716
01-13-2004, 07:06 PM
Oh, and BTW, the $nextversion variable is just for the cp_header, so it will say "1.0 Release Candidate 1" when upgrading from Gamma to RC1, "1.0 Release Candidate 2" when upgrading from RC1 to RC2, and etc.

Cloudrunner
01-13-2004, 07:07 PM
Oh, and BTW, the $nextversion variable is just for the cp_header, so it will say "1.0 Release Candidate 1" when upgrading from Gamma to RC1, "1.0 Release Candidate 2" when upgrading from RC1 to RC2, and etc.
ah. Well it pointed me in the right direction. It was just a quick look through (about 2 minutes) this morning.

and about screwing things up? ROFL We all do that ;)

That's why we beta test before releasing ;)

Keep up the good work.

)O( Cloudrunner )O(

Link14716
01-13-2004, 07:12 PM
The final is comming up very soon. I've added 2 new options - an iFrame on forumhome (or you can do the standard <div>, it's your choice, but the iframe has an auto-refresh feature) and an option to use a standard textarea instead of the normal vB messagearea (which is really, really needed).

I doubt it'll be any later than tommorow unless someone starts finding bugs. :p

Cloudrunner
01-13-2004, 08:13 PM
The final is comming up very soon. I've added 2 new options - an iFrame on forumhome (or you can do the standard <div>, it's your choice, but the iframe has an auto-refresh feature) and an option to use a standard textarea instead of the normal vB messagearea (which is really, really needed).

I doubt it'll be any later than tommorow unless someone starts finding bugs. :p
Works nicely Thank you!

One thing, hackers, change your timeout for the adminCP if you have it enabled LOL. I timed out and had to go through the setup again, cus if you time out and then login again, the installer ignores the step you were on and tries to upgrade you to RC2 ;)

Thanks again Link!

)O( Cloudrunner )O(

deemon
01-13-2004, 08:16 PM
hm.. ok i'm here installing it(fresh aka new install) at the moment and.. after

RC1 new install bug fixed (if it hasn't been already...)

i klick Click here to continue.

No new settings are needed right now.
then..
Click here to continue.

and i get

Database error in vBulletin 3.0.0 Release Candidate 2:

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'shoutbox_shoutbit_at', 'at', '716')
mysql error: Duplicate entry 'shoutbox_shoutbit_at-0-716' for key 2

mysql error number: 1062

Date: Wednesday 14th of January 2004 12:16:06 AM
Script: http://www.escalator.ee/test/admincp/install_shoutbox.php?step=5&version=10rc1
Referer: http://www.escalator.ee/test/admincp/install_shoutbox.php?step=4&version=10rc1


am i doing something wrong? .. oor.. ?

Link14716
01-13-2004, 08:18 PM
Did you try to install RC2 before you installed RC1? That error suggests the RC1 -> RC2 upgrade was ran before.

deemon
01-13-2004, 08:21 PM
hm no i didnt run upgrade.. i think..

i clicked on the last link..

Link14716
01-13-2004, 08:23 PM
Well, either way, the phrase it's trying to add already exists, so manually move to the next step by changing to URL.

deemon
01-13-2004, 08:24 PM
heh yes this is one way to upgrade :D

Link14716
01-13-2004, 08:27 PM
Wait, are you doing a new install? The URL in your error indicated an upgrade from RC1 to RC2. Did you install RC1 first and then upload RC2 and try to upgrade to it?

deemon
01-13-2004, 08:30 PM
no.. it was new install..

---
If you want to do a new install of the shoutbox, click here to install 1.0 Release Candidate 2.
---
i clicked on "here to install 1.0 Release Candidate 2"

.. and now looks like i'm done.. tho the "SHOUT! Edit a Shout..." looks like broken.. as it was before here .. i saw in someones post..

but if i now read your last post.. then im confused..

Link14716
01-13-2004, 08:42 PM
Well, if you clicked for a new install, then version should = new in the URL, instead, in your error it showed it equaling 10rc1.

techno
01-13-2004, 11:16 PM
Just a slight problem here. Everytime someone shouts in the shoutbox, it redirects them to the home page. Is there a way to have it redirect them to the index.php page instead of the index.html page?

Link14716
01-14-2004, 09:16 AM
It should redirect them to the page they shouted off of.

deemon
01-14-2004, 09:16 AM
can you please write down what was the filenames that needed some hacking and what mysql tables did it create?

because i whant to uninstall it untill your final version is out.

hehe at the moment.. i think this hack F*cked up my admincp new user registring and some more stuff.. but.. it's ok :) because it is beta hack ;) and betas are buggy

ok.. please write what files needed hacking and mysql blaa blaa..

Link14716
01-14-2004, 09:26 AM
How could it ++++ up the admincp and new user registering? It never touched register.php and other than usergroup.php and user.php (which those edits work marvelous), it doesn't touch the admincp either.

But if you still want to uninstall, look at upload/admincp/shoutbox_install/new_file.txt and do the edits in reverse, then:
DELETE FROM phrasetype WHERE phrasetypeid='716';
DELETE FROM phrase WHERE varname LIKE '%shoutbox%';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup WHERE grouptitle='shoutbox';
ALTER TABLE language DROP phrasegroup_shoutbox;
ALTER TABLE usergroup DROP shoutboxpermissions, DROP shouthierarchy;
ALTER TABLE user DROP shouts, DROP shoutbanned;
DROP TABLE shoutbox_posts;
Still, as I said, this hack couldn't have ++++ed up things like that. Even if not installed properly, it couldn't screw up new registrations. And it is not a beta hack. It has been tested and tested a lot by now and probably could be released as a final already.

deemon
01-14-2004, 09:57 AM
well.. maybe not.. but i mos deffenetly will try to uninstall it ..
i let you know if anything gets any better after uninstall

kthnxoh yea.. one thing more.. i got this error on mail if i posted somehing to shoutbox..

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'shoutbox_shoutbit_at', 'at', '716')
mysql error: Duplicate entry 'shoutbox_shoutbit_at-0-716' for key 2

mysql error number: 1062

.. i'm finished with uninstall.. and some minor things got better.. but yea.. sorry i quess it wasnt your hack that screwd up my admincp new user registrations.. sorry about that one ;)

techno
01-14-2004, 07:03 PM
It should redirect them to the page they shouted off of.
No, it doesn't for me...or any of my users.

Any ideas as to why, or how I could force it to redirect to the proper page?

geezzaa
01-14-2004, 07:07 PM
I jave uploaded it to a totally fresh vb3 test board.
I keep getting the error Parse error: parse error in /home/geezzaa/public_html/ukctest/includes/init.php on line 821

Possibly something simple, i dont know much about board hacking so please go easy on the answer.
Thanks

eXtremeTim
01-14-2004, 09:29 PM
I modified the templates some as you can see here on http://www.extremechatforums.com/forum/shoutbox.php If you guys are interested in these changes please let me know and i will post the modified templates. If thats okay with link.

Link14716
01-14-2004, 09:52 PM
well.. maybe not.. but i mos deffenetly will try to uninstall it ..
i let you know if anything gets any better after uninstall

kthnxoh yea.. one thing more.. i got this error on mail if i posted somehing to shoutbox..

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'shoutbox_shoutbit_at', 'at', '716')
mysql error: Duplicate entry 'shoutbox_shoutbit_at-0-716' for key 2

mysql error number: 1062

.. i'm finished with uninstall.. and some minor things got better.. but yea.. sorry i quess it wasnt your hack that screwd up my admincp new user registrations.. sorry about that one ;)
That seems like you had an error when you installed it, it was trying to add a phrase that already existed. (Upgrading to RC2 error.). It wouldn't occur when people shout.

Link14716
01-14-2004, 09:54 PM
No, it doesn't for me...or any of my users.

Any ideas as to why, or how I could force it to redirect to the proper page?
There are 2 lines of code to pay attention to in shoutbox.php:
header("Location: $_SERVER[HTTP_REFERER]");
exit;
Now, you can change $_SERVER[HTTP_REFERER] to a relative URL to redirect them to a certain page, or change both lines to this to redirect to the shoutbox: $do = "main";

Link14716
01-14-2004, 09:59 PM
I jave uploaded it to a totally fresh vb3 test board.
I keep getting the error Parse error: parse error in /home/geezzaa/public_html/ukctest/includes/init.php on line 821

Possibly something simple, i dont know much about board hacking so please go easy on the answer.
Thanks
Post from lines 816-826 of init.php here so I can see what is wrong.

Link14716
01-14-2004, 10:01 PM
I modified the templates some as you can see here on http://www.extremechatforums.com/forum/shoutbox.php If you guys are interested in these changes please let me know and i will post the modified templates. If thats okay with link.
Go ahead and post them :)

techno
01-14-2004, 10:30 PM
There are 2 lines of code to pay attention to in shoutbox.php:
header("Location: $_SERVER[HTTP_REFERER]");
exit;
Now, you can change $_SERVER[HTTP_REFERER] to a relative URL to redirect them to a certain page, or change both lines to this to redirect to the shoutbox: $do = "main";
That fixed it!!!!!!! Thanks!!!

geezzaa
01-14-2004, 10:44 PM
Post from lines 816-826 of init.php here so I can see what is wrong.
'indexposts' => 16384,
'styleoverride' => 32768,
'showonforumjump' => 65536,
'warnall' => 131072
);
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 05:58, Fri Jan 9th 2004
|| # CVS: $RCSfile: init.php,v $ - $Revision: 1.216 $
|| ################################################## ##################
\*================================================ ======================*/
?>

Link14716
01-14-2004, 10:53 PM
Post about 20 lines down from here then:
// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------

Link14716
01-15-2004, 02:31 AM
Look at what it says on my localhost now!!!

Shoutbox 1.0 Final by squall14716 for VGGM.
Templates (mostly) by TWTCommish for the vB2 Shoutbox 1.0.
Ok, so the final is going out tonight. All I need to do is the .txt files for file edits and templates and re-test the install.

Link14716
01-15-2004, 03:23 AM
And here are the new 1.0 Final Screenshots:

*arie
01-15-2004, 03:54 AM
And here are the new 1.0 Final Screenshots:
i am so confused. I'm trying to upgrade from RC1 to this final. There are so many files in there. Can you point me to the right file that tells me how to upgrade?

geezzaa
01-15-2004, 07:23 AM
Hi mate. Here ya go

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);

// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);

// Forum Moderator permissions

sabret00the
01-15-2004, 07:32 AM
Well done on brining this to final

Martin CX
01-15-2004, 09:56 AM
It looks very nice, and it works beautifully in the iframe on forumhome. However, when I go to the shoutbox.php-page with a usergroup that's allowed to shout it shows up completely blank. (If I try to access the shoutbox-page with a usergroup that isn't allowed it shows a rejection message).

Any ideas where the problem might be?

Link14716
01-15-2004, 10:09 AM
i am so confused. I'm trying to upgrade from RC1 to this final. There are so many files in there. Can you point me to the right file that tells me how to upgrade?
Upload all files in the upload folder of the zip to your forums directory and run http://www.yoursite.com/forums/admincp/install_shoutbox.php.

Link14716
01-15-2004, 10:10 AM
geezzaa: I don't see any error in that code. Has another hack that you installed edit init.php?

Link14716
01-15-2004, 10:11 AM
It looks very nice, and it works beautifully in the iframe on forumhome. However, when I go to the shoutbox.php-page with a usergroup that's allowed to shout it shows up completely blank. (If I try to access the shoutbox-page with a usergroup that isn't allowed it shows a rejection message).

Any ideas where the problem might be?
The only thing that I could think of would be a missing SHOUTBOX template.

Martin CX
01-15-2004, 10:26 AM
The only thing that I could think of would be a missing SHOUTBOX template.
Doh! It was in lowercase ("shoutbox") instead of upper case. :tired:

Thanks for the help! :)

Link14716
01-15-2004, 10:28 AM
Doh! It was in lowercase ("shoutbox") instead of upper case. :tired:

Thanks for the help! :)
Glad you got it working. :)

*arie
01-15-2004, 12:35 PM
Upload all files in the upload folder of the zip to your forums directory and run http://www.yoursite.com/forums/admincp/install_shoutbox.php.
okay thanks.

NuclioN
01-15-2004, 12:46 PM
<a href="http://www.cyberty.nl/forums/shoutbox.php?" target="_blank">http://www.cyberty.nl/forums/shoutbox.php?</a> javascript error and...the header is pushed togheter.

How can i remove the 'Today's shout' above the shoutlines on foumhome?

--edit-- the javascript error is gone when i remove the onload after the body tag in SHOUTBOX template.

infernonet
01-15-2004, 03:11 PM
Nice hack works a treat thanks :D

PennylessZ28
01-15-2004, 04:07 PM
after editing my index.php in the root I'm getting

Parse error: parse error, expecting `')'' in /home/ttacnet/public_html/forum.php on line 17

Can't figure this one out. Edited perfectly so I thought. gonna continue to work on it.

PennylessZ28
01-15-2004, 04:15 PM
I figured it out, I left off the );

Martin CX
01-15-2004, 06:51 PM
I would like it if it was possible to create an automatic pruning of old shouts. Is there any easy way of doing this?

PennylessZ28
01-15-2004, 08:20 PM
Alright, new problem this afternoon, has been working fine, but my shouts don't show up on the forum home if I disable the iframe. I'd rather not use the iframe.

Link14716
01-15-2004, 09:13 PM
http://www.cyberty.nl/forums/shoutbox.php? javascript error and...the header is pushed togheter.

How can i remove the 'Today's shout' above the shoutlines on foumhome?



--edit-- the javascript error is gone when i remove the onload after the body tag in SHOUTBOX template.
It is in the "shoutbox_iframe" template and the "Other shouts" is in the "shoutbox_iframe_shoutbit" template. (It's a $vbphrase)

Link14716
01-15-2004, 09:14 PM
I would like it if it was possible to create an automatic pruning of old shouts. Is there any easy way of doing this?
Pruning will come later, I started on an admin script with pruning a while back but got frustrated with it, I'll try again later. I'll keep your suggestion in mind and make a cron-compatible script to prune shouts as well.

Link14716
01-15-2004, 09:16 PM
Alright, new problem this afternoon, has been working fine, but my shouts don't show up on the forum home if I disable the iframe. I'd rather not use the iframe.
As long as you have edited index.php, created the 'forumhome_shoutbit' template, edited the 'FORUMHOME' template correctly, and switched the iframe off in the 'Shoutbox Settings' part of 'vBulletin Options', it should work.

Link14716
01-15-2004, 09:18 PM
Heh, looks like a forgot to phrase a few words in shoutbox.php (the navbar), so I'm going to release 1.01 soon.

Martin CX
01-15-2004, 10:06 PM
Pruning will come later, I started on an admin script with pruning a while back but got frustrated with it, I'll try again later. I'll keep your suggestion in mind and make a cron-compatible script to prune shouts as well.
Thanks. :)

PennylessZ28
01-16-2004, 12:27 AM
As long as you have edited index.php, created the 'forumhome_shoutbit' template, edited the 'FORUMHOME' template correctly, and switched the iframe off in the 'Shoutbox Settings' part of 'vBulletin Options', it should work.
Sure enough, index.php, my copy and paste job from the install was off, all I pasted in was

"// Shoutbox Latest Shouts
// Shoutbox hack by squall14716

Left out the rest, haha. Thanks for the advice though.

RN BB guy
01-16-2004, 03:13 AM
I cant run the installer

iNSTALL INSTRUCTIONS

1. Upload the contents of the 'upload' folder to your forums directory.
2. Run http://www.yoursite.com/forums/admincp/install_shoutbox.php and follow the directions.


when I do that i get this:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23


any suggestions?

geezzaa
01-16-2004, 07:47 AM
Post about 20 lines down from here then:
// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------

Here ya go.
Congrats on the final .:)

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);

// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);

// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
'caneditposts' => 1,

AshAbed
01-16-2004, 09:03 AM
i attached a picture of what the shoutbox looks like on my page... would you happen to know what went wrong?
it works when i turn i-frame off though... if its alot of work ill just leave iframe off but i would prefer to turn it on so if its not hard to fix then please tell me how ;)
Thanks alot!

Link14716
01-16-2004, 10:25 AM
I cant run the installer

iNSTALL INSTRUCTIONS

1. Upload the contents of the 'upload' folder to your forums directory.
2. Run http://www.yoursite.com/forums/admincp/install_shoutbox.php and follow the directions.


when I do that i get this:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23


any suggestions?
That error indicates that global.php in the admincp directory doesn't exist!?! Did you happen to rename your admin folder?

Link14716
01-16-2004, 10:28 AM
Here ya go.
Congrats on the final .:)

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);

// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);

// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
'caneditposts' => 1,
As I said before, I see nothing wrong with that code. Does a fresh init.php solve the error? Have you tried to re-hack a fresh init.php?

Link14716
01-16-2004, 10:31 AM
i attached a picture of what the shoutbox looks like on my page... would you happen to know what went wrong?
it works when i turn i-frame off though... if its alot of work ill just leave iframe off but i would prefer to turn it on so if its not hard to fix then please tell me how ;)
Thanks alot!
Make sure your shoutbox_iframe_shoutbit template exists

geezzaa
01-16-2004, 11:41 AM
Yes mate. its a totally new board, no other hacks installed and no changes made to directories

magazineforall
01-16-2004, 06:30 PM
Will be installing this I just wondered how I uninstall this if I need to I'd really appreciate it if someone could give me some instructions before I do install thanks :D

Link14716
01-16-2004, 06:52 PM
Reverse all file and template edits and run these queries:
DELETE FROM phrasetype WHERE phrasetypeid='716';
DELETE FROM phrase WHERE varname LIKE '%shoutbox%';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup WHERE grouptitle='shoutbox';
ALTER TABLE language DROP phrasegroup_shoutbox;
ALTER TABLE usergroup DROP shoutboxpermissions, DROP shouthierarchy;
ALTER TABLE user DROP shouts, DROP shoutbanned;
DROP TABLE shoutbox_posts;

geezzaa
01-16-2004, 06:58 PM
Ok i have redone everything i can think of and a square has appeared
can you take a look at www.ukctest.geezzaa.com.
Very anxious to get this working on my main site

Link14716
01-16-2004, 07:02 PM
All I see is a standard vB3 RC2. Did you edit/add the templates?

AshAbed
01-16-2004, 07:36 PM
my template was named shoutbox_iframe_shoubits
i had an S at the end... thanks for the help

geezzaa
01-16-2004, 07:47 PM
Yes i have re checked twice

Link14716
01-16-2004, 07:49 PM
Yes i have re checked twice
Well, if you have ran the installer, done all the file edits, and added/edited the templates, then it should work perfectly.

PET
01-16-2004, 09:40 PM
Just a bit offtopic.

Link14716 are you really 15 ?

Link14716
01-16-2004, 09:47 PM
Just a bit offtopic.

Link14716 are you really 15 ?
Yep. :)

Ryan Ashbrook
01-17-2004, 01:04 AM
I updated from RC1 to Final and all of the phrases aren't working.

Link14716
01-17-2004, 01:28 AM
I updated from RC1 to Final and all of the phrases aren't working.
Try editing a phrase and saving it. If not, can you check if the phrases exist? (In the phrase manager, most of the phrase are located in the "Shoutbox Hack" phrasegroup).

Link14716
01-17-2004, 01:37 AM
I noticed that the copyright phrase is messed up as well. It was fixed in the RC2 -> Final upgrade. Did you click the link at the end of the first 9 steps to continue the upgrade from RC2 -> Final?

Ryan Ashbrook
01-17-2004, 02:13 AM
Try editing a phrase and saving it. If not, can you check if the phrases exist? (In the phrase manager, most of the phrase are located in the "Shoutbox Hack" phrasegroup).
They're not there.

geezzaa
01-17-2004, 09:19 AM
15 yrs old. Fair play mate, :)
Im nealy 40 and know f*** all about programming. Keep it up mate

Back to the problem at www.ukctest.geezzaa.com Sorry i had it set on default template and was working off a setting from cpanel.
Anyways as you can now see summit aint right any ideas??

assassingod
01-17-2004, 09:22 AM
They're not there.
You'll need to add the phrases again (or run the queries that do add them)

Link14716
01-17-2004, 01:17 PM
They're not there.
Do the phrases show up when editing a usergroup/user? If so, run install_shoutbox.php?step=5&version=10g1. If not run install_shoutbox.php?step=5&version=new.

Then run install_shoutbox.php?step=6 to update the caches.

Link14716
01-17-2004, 03:39 PM
15 yrs old. Fair play mate, :)
Im nealy 40 and know f*** all about programming. Keep it up mate

Back to the problem at www.ukctest.geezzaa.com Sorry i had it set on default template and was working off a setting from cpanel.
Anyways as you can now see summit aint right any ideas??
It appears that you didn't edit index.php. Follow the instructions for index.php in upload/admincp/shoutbox_install/new_file.txt.

infernonet
01-17-2004, 04:00 PM
Nice hack thanks again :)

monstergamer
01-17-2004, 05:38 PM
installed it on localhost and tried to upgrade from my Black Vivi's BVShoutbox
the first time i have tried this is said all the post and users were converter
but when i look at the shout box on the home it is blank untill i went into the shoubox.php page ***FIXED**** i turned off Use an iFrame on Forumhome

i am also having problems with the shoutbox page
the footer is beside the header (it is a fixed style)

also when editing a shout i get a blank error message

Link14716
01-17-2004, 10:14 PM
installed it on localhost and tried to upgrade from my Black Vivi's BVShoutbox
the first time i have tried this is said all the post and users were converter
but when i look at the shout box on the home it is blank untill i went into the shoubox.php page ***FIXED**** i turned off Use an iFrame on Forumhome

i am also having problems with the shoutbox page
the footer is beside the header (it is a fixed style)

also when editing a shout i get a blank error message
I can guess that you haven't added the shoutbox_iframe_shoutbit template if the shouts didn't appear on the iframe. You might need to do some template editing to get it to the shoutbox to work 100% properly on you style. And as for editing, are you sure you added the shoutbox_editshout template?

MaDCaT75
01-18-2004, 05:19 AM
IMHO ya shoulda let TW_Commish convert his cause I checked the instructions over and over and I keep getting errors in the first 4 steps of the installer over and over and I cant fix it!!

AshAbed
01-18-2004, 12:02 PM
can you please tell me how to place the shoutbox on the bottom of my portal(code attached)
and im using the latest version of your shoutbox(1.0)
this is how the portal looks-: http://forums.rebelliongfx.com/adv_index.php
this is the code for the portal-: http://forums.rebelliongfx.com/readme.txt
(you told me how to put the previous version on the top before, now im trying to get the new version on the bottom)
Thanks!

Link14716
01-18-2004, 06:42 PM
IMHO ya shoulda let TW_Commish convert his cause I checked the instructions over and over and I keep getting errors in the first 4 steps of the installer over and over and I cant fix it!!
Only this isn't TWTCommish's and the PHP code is 100% different. Maybe you should post these errors so I can help you fix it? This hack is working fine on most installations, if you install it properly (although it still may need some template modifications).

Link14716
01-18-2004, 06:43 PM
can you please tell me how to place the shoutbox on the bottom of my portal(code attached)
and im using the latest version of your shoutbox(1.0)
this is how the portal looks-: http://forums.rebelliongfx.com/adv_index.php
this is the code for the portal-: http://forums.rebelliongfx.com/readme.txt
(you told me how to put the previous version on the top before, now im trying to get the new version on the bottom)
Thanks!
The same PHP code from before should work, it's only a template edit to change where it appears.

AshAbed
01-18-2004, 07:09 PM
ok thanks

MaDCaT75
01-18-2004, 08:46 PM
Only this isn't TWTCommish's and the PHP code is 100% different. Maybe you should post these errors so I can help you fix it? This hack is working fine on most installations, if you install it properly (although it still may need some template modifications).

Bleh nevermind I installed the other shoutbox instead... the mirc style one

monstergamer
01-19-2004, 03:02 AM
I can guess that you haven't added the shoutbox_iframe_shoutbit template if the shouts didn't appear on the iframe. You might need to do some template editing to get it to the shoutbox to work 100% properly on you style. And as for editing, are you sure you added the shoutbox_editshout template?ok the edit is working long as you try not to do it so fast

and the shoutbox_iframe_shoutbit template is there and the iFrame dose not show any post

Link14716
01-19-2004, 03:05 AM
What about shoutbox_iframe?

monstergamer
01-19-2004, 03:49 AM
What about shoutbox_iframe?yes

Brahm
01-19-2004, 04:59 PM
OKay,
I think I am going mad.. heh -- I can not find where to allow/disallow certain usergroups to have permission to view the shoutbox. I have it installed, but no one can access it but admins and mods and registered users. None of my other usergroups can access it.

Am I missing something? Yes my shoutbox is "active"

Link14716
01-19-2004, 07:44 PM
yes
Well, then I don't know what to tell you. Just double and triple check everything.

Link14716
01-19-2004, 07:45 PM
OKay,
I think I am going mad.. heh -- I can not find where to allow/disallow certain usergroups to have permission to view the shoutbox. I have it installed, but no one can access it but admins and mods and registered users. None of my other usergroups can access it.

Am I missing something? Yes my shoutbox is "active"
Usergroup permissions for the shoutbox are with every other usergroup permission - they are on the Edit Usergroup page for every usergroup.

Brahm
01-20-2004, 01:55 AM
not mine...

Link14716
01-20-2004, 01:59 AM
Did you edit admincp/usergroup.php?

NuclioN
01-21-2004, 09:35 AM
It won't let me install on vb3 rc3. I've uninstalled the tables and the installfile won't start. "We have automatically detected your current shoutbox version, and it appears to be up-to-date."

Link14716
01-21-2004, 10:12 AM
It won't let me install on vb3 rc3. I've uninstalled the tables and the installfile won't start. "We have automatically detected your current shoutbox version, and it appears to be up-to-date."
That's because you didn't uninstall it all the way. You must get rid of all the settings, phrases, and added columns to the user and usergroup tables as well.

VampireMan
01-21-2004, 01:25 PM
Upgraded to vb RC3, shoutbox still works 100% , thanks :)

Brahm
01-21-2004, 07:40 PM
Did you edit admincp/usergroup.php?
Could you post that edit please so I can be sure?

Link14716
01-22-2004, 12:52 AM
Could you post that edit please so I can be sure?
Suuuure can.
// admincp/usergroup.php -+-+-+-+-+-+-+-+-+-+-+-+-+-+

// find -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1,
'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1,
'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1,
'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1,
'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1,
'canusesignature' => 1
);
// set default numeric permissions
$usergroup = array(
'pmquota' => 0, 'pmsendmax' => 5, 'attachlimit' => 1000000,
'avatarmaxwidth' => 50, 'avatarmaxheight' => 50, 'avatarmaxsize' => 20000,
'profilepicmaxwidth' => 100, 'profilepicmaxheight' => 100, 'profilepicmaxsize' => 25000
);

// replace with -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1,
'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1,
'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1,
'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1,
'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1,
'canusesignature' => 1, 'shoutview' => 1, 'shoutpost' => 1, 'shoutedit' => 1,
'shoutdelete' => 1, 'shouthdelete' => 0, 'shouteditothers' => 0,
'shoutdeleteothers' => 0, 'shouthdeleteothers' => 0, 'shoutip' => 0,
'shoutcoventry' => 0
);
// set default numeric permissions
$usergroup = array(
'pmquota' => 0, 'pmsendmax' => 5, 'attachlimit' => 1000000,
'avatarmaxwidth' => 50, 'avatarmaxheight' => 50, 'avatarmaxsize' => 20000,
'profilepicmaxwidth' => 100, 'profilepicmaxheight' => 100, 'profilepicmaxsize' => 25000,
'shouthierarchy' => 5, 'shoutmaxdaily' =>0
);

// find -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

if ($usergroupid != 1) // Guests can not post attachments
{
print_table_header($vbphrase['attachment_permissions']);

// add above -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

print_table_header($vbphrase['shoutbox_admin_permissions_title']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canview'], 'usergroup[shoutview]', $ug_bitfield['shoutview']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canshout'], 'usergroup[shoutpost]', $ug_bitfield['shoutpost']);
print_input_row($vbphrase['shoutbox_admin_permissions_maxdaily'], 'usergroup[shoutmaxdaily]', $usergroup[shoutmaxdaily]);
if ($usergroupid != 1) { // Allow guests to shout but do nothing else...
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canedit'], 'usergroup[shoutedit]', $ug_bitfield['shoutedit']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_candelete'], 'usergroup[shoutdelete]', $ug_bitfield['shoutdelete']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canhdelete'], 'usergroup[shouthdelete]', $ug_bitfield['shouthdelete']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_caneditothers'], 'usergroup[shouteditothers]', $ug_bitfield['shouteditothers']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_candeleteothers'], 'usergroup[shoutdeleteothers]', $ug_bitfield['shoutdeleteothers']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canhdeleteothers'], 'usergroup[shouthdeleteothers]', $ug_bitfield['shouthdeleteothers']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_canip'], 'usergroup[shoutip]', $ug_bitfield['shoutip']);
print_yes_no_row($vbphrase['shoutbox_admin_permissions_coventry'], 'usergroup[shoutcoventry]', $ug_bitfield['shoutcoventry']);
if ($vboptions['shoutbox_enablehierarchy'] == 1) {
print_input_row($vbphrase['shoutbox_admin_permissions_hierarchy'], 'usergroup[shouthierarchy]', $usergroup['shouthierarchy']);
}
}
print_table_break();

Alien
01-22-2004, 03:39 AM
Very nice job with this, thanks a bunch.

Martin CX
01-22-2004, 08:39 AM
Two things:

First of all, some of my users are complaining that they are getting errors both when they try to read the iframe and the full-screen version. They are told, their usergroup isn't allowed to read the blablabla... but they are members of the ordinary registered usergroup and they should be allowed

Second: When upgrading to RC3 which steps do I have to repeat in the installation?

Brahm
01-22-2004, 01:25 PM
That did it man! Thanks alot for the info -- this hack is the best shoutbox I have used to date and I have been Vbulletining for about 2 years now.

Link14716
01-22-2004, 10:31 PM
Two things:

First of all, some of my users are complaining that they are getting errors both when they try to read the iframe and the full-screen version. They are told, their usergroup isn't allowed to read the blablabla... but they are members of the ordinary registered usergroup and they should be allowed

Second: When upgrading to RC3 which steps do I have to repeat in the installation?
What kind of errors?

And all you have to do is redo to file edits when you upgrade vB, as in any hack.

monstergamer
01-23-2004, 04:29 AM
i went to uninstall it off of localhost and try it again
so i ran the the lines of code to uninstall in on of these post
and try to re-install it gives me this

FIXED
i had to run this to finish un-installing it

ALTER TABLE usergroup DROP `shoutmaxdaily`

now i am going to re-test it

jaliam
01-23-2004, 05:11 AM
How can I fix the following display error? Please help. Thanks!

URL: http://www.bibletruths.us/forums/shoutbox.php?

monstergamer
01-23-2004, 05:25 AM
i re-installed it and ran every thing from the SQL files and edited every PHP file and added every TEMPLATE
also converted all black vivi shoutbox post

still have problems with the iFrame, i have to turn it OFF
with it OFF i can post in the shout box but it takes me to the top on every shout
also when i try to view the shoutbox.php it is blank

Martin CX
01-23-2004, 09:06 AM
What kind of errors? They are getting the standard message that their usergroup isn't allowed to read the Shoutbox (even though it is).


And all you have to do is redo to file edits when you upgrade vB, as in any hack. Yeah, I was just confused which of the txt-documents contained the edits I needed to do.

Link14716
01-24-2004, 01:35 AM
How can I fix the following display error? Please help. Thanks!

URL: http://www.bibletruths.us/forums/shoutbox.php?
Well, the templates work on a standard vB3 style, so it is probably a conflict with the shoutbox and the style. Look around for some missing closing tags and etc. If I knew more HTML I'd be able to fix it.

Link14716
01-24-2004, 01:37 AM
i re-installed it and ran every thing from the SQL files and edited every PHP file and added every TEMPLATE
also converted all black vivi shoutbox post

still have problems with the iFrame, i have to turn it OFF
with it OFF i can post in the shout box but it takes me to the top on every shout
also when i try to view the shoutbox.php it is blank
To fix the 0 username error, run shoutbox.php?do=update like the converter said.

For the other 2 errors, it appears that the templates weren't installed properly. Double check that all the templates were added properly.

Link14716
01-24-2004, 01:40 AM
They are getting the standard message that their usergroup isn't allowed to read the Shoutbox (even though it is).


Yeah, I was just confused which of the txt-documents contained the edits I needed to do.
Well, it uses standard vB permissions, so if every other permission works, then the shoutbox's should as well. Edit a usergroup to try and update the cache just in case it wasn't during the install, and check that the permissions are set properly.

The file edits for a new install are located in upload/admincp/shoutbox_install/new_file.txt.

armani1072
01-24-2004, 10:27 AM
damn this is a bad night for me i can't get anything to work.

jaliam
01-24-2004, 04:09 PM
Please help me correct this problem so I can install this shoutbox. Thanks!

Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: ALTER TABLE language ADD `phrasegroup_shoutbox` MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_shoutbox'

mysql error number: 1060

Link14716
01-24-2004, 04:11 PM
It appears you have already ran that step of the installation. :|

Run this query and try again, tell me if you recieve an error:ALTER TABLE language DROP phrasegroup_shoutbox;

jaliam
01-24-2004, 04:23 PM
Here is what I got this time, Link!

Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: CREATE TABLE shoutbox_posts (`shoutid` BIGINT (255) UNSIGNED DEFAULT '0' AUTO_INCREMENT, `text` TEXT, `userid` BIGINT (255) UNSIGNED DEFAULT '0', `username` VARCHAR (255) DEFAULT '0', `ip` VARCHAR (25) DEFAULT '0', `time` BIGINT (20) UNSIGNED DEFAULT '0', `edittime` BIGINT (20) UNSIGNED DEFAULT '0', `edituser` VARCHAR (255) DEFAULT '0', `deleted` TINYINT(1) UNSIGNED DEFAULT '0', PRIMARY KEY(`shoutid`))
mysql error: Table 'shoutbox_posts' already exists

mysql error number: 1050

How can I uninstall it so that I can do a fresh install to avoid all these duplicate entries? Thanks, Link!

Link14716
01-24-2004, 04:25 PM
Ok then. Yes, you have ran that step already. Change the step= in the URL to point it to the next step and continue.

jaliam
01-24-2004, 05:01 PM
Ok then. Yes, you have ran that step already. Change the step= in the URL to point it to the next step and continue.

Perfect, Link! I was able to install it successfully. I appreciate your kind assistance. :)

jaliam
01-24-2004, 05:05 PM
Link, I do not see the shoutbox settings in my admincp though. Can you please help?

Link14716
01-24-2004, 05:52 PM
Link, I do not see the shoutbox settings in my admincp though. Can you please help?
Admincp -> vBulletin Options -> Shoutbox Settings

They are located there. If you are using vB3 RCX and not Gamma, it'll be at the bottom of the list. If you are using Gamma, they are in alphabetical order.

monstergamer
01-24-2004, 06:30 PM
you were right i had to double check the templates but this time i use the TXT file
lot easier the the looking at the installer

but one problem that i had is two of my members have way to many shouts
13824569821598 shout or some thing like it

i have fixed some of the SHOUTBOX template for my site
look at the fixes with a fixed style also works with a 100% style

Link14716
01-24-2004, 06:36 PM
Run shoutbox.php?do=update again. I have never seen a problem like that before...

monstergamer
01-24-2004, 06:48 PM
Run shoutbox.php?do=update again. I have never seen a problem like that before...started to fix the problem
but i get this
Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\vb\includes\db_mysql.php on line 205

Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\vb\includes\functions.php on line 467

geezzaa
01-24-2004, 09:28 PM
Hi link.
I got it all sorted now but one of our admins is having problems. Everytime he clicks on shout now he is redirected to the index.html page , his message still appears on the chat window Any idea what could be causing that

Link14716
01-24-2004, 10:47 PM
Hi link.
I got it all sorted now but one of our admins is having problems. Everytime he clicks on shout now he is redirected to the index.html page , his message still appears on the chat window Any idea what could be causing that Someone else had this issue back on page 2. I answered it in post #83 (https://vborg.vbsupport.ru/showpost.php?p=462554&postcount=83). I don't know why this is happening for some people, but it doesn't for me.

Link14716
01-24-2004, 10:49 PM
started to fix the problem
but i get this
Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\vb\includes\db_mysql.php on line 205

Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\vb\includes\functions.php on line 467
I'll work on splitting the process to seperate pages and release 1.01 with the navbar phrased.

jaliam
01-24-2004, 11:20 PM
Admincp -> vBulletin Options -> Shoutbox Settings

They are located there. If you are using vB3 RCX and not Gamma, it'll be at the bottom of the list. If you are using Gamma, they are in alphabetical order.
No, I did not find it, Link. I have been trying all day to make this shoutbox work so I hope you can tell me how I could activate its settings in the Admincp. Thanks!

Link14716
01-24-2004, 11:23 PM
Well, I told you where they are, and, unless you skipped a step of the install, they'd be there.

jaliam
01-24-2004, 11:29 PM
Here is what I get when I access shoutbox.php.

jaliam
01-24-2004, 11:30 PM
I will just delete the hack and run the installer again. Thanks!

Link14716
01-24-2004, 11:34 PM
Yeah, I'd bet you didn't run the installer, or skipped a few steps, since it appears that either both usergroup permissions and phrases were not installed, or settings were not installed, or both.

jaliam
01-24-2004, 11:37 PM
Can you give me an idea on how to uninstall it or did it come with an uninstaller? I appreciate it, Link. Thanks!

jaliam
01-24-2004, 11:41 PM
Never mind. I found the uninstaller script. Thanks!

Link14716
01-24-2004, 11:43 PM
Run these queries:
DELETE FROM phrasetype WHERE phrasetypeid='716';
DELETE FROM phrase WHERE varname LIKE '%shoutbox%';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup WHERE grouptitle='shoutbox';
ALTER TABLE language DROP phrasegroup_shoutbox;
ALTER TABLE usergroup DROP shoutboxpermissions, DROP shouthierarchy, DROP shoutmaxdaily;
ALTER TABLE user DROP shouts, DROP shoutbanned;
DROP TABLE shoutbox_posts;

EDIT: Well, even if you use uninstall.sql, you'll need to run this since I haven't updated unsinstall.sql since Beta 5.
ALTER TABLE usergroup DROP shoutmaxdaily;

jaliam
01-24-2004, 11:43 PM
Well, I ran the uninstaller query and this is what I got...

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup' at line 1

jaliam
01-24-2004, 11:45 PM
Run these queries:
[sql]DELETE FROM phrasetype WHERE phrasetypeid='716';
DELETE FROM phrase WHERE varname LIKE '%shoutbox%';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup WHERE grouptitle='shoutbox';
ALTER TABLE language DROP phrasegroup_shoutbox;
ALTER TABLE usergroup DROP shoutboxpermissions, DROP shouthierarchy, DROP shoutmaxdaily;
ALTER TABLE user DROP shouts, DROP shoutbanned;
DROP TABLE shoutbox_posts;

I ran the query above and I got this...

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
DELETE FROM phrase WHERE varname LIKE '%shoutbox%';
DELETE FROM setting WHER' at line 1

Link14716
01-24-2004, 11:46 PM
Well, I ran the uninstaller query and this is what I got...

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
DELETE FROM setting WHERE varname LIKE 'shoutbox%';
DELETE FROM settinggroup' at line 1
You can't run multiple queries in the vB Admin CP. Use phpMyAdmin or split it up. (each line is a different query, for a total of 8)

jaliam
01-24-2004, 11:52 PM
I think I was able to uninstall it, Link. I just had to play with the query a little bit. Thanks!

jaliam
01-24-2004, 11:58 PM
Now it does not want me to install it after I dropped all the files. That's how I consider this message anyway. Take a look!

Link14716
01-25-2004, 12:01 AM
Go to vBulletin Options in your admincp and save the settings without modifying anything.

Matrixgl
01-26-2004, 09:55 PM
VERY nice hack :)...very good job, and installed :)

Matrixgl
01-27-2004, 01:35 AM
[Mod] vBulletin 2 Style Shout Display

If you had the Shoutbox hack by TWTCommish for vBulletin 2.x.x installed, or seen it somewhere, you might notice that this version has a different layout for showing the shouts than the vB2 version.

Well, the new layout is definately nice, however, I still feel more attracted to the vB2 style of displaying the shout, mainly because I am used to it.

So here it is, you just have to replace your "shoutbox_shoutbits" template and you are done!. It will make your shoutbox look more like the old vBulletin 2 version of the shoutbox.

Instructions: Replace your shoutbox_shoutbits template with the attatched text file.

Screenshot: Attached.

Link14716
01-27-2004, 03:48 AM
I have linked to your mod in the first post.

Nice job. :)

NuclioN
01-27-2004, 11:13 AM
Some of our members are reporting a strange behavior of the cursor when they are placing text. The cursor shoots out of the textbox. I've looked if i could see what they mean and indeed...sometimes this happens. Is there something to do about this???

wowiee
01-27-2004, 03:40 PM
it didnt work it isntalled great or so the script said but i cant see it on the board and i have it turned on

Link14716
01-27-2004, 07:10 PM
Some of our members are reporting a strange behavior of the cursor when they are placing text. The cursor shoots out of the textbox. I've looked if i could see what they mean and indeed...sometimes this happens. Is there something to do about this???
I'm guessing it's the iFrame's auto-refresh. For 1.01 (probably released today - HTL only (so if you don't have the Hack Tracking Log, get it now)) I'm taking the textboxes out of the iFrame and putting them back into forumhome so auto-refreshes won't refresh the textbox as well.

Link14716
01-27-2004, 07:11 PM
it didnt work it isntalled great or so the script said but i cant see it on the board and i have it turned on
Make sure you have added all of the templates, edited all the files, and edited the forumhome template.

Link14716
01-28-2004, 03:26 AM
1.01 has been released!

A few phrase issues with the navbar have been fixed, and the installer has been ditched in favor of the Hack Tracking Log. Also, when using the iFrame, the input box has been removed from the iFrame and been hardcoded back into the FORUMHOME template, so when the iFrame auto-refreshes, the text in the input box will remain intact.

Upgrade now!

fly
01-28-2004, 01:50 PM
If I have 1.0 installed, what do I need to do or undo to install the HTL version?

MindTrix
01-28-2004, 01:56 PM
Link i dont know if you have or not, but does not seem it to me, but you do not have a normal text guide to installing this, which i believe the new rules say you must have incase people wish not to use the HTL

Link14716
01-28-2004, 08:55 PM
To tell you the truth, I'd rather kill myself than make some text installer that would take someone ages to install. Would any sane person want to insert 50 or 60 phrases (or something like that) by hand or spend 5 minutes uploading the HTL and running the install for it?

monstergamer
01-29-2004, 01:09 AM
what fixes have been make in the latest version?

Link14716
01-29-2004, 01:10 AM
Misc. phrase issues and such.

MindTrix
01-29-2004, 04:06 AM
To tell you the truth, I'd rather kill myself than make some text installer that would take someone ages to install. Would any sane person want to insert 50 or 60 phrases (or something like that) by hand or spend 5 minutes uploading the HTL and running the install for it?
Thats fair enough mate but the new rules say you have to supply one :)

Slappy Nutz
01-29-2004, 05:54 AM
SOME of us cant get that stupid hack to install and dont really want to mess with it anymore, and the main reason I want the upgrade is for the iframe changes

fly
01-29-2004, 10:40 AM
If I have 1.0 installed, what do I need to do or undo to install the HTL version?

:confused:

Link14716
01-29-2004, 10:42 AM
Thats fair enough mate but the new rules say you have to supply one :)
And where are these "new rules"?

If you have trouble with the HTL then you should post in the HTL thread, but looking at your post, you either didn't edit a file or two, either way, if hackadmin.php works, this hack can be installed with ease.

I'm not making a txt file by hand - it's just not going to happen. When the HTL is capable of making .txt files, I'll make one, but it's 10x easier to use the .htl rather than a .txt file.

Link14716
01-29-2004, 10:45 AM
:confused:
Just delete the shoutbox_install directory and install_shoutbox from your admincp directory if you haven't already and upload the files in your upload folder (shoutbox.php to the forums root, and the contents of the htlfiles directory to wherever you put the htlfiles directory that was created when installing the HTL), and then run the "SHOUTBOX 1.0 TO 1.1 UPGRADE" install in the HTL. After it's done, select 'Delete Hack' from the dropdown and select "Shoutbox Hack" from the install list and tell it to import only.

fly
01-29-2004, 12:42 PM
After it's done, select 'Delete Hack' from the dropdown and select "Shoutbox Hack" from the install list and tell it to import only.

I see that this info was missing from the install.txt. I just wanted to confirm this is correct, because I don't yet really understand HTL and what everything does. Does this remove the hack from my board??

MindTrix
01-29-2004, 03:50 PM
And where are these "new rules"?

If you have trouble with the HTL then you should post in the HTL thread, but looking at your post, you either didn't edit a file or two, either way, if hackadmin.php works, this hack can be installed with ease.

I'm not making a txt file by hand - it's just not going to happen. When the HTL is capable of making .txt files, I'll make one, but it's 10x easier to use the .htl rather than a .txt file.
No need to shoot the messenger mate i was simply telling you thats all.

https://vborg.vbsupport.ru/showthread.php?t=60828&page=1&pp=15

Is the announcement Xenon made.

Link14716
01-29-2004, 09:03 PM
I see that this info was missing from the install.txt. I just wanted to confirm this is correct, because I don't yet really understand HTL and what everything does. Does this remove the hack from my board??
No, hitting "Delete Hack" just removes it from the HTL page - you should do it just because having the upgrade in the HTL is unnecessary.

Link14716
01-29-2004, 09:05 PM
No need to shoot the messenger mate i was simply telling you thats all.

https://vborg.vbsupport.ru/showthread.php?t=60828&page=1&pp=15

Is the announcement Xenon made.
If this is a rule, they really need to update the announcement in the Full Releases forum...

NuclioN
02-02-2004, 02:38 PM
I hate HTL and i hate phrases since they produce more errors then phpbb light beta 0,1. But it's the future and so i move on and install all those techno stuff and i don't know any longer what i'm doing. Just hope for the best and...ofcourse! ERROR. Installed as in the readme(s) and upgraded the shoutbox:

Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: DELETE FROM phrase WHERE varname IN ('shoutbox_banned', 'shoutbox_noeditperms', 'shoutbox_nodeleteperms', 'viewing_shoutbox', 'shoutbox')
mysql error: Table 'phrase' doesn't exist

mysql error number: 1146

(i use table prefix) :(

fly
02-02-2004, 05:30 PM
hmmmm

Is there an easy way for this just to show in a specific forum instead of the forum home?

MindTrix
02-02-2004, 05:39 PM
If this is a rule, they really need to update the announcement in the Full Releases forum...
True mate True, but i was only warning you, i mean i dont want the admins to close the thread or something because of this. Dont shoot the messenger ;)

Link14716
02-02-2004, 06:57 PM
I hate HTL and i hate phrases since they produce more errors then phpbb light beta 0,1. But it's the future and so i move on and install all those techno stuff and i don't know any longer what i'm doing. Just hope for the best and...ofcourse! ERROR. Installed as in the readme(s) and upgraded the shoutbox:

Database error in vBulletin 3.0.0 Release Candidate 3:

Invalid SQL: DELETE FROM phrase WHERE varname IN ('shoutbox_banned', 'shoutbox_noeditperms', 'shoutbox_nodeleteperms', 'viewing_shoutbox', 'shoutbox')
mysql error: Table 'phrase' doesn't exist

mysql error number: 1146

(i use table prefix) :(
Yeah, I forgot to take table prefixes into account when I made the .htl file.... whoops.

I'll go back and fix it in a few minutes.

Link14716
02-02-2004, 06:59 PM
hmmmm

Is there an easy way for this just to show in a specific forum instead of the forum home?
It would be a seperate thing of code for forumdisplay.php. I'll look into putting something together for you in a little while.

Link14716
02-02-2004, 07:00 PM
True mate True, but i was only warning you, i mean i dont want the admins to close the thread or something because of this. Dont shoot the messenger ;)
I haven't shot you yet. ;)

When the HTL can make .txt files of the hacks, sure, I'll provide one, but I'm not going to do it manually.... just... no...

croft
02-03-2004, 03:00 AM
edit''

Getting error well not an error just a problem.
Your usergroup(s) do not have permission to use the shoutbox.

Thats what i get when i enter the shoutbox. Im the admin to =(.
I tryed re hacking init.php user.php usergroup.php and so on with no luck.

''edit

NuclioN
02-03-2004, 06:55 AM
Link14716 could you deliver a textbased upgrade instruction for the shout please. The HTL has a bug so i can't re-install it. Now i have a working shout with different templates and javascript errors because of a partitional upgrade which i can't repair without a full upgrade.

Link14716
02-13-2004, 01:56 PM
1.02 has been released. To upgrade, just import the new phrases and upload shoutbox.php. Non-HTL install and upgrade instructions are in the zip.
1.02 now checks for blank and duplicate shouts. :)

I also fixed the 1.0 to 1.01 upgrade HTL.

tehste
02-14-2004, 07:33 PM
um im running vb3 rc4
and it aint working.
i looked through the thread and someone else had a problem but u sed u updated the zip, which i downloaded after this update, yet i have an error:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: ALTER TABLE language ADD phrasegroup_shoutbox MEDIUMTEXT NOT NULL
mysql error: Duplicate column name 'phrasegroup_shoutbox'

mysql error number: 1060

Date: Saturday 14th of February 2004 01:24:59 PM
Script: http://www.lemonpoo.com/forum/admincp/hackadmin.php?hackid=4&installtype=1&filename=Shoutbox_Hack.htl&do=installerstep2
Referer: http://www.lemonpoo.com/forum/admincp/hackadmin.php?do=installerstep1&hackid=4&installtype=1&filename=Shoutbox_Hack.htl


urburgh! help would be appreciated :)

Link14716
02-14-2004, 07:39 PM
Run these queries:
ALTER TABLE language DROP phrasegroup_shoutbox;
DELETE FROM phrasetype WHERE fieldname='shoutbox';

tehste
02-14-2004, 08:00 PM
thnx i get to step 5 n i get this error:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: CREATE TABLE shoutbox_posts (`shoutid` BIGINT (255) UNSIGNED DEFAULT '0' AUTO_INCREMENT, `text` TEXT, `userid` BIGINT (255) UNSIGNED DEFAULT '0', `username` VARCHAR (255) DEFAULT '0', `ip` VARCHAR (25) DEFAULT '0', `time` BIGINT (20) UNSIGNED DEFAULT '0', `edittime` BIGINT (20) UNSIGNED DEFAULT '0', `edituser` VARCHAR (255) DEFAULT '0', `deleted` TINYINT(1) UNSIGNED DEFAULT '0', PRIMARY KEY(`shoutid`))
mysql error: Table 'shoutbox_posts' already exists

mysql error number: 1050

Date: Saturday 14th of February 2004 02:01:31 PM
Script: http://www.lemonpoo.com/forum/admincp/hackadmin.php?hackid=5&installtype=1&filename=&do=installerstep5
Referer: http://www.lemonpoo.com/forum/admincp/hackadmin.php?do=installerstep3&installtype=1&hackid=5&s=


-the cause is i tried to install this with out htl at first and the sql query files fuked up :P

maybe its jus me lol. :P

Link14716
02-14-2004, 08:02 PM
Delete the hack out of the HTL, first of all. Then run uninstall.sql in phpMyAdmin (located in the misc folder of the zip). Then go back to the HTL and start the install process over again.

tehste
02-14-2004, 08:06 PM
gud idea :) except i havent got all the tables/rows. does that matter?

Link14716
02-14-2004, 08:07 PM
Run it anyways and report back if you have an error and I'll see if I can help you some more with it.

tehste
02-14-2004, 08:08 PM
ok i ran the sql

Error

SQL-query :

ALTER TABLE usergroup DROP shoutboxpermissions,
DROP shouthierarchy,
DROP shoutmaxdaily

MySQL said:


Can't DROP 'shoutboxpermissions'. Check that column/key exists


is that ok ?

Link14716
02-14-2004, 08:11 PM
Run these queries one by one (run one, and then run another after it tells you it was successful/gives an error message) and report back any errors you recieve.
ALTER TABLE user DROP shouts, DROP shoutbanned;
DROP TABLE shoutbox_posts;

tehste
02-14-2004, 08:20 PM
ok now it works fine :)

thnx for that. I think you should look at the sql files for non htl hacking coz they seemed to have caused the problems :) cuda jus been me, but i did do them in the ryt order and they all came out with errors :p why did i carry on? i duno lol,

nice hack tho :)

NuclioN
02-14-2004, 09:10 PM
Works ok :) Only there is a javascript error in shoutbox.php 'object expected' (??)

Papino
02-16-2004, 01:16 AM
Shoutbox Hack
Version: 1.02
vB-version: 3.0.0 Release Candidate 3

is it supported by the rc4? i readed something about in this thread(in this page) but i cant understand if it s compatible or not. Thx

Link14716
02-16-2004, 01:18 AM
Shoutbox Hack
Version: 1.02
vB-version: 3.0.0 Release Candidate 3


is it supported by the rc4? i readed something about in this thread(in this page) but i cant understand if it s compatible or not. Thx
I haven't tested it on RC4, but I can say with 99% certainty that it works with RC4.

Catch-22|BL
02-16-2004, 02:16 AM
Here, let me give it a shot. BRB

Catch-22|BL
02-16-2004, 02:48 AM
I am back. Seems to be working pretty good.

http://www.gamesorceress.com/index.php?

Shoutbox is at the bottom. Here is a direct link:

http://www.gamesorceress.com/shoutbox.php?

Only small glitch was that the FORUMHOME template had to be done manually with HTL.

So it works in RC4.

Dark Jim
02-16-2004, 07:36 PM
Installed it using HTL since the manual one didn't work properly (queries). Works fine except the WYSIWYG editor. When I put a message it will say "You cannot make a blank shout!" even when it has text. Normal editor works fine. Other than this great hack! :)

MikeRoweForums
02-17-2004, 05:53 PM
edit''

Getting error well not an error just a problem.
Your usergroup(s) do not have permission to use the shoutbox.

Thats what i get when i enter the shoutbox. Im the admin to =(.
I tryed re hacking init.php user.php usergroup.php and so on with no luck.

''edit

I am getting the same error.

Link14716
02-17-2004, 07:06 PM
I am getting the same error.
Was it a manual install? Did you edit a usergroup in the admincp to update the cache? If you did, it might be a problem in the queries (I wouldn't be suprised) and I'll look into it. I do know that the HTL install is fully functional now, but I can't be sure if the manual install is as I haven't tested it fully.

Link14716
02-17-2004, 07:32 PM
Installed it using HTL since the manual one didn't work properly (queries). Works fine except the WYSIWYG editor. When I put a message it will say "You cannot make a blank shout!" even when it has text. Normal editor works fine. Other than this great hack! :)
Gah, I know I fixed the WYSIWYG editor back in Beta 5... bah.

MikeRoweForums
02-17-2004, 11:10 PM
I installed using HTL.

Link14716
02-17-2004, 11:20 PM
I installed using HTL.
My other question still stands - did you try editing a usergroup and saving without modifying? If not, try it and see if it works then.

FleaBag
02-19-2004, 01:53 AM
Hi Link mate, just checking your hack out before I move to vB3. I was just wondering if there is any way to import my old shouts from TWT's vB2 shoutbox hack. Keep up the good work!

Link14716
02-19-2004, 01:56 AM
Hi Link mate, just checking your hack out before I move to vB3. I was just wondering if there is any way to import my old shouts from TWT's vB2 shoutbox hack. Keep up the good work!
There should be a file in the zip to convert, twtcommishvb2shoutbox_conversion.php (heh, long name ;)). After installing, you should upload it to the admincp directory and run it.