![]() |
Sticky : - Important?
Hi,
I have a few mods working around the forum, and they are making the posting guidelines in their own forums. I was wondering, it would be great if there was a hack that would add an additional function to the dropdown list for the admin and mod's to select something like Important : which would have exactly the same function as the sticky onebut print important instead? IS this possiable? Thanks a lot :p Matthew |
search in full releases a hack called post prefixes or something like, i think you can do it with it..
|
searching ............
|
I think it would be even better to add it to the vB options page in adminCP, in fact, I'll look into this and create a clone of the sticky tag, but with important...see a thread can be sticky and not important ;)
I'll look into it, not sure if I'll come out with anything lol. |
Thanks a lot man!
That would make a really cool hack, also can you use HTML in the tags? or am i getting greedy now ;) Thanks Matthew |
Yes you can use html in the tags for polls, sticky, moved already...;)
I just looked around and I'm not sure where or how this whole sticky prefix is made unfortunately...+ I'm too busy...I won't be able to make it. |
Quote:
Thanks :banana: Matthew |
please?
|
^ Bump ^
|
I'll do it in a second:)
Satan |
Ive done half the work for you...
All that is left for you to do is: edit the forumdisplay template and forumdisplay.php, and copying any reference to "sticky" (including queries) and changing it to "important"... :) Untested, so backup;) Open root/postings.php Find: Code:
// ############################### start stick / unstick thread ############################### Code:
// ############################### start important / unimportant thread ############################### Run this Query: [sql]ALTER TABLE thread ADD important smallint(6) DEFAULT '0' NOT NULL[/sql] Add this template: redirect_important Code:
The thread has been successfully made $action. You are now being taken to the thread. Find: Code:
<option value="stick">Stick / Unstick Thread</option> Code:
<option value="stick">Stick / Unstick Thread</option> |
Oh...
And you will need to add a vBulletin Options Setting for the "text to display" if the thread is Important;) Satan |
Quote:
One small question before i get my hack installation hat on, how do i add the option setting for the "text to display"? Thanks a lot! Matthew |
Right...
Open up your admin/config.php file, and add: Code:
$debug="1"; Upload it to your admin folder, then open up your Admin Control Panel... On the Sidebar, there should be new options underneath "vBulletin Options"... Click the "Edit Settings" button, and find where the "Sticky", "Moved" and "Poll" prefixes are... Shift+Click on "edit", and then click on "add setting" on the first page (not the one you just opened)...Simply copy the data from the second window to the first, then change the Data to suit the "important" version:) Then Add the new setting, close the second window, and then remove the "$debug" variable from admin/config.php:) Satan |
Thanks a lot for that hellsatan i will install in the morning :p
Matthew |
:)
No problem:) Satan |
Quick Question: What would the variable name be? "importantthreadprefix" ?
Thanks Matthew |
I have done everything above but nothing comes up :(
|
Have you made the changes to forumdisplay.php?:)
Satan |
What changes need to be made?
|
Quote:
|
Quote:
Thanks Matthew |
^ Bump ^ Sorry to be a pain but what mod's to do i have to make to the forumdisplay.php page?
Thanks Matthew |
if u want it to say Important instead of Sticky just go to the admin cp and then vb options, change the word sticky to important. now whenver u stick a thread, it will say important
|
Quote:
|
I will get back to you soon:)
Satan |
All times are GMT. The time now is 02:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|