1
alleymize
Re: Block on a specific page
  • 2010/11/3 13:29

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


I tried placing it in my main theme file for the site and the same result, nothing is changed.

Here is the code I am pasting:
<{if $smarty.server.PHP_SELF!='/modules/wfchannel/index.php'}>
<{$xoops_block_89.content}>
<{/if}>

89 is a custom block I have, so I changed it to one for the user block and it is still there no matter.




2
alleymize
Re: Block on a specific page
  • 2010/11/3 13:16

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


No that is the main index file for the channel that the page is in that I don't want the block to show on. Should it be in my theme file instead for the whole site?



3
alleymize
Re: Block on a specific page
  • 2010/11/3 9:48

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


Ok, and I have pasted this into the top of my wfchannel_index.html and it still does nothing. I don't understand what is wrong.



4
alleymize
Re: Block on a specific page
  • 2010/11/2 17:22

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


Ok so when I put the code in my theme file and uploaded and visited the same page it shows this:

/modules/wfchannel/index.php

but it is missing the extra ?wfc_cid=2

Should I not include this? Because I did try and include everything above and the block still shows.



5
alleymize
Re: Block on a specific page
  • 2010/10/29 17:51

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


Ok, I have placed this at the top of the wfchannel index template page but it still has the block on the page. Here is the code I am inserting:

<{if $smarty.server.PHP_SELF!='/modules/wfchannel/index.php?wfc_cid=2'}>
<{$xoops_block_89.content}>
<{/if}>


Not sure what I am doing wrong.



6
alleymize
Re: Block on a specific page
  • 2010/10/28 13:24

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


Can Someone Help Please??? I am not a coder and just want the code to NOT show a block on a CERTAIN PAGE in a module, not the entire module. What is the code that I would use?

Any help beyond what is above that does not work would be very greatly appreciated. Thanks for your time.



7
alleymize
Re: Block on a specific page
  • 2010/10/21 13:14

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


Ok sorry about that. When I put it into the wfchannel index page it shows the path to the page from the root. i.e. /modules/wfchannel/index.php

Is this my problem? What is the code I need to not show a block on a certain page then?



8
alleymize
Re: Block on a specific page
  • 2010/10/20 19:16

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


And if I put the code inside php brackets in the file and view it it is a blank page.



9
alleymize
Re: Block on a specific page
  • 2010/10/20 19:14

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


If I put the code in a plain php doc and view it, it just shows the code.

I am not using the defacer module because I thought that was for something else like different themes on different pages.

I was just wanting to do a block and thought that was over the top for what I needed to do.

Any direction and or help would be greatly appreciated.



10
alleymize
Re: Block on a specific page
  • 2010/10/20 9:51

  • alleymize

  • Just popping in

  • Posts: 17

  • Since: 2008/1/25


So the == makes it show and the != makes it not show correct? But am I getting the block id correct by just looking at the link in the admin because I have tried both but neither work for me. Here is the code I am trying to use to hide the block:

<{if $smarty.server.PHP_SELF!='https://www.hinduismtoday.com/modules/wfchannel/index.php?wfc_cid=2'}>
<{$xoops_block_89.content}>
<{/if}>

I have found the number 89 by clicking on the edit button for the block and it has a link of admin.php?fct=blocksadmin&op=edit&bid=89 So I assumed 89 was the number to use, is this correct?




TopTop
(1) 2 »



Login

Who's Online

248 user(s) are online (147 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits