News:

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

Main Menu

register link

Started by Teetee, February 07, 2015, 04:12:24 PM

Previous topic - Next topic

Teetee

How could I change registration link to a different one because I have wordpress too so I got a way to bridge 2 of them but the registrations must come from WP and not from SMF so I need to redirect the current smf registration link to WP's one.

P.S Meaby using these both plugins: hxxp:github.com/xchwarze/SMF2WPBridge [nonactive] and hxxp:wordpress.org/plugins/wp2smfbridge/ [nonactive]

Would allow me to register in the both way? from SMF and from WP too?

Acans

I haven't tried a WP/SMF bridge, but you could change the link in /Sources/Subs.php.

Code (Find) Select
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),


Than change 'href' => $scripturl . '?action=register',

to

'href' => 'http://wordpress.mydomain.com/register',

^ Obviously changing that link to whatever your actual registration link is.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

Advertisement: