TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 139
  • Total: 139

Change destination URL for Menu Button in Article

Started by penfield, March 25, 2007, 08:52:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

penfield

I'm using an article with a forced theme setting ( the "forced theme") as an entry point to my forum, and I'd like users who enter the site through that article to continue using that theme setting.
Currently, when someone clicks the "Home" button in the article, the index page opens in my default theme. I want users entering the site directly (by going to the site's index page) to continue to use the default theme, so I don't want to change my default theme.

I've been looking for a way to change the destination url of the "Home" button in the index.template.php file. Is this the right approach? Thanks!

ZarPrime

Quote from: penfield on March 25, 2007, 08:52:59 PM
I'm using an article with a forced theme setting ( the "forced theme") as an entry point to my forum, and I'd like users who enter the site through that article to continue using that theme setting.
Currently, when someone clicks the "Home" button in the article, the index page opens in my default theme. I want users entering the site directly (by going to the site's index page) to continue to use the default theme, so I don't want to change my default theme.

I've been looking for a way to change the destination url of the "Home" button in the index.template.php file. Is this the right approach? Thanks!

Could you be a little more specfic about what you're trying to do?  Are you saying that you want the theme of your forum to be the same as the theme of your article?

penfield

Quote from: zarprime on March 25, 2007, 09:10:38 PM
Are you saying that you want the theme of your forum to be the same as the theme of your article?

Thanks for the reply - I don't want to change my theme setting for the site (I know how to do that), I want for users who navigate around my site using the menu on an article to open pages using the theme setting that i had set for that article. Thanks!

IchBin

This is not possible in TP or SMF's current state.

penfield

Thanks IchBin - could I remove the menu on the article (and insert my own link to the index page for the forced theme)?

IchBin

Sure you can change the link that the button points to. Locate the home button at the bottom of your index.template.php file. But changing this will not make the theme stay constant when people visit your site like you want it to.

penfield

#6
Thanks. I understand, it's not perfect, but it will do the trick for now.

This website is proudly hosted on Crocweb Cloud Website Hosting.