vBulletin
Moderator: General Moderators
vBulletin
Have anyone here worked with vBulletin? I am trying to figure out something, and the guys on the Jelsoft forum aren't so simpathetic. Maybe you know how can I print web content using the forum style template?
Well I actually found what I needed to. Templates. I learned how to fetch them usng the forum's own functions, and how to edit them, etc.
Thing is I need my CMS to be integrateable with vBulletin in a way that I could print out my page using the forum's own templates, which is sort of a problem because they are designed for viewing different things than what I need.
It would be a bit of annoyance if people who used my CMS had to make their own style templates so that my CMS would display with the same style their forum uses, so I'm trying to figure out how could I solve this one. I don't believe it's over my head, I just need to mess a little bit more with the templates, maybe add some conditionals, etc.
Thing is I need my CMS to be integrateable with vBulletin in a way that I could print out my page using the forum's own templates, which is sort of a problem because they are designed for viewing different things than what I need.
It would be a bit of annoyance if people who used my CMS had to make their own style templates so that my CMS would display with the same style their forum uses, so I'm trying to figure out how could I solve this one. I don't believe it's over my head, I just need to mess a little bit more with the templates, maybe add some conditionals, etc.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Start here: http://smarty.php.net/pilau wrote:Ok. Maybe a little more information about Smarty? I am searching Google, simultaneously
I'm looking at Smarty examples right now. Something that I noticed is different in the examples on the Smarty website an on vBulletin is that in vBulletin template code (like conditionals) is put in < > tags rather in curly braces, like they do in the Smarty website.
Other then that, on the variables example page in the Smarty manual it says that variables should be put in curly braces as well, while in vBulletin they are jus there. with nothing surrounding them except for the rest of the template. Explanation?
Other then that, on the variables example page in the Smarty manual it says that variables should be put in curly braces as well, while in vBulletin they are jus there. with nothing surrounding them except for the rest of the template. Explanation?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- trukfixer
- Forum Contributor
- Posts: 174
- Joined: Fri May 21, 2004 3:14 pm
- Location: Miami, Florida, USA
with smarty - you can modify the delimiters it uses , for example when you are putting Javascript or CSS into a template, and you need curly braces for the JS or stylesheet, by default you need to do {rdelim} and {ldelim} instead of just simply } and { respectively I cant remember off the top of my head, but I do know you can set the delimiter when you set pull in Smarty (something like maybe $smarty->_ldelim = "<"; perhaps? )
Smarty is really simple to use, but I typically just use it at its default settings , because it makes it super simple to upgrade your backend when smarty has a new release, but when you go hacking it to pieces to suit your needs, you end up stuck with either using the older (potentially buggy or exploitable) version, or you have to go back through *all* of your code and fix up your hacks to match the new version
Smarty is really simple to use, but I typically just use it at its default settings , because it makes it super simple to upgrade your backend when smarty has a new release, but when you go hacking it to pieces to suit your needs, you end up stuck with either using the older (potentially buggy or exploitable) version, or you have to go back through *all* of your code and fix up your hacks to match the new version
Yeah I've been in cases like thistrukfixer wrote:Smarty is really simple to use, but I typically just use it at its default settings , because it makes it super simple to upgrade your backend when smarty has a new release, but when you go hacking it to pieces to suit your needs, you end up stuck with either using the older (potentially buggy or exploitable) version, or you have to go back through *all* of your code and fix up your hacks to match the new version
But sometimes there's no other choice, you know. Sometimes you gotta mess around with the software to suit your needs, you know? Have some big cojones, you know? I count this as a skill, to study other software code only by looking at it. I've been doing that a lot lately, and now I'm hooked on vBulletin.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia