The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
That would be part of what you would have to add to the mod. You'd probably set a variable which would then turn 'on' the code in the template to make the pop-up. Or something like that.
|
#12
|
|||
|
|||
Lynne, This will probably sound like a really stupid question, but im sure it will help me on the right track!
Why would I need to create a template? I thought templates were only used for showing something - SHOWTHREAD, FORUMHOME etc If you put some code in the SHOWTHREAD, it only works when you visit the SHOWTHREAD page, likewise for other templates. I would have thought the code would need to go in the header/footer or template which show on every page? Im probably wrong in my logic, but this is a great time to get these mistaken thoughts sorted! |
#14
|
||||
|
||||
You don't really need XML knowledge unless you're dealing with vBulletin's AJAX, but yes, that's the stuff you'd want to learn.
|
#15
|
|||
|
|||
Thank you everyone.
Lynne, I think we must have had our wires crossed as I now know what you mean! originally I was talking more along the lines of an alert box, however now you mentioned templates Im presuming your talking about an actual pop up window! Ive just started to have a little play and come across a problem. Ive put the following code into the headinclude template PHP Code:
Ive also tried <5 (less then 5) and yet it still shows, but if I change it to >5 (greater then) it dosent show Im going to get some sleep as just come off a night shift, then a trip down to the library to get some books out! Ive tried once before to learn, but gave up because I started to get confused, but Im more determined then anything now! I think im going to struggle when it comes to adding fields in the admincp to control the mod, but one step at a time! |
#16
|
|||
|
|||
Quote:
= is for setting a value to something, == is for comparison |
#17
|
||||
|
||||
Yep, what he said. ^^
|
#18
|
|||
|
|||
Brilliant stuff! Thank you!
Any idea why the below dosent work even though my postcount is greater then 5? Quote:
Quote:
|
#19
|
|||
|
|||
Quote:
If you want the current users info and not what ever user posted use this: Code:
$bbuserinfo[posts] |
#20
|
||||
|
||||
You can't do that - "posts" is (most of the time) an already formatted value (i.e. "1,000" instead of "1000"), and therefore, number comparisons will fail.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|