Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 20, 2011 3:29:56 GMT -8
Is it possible for a posting template form to be created ??
The initial post should be done using 1 template and any replies done by another template
Would this be possible ?
|
|
|
Post by Wormopolis on May 20, 2011 7:12:24 GMT -8
Ill tell ya now posting templates are a pain to write. I used the Ross code to make the last one I did and had it where there was a drop down to select which template to use.
essentially.. you could install Ross's code twice, and have one run on initial posts and the second run on replies.
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 20, 2011 19:11:47 GMT -8
Ill tell ya now posting templates are a pain to write. I used the Ross code to make the last one I did and had it where there was a drop down to select which template to use. essentially.. you could install Ross's code twice, and have one run on initial posts and the second run on replies. How would i make 1 work for the initial post and the other for replies
|
|
|
Post by Wormopolis on May 21, 2011 3:29:19 GMT -8
this is going to be difficult to explain I think. have 2 copies. edit the second one for "replies".
in the first one, find this line:
if(document.postForm && location.href.match(/action=post(#\w+)?$/) && pb_username != 'Guest') { _posting_form.init(); }
change to
if(document.postForm && location.href.match(/action=post(#\w+)?$/) && pb_username != 'Guest' && !location.href.match(/thread=/)) { _posting_form.init(); }
then in the second one, you will need to encompass the entire code in a if-block in order to keep it from affecting the first copy.
<script type="text/javascript"> <!--
/* Predefined Posting Template/Form Created by Ross of PBS Please do not repost outside of PBS without permission */
if (location.href.match(/thread=/)) {
...The normal code from Ross's code
} // --> </script>
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 21, 2011 4:37:55 GMT -8
Ok ive made those changes above in the Staff Advertisement boardpbads.proboards.comBut something has caused the reply button to dissapear
|
|
|
Post by Wormopolis on May 21, 2011 6:03:29 GMT -8
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 21, 2011 6:25:55 GMT -8
Nope that only links to the board itself not the actual test thread
|
|
|
Post by Wormopolis on May 21, 2011 7:12:49 GMT -8
add the &NOHEADERS to a test thread then. see if you get a reply button back. if you dont see a reply button, then is th eboard set to allow replies?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 21, 2011 8:27:48 GMT -8
|
|
|
Post by Wormopolis on May 21, 2011 11:34:12 GMT -8
does removing the postchoke code bring it back?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 22, 2011 0:47:51 GMT -8
My fault ha
I had codes in my global footer that was meant to be in main footer
|
|
|
Post by Wormopolis on May 22, 2011 4:46:56 GMT -8
ah... I saw the postchoke but it was set for a completely different boardanyways so I didnt see it. Craig beat me to the punch.
are the templates working the way you wanted?
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 22, 2011 8:27:31 GMT -8
ah... I saw the postchoke but it was set for a completely different boardanyways so I didnt see it. Craig beat me to the punch. are the templates working the way you wanted? Ok ive now moved a few codes from my Global Footer to the Main Footer and the reply button has now re-appeared. Back to the Posting Templates in the Support Board Forum The first one is working fine but the one for replies doesnt work and neither does the filled request checkboxes code now
|
|
|
Post by Wormopolis on May 22, 2011 18:54:18 GMT -8
in the second one change this line
if(document.postForm && location.href.match(/action=post(#\w+)?$/) && pb_username != 'Guest') {
to
if(document.postForm && pb_username != 'Guest') {
the second one also still looks like the first one, so you will want to change the questions or something to be able to tell the difference
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 30, 2011 4:22:32 GMT -8
Sorry for the delayed reply Works perfect Thanks Wormo
|
|