News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Where is the code for these elements, where are they stored?

Started by brettuk, December 18, 2018, 04:15:14 PM

Previous topic - Next topic

brettuk

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.


Thank you!

Illori

for the questions related to simple portal, you should ask in their support topic so they can assist you further.

brettuk

Quote from: Illori on December 18, 2018, 04:17:07 PM
for the questions related to simple portal, you should ask in their support topic so they can assist you further.

Understood, thanks. Do you know of the whereabouts of the board index account profile links, at all?  :)

Arantor


brettuk

Quote from: Arantor on December 18, 2018, 04:20:51 PM
What are you trying to do?

Add a rel="nofollow" attribute to it's links, the less you know, the better :)

Can't find the blooming file though!

Arantor

That's because it's not just one file, it's strewn across *many* even just in the parts you've shown (and likely many more across SMF)

brettuk

Quote from: Arantor on December 18, 2018, 04:34:57 PM
That's because it's not just one file, it's strewn across *many* even just in the parts you've shown (and likely many more across SMF)

Understood, any ideas in terms of where these files will be? In the resources folder? I can get digging!

Arantor

Mostly in the themes folder, though I could imagine bits of them be assembled in the sources folder. Huge task, good luck to you.

brettuk

Quote from: Arantor on December 18, 2018, 04:59:46 PM
Mostly in the themes folder, though I could imagine bits of them be assembled in the sources folder. Huge task, good luck to you.

cool, yes big job!

May I ask what is the purpose of the default/core theme folders when I have a custom theme installed? Will the theme sill utilise the default/core theme files? (or some of)?

Presumably I need to go through all of these to find the right lines ..

Arantor

Unless a theme replaces every single template from the default, it will reuse from the core. Almost every theme uses most of the default directly.

drewactual

rel="nofollow" being used for:

a) keeping search engines from indexing a page? 
b) breaking the links? 
c) HIDING the links?

a) robots.txt can be used to nofollow in the true purpose of nofollow...
b) you've got to be creative and hack it- using js for doing so while targeting the division and applying css to the targeted id/class (class sp_block_section perhaps?)... decent down and dirty is https://css-tricks.com/how-to-disable-links/
c) i can't imagine wanting to do this as it will make the page look strange- broken... but... https://www.lifewire.com/how-to-hide-links-using-css-3466933 will teach you how to 'just hide' links.   


br360

Is there a reason why you removed the simple portal copyright from your forum?

Unlike SMF 2.x, their license doesn't allow for a forum to do that

GigaWatt

I also can't see the SMF copyright and the credits page is messed up, syntax error, unexpected ')' when loading index.php?action=credits ::).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

drewactual


brettuk

Quote from: drewactual on December 18, 2018, 06:07:17 PM
rel="nofollow" being used for:

a) keeping search engines from indexing a page? 
b) breaking the links? 
c) HIDING the links?

a) robots.txt can be used to nofollow in the true purpose of nofollow...
b) you've got to be creative and hack it- using js for doing so while targeting the division and applying css to the targeted id/class (class sp_block_section perhaps?)... decent down and dirty is https://css-tricks.com/how-to-disable-links/
c) i can't imagine wanting to do this as it will make the page look strange- broken... but... https://www.lifewire.com/how-to-hide-links-using-css-3466933 will teach you how to 'just hide' links.   

It's best practice to disallow and also rel nofollow, they serve two different tech SEO purposes.

Sorry, I recently re-designed the footer and forgot about these links, I'll get those added.

Illori


Arantor

Quote from: brettuk on December 19, 2018, 04:19:57 AM
Quote from: drewactual on December 18, 2018, 06:07:17 PM
rel="nofollow" being used for:

a) keeping search engines from indexing a page? 
b) breaking the links? 
c) HIDING the links?

a) robots.txt can be used to nofollow in the true purpose of nofollow...
b) you've got to be creative and hack it- using js for doing so while targeting the division and applying css to the targeted id/class (class sp_block_section perhaps?)... decent down and dirty is https://css-tricks.com/how-to-disable-links/
c) i can't imagine wanting to do this as it will make the page look strange- broken... but... https://www.lifewire.com/how-to-hide-links-using-css-3466933 will teach you how to 'just hide' links.   

It's best practice to disallow and also rel nofollow, they serve two different tech SEO purposes.

Sorry, I recently re-designed the footer and forgot about these links, I'll get those added.

Not sure your best practice advise is up to date.

Kindred

Well, heck.... if you remove the permission for guests to view profiles, that solves half of your issue right there.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor


brettuk

Quote from: Arantor on December 19, 2018, 07:35:54 AM
Quote from: brettuk on December 19, 2018, 04:19:57 AM
Quote from: drewactual on December 18, 2018, 06:07:17 PM
rel="nofollow" being used for:

a) keeping search engines from indexing a page? 
b) breaking the links? 
c) HIDING the links?

a) robots.txt can be used to nofollow in the true purpose of nofollow...
b) you've got to be creative and hack it- using js for doing so while targeting the division and applying css to the targeted id/class (class sp_block_section perhaps?)... decent down and dirty is https://css-tricks.com/how-to-disable-links/
c) i can't imagine wanting to do this as it will make the page look strange- broken... but... https://www.lifewire.com/how-to-hide-links-using-css-3466933 will teach you how to 'just hide' links.   

It's best practice to disallow and also rel nofollow, they serve two different tech SEO purposes.

Sorry, I recently re-designed the footer and forgot about these links, I'll get those added.

Not sure your best practice advise is up to date.

I know SEO very well considering it's my livelihood.

Disallow is simply blocking Google from crawling the page.

Nofollow is a directive that tells Google not to pass link equity, or you could say 'power' to the page, thus, preserving the equity to flow to other more-important pages.

Advertisement: