View Full Version : 2 vBulletin modification questions.
Chicken
03-30-03, 02:28 PM
I posted this on vB.org but apparently this is either too difficult or no one knows. Not sure, but here goes:
What I'd like to do is display some predefined text, at bottom of first post (only) made by the thread starter, only in certain forums (not all). Example-ish is below...
Note: This is some sample text of what it should look like.
And
what I'd like, which is:
Choose certain forums (not all) to be displayed by the time/date of initial post of each thread. In other words, once threads are posted, there isn't a way to bump them to the top. They just stay in the order they are posted.
Could anyone help with the coding for this? Needed for about 5 forums out of the total (though it seems easy to add or subtract addl. forums as needed).
Any vB code gurus here? Both mods are needed for the ad forums.
interactive
03-30-03, 02:36 PM
What is the first mod for?
I'm not a code guru :(
However I know a bunch of them hang out in yaxay, especially in these forums: http://forum.yaxay.com/forumdisplay.php?s=&forumid=6
Chicken
03-30-03, 09:23 PM
I'm so surprised that no one knows (or is answering). I didn't think these two requests would be that difficult for someone who knows what they are doing and is familiar with php and vBulletin, however it seems I might be mistaken. Not sure where to go from here, but...
Originally posted by interactive:
What is the first mod for?
To put a notation on posts (just the first post in the thread).
DarktidesNET
03-31-03, 03:33 AM
I've never used vBulliten but I'm pretty good with PHP or I'd do it for free since I like this site...
I plan on purchasing vBulliten once our customers actually use our forum... I'd be more than happy at that time to assist in anything because I'm going to hack the crap out of it.
Will see if Kriek knows Chicken
Originally posted by Chicken:
Choose certain forums (not all) to be displayed by the time/date of initial post of each thread. In other words, once threads are posted, there isn't a way to bump them to the top. They just stay in the order they are posted.
Edit forumdisplay.php find:
switch ($sortfield) {
case 'title':
case 'lastpost':
case 'replycount':
case 'views':
case 'postusername':
case 'voteavg':
break;
default:
$sortfield = 'lastpost';
}
After that add:
if (($forumid == 1) OR ($forumid == 2) OR ($forumid == 3)) OR ($forumid == 4)) OR ($forumid == 5)) {
$sortfield = "dateline";
}
This will sort all threads in forums 1-5 (change this to your five) according to the first message date and user's sort field choice is cancelled. Hope this helps, enjoy!
Chicken
04-03-03, 07:19 PM
I don't actually mind them having the ability to choose to sort it another way (such as by last post or whatever), however I'd mostly like it to display it in order of first post time/date by default.
I think by adding the new code, it will only affect the forums you want to sort by date (And they will be sorted by date by default)
That's what ya wanted right? Or?
Chicken
04-04-03, 04:47 PM
Pretty much, though this takes away the option of letting users choose how they want to sort it, which is OK by me too. Will add it and see if everyone freaks out. :D
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.