Jump to content

Recommended Posts

ive got an issue with a plugin im tring to make with the isset() part as bellow

 

if (isset($cmd) &&($cmd == 'Messages.home.64')) {
$title[] = 'messages';
  shRemoveFromGETVarsList('cmd');
}

 

on the first line of the snippet i want the 64 part of the line to be called from a variable as it is the userid im at the end of my wit so help would be greatly apprechated.

 

The variable is already set as $userId higher up in the script i just keep getting UNEXPECTED T VARIABLE with everything i try

Yeh sorry the code is valid as it is, but the 64 part at the end of the text string is hardcoded in at the moment ie:

 

if (isset($cmd) &&($cmd == 'Messages.home.64')) {
  $title[] = 'messages';
  shRemoveFromGETVarsList('cmd');
}

 

The problem i have is calling the 64 part (userid) as a variable ive tried the following with no luck could you tell me what im doin wrong or if its posible?

 

if (isset($cmd) &&($cmd == 'Messages.home."$userId"')) {
  $title[] = 'messages';
  shRemoveFromGETVarsList('cmd');

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.