Short form of site URL?

Morgain

Well-known member
I learned that there is a short form of the path to images.
e.g.
Code:
<img src="@imagePath/xenforo/widgets/catbar1.png" />

Can I use something similar for doing a link to a standard XF page.
Example - What's New?
Full link:
Code:
http://www.mysite.com/forum/index.php?find-new/threads

Can I cut out the domain part of the site, and use something that points at the XF directory?
 
Thank you Brogan. That works for most of them.
The one I can't get is the Recent Threads (all recent read and unread)

I tried
Code:
<a href="{xen:link 'find-new/threads'}">{xen:phrase recent_threads}</a>
which is the Phrase
but it just gets Whats New?
Page Source gives me
Code:
<div id="content" class="find_new_threads">
but that phrase find_new_threads doesn't work.
Whatever I try I just get Whats New?
 
Use this instead:
Code:
<li><a href="{xen:link 'find-new/threads', '', 'days=7'}">{xen:phrase latest_threads}</a></li>

Change the 7 to the number of days required.

You can either create the latest_threads phrase or use an existing one.
 
Now I'm trying to identify the URL to use for the Profile Page.

Its URL only gives me "members"
Code:
<a href="{xen:link 'members'}"> {xen:phrase profile_page}</a>
gets the Members list.

From its View Source I got member_view but
Code:
<a href="{xen:link 'member_view'}"> {xen:phrase profile_page}</a>
got an error message.
 
Now I'm trying to identify the URL to use for the Profile Page.

Its URL only gives me "members"
Code:
<a href="{xen:link 'members'}"> {xen:phrase profile_page}</a>
gets the Members list.

From its View Source I got member_view but
Code:
<a href="{xen:link 'member_view'}"> {xen:phrase profile_page}</a>
got an error message.
use {xen:link members, $user}
 
Bless you James with choirs of angels in the gender of your taste all bearing chocolate cake and mead on golden trays.

Spoke too soon. That's still getting the Members list. Angels still waiting on standby though.

Code:
<a href="{xen:link members, $user}"> {xen:phrase profile_page}</a>
 
I'll put the complete section in. Perhaps something tiny is wrong.

Code:
<img src="http://www.housemorgain.co.uk/forumxf/styles/default/xenforo/widgets/star20.png" /> MY PROFILE <a href="{xen:link 'members', $user}"> {xen:phrase profile_page}</a><br />
 
Top Bottom