FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Shoutbox User integration with FUD
Show: Today's Messages :: Unread Messages :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Shoutbox User integration with FUD [message #38586] Thu, 16 August 2007 16:19 Go to next message
BAD35th is currently offline  BAD35th   Canada
Messages: 61
Registered: February 2007
Location: Hammertown
Karma: 0
Member
add to buddy list
ignore all messages by this user
I have been able to succussfully get a Shoutbox / Chatbox from Cbox working with my FUD forum. I like it but some users are abusing it.

The Vendor says it shuld be possible to integrate it to synchronize with the Forum Users login name. In the following code peice it tells how to do this with PHP type systems.

Where do I find this User type parameter in FUD?? Would I have to make any other changing to FUD configuration or code to make this work??

Thanks....


From the Cbox site:
-------------------------------------------------------

If you host your own website with its own userbase, it is quite easy to integrate Cbox so that it automatically assigns the correct names to users logged in to your website.

If your site is PHP-based (e.g. phpNuke, vBulletin, phpBB), alter your Cbox HTML code in the following way:


...&amp;sec=form&amp;nme=<?=urlencode($name)?>&amp;nmekey=<?=md5('22dkcjb09gk00i4a'.$name)? >

Where the variable $name appears, insert the variable that represents the user's name as retrieved from your userbase. This will vary depending on your CMS or forum system. After changing your code, enable user override below.

--------------------------------------------------------
Re: Shoutbox User integration with FUD [message #38621 is a reply to message #38586] Sun, 19 August 2007 09:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
The user types are set via a bitmask through users_opt field inside the users table.

FUDforum Core Developer
Re: Shoutbox User integration with FUD [message #38732 is a reply to message #38621] Sat, 25 August 2007 00:09 Go to previous messageGo to next message
BAD35th is currently offline  BAD35th   Canada
Messages: 61
Registered: February 2007
Location: Hammertown
Karma: 0
Member
add to buddy list
ignore all messages by this user
HELP !!!

My forum crashed after trying to integrate this Confused

When I hit the main site ( www.forums.tfbm.org )I just get a blank white page??

I tried to understand what you were saying and added the following code to my Cbox HTML which is located in the footer of my template:

&amp;nme=<?=urlencode($u->id)?>&amp;nmekey=<?=md5('22dkcjb09gk00i4a'.$u->id)?>


Then I could no longer get into the Admin console to change back the template! Fortunately I was able to go back thru the browser history and get an old window to open in the Admin console and put the footer back to how it was before the crash Shocked Site now reloads ok.

Is it possible for you to give me a further clue what Variable I should be looking for?

[Updated on: Sat, 25 August 2007 00:15]

Report message to a moderator

Re: Shoutbox User integration with FUD [message #38736 is a reply to message #38732] Sat, 25 August 2007 09:23 Go to previous messageGo to next message
BAD35th is currently offline  BAD35th   Canada
Messages: 61
Registered: February 2007
Location: Hammertown
Karma: 0
Member
add to buddy list
ignore all messages by this user

Note to self: always open 2 Browser windows! Smile

1. With Template/Admin console open for editing.

2. Separate window to test changes the on your forum.

Re: Shoutbox User integration with FUD [message #38754 is a reply to message #38732] Sun, 26 August 2007 12:41 Go to previous message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
You should not embed PHP directly into fud forum templates. If you want to reference a variable do:

{VAR: var_name} (note the missing dollar sign.

if you want to call a function do:

{FUNC: foo($abc, $xyz)}


FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Datamodel
Next Topic: account manager info
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Dec 09 10:13:59 EST 2023

Total time taken to generate the page: 0.04543 seconds