MyBB Hacks

Full Version: Request for help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there, I saw this excellent post over on mybb.com, regarding adding a dynamic rows (not sure how to say this) to a post template.

Link to thread:

http://community.mybb.com/thread-84866.html

Now, I have a lot of posts where this would come in very handy, but its a bit hard for me to understand, even with the demo Frown

What I would like is some advice on HOW to add that javascript and the rows to my (prefix)_postbit_first templates. I guess it would have to be in new thread, editpost_first and maybe showthread? Once thats done, I have to work out how to get the php in....
You can save the javascript in an external js file.
And link to it in newthread/editpost template.
Its NOT just the javascript though RateU - it needs the php snippet as well.......
(12-26-2010 11:39 AM)leefish Wrote: [ -> ]Its NOT just the javascript though RateU - it needs the php snippet as well.......

(12-24-2010 10:33 PM)leefish Wrote: [ -> ]What I would like is some advice on HOW to add that javascript and the rows to my (prefix)_postbit_first templates. I guess it would have to be in new thread, editpost_first and maybe showthread?

(12-26-2010 02:05 AM)RateU Wrote: [ -> ]You can save the javascript in an external js file.
And link to it in newthread/editpost template.


Not quite sure what you want with that.
Ok, Then I will try and make it myself. I thought it was pretty clear reading the thread on mybb....

I know how to do the javascript, I know how to make it show in the template. The php is what makes it stick - its where the variables are defined.

Thanks for the help so far.
Reference URL's