News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

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

Advertisement: