View Full Version : FlashChat AdminCP Menu
cyberhypnotic
01-26-2006, 10:00 PM
UPDATED
A huge thanks to Paul_M for his help with the corrections of this.
If you've installed this modification, please update with the new zip file.
Fixed -
Admin can enter the path to their FlashChat folder in the vBulletin Options menu, under General Settings.
My first shot at adding something to vBulletin. Hope you guys like it. Click INSTALL if you do.
This adds the FlashChat Admin Panel to your vBulletin AdminCP menu for easy access.
I'll do my best to update this as I learn more. I've noticed some requests for certain things.
PLEASE NOTE: Download CMSadminflashchat.zip if you have FlashChat integrated into your vBulletin with a CMS. Download adminflashchat.zip if you do NOT have your FlashChat integrated into your vBulletin with a CMS.
Minimal support. Post in thread.
Instructions included in the zip file.
Ramsesx
01-27-2006, 09:28 PM
cool idea, it is showing in the acp but everything is getting an error:
The requested URL /chat/admin/botlist.php etc. was not found on this server.
My chat is on /forum/chat/admin/
Need I change the path anywhere?
Thanks
Paul M
01-27-2006, 09:55 PM
The path to the chat folder needs to be a setting as it varies from person to person. :)
The path to the chat folder needs to be a setting as it varies from person to person. :)
would be a good idea coz my flashchat folder is in the forum root.
Well, I edited the cpnav_flashchat.xml to the correct path of my chat folder.
cyberhypnotic
01-27-2006, 11:38 PM
I would imagine that /chat/admin/botlist.php would be the correct path, as it was instructed for people to place the chat folder in their forum root folder.
Paul, you've been a great help thus far. Is there something I can do to better this issue? Or is this something that JUST varies from person to person if they upload the chat folder wherever they want?
EDIT - Would making the link /.../chat/admin/botlist.php work? It worked fine for me both ways. My forum is a subdomain, making it forum.yoursite.com. My chat folder resides within subdomains/forum/httpdocs/chat/
Paul M
01-28-2006, 12:46 AM
Your setup is not typical.
For most people, the path will be /<something>/chat/ ( e.g. /forum/chat/ ) as they don't use sub domains. Also, some older installations will use a folder called flashchat as that used to be the default.
The simple answer is to have a custom setting (or phrase) that the path is stored in, then people can set it as required. :)
theFAILURE
01-28-2006, 01:14 AM
Works good, congrats on your 1st one!
cyberhypnotic
01-28-2006, 01:36 AM
I apologize for not realizing this. Paul, I might need a little assistance on this. Mind pointing me to any examples?
theFAILURE
01-28-2006, 02:08 AM
Here is what I did, if you look close, you will see how to make it work.
Look at my paths, then compare them to yours:
<navoption>
<phrase>flashchat_menu1</phrase>
<link>http://thescambaiter.com/forum/chat/admin/msglist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu2</phrase>
<link>http://thescambaiter.com/forum/chat/admin/chatlist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu3</phrase>
<link>http://thescambaiter.com/forum/chat/admin/usrlist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu4</phrase>
<link>http://thescambaiter.com/forum/chat/admin/roomlist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu5</phrase>
<link>http://thescambaiter.com/forum/chat/admin/connlist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu6</phrase>
<link>http://thescambaiter.com/forum/chat/admin/banlist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu7</phrase>
<link>http://thescambaiter.com/forum/chat/admin/ignorelist.php?{$rand}</link>
</navoption>
<navoption>
<phrase>flashchat_menu8</phrase>
<link>http://thescambaiter.com/forum/chat/admin/botlist.php?{$rand}</link>
</navoption>
</navgroup>
cyberhypnotic
01-28-2006, 03:38 AM
That only pertains to you. If you were to put /forum/chat/admin/msglist.php?{$rand} in there, without the http://thescambaiter.com, it would work for you.
The answer might be in the back of my mind. I may have seen something before that I could go by as the perfect example. But I'm at a loss as to where to find it.
I've been looking around into things. I'm kinda multi-tasking over here with my forum, trying to learn more about PHP, XML, MySQL, etc., and trying to make this work for everyone and anyone that downloads it. :ermm:
Paul M
01-28-2006, 04:20 AM
In the plugin, create an additional phrase called "flashchat_path" and set it to "/chat/".
Then try altering the XML as per the following example ;
<navoption>
<phrase>flashchat_menu1</phrase>
<link>$vbphrase[flashchat_path]admin/msglist.php?{$rand}</link>
</navoption>
I haven't tested this, but it should work, allowing people to edit the flashchat_path phrase to suit their installation.
cyberhypnotic
01-28-2006, 04:39 AM
No go on that one. At least, not when testing it on my forum.
The link states $vbphrase[flashchat_path]admin/msglist.php?{$rand}
Paul M
01-28-2006, 04:50 AM
Sorry, I don't have access at work to try anything, but since you included $rand in your code I assumed variables would work.
cyberhypnotic
01-28-2006, 04:55 AM
The {$rand} is what's used for each link in the FlashChat Admin Panel, provided by Tufat.
cyberhypnotic
01-28-2006, 05:53 AM
Paul, I've noticed something in your FlashChat Integration xml file. You're using the phrase flashchat_path and it looks as though you've applied it to a link.
I'm not saying that's why the phrase: flashchat_path didn't work for me. I've tried a different one like flashchat_root and it still didn't work.
But nevertheless, it seems as though you have applied a phrase to a link. Most likely with the use of PHP. Is it possible you could figure out some PHP code for me to apply to this problem?
It's funny, I've kinda taken you on as a mentor, of sorts, lol. I'm trying to learn this stuff and take care of my 1 yr old son at the same. Kinda tough, lol.
Snake
01-28-2006, 12:23 PM
Love it! :)
Mastar
01-28-2006, 12:26 PM
Can this be done for chatbox (https://vborg.vbsupport.ru/showthread.php?t=92537&highlight=chatbox+lite) lite also?
cyberhypnotic
01-28-2006, 05:59 PM
That doesn't come with an AdminCP menu for it? I don't have that, for one. I could look into it.
But, what features are you looking for? Member control, like woh can view and who can't? Usergroup control in the same manner?
You might be better off talking this over with the person that's working on the mod. But I'd give it a shot. This stuff makes me feel pride in something, on the net anyway. Putting something into a script and then making something come out of it that people enjoy. That's what it's all about.
Now, back to figuring out this link problem. :ermm:
Paul M
01-28-2006, 07:08 PM
cyberhypnotic - attached are two files that I knocked up earlier. If you uninstall your current version and load these - they fix the links problem, using a setting in the vbulletin options > general settings. Feel free to study them and adapt as necessary. You will notice that they only give one option as well, since all the actual options are at the top of the flashchat admin screen anyway.
cyberhypnotic
01-29-2006, 04:51 AM
Thanks a bunch Paul! I'll take a gander at these when I have more time. Probably in about 8 or so hours.... time for sleep.
Yes, I know that all the links are at the top when you click into the FlashChat Admin Panel. I was looking to eventually make it possible to just select them from the AdminCP->FlashChat CP dropdown. Then work on some templates for the right side Admin index window. That's why I was asking you about the templates for it.
I'll have to take a look at these and see what I can do with them. Since I haven't yet, I still don't know what this looks like myself.
EDIT - Tried it out Paul, it worked! You're awesome man! I'll have the updated script ready for download asap! ;)
cyberhypnotic
01-29-2006, 07:52 AM
Well, all updated and uploaded. I'll see what else I can put into this.
Seriously Paul, you f'n rock! :up:
Looking at the script you had added, it made me look in my PHP/MySQL book at arrays. I now understand them a little better than before. Looking at them before confused the hell out of me, but seeing it actually working out helps.
I'll have to put some serious time into actually studying that thing. :laugh:
Gripemaster
01-30-2006, 12:18 AM
Nice feature...thank you!
*Clicks Install*
Pcparts
02-21-2006, 02:41 PM
I keep getting this message when I try o access the chat admincp from vb admincp:
This tool is designed to give FlashChat administrators multiple ways to view the chat logs, reset the chat logs, and add/edit/remove rooms. There are 11 logged messages. Configuration options for the chat can be set in the inc/config.php file, which comes with the FlashChat distribution
virtualraceday
02-28-2006, 04:00 AM
Great feature..... thanks a lot!!
Smiry Kin's
03-12-2006, 06:57 PM
cheers dude looking for this.
Holidazed
03-12-2006, 11:24 PM
I am having a problem here. The Flashchat admin works fine. However, When the FlashChat Admin Menu product is active, I get an error in my ACP nav menu at the top that says:
---------------------------------------
Warning: Invalid argument supplied for foreach() in /admincp/index.php(841) : eval()'d code on line 74
Warning: Invalid argument supplied for foreach() in /admincp/index.php on line 854
---------------------------------------
When I disable the product, the error goes away. I have found that is conflicting somehow with the "Enhanced ACP Navigation (https://vborg.vbsupport.ru/showthread.php?t=95679&highlight=Enhanced+ACP+Navigation)" mod I have active. When I disable either of these, the error goes away.
I would rather not lose either of these two addons.
Ideas?
Kacela
03-13-2006, 10:27 AM
Very nice - especially for a first hack! Kudos to you (and Paul)!
/me clicks Install!
Peace_Hope
03-13-2006, 11:55 AM
This tool is designed to give FlashChat administrators multiple ways to view the chat logs, reset the chat logs, and add/edit/remove rooms. There are 0 logged messages. Configuration options for the chat can be set in the inc/config.php file, which comes with the FlashChat distribution
Basically useless
Holidazed
03-14-2006, 06:52 PM
I am having a problem here. The Flashchat admin works fine. However, When the FlashChat Admin Menu product is active, I get an error in my ACP nav menu at the top that says:
---------------------------------------
Warning: Invalid argument supplied for foreach() in /admincp/index.php(841) : eval()'d code on line 74
Warning: Invalid argument supplied for foreach() in /admincp/index.php on line 854
---------------------------------------
When I disable the product, the error goes away. I have found that is conflicting somehow with the "Enhanced ACP Navigation (https://vborg.vbsupport.ru/showthread.php?t=95679&highlight=Enhanced+ACP+Navigation)" mod I have active. When I disable either of these, the error goes away.
I would rather not lose either of these two addons.
Ideas?
Does ANYBODY have an idea why this is happening?
TCooper
03-27-2006, 03:49 AM
i have same problem if anyone can help. using 3.5.4
Mr_Devlin
03-27-2006, 07:25 AM
I've got same error but ONLY on my test-board, not on the real one. Enhanced ACP-Mod is also installed and will work fine online.
I think this may depend on the server environment, because on my test board I use newer versions of MySql5.0.18 (instead of 4.113) and PHP 5.111 (instead of 5.04) and instead of Apache 1.3 the Apache 2.
I don't know whether these difference may take affect on this issue but as I said above: With the "older" version there were NO errors.
Holidazed
03-27-2006, 12:07 PM
I don't think this mod is being supported. No responses at all.
Icehawk002
10-03-2006, 10:14 PM
Ditto the two previous posters
Warning: Invalid argument supplied for foreach() in /admincp/index.php(402) : eval()'d code on line 1
Warning: Invalid argument supplied for foreach() in /admincp/index.php on line 415
Using Version 3.6.1
bada_bing
10-04-2006, 02:28 AM
Ha I will try this install tomorrow
SCRIPT3R
11-04-2006, 04:13 PM
for those wanting this menu and not wanting to deal with conflicting AdminCP problems due to the product, just download cpnav_flashchat and edit the directory paths accordingly to reflect your correct directory tree AND drop the unneeded code, upload that file into your includes/xml directory and there ya go. i was just going to make this for 3.6.x and then i saw this. i haven't yet heard back from anyone giving me permission to make an official port yet.
sduckie2k5
11-17-2006, 02:07 PM
How do I remove this from the ACP, I used the uninstall in the product manager but it left behind these:
*[flashchat_menu2]*
*[flashchat_menu3]*
*[flashchat_menu4]*
*[flashchat_menu5]*
*[flashchat_menu6]*
*[flashchat_menu7]*
Thanks in advance!
rebonuk
08-20-2007, 08:45 AM
I can't seem to unsitall this product. When I do I get a problem with my admin navigation and it looks like this:
*[flashchat_menu1]*
*[flashchat_menu2]*
*[flashchat_menu3]*
*[flashchat_menu4]*
*[flashchat_menu5]*
*[flashchat_menu6]*
*[flashchat_menu7]*
*[flashchat_menu8]*
*[flashchat_menu9]*
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.