The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#81
|
|||
|
|||
Just a quickie here...
I got the new version up and started some basics of config and whatnot... Of course I re-edited the show.php to use the vb header and footer templates, as well as working with our PHPAdsNew implementation. First impressions: Like the new adminCP setup. Having a seperate file is a bit nicer. I *think* I did the upgrade steps properly, btu was a bit unclear if I should have removed the webqueries code from tempate.php or if it was just the webtemplates code.... I did a small bit of tweaking of webtemplate.php so that the layout in the adminCP is a bit clearer. Most of it was because all our webtemplates are ordered based on their name, which we use for organization and sorting, etc. The code below also keeps a small bit of code from being repreated.. I know it's minor, but it can play a role on page load time when you are listing MANY templates.... PHP Code:
|
#82
|
||||
|
||||
Quote:
Quote:
|
#83
|
|||
|
|||
Quote:
Quote:
I've also added one addition function to the hack as of now... a description field. We plan on using this for menu population (as our template names are probably not visually appealling to see in auto-populated menus....) more on this later once it's all completed and in the testing phases. |
#84
|
||||
|
||||
I installed this a day or three ago. Love it so far! (I posted in the hack thread regarding some specific questions).
I just added Wild Thinks query/last ten threads and modified it abit. Works nice. However, I'm interested in this "new version" that parses vbcode. Right now it shows the [ quote ] tags and such if they are at the beginning of the post. edited to add - Is there anyway to NOT show posts in private forums on the site's "last ten posts"? I don't want links to the moderator's lounge popping up (granted, mebmers can't get in, but let's not flaunt it!). Any ideas? Query modifications? |
#85
|
||||
|
||||
Also, on my site I have the "Welcome back, Username" here. For unregistered members/guests - how would I include a login panel for them?
|
#86
|
||||
|
||||
Rose,
Quote:
Quote:
SELECT thread.title as threadname, thread.threadid, thread.forumid, from_unixtime(post.dateline,'%d.%m.%Y - %H:%i:%s') as dd, left(post.pagetext,80) as pagetxt, post.username, post.userid, forum.forumid, forum.title FROM thread,post,forum where post.threadid=thread.threadid and thread.forumid=forum.forumid and thread.forumid<>XXX and thread.forumid<>YYY and thread.forumid<>ZZZ order by post.dateline desc limit 10 Quote:
[[($bbusergroupid==1)]] Copy paste the login form's HTML code here. [[/($bbusergroupid==1)]] It's like the hidden text in my sample webtemplate. If the user is unregistered/unloggedin, this conditional will be parsed and he'll get the code in between. If he is a loggedin member, he wont see that part in the webtemplate.. |
#87
|
||||
|
||||
Thank you, Logician! I've changed the query so that my private forums info stays private.
But I'm still having trouble using the login form. DkrFusion gave me the code to have it say Welcome Back "so and so" - but even when I'm logged in I see "Unregistered". Logged into the forums, anyway. I can't seem to ever be "logged into" the site - yet I can't logout and see the login box what I put in according to your instructions. Any ideas? *hehe* |
#88
|
||||
|
||||
Quote:
|
#89
|
||||
|
||||
Quote:
Here's the code I'm working with - it may be off, but it's what I got: (quoted in php because.....I thought it'd be better that way?) PHP Code:
|
#90
|
||||
|
||||
Quote:
[[($bbuserinfo[usergroupid]==1)]] Of course closing conditional will be replaced too: [[/($bbuserinfo[usergroupid]==1)]] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|