Former Member
inherit
guest@proboards.com
155913
0
Nov 28, 2024 1:15:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Apr 3, 2013 20:35:20 GMT -8
I changed a code in the "Board Template" and I want to make sure that everything is fine with it. I changed the "Create Thread" button to a link with my own text by using the url to the create thread page:
<div class="title-bar"> {if $[create_thread_button]} <ul class="controls"><li><a href="http://nohaterville.proboards.com/thread/new/67">Create New Battle</a></li></ul> {/if} <h1>$[board.display_name]</h1> </div> it did look like this originally: <div class="title-bar"> {if $[create_thread_button]} <ul class="controls"><li>$[create_thread_button]</li></ul> {/if} <h1>$[board.display_name]</h1> </div>
and I seen where it says {if $[create_thread_button]}
and was thinking that there may be something that I don't know about with that.
Everything seems to be working fine how I did it, but I was thinking maybe there was something going on that I didn't see.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 1, 2013 15:11:54 GMT -8
Hi, game. I recommend changing the target of the link to this. Simply having the target as /thread/new/$[board.id] in that layout template will tell the forum two things. 1. To automatically detect the ID of the board you're currently in. 2. No domain URL is present in the target you specified for the link in my example above, so it uses the /thread/new/$[board.id] of the forum you're on. This way, if you choose to export the theme to another forum, the link will work there seamlessly.
|
|