Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by humble humble is offline
Developer Last Online: Feb 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-16-2001 Last Update: Never Installs: 0
 
No support by the author.

Here's the pre-info...

Based upon the myphpchat 0.14.5 engine...
Using parts of the code scattered around on how to integrate it to use vb's user db......

THEN!!!

I added a field in the user table called 'phpchat'

Then, I added the code for the UserCP to enable or diable it per user. (this part works great so far)...

Then I created a new template, that contains a new iframe, and launches the myphpchat/index.php inside the iframe...

Then I added a new variable @ the bottom of the footer called $phpchatsystem....

Now... here's the tricky part..

in global.php, I need to add something like this:

PHP Code:
// Check the user's preference to enable the Chat System...

 
$phpchatcheck=$DB_site->query_first("SELECT phpchatsys FROM user WHERE username = '".$bbuserinfo['username']."'");
 if (
$phpchatcheck) {
  eval(
"\$phpchatsystem = \"".gettemplate('phpchaton')."\";");
 } else {
 } 
Or something that....

Checks to see if the phpchatsys field for you is on or not, and if it is....

it takes that variable in the footer section, and calls my phpchaton template data...

if it's not, it either calls a phpchatoff template that's empty (been there tried that), or just does nothing is fine...

Here' my problem....

Everything works like a champ, except.... if I turn it on in my user options, it appears for me... and everyone else (even though there setting is off) gets the newtemplate passed through my $phpchatsystem

Now when I just bypass the user settings, this thing is UNREAL... it sits in your footer in a new section, and everytime a registered user logs on, they are instantly authenticated, and brought in to the myphp session... and since it's in the footer... People can navigate around ANYWHERE in the board, and still have somewhat real time chat with every other member logged in.

It works great built in to the header, the footer, and called from a seperate IE window... and all work flawless....

Except... when trying to have it user selectable... Soon as I turn it on for one member, it turns it on for all...

-=-=-=-=-=-=-=-
Quick Summary
-=-=-=-=-=-=-=-

If- you have a variable in your footer, that you want converted to a template ... that is user specific.
AND- you have a new template you want added @ the end of the footer only if that user had the option enabled in his user profile...
AND- everything else is 100% working...

HOW- and WHAT code would you add (and is it in global.php, which I assumed, cuz of the way the: [ $newpmmsg and headnewpm ] are delt with )

To check query for this user, his setting, and if so, use the new template, if not, don't.

-=-=-=-=-=-=-
Thanks!!!!!!!!!
-=-=-=-=-=-=-

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-18-2001, 05:20 PM
humble's Avatar
humble humble is offline
 
Join Date: Nov 2001
Location: MidWest USA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And why Not Add even more to this already fine solution....

Instead of a Empty template for phpchatsysoff, i just copied the phpchatsyson box, with a URL to enable it, instead of the iframe.
Attached Files
File Type: (21.4 KB, 100 views)
Reply With Quote
  #23  
Old 11-18-2001, 05:31 PM
humble's Avatar
humble humble is offline
 
Join Date: Nov 2001
Location: MidWest USA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now for people who want to help me test this bad boy out, so we can develop a full hack to release based upon it...


Now, I couldn't have done this, or wouldn't have without the existing hack from Stasik @ https://vborg.vbsupport.ru/showthrea...ight=phpmychat ...

So to get started like I did... You must download phpmychat v0.14.5, and try to get his hack installed, so that you can use vb's users instead of the phpmychat's users.

His implementation, is external window only, and as the 214 replys summarize, it's not for the weak hearted.

After you get that working.... We're ready to start my vB hack(s) to get it 100% integrated...

I've just got a few more things I want to do to it too....

The AdminCP setting for Global Enable/Disable for the Internal system ONLY.

and the private channels being restricted by usergroup.... which is going to be a bit diffucult.... BUT they way i'm thinking of designing it.....

There will be a new menu in the AdminCP... Where you can have lets say 10 channel fields, and a checkbox for public or private.... and if the private is selected, it then looks at another field that basically looks for 'and require access to forumid="xx"'...

i.e.

The CP menu would have:

Channel Name: --------- Public or Private -------- Require Forum ID
=============================================
Boardname ---------------Public --------------------- None
Moderators ---------------Private -------------------- 12
Admins ---------------------Private---------------------13

Where forum 12 = my Moderators forum, where only the moderator's usergroup has access... and 13 = the admin's forum, where only the admin usergroup has access...

so you can continue to do your security as vb designed, but also allowed to use that check, to secure your Chat channels as well!
Reply With Quote
  #24  
Old 11-20-2001, 11:16 PM
|DarkManX|'s Avatar
|DarkManX| |DarkManX| is offline
 
Join Date: Oct 2001
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any updates on this baby??
Reply With Quote
  #25  
Old 12-02-2001, 04:50 PM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All I can say for this hack is that it's excellent, superb, and in french Il est tres bien

Just thought I should spice it up with french, not that I am one, just happen to know the language
Reply With Quote
  #26  
Old 12-02-2001, 10:53 PM
humble's Avatar
humble humble is offline
 
Join Date: Nov 2001
Location: MidWest USA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the slacking...

I've had more computer drama then anyone should ever have to deal with, all in one week...

It's taking a bit to get back on my feet... and i'll be sure to resume this project again in a bit.
Reply With Quote
  #27  
Old 12-03-2001, 04:02 PM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by humble
Sorry for the slacking...

I've had more computer drama then anyone should ever have to deal with, all in one week...

It's taking a bit to get back on my feet... and i'll be sure to resume this project again in a bit.
That's ok humble, we all understand that real life is far more important than the vitual life

We all will be waiting for when you decide you are ready to continue this project.

Have a nice day
Reply With Quote
  #28  
Old 12-12-2001, 11:35 AM
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking high and low for a chat system that intergrates with Vb. So far none is complted.
Reply With Quote
  #29  
Old 12-17-2001, 04:48 AM
pezz pezz is offline
 
Join Date: Nov 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't wait till this is released! Looks amazing!!!
Reply With Quote
  #30  
Old 12-19-2001, 09:53 AM
spazeman's Avatar
spazeman spazeman is offline
 
Join Date: Dec 2001
Location: Vancouver Island, Canada
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet, that hack kicks ass! I know my users would die for that
Reply With Quote
  #31  
Old 12-29-2001, 04:30 PM
sphinx sphinx is offline
 
Join Date: Dec 2001
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah sounds excellent m8
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07206 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete