Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: numbro on July 09, 2013, 01:28:57 PM

Title: Hi! How can I replace the linktree with a previous page button?
Post by: numbro on July 09, 2013, 01:28:57 PM
Hi! I do not like the look of breadcrumbs, or linktrees, and I've stumbled across a forum that has just what I want! Kanyetothe.com/forum

See how there is a button to go back to the previous page with the page name? I would love to implement that on my site, but I have no clue how to. Thanks!!
Title: Re: Hi! How can I replace the linktree with a previous page button?
Post by: numbro on July 10, 2013, 09:55:05 AM
Nobody has a clue? Cmon guys. :(
Title: Re: Hi! How can I replace the linktree with a previous page button?
Post by: Kindred on July 10, 2013, 01:57:06 PM
numbro,
the thing is: linktree is called on many pages... and is defined in the $context variable.  why do you want to get rid of it?

In order to pull the "previous page" with page name, you would need to track activity and store pages visited...
because, using the standard javascript back command (http://www.w3schools.com/jsref/met_his_back.asp) would just give you the url.. not the page name.

linktree does not actually make a breadcumb of followed links...  it forms a tree of the path to the current page
in other words, if you jumped directly to a post, your linktree would be
site > catgeory > board > topic

So... what you are asking goes well beyond simple graphics or template and ends up being a full code overhaul with new functions...



[edit] removed reply to spammer --illori