SimplePortal

Support => English Support => Topic started by: brettuk on April 18, 2016, 08:20:15 AM

Title: Simple Portal Blocks
Post by: brettuk on April 18, 2016, 08:20:15 AM
Hi,

I am currently using the Blocks feature to add content to each of my categories, as you can see here:
theseoforums.com/scrapebox-footprints/ (http://www.theseoforums.com/scrapebox-footprints/)

All looks good - I was happy to find out that I could do this, however, when you visit a post within that category - the content remains, which is a pain.

I have assigned the block to only appear for the 'Scrapebox Footprints' board, but ofcourse, all posts will have the same header.

Anyway to exclude the posts?

Thanks! I appreciate every reply!
Title: Re: Simple Portal Blocks
Post by: ♦ Ninja ZX-10RR ♦ on April 18, 2016, 09:29:16 AM
Hi and welcome to SimplePortal.

I cannot see any block in that board.

Regards
Title: Re: Simple Portal Blocks
Post by: brettuk on April 18, 2016, 12:08:13 PM
Hi and welcome to SimplePortal.

I cannot see any block in that board.

Regards

Woops! My bad.
I had hidden it, I have re-enabled it now.
Title: Re: Simple Portal Blocks
Post by: ♦ Ninja ZX-10RR ♦ on April 18, 2016, 12:57:24 PM
Block display doesn't work properly with prettyURLs installed (which is useless anyway - ref (http://www.simplemachines.org/community/index.php?topic=427913.0)), so, to display the block properly, I think you will have to hard-code the block into the template.
Title: Re: Simple Portal Blocks
Post by: emanuele on April 18, 2016, 03:44:42 PM
Why block should not work with prettyURL? O_o

As a general rule, to hide a block from the posting page you can use:
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.
Title: Re: Simple Portal Blocks
Post by: ♦ Ninja ZX-10RR ♦ on April 18, 2016, 03:56:57 PM
Last time I tried, it didn't work with a mod editing the URL in a much easier way, let alone prettyURLs that rewrites it entirely. If it works, cool then.
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 04:27:56 AM
Block display doesn't work properly with prettyURLs installed (which is useless anyway - ref (http://www.simplemachines.org/community/index.php?topic=427913.0)), so, to display the block properly, I think you will have to hard-code the block into the template.

Permalink structure is a ranking algorithm, that guy is chatting out of his ass and has no evidence or theory to back it up.
If I display pretty URL's, the block will only display on the category index - surely it will still display sitewide for all posts in that category?
Title: Re: Simple Portal Blocks
Post by: ♦ Ninja ZX-10RR ♦ on April 19, 2016, 05:04:30 AM
Well, Arantor is one of the most experience coders on the planet (although weird), but whatever, regardless of that, please refrain from using such tones on this board.

emanuele already replied with a suggestion, can you try that?

Regards
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 05:57:05 AM
Well, Arantor is one of the most experience coders on the planet (although weird), but whatever, regardless of that, please refrain from using such tones on this board.

emanuele already replied with a suggestion, can you try that?

Regards

Sorry - doesn't seem to work unfortunately :(
I uninstalled the pretty URL's mod and it still doesn't - I can't install it now I get the following error:

'Your session timed out while posting. Please go back and try again.'

Eugh :(
Title: Re: Simple Portal Blocks
Post by: ♦ Ninja ZX-10RR ♦ on April 19, 2016, 06:06:25 AM
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.
emanuele already replied with a suggestion, can you try that?
I uninstalled the pretty URL's mod
._. 2 people asking you to put some code into block display settings and you uninstalled prettyURLs instead...

We are not prettyURLs support either, so I don't know what is wrong now with that thing, but you could try to rename the forum cookies, to see if they got messed up, and install it again.
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 06:16:57 AM
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.
emanuele already replied with a suggestion, can you try that?
I uninstalled the pretty URL's mod
._. 2 people asking you to put some code into block display settings and you uninstalled prettyURLs instead...

We are not prettyURLs support either, so I don't know what is wrong now with that thing, but you could try to rename the forum cookies, to see if they got messed up, and install it again.

I tried it before and after the mod was uninstalled.

I will try get this fixed.
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 06:52:15 AM
Why block should not work with prettyURL? O_o

As a general rule, to hide a block from the posting page you can use:
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.

This doesn't seem to work unfortunately :(
Any other ideas? - I would like to keep PrettyURL's installed for the time being.

It would be fantastic if I was to get this working.
Title: Re: Simple Portal Blocks
Post by: emanuele on April 19, 2016, 07:36:22 AM
Well, Arantor is one of the most experience coders on the planet (although weird), but whatever, regardless of that, please refrain from using such tones on this board.
With all the respect I have for Arantor, he may have good knowledge of programming, but he is no God and doesn't necessarily know any thing of everything.
He had his debacles and the article you linked is 5 years old... you know how long five years are on the internet? For Google ranking algorithm is about 76 updates from 31st December 2011 to now (https://moz.com/google-algorithm-change). Are you really that sure the algorithm is still the same he was talking about 5 years ago?

On the other hand, as far as I remember/can find, Google never stated URL is a ranking factor.
In the always useful Search Engine Optimization Starter Guide (http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf), the part discussing friendly-URLs is rather short and the most important reason in favour of friendly-URLs is that the words in the URL may help the user identify the content of the page (not the search engine, but the user!):
Quote
URLs with words that are relevant to your site's content and structure are friendlier for visitors navigating your site. Visitors remember them better and might be more willing to link to them.
The only marginal help to ranking from friendly-URLs could come from "autolinking" of url posted "as is", without text describing them.

Anyway, this is way off topic, and I feel if you want to discuss more about that to open a new discussion. ;)

Back on the subject:
As a general rule, to hide a block from the posting page you can use:
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.

This doesn't seem to work unfortunately :(
Any other ideas?

It would be fantastic if I was to get this working.
It is not working in the sense that it is still showing on the post pages?
Because I just tested again on a vanilla SP install and selecting the board and adding the above string to "Custom Display Options", the block is shown in the board page (i.e. ?board=123.x), in the topic pages (i.e. ?topic=123.x), but is not displayed when replying to a post or opening a new topic.
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 08:07:34 AM
Well, Arantor is one of the most experience coders on the planet (although weird), but whatever, regardless of that, please refrain from using such tones on this board.
With all the respect I have for Arantor, he may have good knowledge of programming, but he is no God and doesn't necessarily know any thing of everything.
He had his debacles and the article you linked is 5 years old... you know how long five years are on the internet? For Google ranking algorithm is about 76 updates from 31st December 2011 to now (https://moz.com/google-algorithm-change). Are you really that sure the algorithm is still the same he was talking about 5 years ago?

On the other hand, as far as I remember/can find, Google never stated URL is a ranking factor.
In the always useful Search Engine Optimization Starter Guide (http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf), the part discussing friendly-URLs is rather short and the most important reason in favour of friendly-URLs is that the words in the URL may help the user identify the content of the page (not the search engine, but the user!):
Quote
URLs with words that are relevant to your site's content and structure are friendlier for visitors navigating your site. Visitors remember them better and might be more willing to link to them.
The only marginal help to ranking from friendly-URLs could come from "autolinking" of url posted "as is", without text describing them.

Anyway, this is way off topic, and I feel if you want to discuss more about that to open a new discussion. ;)

Back on the subject:
As a general rule, to hide a block from the posting page you can use:
Code: [Select]
-~action|post,-~action|post2 in the custom display options field (at least it works for me, but I'm not using the standard SP, so it may be due to some unrelated change.

This doesn't seem to work unfortunately :(
Any other ideas?

It would be fantastic if I was to get this working.
It is not working in the sense that it is still showing on the post pages?
Because I just tested again on a vanilla SP install and selecting the board and adding the above string to "Custom Display Options", the block is shown in the board page (i.e. ?board=123.x), in the topic pages (i.e. ?topic=123.x), but is not displayed when replying to a post or opening a new topic.

Yes, the block remains to be visible on a topic page.

I am thinking about implementing php into the block, and then grab the title of the post/subject to display in a H1 - if we can't figure out a way to get this working.
Title: Re: Simple Portal Blocks
Post by: emanuele on April 19, 2016, 08:35:30 AM
Okay, I'm now officially confused.
Could you please tell exactly where you want to see the topic and where you don't want to see it?
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 09:28:38 AM
Okay, I'm now officially confused.
Could you please tell exactly where you want to see the topic and where you don't want to see it?

Sorry for the confusion.

I have added a block to the board/category 'Scrapebox Footprints' - which you can view here:
http://www.theseoforums.com/scrapebox-footprints/

However, when you click a post within that category/board - it still shows the header block:
http://www.theseoforums.com/scrapebox-footprints/footprints-for-finding-blog-pages-with-comments-allowed/

Is there anyway I can ONLY display the header block in the '/scrapebox-footprints/' board/category and not the posts within?

Thank you so much for your help. :)
Title: Re: Simple Portal Blocks
Post by: emanuele on April 19, 2016, 09:43:26 AM
Code: [Select]
-~action|post,-~action|post2,-~topic
Title: Re: Simple Portal Blocks
Post by: brettuk on April 19, 2016, 10:02:10 AM
Code: [Select]
-~action|post,-~action|post2,-~topic

Thank you very much! :)  :-*
SimplePortal 2.3.8 © 2008-2024, SimplePortal