collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 208
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Yeni Sürüm Çıkacak mı? by akorkut
[Today at 04:53:54 AM]


Re: PHP block stopped working by ♦ Ninja ZX-10RR ♦
[June 23, 2019, 10:04:08 AM]


PHP block stopped working by chloe8911
[June 22, 2019, 08:53:48 AM]


Re: Avatar Bug by ♦ Ninja ZX-10RR ♦
[June 09, 2019, 07:14:27 PM]


Re: Avatar Bug by DollarSRV
[May 27, 2019, 07:47:32 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Where is the code for these elements, where are they stored?  (Read 2911 times)

0 Members and 1 Guest are viewing this topic.

Offline danmsmith018f

  • Semi Newbie
  • *
  • Posts: 7
Where is the code for these elements, where are they stored?
« 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.


The login, register and activation email links in this simple portal block.


The account profile links in this 'Recent Contributions' simple portal block.


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. It's a relationship/love/dating/lifestyle forum that utilises simple portal.

Thank you!
« Last Edit: December 18, 2018, 04:28:01 PM by danmsmith018f »

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Where is the code for these elements, where are they stored?
« Reply #1 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>',

Offline danmsmith018f

  • Semi Newbie
  • *
  • Posts: 7
Re: Where is the code for these elements, where are they stored?
« Reply #2 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.

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Where is the code for these elements, where are they stored?
« Reply #3 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>?';

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1187
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Where is the code for these elements, where are they stored?
« Reply #4 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.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

▼ My job! ▼

No PMs for support unless it's a paid request. Thank you! :)
#OpIsis

Offline danmsmith018f

  • Semi Newbie
  • *
  • Posts: 7
Re: Where is the code for these elements, where are they stored?
« Reply #5 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?

  • '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!

Offline danmsmith018f

  • Semi Newbie
  • *
  • Posts: 7
Re: Where is the code for these elements, where are they stored?
« Reply #6 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:

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Where is the code for these elements, where are they stored?
« Reply #7 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.