Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Request for help
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #1
Cool Request for help
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....


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 12-25-2010 01:04 AM by leefish.)
12-24-2010 10:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Request for help
You can save the javascript in an external js file.
And link to it in newthread/editpost template.

12-26-2010 02:05 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #3
RE: Request for help
Its NOT just the javascript though RateU - it needs the php snippet as well.......


[Image: leelink.gif]
MYBB1.6 & XThreads
12-26-2010 11:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Request for help
(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.

12-27-2010 05:13 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #5
RE: Request for help
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.


[Image: leelink.gif]
MYBB1.6 & XThreads
12-27-2010 06:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: