SimplePortal
Support => English Support => Topic started by: danmsmith018f on December 18, 2018, 04:23:44 PM
-
Hi,
Where is the link (href) code for these elements and in what file are they stored? File paths would be helpful!
The account profile links on the board index.
(https://i.imgur.com/5AQp29O.png)
The login, register and activation email links in this simple portal block.
(https://i.imgur.com/LALnesI.png)
The account profile links in this 'Recent Contributions' simple portal block.
(https://i.imgur.com/0RdHlTW.png)
For anyone wondering which site this is for, and would rather take a look at its code in detail, the site is called Lets Chat Love and goes by the domain name of https://letschatlove.com (https://letschatlove.com). It's a relationship/love/dating/lifestyle forum that utilises simple portal.
Thank you!
-
Open ./Sources/Load.php
Find:
$memberContext[$user] = array(
A bit further down you'll find them.
'title' => !empty($modSettings['titlesEnable']) ? $profile['usertitle'] : '',
'href' => $scripturl . '?action=profile;u=' . $profile['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $profile['real_name'] . '">' . $profile['real_name'] . '</a>',
-
Open ./Sources/Load.php
Find:
$memberContext[$user] = array(
A bit further down you'll find them.
'title' => !empty($modSettings['titlesEnable']) ? $profile['usertitle'] : '',
'href' => $scripturl . '?action=profile;u=' . $profile['id_member'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['id_member'] . '" title="' . $txt['profile_of'] . ' ' . $profile['real_name'] . '">' . $profile['real_name'] . '</a>',
Hey, thank you, however, those look to be the links that appear when logged in.
Is there any way to get access to the guest links? e.g the 'Welcome, Guest. Please login or register. Did you miss you activation email? Those links.
-
Open /Themes/default/languages/index.english.php
Find:
$txt['welcome_guest'] = 'Welcome, <strong>%1$s</strong>. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
$txt['login_or_register'] = 'Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
$txt['welcome_guest_activate'] = '<br />Did you miss your <a href="' . $scripturl . '?action=activate">activation email</a>?';
-
Note: last edit affects the login page too because it's not SP code but rather SMF code itself.
-
Thanks, fellas, that worked.
Whilst we're at it, do you know where the code for the following elements are stored?
- 'Recent Contributions' simple portal block code, I'd like to nofollow the 'By {Username}' links
- Board index 'Last post by {Username}' links? This isn't related to simple portal, but I'm hoping you know at the top of your head!
-
Thanks, fellas, that worked.
Whilst we're at it, do you know where the code for the following elements are stored?
- 'Recent Contributions' simple portal block code, I'd like to nofollow the 'By {Username}' links
- Board index 'Last post by {Username}' links? This isn't related to simple portal, but I'm hoping you know at the top of your head!
Still looking for the above if anyone knows? :nervous-happy:
-
re. hxxps://letschatlove.com
Simpleportal.net is for supporting Simple Portal specifically and not really for helping with edits to SMF files.
Also both forums do not provide support to those that remove copyright links.
You can remove copyright links but official software support stops when you do so.
Here are the support guidelines that were written years ago:
https://simpleportal.net/index.php?topic=2291.0
Furthermore all your questions are about removing or changing links.
If you really are so inclined to change or remove all links on your forum, including copyrights from all mods & the forum itself then I suggest you learn to do these edits yourself.