vBulletin

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

vBulletin

Post 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?
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

28 views and not a single post? Come on, can't anybody here help me?
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Sorry, I've never used V-Bulletin before....
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

You should elaborate on the problem a bit more.
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post 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.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

vBulletin uses the Smarty template system.
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Ok. Maybe a little more information about Smarty? I am searching Google, simultaneously :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

pilau wrote:Ok. Maybe a little more information about Smarty? I am searching Google, simultaneously :)
Start here: http://smarty.php.net/
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :?
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post 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.
User avatar
trukfixer
Forum Contributor
Posts: 174
Joined: Fri May 21, 2004 3:14 pm
Location: Miami, Florida, USA

Post 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 :)
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post 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 :D
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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post 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? :)
Post Reply