Customizing SMF > Modifications and Packages
Invitation Message In Your Face [IMIYF]
ApplianceJunk:
Awesome mod, thanks!
I'm also trying to change the link to something other then, register.
I read your reply to Eambo on how to do this.
--- Quote ---
Then, a few lines below look for
--- Code: ---<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>
--- End code ---
Change the href section to your needs. something like href="http://www.simplemachines.org/"
--- End quote ---
Could you post the code with http://www.simplemachines.org as a example of just how it's changed?
I have tried to change the a href to something other then register and keep getting errors.
I must not be doing it correctly.
thanks,
Edited to add:
Got it, lol...
Changed this.
--- Code: ---<a href=\'' . $scripturl . '?action=register\'>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>
--- End code ---
to this...
--- Code: ---<a href=http://www.simplemachines.org>' . JavaScriptEscape($modSettings['imiyf_txt']) . '</a>
--- End code ---
ApplianceJunk:
How could I have this show for guest and regular members at the same time?
How about for any special member groups I have?
Thanks,
luuuciano:
--- Quote from: appliancejunk on July 05, 2012, 04:25:38 PM ---How could I have this show for guest and regular members at the same time?
How about for any special member groups I have?
Thanks,
--- End quote ---
For the 1st thing try something like
--- Code: ---if(!empty($modSettings['imiyf_enable']) && $context['current_action'] != 'register')
--- End code ---
For the second thing try reading this http://www.simplemachines.org/community/index.php?topic=330834.0;all
shigoxin:
hello, does this mod work with 2.0.2 ? Any conflict? Thank you.
luuuciano:
It works, emulate 2.0 on mod install section
The only conflict you may have is with other mods that uses jquery, you will have to touch code to have just one call
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version