Page 1 of 2
vBulletin
Posted: Tue Jan 17, 2006 1:46 am
by pilau
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?
Posted: Wed Jan 18, 2006 8:16 am
by pilau
28 views and not a single post? Come on, can't anybody here help me?
Posted: Wed Jan 18, 2006 8:20 am
by neophyte
Sorry, I've never used V-Bulletin before....
Posted: Wed Jan 18, 2006 10:45 am
by m3mn0n
You should elaborate on the problem a bit more.
Posted: Fri Jan 20, 2006 1:07 am
by pilau
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.
Posted: Fri Jan 20, 2006 8:50 am
by Jenk
vBulletin uses the Smarty template system.
Posted: Fri Jan 20, 2006 10:01 am
by pilau
Ok. Maybe a little more information about Smarty? I am searching Google, simultaneously

Posted: Fri Jan 20, 2006 10:04 am
by Chris Corbyn
pilau wrote:Ok. Maybe a little more information about Smarty? I am searching Google, simultaneously

Start here:
http://smarty.php.net/
Posted: Fri Jan 20, 2006 10:11 am
by pilau
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?
Posted: Fri Jan 20, 2006 11:02 am
by Chris Corbyn
I've never used smarty before so I couldn't comment. I wasn't aware of vBulletin using smarty myself though. There's a lot of XML parsing going on in the vBulletin templates, which also, seem to be stored in the database at glance, rather than the filesystem

Posted: Fri Jan 20, 2006 11:06 am
by pilau
The templates don't use XML, they only use the type of code which I said earlier. Something HTML and PHP and some conditionals. The only use of XML in vBulletin is when installing new styles or languages and in the new version the AJAX system.
Posted: Fri Jan 20, 2006 2:02 pm
by trukfixer
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

Posted: Fri Jan 20, 2006 2:44 pm
by pilau
trukfixer 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

Yeah I've been in cases like this

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.
Posted: Sat Jan 21, 2006 4:17 am
by Chris Corbyn
pilau wrote:...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.
The sign of rising hacker

Posted: Sat Jan 21, 2006 4:22 am
by pilau
d11wtq wrote:pilau wrote:...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.
The sign of rising hacker

Should I take that as a compliment or as an insult?
