Welcome, Guest. Please Login or Register.
May 15, 2025, 03:59:10 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Add username to action string « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Add username to action string  (Read 1396 times)
DVS
Noobie
*
Posts: 28


WWW
Add username to action string
« on: August 22, 2003, 10:22:52 AM »
Reply with quote

This may be a simple mod request for you masters, but here's my request:

I'm using frames with YaBBSE with a master menu in a seperate frame from the YaBBSE system.  My problem is that some commands need the username included within the string (Ex: "...action=chat;user=dvs").

Can someone make a mod (or a PHP file to call) that will take the Chat command and add the person's username to the string and send it?

Thanks for any help!

Anthony
Logged

Digital Vision Syndicate - www.dvsyndicate.com
Detroit Electronic Expo - www.detroitelectronic.com
Detroit Entertainment - www.detroitentertainment.tv
Grudge
Global Moderator
Full Member
*****
Posts: 178


Damn llama's don't like me :(

Re:Add username to action string
« Reply #1 on: August 23, 2003, 11:19:11 PM »
Reply with quote

Do you mean so you could link to the chat action from outside the forum frame? If so I think you may need to use something like SSI. Open SSI.php and make a new function called "showusername" or similar. You can take adapt the code from WelcomeMsg (or whatever SSI shows the welcome screen for a user). Basically- just make the function return the username and add it into the url.

Don't know if this is what you want or not. Personally I would HIGHLY advise dumping frames - they are just plain evil! You can make a nicer site with tables but without the this kind of hastle
Logged
DVS
Noobie
*
Posts: 28


WWW
Re:Add username to action string
« Reply #2 on: August 26, 2003, 04:35:34 AM »
Reply with quote

QuoteDo you mean so you could link to the chat action from outside the forum frame?
Yes.

QuoteIf so I think you may need to use something like SSI. Open SSI.php and make a new function called "showusername" or similar.
Hmmm...I'll look into that...thanks!

QuotePersonally I would HIGHLY advise dumping frames - they are just plain evil! You can make a nicer site with tables but without the this kind of hastle
I agree as I've always hated frames, but I have an animated Flash-based menu that I'd like to keep static on top without having to load it in every page.

Thanks again!

Anthony
Logged

Digital Vision Syndicate - www.dvsyndicate.com
Detroit Electronic Expo - www.detroitelectronic.com
Detroit Entertainment - www.detroitentertainment.tv
DVS
Noobie
*
Posts: 28


WWW
Re:Add username to action string
« Reply #3 on: August 26, 2003, 10:04:49 AM »
Reply with quote

Just for the record so others may benefit, I found a real easy solution to integrate the username to the chat action.

In Chat.php. line 10 is:

$user=urldecode($user);

Change it to:

$user = $username;

That works for me so far with no errors (only been testing it for an hour so far though).  But I logged in with a few different usernames in YaBB and the login usernames all passed through ok to Chat.

Hope this helps.

Anthony
Logged

Digital Vision Syndicate - www.dvsyndicate.com
Detroit Electronic Expo - www.detroitelectronic.com
Detroit Entertainment - www.detroitentertainment.tv
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Add username to action string « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.153 seconds with 21 queries.