QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Logo URL

Started by [chrisB], Feb 01, 2023, 03:28 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

[chrisB]

Is it possible to remove the 'index.php' from the logo URL?
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name_html_safe'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
Surely this would be safe to do? I can't figure how to it without breaking it though.

Bigguy

I'm pretty sure it has something to do with this part:


', $scripturl, '
If you remove that bit and substitute it for a url what happens. :???
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

[chrisB]

Quote from: Bigguy on Feb 01, 2023, 03:30 PMI'm pretty sure it has something to do with this part:


', $scripturl, '
If you remove that bit and substitute it for a url what happens. :???
Spot on, I was either over or under thinking it.

Quote"<a id="top" href="', $scripturl, '"

Everything struck out needs to go.

Bigguy

Your strikeout did not work in quotes....could be a bug, but glad ya got it. :rgton

EDIT: Now it works...weird. :bnghd
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

[chrisB]

Can the treelink/navigate menu be edited safely to remove the 'index.php'?

--

It doesn't work in the code function, I quickly edited it after.

Thanks for your help Bigguy.

Bigguy

I've never played with that. We may have to wait for someone else. There used to be a mod, I'm sure of it....that was a long time ago though. I do know if your not careful things will break. Make sure to back up all the files before playin around. ;)

* Bigguy goes off to find that mod somewhere...
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

This is how it was done waaaaay back when, lol. Or part of it I guess, not sure.

https://simplemachines.org/community/index.php?topic=270257.0
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

Bigguy

"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

[chrisB]

Quote from: Bigguy on Feb 01, 2023, 03:57 PMThis is how it was done waaaaay back when, lol. Or part of it I guess, not sure.

https://simplemachines.org/community/index.php?topic=270257.0
This is what I originally did, and things for first time visitors. Although I do use PrettyURLs and so far a few tweaks and the menu editor SMFPacks made - I can get it around it.

Quote from: Bigguy on Feb 01, 2023, 03:59 PMOr maybe try this option:

https://www.simplemachines.org/community/index.php?topic=513045.msg3625613#msg3625613
Thanks that's useful! It's now applied, I am hoping the TreeLink/Navigation Section can be edited in a way as to remove the index.php then I can stop being so awkward. 😂

Thanks again Bigguy

Bigguy

No problem....just remember what others have said. There could be problems throughout your site. I'm not sayin don't do it, on the contrary, have fun with it. Just keep that in mind. Glad I could help. :)
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

[chrisB]

It's appreciated bigguy.

So far this go-a-round has removed any issues I have had.  ;D