SimplePortal

Support => English Support => Topic started by: danmsmith018f on December 18, 2018, 04:23:44 PM

Title: Where is the code for these elements, where are they stored?
Post 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!
Title: Re: Where is the code for these elements, where are they stored?
Post by: ccbtimewiz on December 25, 2018, 02:06:23 AM
Open ./Sources/Load.php

Find:
Code: [Select]
$memberContext[$user] = array(
A bit further down you'll find them.

Code: [Select]
'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>',
Title: Re: Where is the code for these elements, where are they stored?
Post by: danmsmith018f on December 26, 2018, 06:22:06 AM
Open ./Sources/Load.php

Find:
Code: [Select]
$memberContext[$user] = array(
A bit further down you'll find them.

Code: [Select]
'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.
Title: Re: Where is the code for these elements, where are they stored?
Post by: ccbtimewiz on December 26, 2018, 07:07:37 PM
Open /Themes/default/languages/index.english.php

Find:
Code: [Select]
$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>?';
Title: Re: Where is the code for these elements, where are they stored?
Post by: ♦ Ninja ZX-10RR ♦ on December 27, 2018, 12:49:53 PM
Note: last edit affects the login page too because it's not SP code but rather SMF code itself.
Title: Re: Where is the code for these elements, where are they stored?
Post by: danmsmith018f on December 29, 2018, 08:07:06 AM
Thanks, fellas, that worked.

Whilst we're at it, do you know where the code for the following elements are stored?

Title: Re: Where is the code for these elements, where are they stored?
Post by: danmsmith018f on January 01, 2019, 08:24:51 AM
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:
Title: Re: Where is the code for these elements, where are they stored?
Post by: Chen Zhen on January 04, 2019, 10:50:07 AM
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.




SimplePortal 2.3.8 © 2008-2024, SimplePortal