Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Change Login / Register button links
Avatar
Michael Montague
Brisbane, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2015 - 6:09 am

Thanks mate that makes total sense now. I didn't realise they were passed in like normal php elements in a URL, so maybe an example with multiple args is useful, but maybe this question isn't asked very much. Great support from you guys 🙂 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 27, 2015 - 6:22 am

Thank you and happy to have helped. I hope this means it worked as expected 🙂

andy-signature.png
YELLOW
SWORDFISH
Avatar
Michael Montague
Brisbane, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2015 - 9:31 am

Thanks it works on the desktop, but not in spHeadMobile.php using the Reboot with a child theme. My code for this is below but it sends me to a page http://panorev.com/forum/logInLink instead:

sp_LogInOutButton('tagClass=spControl&mobileMenu=1&logInLink=http://panorev.com/login&logOutLink=http://panorev.com/logout', __sp('Log In'), __sp('Log Out'));
Avatar
Michael Montague
Brisbane, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2015 - 9:38 am

Think I just fixed that now too.

I've just set the mobileMenu flag to 0 and it's working, even though the menu still displays in a drop down box which is fine. I thought setting that arg to 0 would disable the dropdown menu. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2015 - 9:44 am

Strange, although it's still technically inside 'sp_MobileMenuStart' section so it will remain in the drop down, I'm not sure why having it enabled would use the argument 'logInLink' in the URL unless there was a typo in the function arguments.

Either way, glad it's working how it should!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17351
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10122
Posts: 79610