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.

brettuk

Quote from: Kindred on December 19, 2018, 09:07:04 AM
Well, heck.... if you remove the permission for guests to view profiles, that solves half of your issue right there.

?

Guests can still click the links to go to the profile pages, it doesn't 404, it's just crawlers that I am trying to stop getting to the profile pages, or flowing equity to them.

I have plans to re-add the links tonight when I made some changes to the footer.

Kindred

he didn't say that you don't know SEO.... he said that he questions your "advice" on what are actually "best practices"

(actually so do I for that matter)
Сл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."

brettuk

Quote from: Kindred on December 19, 2018, 01:39:54 PM
he didn't say that you don't know SEO.... he said that he questions your "advice" on what are actually "best practices"

(actually so do I for that matter)

I wouldn't advise it unless you truly know what you're doing, no. Look at your logs before doing any nofollows/disallows.

Arantor

I'm just going to leave this here - and as far as I know this policy hasn't changed - https://searchenginewatch.com/sew/news/2298312/matt-cutts-you-dont-have-to-nofollow-internal-links

If Matt Cutts says this is the case, I'd be inclined to agree. However, in your case I wouldn't even try to nofollow half the things you have as links, I'd simply look to removing them entirely, but that's another ball of wax entirely.

br360

Quote from: brettuk on December 19, 2018, 04:19:57 AM

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

When is this going to happen? I like your forum and hope it does well, so I am trying to be as respectful as I can. That being said though; you removed the SMF copyright once before and presumably put it back when you were told then to add it back if you wanted  support.

The few times I have been to your forum over the last few months, I have never seen the copyright for simple portal nor have I seen one for the paid SMF tricks theme you are using- so this is not a new thing based on recent file changes.

I will give you the benifit of the doubt that you actually paid for the theme, but I'm not as sure you paid extra for copyright removal (or if that's even an option with SMF Tricks)

Like I said; I do like your forum and hope it does well. But for someone that seems to have put in as much time and effort into it as you have, it would be nice if you would show respect to the people that spent their time and effort creating something that has helped you enhance your site like it has

Advertisement: