News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Contact Page

Started by SMFHacks.com Team, July 06, 2006, 12:59:38 PM

Previous topic - Next topic

Sir Osis of Liver

  >:(  Well, I broke it.  Changed the action in contactHooks.php -


function contact_actions(&$actionArray)
{
    global $sourcedir, $modSettings;

  $actionArray += array('tcatnoc' => array('Contact2.php', 'Contact'));
 
}


Removed the main menu button, added a new button (png) in template_body_below() that links to new action.  Added some formatting.  Link with new action works, form loads correctly, displays verification image and questions, but nothing happens when send email is clicked with or without verification, just returns to board index.  Running on test forum here.  Will get back to it tomorrow.
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

You have to change the action name in contact2.template.php to tacnoc since you changed it above.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

That got it, thanks.  Running here.  Now we'll see if the spammers find it.
When in Emor, do as the Snamors.
                              - D. Lister

Sir Osis of Liver

FYI, the uninstaller does not remove the contact mod files.
When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

Yeah, its a tradeoff. I sometimes worry if someone uninstalls and they have custom changes they are gone forever.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sir Osis of Liver

Actually, that happened here, saved me some work. :)
When in Emor, do as the Snamors.
                              - D. Lister

naveenkumar

Contact icon is missing if using another theme. Using Endar theme: https://custom.simplemachines.org/index.php?theme=3



One more thing is it should be at the end of the links in that line, not in the middle. How to make it happen. In this case, it should be after "Members"

vbgamer45

Might be a theme issue/mod doesn't support icons.

To move Members icon in SMF 2.1 you will need either to edit the hook code in the modification or get a menu editor plugin to move it.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: