Customizing SMF > Modifications and Packages

Invitation Message In Your Face [IMIYF]

<< < (2/17) > >>

Sci-Fi_Fan:

--- Quote from: luuuciano on September 04, 2011, 11:50:24 AM ---
--- Quote from: Sci-Fi_Fan on September 04, 2011, 08:04:41 AM ---Hi, the display box itself works fine but when it is clicked, I get the following error:


--- Quote ---Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /-removed-/-removed-/public_html/forum/Sources/Register.php on line 875

--- End quote ---

Any ideas?

--- End quote ---

Well, this mod do not change anything on that file... do you have installed other mods that touchs it? wich ones?
Can you attach that Register.php file?

For example, my Register.php file have 849 lines...

--- End quote ---

I did have the referrals mod installed, but I thought I removed that. However, I'm not an expert at php coding so I could be mistaken.

My file is attached. I'd really appreciate any help you can provide with this as it is a good mod.

luuuciano:
That file is broken, it is not the 100%... edit it and watch the end

--- Quote ---   {
      require_once($sourcedir . '/Subs-Members.php');
      $context['valid_username'] &= isReservedName($context['che

--- End quote ---

Why is that? do you edited it and upload it wrong?

and the file have pieces of referral mod (and another one about "country" things?)... you will have to restore that file... and look the parse of that mod to do the reverse of install it (in every file touched)

or try changing it to this


--- Code: --- {
require_once($sourcedir . '/Subs-Members.php');
$context['valid_username'] &= isReservedName($context['checked_username'], 0, false, false) ? 0 : 1;
}
}

?>
--- End code ---

but, no idea if your register file had other codes between that and ?>

Sci-Fi_Fan:

--- Quote from: luuuciano on September 04, 2011, 12:19:01 PM ---That file is broken, it is not the 100%... edit it and watch the end

--- Quote ---   {
      require_once($sourcedir . '/Subs-Members.php');
      $context['valid_username'] &= isReservedName($context['che

--- End quote ---

Why is that? do you edited it and upload it wrong?

and the file have pieces of referral mod... you will have to restore that file... and look the parse of that mod to do the reverse of install it (in every file touched)

--- End quote ---

I don't know. I haven't touched it, but it may have happened when I uninstalled the referral mod. I'll attempt to sort it out.

EDIT: OK, I removed the referral mod from all files associated with it. How can I restore the rest of the code that's missing?

luuuciano:

--- Quote from: Sci-Fi_Fan on September 04, 2011, 12:21:10 PM ---EDIT: OK, I removed the referral mod from all files associated with it. How can I restore the rest of the code that's missing?

--- End quote ---

If you have no other mods touching Register.php just download the smf full pack (installer/update/upgrade, any of them.... the same version you are using), unpack it locally and upload just that file (Register.php)...
If you have other mods touching that file... look at /Packages/backups for the latest working backup and try the file in there... if not, do the previous option, do a parse on mods touching that file, inser/change codes, upload...

PLAYBOY:
Very nice mod. Easy to use and custom theme friendly. Thank you very much.

I think it would be very nice (and useful) if you can add an option which will make the popup show only once to a person/to an ip/to a session. I mean it could be cookie based or ip based or whatever. But my visitors are complaining that the popup message appear everytime they visit the site and it gets pretty annoying.

Also it would be nice, if we could customize the hyperlink of the popup. My forum has an invitation system and i dont people to be directed to register.php

I would really appreciate if you can add these features.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version