Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Looking for 2 things.; Hopefully you can help me.
Topic Started: Jul 2 2009, 08:10 AM (366 Views)
Sweet Daddy Williams
Member
 *  
1. I'd like to know if there is an application form code where the form will appear in every topic created on a specific board?
2. Is there a code that allows you to see the last topic that was posted in on the board statistics?

http://z3.invisionfree.com/The_New_WP
Offline Profile Quote Post Goto Top
 
Roby
Member Avatar
#27

1. I think this should do the trick
Code: HTML
 
<script type="text/javascript">
/*Vitality of ZBCode*/
var eMb=location.href.split("?")[0];
var theForm="Place1:\nPlace2:\nPlace3:";
var eFnum=1;
if(location.href.indexOf(""+eMb+"act=Post&CODE==00&f="+eFnum+"")){
var ePForm=document.getElementsByTagName("textarea");
var ePF=ePForm.length;
while(ePF--){
if(ePForm[ePF].className=="textinput"){
ePForm[ePF].innerHTML=theForm;
}
}
}
</script>


Okay, see this:
Code: HTML
 
var theForm="Place1:\nPlace2:\nPlace3:";
That is the form that will automatically appear when you make a topic in the specified board. To place breaks you must use this: \n because pressing enter or using <br /> will cause an error.

Next find this
Code: HTML
 
var eFnum=1;
Replace that number with the number of the forum. If you hover over the forum link it will be the number after showforum=

2. I would write this up quite easily but I don't know classic JavaScript AJAX. Sorry.

Hope that helps ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply