PDA

View Full Version : Custom Post Prefixes


apfeifer
11-01-2001, 10:00 PM
Hack: Custom Post Prefixes
Version of vB: 2.2.0, although may work on earlier versions but not tested
Current Version: 1.0.0
Description: This hack allows you to add custom prefixes to post, like "Poll: " and "Sticky: ", only custom ones editable in the control panel.

All feedback is appreciated, and everything you need is in the attached file.

NOTE: If you downloaded this prior to 5:10 CT please re-download it, I fixed something in the directions.

Version 1.0.0 released, go here (http://vbulletin.org/forum/showthread.php?s=&threadid=31929)
for details.

silence
11-02-2001, 09:21 PM
Thank you Andrew! :)

Hamma
11-02-2001, 10:21 PM
Cool :D

RobAC
11-02-2001, 10:28 PM
I can't seem to get this to work. I've done everything and received no errors. I've added a couple prefixes via the admin cp and tried a test post.....they don't show up in the post titles.

Dalius
11-02-2001, 10:35 PM
Dalius Hack Reviews

I have been looking for something like this for a while, thanks alot man!

RATING: 9/10

Hamma
11-02-2001, 11:07 PM
I like it but havent tried it :) Is it possible to make the custom ones stick?

apfeifer
11-02-2001, 11:08 PM
Rob, are you sure you edited forumdisplay.php? If you forgot to do that I can see why it isn't working, but otherwise it should. Also, you can try looking in phpMyAdmin to see if the table "thread" has anything in the customprefix column in the posts you tried it on. Make sure you have edited all of the templates, too.

Hope that helps.

:cool:

apfeifer
11-02-2001, 11:09 PM
Hamma, yes, you can still Stick threads if you use a custom prefix on them. In the install you can edit it (change a = to .=) to still display the "Sticky: ", otherwise it will be overwritten by the custom one. In the next version I am going to add some more options in the control panel for it, including an option to overwrite "Sticky: " and others, or put them on also.

:cool:

RobAC
11-03-2001, 04:25 PM
Originally posted by apfeifer
Rob, are you sure you edited forumdisplay.php? If you forgot to do that I can see why it isn't working, but otherwise it should. Also, you can try looking in phpMyAdmin to see if the table "thread" has anything in the customprefix column in the posts you tried it on. Make sure you have edited all of the templates, too.

Hope that helps.

:cool:

I've checked forumdisplay.php and templates. Everything is set the way it should be. I checked the database. The customprefix column is empty.

RobAC
11-03-2001, 04:31 PM
The only change that I see to make in the newreply template is to add the : $posttype to the template. I have made the custom templates, etc. Has anyone else gotten this to work?

apfeifer
11-03-2001, 09:30 PM
Version 1.0.0 released.

@RobAC Uninstall all the stuff you did before and use the stuff in the new file and see if that helps. Also, what version of PHP are you running?

Enjoy!

:cool:

RobAC
11-03-2001, 09:33 PM
I'll do a fresh install. I'm running the latest version of PHP and MySQL.

RobAC
11-04-2001, 01:02 AM
This hack still doesn't work. Now, the dropdown box in the newthread template is gone. I did a fresh install and ran new database queries.

apfeifer
11-04-2001, 02:05 AM
Ok, it's late here and I just got home. Tomorrow as soon as I get some free time I will install a totally clean version of vB and test the install/etc. Sorry about this.:(

:cool:

RobAC
11-04-2001, 02:11 AM
Thanks Andrew. If possible, post instructions on how to delete any additions that were made to the database with the queries. Next time I work on this, I'd like it to be completely fresh. I did what I could before I tried re-installing it.

apfeifer
11-04-2001, 03:53 PM
Here, try running this query and see if it helps:

UPDATE usergroup SET canusecustomprefixes=1 WHERE usergroupid=5 OR usergroupid=6 OR usergroupid=7;


I forgot to put that in the instructions. Right now, if you didn't edit the usergroup stuff, no one has permission to do this, seeing why it isn't displayed.



:cool:

RobAC
11-04-2001, 05:40 PM
Well...that helped in that now the dropdown box shows up in the newthread template when you go to make a post, but the custom prefix still doesn't show up in the title. :(

KuraFire
11-05-2001, 09:30 AM
Hey is THIS the exact hack that the crew of vbulletin.org implemented on the Full Releases forum, the pull-down menu for selecting which version of vBulletin and all?

Is it _this_ hack? And if so, does the zipfile at the top come with the complete explanation/install notes now? (seeing as how you forgot some bits originally, I don't know if you've included those in the zip yet or not...)

I *really* want this feature (those prefixes) installed ASAP on my board, so any help is greatly appreciated.

Also, is it possible to make is so that when posting a new thread, you can have the option NOT to use a prefix, and have that option be the default option?

apfeifer
11-05-2001, 11:06 AM
I didn't make the one they are using, although they do appear to be similar. Yes, the install should totally work now. Yes, by default "Default (none)" is selected, and then nothing shows up in front of the thread.

Hope that answers your questions!

:cool:

KuraFire
11-05-2001, 06:06 PM
cool, thanks! I'm implementing this as I type, I'll let you know when I'm done.

Oh wait, just one more question: how can I specify it so that the hack will only show up for new threads on ONE specific forum ??

RobAC
11-05-2001, 09:20 PM
has anyone else been able to successfully get this hack to work? I've gone through everything 2 and 3 times over and have had no luck.

KuraFire
11-05-2001, 09:39 PM
I haven't installed it yet because I want to know, first, how I can define it so that it only shows up in ONE particular forum....

apfeifer
11-05-2001, 10:12 PM
No, this is in all forums if you install it. In the next version I will add a per-forum option.

KuraFire
11-05-2001, 11:04 PM
okay, well check out the requests forum, I made a thread about this, there. Would be an idea if you'd keep an eye on that as well, that way you could share ideas and skills concerning this particular hack with those who already made it but haven't made a thread for it (or at least, I can't find one). :)

SaintDog
11-06-2001, 02:12 AM
This has sounds great and looks great from what I have seen but I have only one question (I may have missed this). But can you make it to where it only allows them in certain forums or is this already a part of the hack? If so I am going to use it for sure.

Thanks

KuraFire
11-06-2001, 07:38 AM
read the last 5 posts before yours...

Nam
11-06-2001, 08:57 AM
I have noticed that the data query insert will be overwritten my Stars Hack, so I abandod the hack installation. Since I'm an idiot, can you make a new [b]usergroup.php[/] file that has stars hack already installed together with this? thanks.

apfeifer
11-06-2001, 11:26 AM
Sorry, I'm not going to make different versions of this hack so they can be installed with other pre-existing hacks. You should be able to install it around it, it will just take a little bit more time and thought.

Syphin
11-07-2001, 12:39 PM
nevermind... ^^

Matt
11-07-2001, 11:48 PM
Well I installed it. Dropdown box is showing up, I checked the thread table and my custom prefix was inserted where it should be but its not showing up in front of my thread :(

RobAC
11-08-2001, 02:55 PM
Same problem I had with this...

KuraFire
11-08-2001, 07:07 PM
well currently I don't have this, NOR any of the other hacks installed anymore. My server messed up Big time with their hardware upgrade, and now my entire Board is inaccessible! I can't even log into the admin panel myself anymore! Nobody can post, we can only *view* the forum, and *read* it, but not log in or anything else! :(

bah

Dunvegan
11-08-2001, 07:21 PM
...thanks for the code...I'm going to give it a shot.

Syphin
11-08-2001, 07:25 PM
Did you all make sure to edit all of the forumdisplay.php file, and add all the templetes? Thats all i can think that would have go wrong... O.o
(refering to Matt & RobAC)

-Syphin

RobAC
11-08-2001, 09:53 PM
Originally posted by Syphin
Did you all make sure to edit all of the forumdisplay.php file, and add all the templetes? Thats all i can think that would have go wrong... O.o
(refering to Matt & RobAC)

-Syphin

I've installed the hack twice and both times the same results. The custom prefix does not show up in the thread title.

Matt
11-08-2001, 10:18 PM
Yes I am sure did all of it, I just can't work out whats not working :(

HELP!! :eek:

apfeifer
11-08-2001, 10:47 PM
I'm sorry it's not working for you guys, but I've triple-checked everything. Make sure you have EVERYTHING exactly how it says to, and that if you have other hacks installed, you have it made to work around them (if they collide somewhere in the script).

LuBi
11-12-2001, 04:32 AM
Is this the code to make that drop down like usedo n this site in the hacks section? If so, have the bugs been worked out for 2.2 ..? Thanks!

KuraFire
11-12-2001, 08:19 AM
Originally posted by LuBi
Is this the code to make that drop down like usedo n this site in the hacks section? If so, have the bugs been worked out for 2.2 ..? Thanks!

Read the entire thread more carefully, this isn't the same hack that is implemented on vbulletin.org (here).

LuBi
11-12-2001, 02:26 PM
Ok well you coulda just explained it to me, that would be easier and more productive than telling me to re-read the whole thread.. :o Well I have read the thread and I still don't understand, care to explain please :confused:

SaintDog
11-12-2001, 05:48 PM
This one is for all forums, the one that this forum is using is specifically edited to work for this forum. If you want it to be like the one here, you will have to do some editing of your own.

Hope that helps :)

LuBi
11-12-2001, 06:08 PM
It does thanks, this is exactly what I want then. Thanks and goodwork!

KuraFire
11-12-2001, 07:31 PM
Originally posted by LuBi
Ok well you coulda just explained it to me, that would be easier and more productive than telling me to re-read the whole thread.. :o Well I have read the thread and I still don't understand, care to explain please :confused:

Not really. What would've been productive is if you'd have read this thread carefully, you'd then have realized that sometimes, you can find out stuff for yourself instead of be dependant on other people to do the simple work for you.

Not trying to be offensive or a jerk here, just trying to help you realize that okay? Don't take it wrong, plz.

SaintDog
11-12-2001, 07:36 PM
It does thanks, this is exactly what I want then. Thanks and goodwork!

No problem, I hope you can get things working and all, if you do let me know because I am trying to work it out on my forums also (not the one listed in my sig).

LuBi
11-12-2001, 09:01 PM
Well now I'm confused, I think I installed 0.9.9 even though the zip says 1.0.0, any wanna clarify what happened to 1.0.0 ..? This is a very powerful hack especially for what i need it for, we post movies and other things in my forums and would love to have something like this...

LuBi
11-13-2001, 03:07 PM
<<up>><<up>>:confused:

LuBi
11-14-2001, 06:22 AM
I'm sorry but I really need someone else to take the first step on this one I don't have a forum to play with at this time, but I really need this hack. Any help would be great.

apfeifer
11-14-2001, 11:26 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=31929" target="_blank">https://vborg.vbsupport.ru/showt...threadid=31929</a>

It explains it in that thread.

Matt
11-14-2001, 01:58 PM
Can you please tell me which file I should be editing that deals with the actual display of the custom prefix as its storing in the database fine and the dropdown list is working.

Which file could be causing it not to show up?

RobAC
11-14-2001, 04:01 PM
I've installed this hack over and over using fresh php files downloaded from vBulletin with no other hacks installed and i've created fresh templates each time and still can't get the prefixes to show up in the newthread titles either.

The only thing I can think of is that something in the installation instructions is not clear. The instructions seem straightforward but I have yet to be able to get this hack to work.

LuBi
11-14-2001, 05:52 PM
Originally posted by RobAC
I've installed this hack over and over using fresh php files downloaded from vBulletin with no other hacks installed and i've created fresh templates each time and still can't get the prefixes to show up in the newthread titles either.

The only thing I can think of is that something in the installation instructions is not clear. The instructions seem straightforward but I have yet to be able to get this hack to work.

So what do we do? How can I help I really need this feature. I'll do what I can..

Matt
11-14-2001, 08:20 PM
I wouldn't mind but NO-ONE other than the creator seems to have it working so something must be wrong, as you said, with the instructions ;)

apfeifer
11-14-2001, 10:23 PM
Ok, you guys can shoot me now, I'm stupid. Gimme 10 minutes and I'll have a working zip uploaded.

apfeifer
11-14-2001, 10:28 PM
Use THIS zip:

LuBi
11-14-2001, 11:37 PM
In that Zip I think you have version 1.0.0 and a text for 0.9.9 upgrade to 1.0.0 ? Becauseb oth texts say this is version 0.9.9 so please xplain what's included in there..

RobAC
11-15-2001, 12:47 AM
ok....you're right....I do want to shoot you now. That's because, I don't see what has changed in the files in the new download. A word of suggestion....PUT A CHANGELOG INTO YOUR INSTRUCTIONS WITH DATES.:rolleyes:

LuBi
11-15-2001, 02:40 AM
Movies:
Dyno:
Attn:
Meet:

Just a few of the ones I'll use with this hack, really hurtin bad without it. Thanks Again!

LuBi
11-15-2001, 09:52 PM
So what's going on with this hack? Has anyone besides the creator gotten it to work? Also where can we get 1.0.0, and when will that new zip be ready with new insturctions? Thanks for the hard work I hope we can work out the bugs! :(

apfeifer
11-15-2001, 10:20 PM
Originally posted by apfeifer
Use THIS zip:



Um, the zip is right there.

RobAC
11-15-2001, 10:22 PM
Can you be just a little bit more specific and point out what has changed since the other zip???

RobAC
11-15-2001, 10:24 PM
The date of the files in the ZIP is 11/4/01 10:50 am. That indicates to me that nothing has been changed in the zip file and in looking at the upgrade and full installation pages, they look exactly the same as in the previous download zip file.

LuBi
11-15-2001, 10:36 PM
Originally posted by RobAC
Can you be just a little bit more specific and point out what has changed since the other zip???

Yea that.

humble
11-15-2001, 11:13 PM
Two minor thoughts...

#1... Yes, the latest zip is kinda confusing, only because the filenames say 1.0.0 and upgrade 1.0.0 from 0.9.9...

which is all good.... except inside the 1.0.0 from scratch install.txt file... the version still says 0.9.9

#2... I myself had 2.0.3 and the stars hack installed, and upgraded to 2.2.0... reset all templates, and started with a fresh set of .php files, keeping the old DB..

the DB query:

INSERT INTO setting VALUES ( '171',

is what conflicts with the stars hack, cuz I guess (don't know much about mysql) it uses that same table/field whatever....

Now, I don't have the stars hack reinstalled, nor do I want to...

But I would REALLY like this hack, so can anyone produce a db query I can run that would clear out that data, and allow for these to be ran???/

plz, thx, and more thx, to come!

Excellent hack!! excellent instructions... Worth while project! much appreciated.

humble
11-16-2001, 12:13 AM
Nevermind!!!!

I find the work around!!!! For those who are interested....

In the Hack instructions.... check out the first TWO db queries to run....

See how it wants to create the new entries in settings line 171, and 172 respectively ...


INSERT INTO setting VALUES ( '171' .......

&

INSERT INTO setting VALUES ( '172' ........


Well... I looked in my DB.. and sure enough.... a few hacks I've added took 171, 172, 173, 174, 175....

So... what to do???

SIMPLE!!!
Open up PhpAdmin... navigate to your db...

on the left navigation side.... find the Browse icon next to 'setting'

it'll display something like

Showing records 0 - 30 (175 total)
Show XX number of records, and start @ XX

Tell it to show you 30 records starting from 160....

Now look in the settingid column, for the LAST record you have.... it maybe be 170, give or take a few....

NOW....

Just modify the code instructions for the 1st two queries ... and change the code to add these new values on the NEXT available line.. i.e. if your settings ends @ 174... then change the code like so:


INSERT INTO setting VALUES ( '175' .......

&

INSERT INTO setting VALUES ( '176' ........


I have tested it.... The actual value ID of the setting we add here is NOT specific, and EVERYTHING else stays the 100% the same... works great!!!

So here's that more THANKS!!!! for a great piece of code well done!

[quick questions]

a: can these code hack instructions be modified to add those values in the next available line entry?

b: or can someone come up with that simple query to check how many values are currently in the setting table, so we can identify that before we try to create new tables on top of existing ones.

c: just curious if gaps in the values matter, so if someone doesn't want to look how many that have, can they use...


INSERT INTO setting VALUES ( '998' .......

&

INSERT INTO setting VALUES ( '999' ........


or would it create all the ones in between and be an ugly thing?


[quick recommendations]

It would be nice to have the ability to edit an existing post, and give it one of the custom prefix's..

jamesdasher
11-16-2001, 02:01 AM
what about in the 'editpost' part? so we have the option in 'edit post'?

LuBi
11-16-2001, 07:05 AM
Originally posted by humble
Nevermind!!!!

I find the work around!!!! For those who are interested....

In the Hack instructions.... check out the first TWO db queries to run....

See how it wants to create the new entries in settings line 171, and 172 respectively ...


INSERT INTO setting VALUES ( '171' .......

&

INSERT INTO setting VALUES ( '172' ........


Well... I looked in my DB.. and sure enough.... a few hacks I've added took 171, 172, 173, 174, 175....

So... what to do???

SIMPLE!!!
Open up PhpAdmin... navigate to your db...

on the left navigation side.... find the Browse icon next to 'setting'

it'll display something like

Showing records 0 - 30 (175 total)
Show XX number of records, and start @ XX

Tell it to show you 30 records starting from 160....

Now look in the settingid column, for the LAST record you have.... it maybe be 170, give or take a few....

NOW....

Just modify the code instructions for the 1st two queries ... and change the code to add these new values on the NEXT available line.. i.e. if your settings ends @ 174... then change the code like so:


INSERT INTO setting VALUES ( '175' .......

&

INSERT INTO setting VALUES ( '176' ........


I have tested it.... The actual value ID of the setting we add here is NOT specific, and EVERYTHING else stays the 100% the same... works great!!!

So here's that more THANKS!!!! for a great piece of code well done!

[quick questions]

a: can these code hack instructions be modified to add those values in the next available line entry?

b: or can someone come up with that simple query to check how many values are currently in the setting table, so we can identify that before we try to create new tables on top of existing ones.

c: just curious if gaps in the values matter, so if someone doesn't want to look how many that have, can they use...


INSERT INTO setting VALUES ( '998' .......

&

INSERT INTO setting VALUES ( '999' ........


or would it create all the ones in between and be an ugly thing?


[quick recommendations]

It would be nice to have the ability to edit an existing post, and give it one of the custom prefix's..

Can we see a SS humble or maybe al ink to your site I'd love to see this hack working. Also which verison did you install 1.0.0 or 0.9.9?

wbc
11-16-2001, 03:53 PM
where can i get this hack ?

jamesdasher
11-17-2001, 10:42 PM
I also have it working...

jamesdasher
11-17-2001, 11:00 PM
here is a picture of the admin (I have changed my cp.css file, so the colors are different then original)

jamesdasher
11-17-2001, 11:02 PM
here is a picture of posting a new thread...with a prefix

jamesdasher
11-17-2001, 11:04 PM
here is a picture of a post with a prefix

LuBi
11-17-2001, 11:17 PM
THANK YOU SO MUCH!?! I've got to do a few things ot get my forums back in order but now I'm installing this hack. Happy to see someone got it working, was it difficlut or were there any surprises during install? Also, who can use the prefixes? Admin & Mods or everyone who can post?

Palmer ofShinra
11-17-2001, 11:25 PM
Originally posted by humble
Nevermind!!!!


INSERT INTO setting VALUES ( '171' .......
&
INSERT INTO setting VALUES ( '172' ........

[quick questions]

a: can these code hack instructions be modified to add those values in the next available line entry?
Yes. See below


INSERT INTO setting VALUES ( 'NULL' .......
&
INSERT INTO setting VALUES ( 'NULL' ........
That field is set to Auto-Increment. When you insert a new row, and set that value to NULL, it automatically sets it to the next higher number.

And no, if you did it with the 999 solution, it wouldn't create all the rows in between.

LuBi
11-18-2001, 01:52 AM
This is the erroer I get, how can I fix it?

Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: INSERT INTO setting VALUES ( 'NULL', '32', 'Prefixes', 'customposttypes', '', 'These will be displayed like \"Poll: \" and \"Sticky: \" but are custom. Enter each word you want with a space between it, like: \"Announcement Important Read\". Don\'t use commas. If you wish to use a space in the Post Prefix, place a _ where you want it to be.', '', '1');

mysql error: You have an error in your SQL syntax near ';

' at line 1

mysql error number: 1064

LuBi
11-18-2001, 08:26 AM
Well I must say a few things, this hack is very powerful. I really needed this for my forum. Another feature I would like to see would be a way to intergrate all the prefixes into the search. Maybe search only for certain prefixes. Anyways the hack was extremely hard for this script kiddie to install. All my problem were with the DB queries. Syntax error this syntax error that. If it wasn't for the help of Bane from talkloud.net (http://www.talkloud.net) I would have never got my forums back up. The hack works now, I look forward to better english and maybe some updates on the hack with great new features.

Sorry no SS but check my site to see the results! ;)

jamesdasher
11-18-2001, 06:01 PM
sorry, you had so much trouble with the hack LuBi...I have been so busy lately that I wasn't able to help you out right now, sorry about that. Glad you got it working!

James

LuBi
11-18-2001, 09:08 PM
Well thanks for making it, members of the only forum similar to mine have been screaming for this. So that everyone knows that it is DYNO, MOVIE, ATTN, whatever else they can come up with. Thank you for making the hack, I could have never figured out something like this. The funny thing was bane didn't get the syntax errors I did yet that NULL thing as mentioned above does need to be applied really if any other hacks exist. Thanks again!

But a search feature in the next script would be great, or arrange by prefix or something. Ex. All members could search for prefix MOVIE: and they would be listed however the user selects, date, member, whatever... If it can be done that would be great.

apfeifer
11-19-2001, 02:41 AM
If/when I release a new version I will add the search part in, no guarantees that there will be another version though.

LuBi
11-19-2001, 06:38 AM
Originally posted by apfeifer
If/when I release a new version I will add the search part in, no guarantees that there will be another version though.

Gotcha, but if ya do it'd be great.. and thanks again this hack works wonders!

KuraFire
12-06-2001, 06:06 PM
so like, this hack STILL doesn't allow you to specify the forum(s) on which the prefix option appears (in the newthread page) right?


Think that if you would add the prefix part into the Threadedit templates, we can turn existing (empty, prefix-less) threads into threads with a prefix? Or will it work with the edit option (weird though, cos what would happen if you edit post #10 in a thread??).

Any enlightenment concerning these two issues would be great :)

I think the forum-specific part is easily done, I'll go try that tonight and let you all know if it worked. :)

LuBi
12-06-2001, 06:33 PM
The features I would like to see would be:

Admin Edit/Remove/Change Post Prefix

Add in usergroups or users so if users abuse this feature admin can block them from using it.

A way to search for only a certain prefix. like go to search and search for prefix, maybe even search for prefix by user.

Thats pretty much all I can think of but they seem very powerful to me and the needs I have for this script. It has a lot to do with my site and the search alone would make this un-stoppable.

KuraFire
12-06-2001, 06:55 PM
You can do the 'admin editing' in phpMyAdmin maybe, so it's not too much of a priority I'd say. Not sure about this, though.

Making prefixes searchable would require them to have their own column inside a table, and as of right now I don't remember if this hack makes a column already, or that it's only a virtual addition to a thread upon creation.

I'll look at that once I install this on my testboard.. :)

LuBi
12-06-2001, 07:11 PM
Originally posted by KuraFire
You can do the 'admin editing' in phpMyAdmin maybe, so it's not too much of a priority I'd say. Not sure about this, though.

Making prefixes searchable would require them to have their own column inside a table, and as of right now I don't remember if this hack makes a column already, or that it's only a virtual addition to a thread upon creation.

I'll look at that once I install this on my testboard.. :)

Many Many Thanks!

KuraFire
12-06-2001, 07:37 PM
Don't be expecting too much though. I'm totally new to PHP and MySQL and all and I am just learning everything now. I'm digging into the vBulletin system as useful example-material, as well as simply hacking it to make my own board 1337er and 1337er :D;):D

But anyhow, I'll give a look at the search page and how it processes searches, and maybe I can add, somehow, a search for the prefix column IF, and only if, the hack makes a column for them.

KuraFire
12-07-2001, 11:55 AM
Okay this is fun. I installed it on my test board, followed the install instructions exactly, the admin panel part worked, the drop down prefix list appeared on the new thread pages...

but no matter how I tried to enter some options in the AP, the options Would Not Show Up in the drop-down menu!

BLAH!


also, I haven't quite figured out how to make it work for a single forum. Sooo, I'm gonna request the hack they implemented on this board for the FOURTH time from FireFly/Sinecure! :mad:

LuBi
12-07-2001, 12:12 PM
Originally posted by KuraFire
Okay this is fun. I installed it on my test board, followed the install instructions exactly, the admin panel part worked, the drop down prefix list appeared on the new thread pages...

but no matter how I tried to enter some options in the AP, the options Would Not Show Up in the drop-down menu!

BLAH!


also, I haven't quite figured out how to make it work for a single forum. Sooo, I'm gonna request the hack they implemented on this board for the FOURTH time from FireFly/Sinecure! :mad:

On this board, where? I installed the hack on my board at suprascene.com/forums it works. Well thanks, and goodluck! keep us posted!

KuraFire
12-07-2001, 02:43 PM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=33009

Bah :(



I have no idea why it doesn't work for me. I even did the queries correctly, with null values and they appeared neatly after the highest value already in it, no problem. But still, I can't get the drop-down menu to show anything other than "Default (none)" :(

Dalius
12-20-2001, 06:33 PM
Where the hell is the link to dload?

jamesdasher
12-20-2001, 07:49 PM
It is on this page...

https://vborg.vbsupport.ru/showthread.php?postid=200613

(hopefully that is right, page 4 for me)

James

Sadie Frost
12-23-2001, 01:26 AM
Do I need to add ": $posttype" to one of my templates as RobAC suggested?

Edit: Scratch that - I have it in my newthread template.

I'm getting the options in the admin cp but I get no drop down box when I try to make a new thread.

I'm not sure if this will be helpful to anyone trying to figure this out, but if I view the source when I go to new thread, it doesn't seem to be accessing the posttype template. Do I maybe need to have something more that $posttyle in the newthread template? Or do I maybe have something wrong in the newpost_posttype template itself? If I go to newpost_posttype, edit, preview I get a drop down box, but it only gives me the default option, not any of the custom prefixes I've added in the admin cp.

Not sure if any of that is helpful to anyone, but I'd sure like to get this working :)

Edit again lol: Okay, new weird thing happening. When I post a new thread, there's no drop down box, but when I post as usual, what I've typed as the message become the prefix.

So if my subject is: Hi!
and message is: just checking things out

What is displayed in the forum is:

just checking things out: Hi!

Smallville
01-13-2002, 09:11 AM
Ok. I installed everything correctly, added tables, bla bla.

Now I'm stuck. I have carefully read every post in this thread, and haven't found it.

The Drop Down box isn't showing up when I post a new thread. I don't know where to change what all the prefixes are in the admin CP. Because the Drop Down box isn't showing when I post new threads, I can't see them when I few that forum (big duh!).

Please help. AIM/AOL - WhiteLighterLeo3 or MatrixReality

Thanks. I don't have errors or anything, so it's not messing up my boards. Would just like it to work. Thanks.

SaintDog
01-13-2002, 10:11 AM
Go into your admin cp, then options, check under the custom post prefixes, make sure that you have it to "Show Both" or it will not show the new ones. I had mine set to overwrite and they were not showing, again, make sure you have it set to "Show Both".

Hope this helps out.

Smallville
01-13-2002, 05:38 PM
SaintDog, duh, I'm so stupid. I clicked it over to Show Both and added my prefixes, but problem.

The dropdown box still isn't showing up when I go to post a new thread. Any ideas on how to det it to do that? Some of those posts on page 4 of this thread is really confusing. The one about changing numbers from 171 172 to 999, but then that won't work right, so do something. I DIDN'T UNDERSTAND THOSE AT ALL. Maybe that's what I'm doing. Any help? Still on AIM with names above.

Linus
01-14-2002, 09:19 AM
Can't find the download link ?

Smallville
01-15-2002, 12:48 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=32038&perpage=15&display=&pagenumber=4" target="_blank">https://vborg.vbsupport.ru/showt...=&pagenumber=4</a>

It's on this page (4). Towards the middle to the bottom. Hope that helps.

Arathorn
01-21-2002, 07:57 AM
I've installed this hack exactly as it say, but nothing appears on the admin CP. I've been able to see the dropdown list on the thread view. Can someone please help, or point me in the right direction?

Arathorn
01-21-2002, 08:01 AM
Nevermind, I figured it out. The settinggroup values clashed with another hack. This is one nice hack, but the instructions and queries need serious polishing (no offence).

Also, apostrophes cannot be used. Trying to select a prefix with a ' causes a database error. Anyone knows how we can alter the database to fix this?

Lesane
02-01-2002, 12:36 PM
Great hack apfeifer, thanks. :up:

c-pr0mpt
03-21-2002, 02:31 AM
Thanks for this hack. I love it!

c-pr0mpt
03-21-2002, 02:31 AM
Whoops double post.

FlyingDutchman
03-29-2002, 11:38 AM
It can be very usefull I think, but can I also set it for specific forums only? that's the only thing it's missing I think...

Reeve of shinra
03-30-2002, 12:20 AM
Search: Use the normal search option. Select the specific forum and use titles only, then put whatever text you use for your announcement. easy as cake.

plattopus
04-01-2002, 02:10 AM
Hi,

I installed everything perfectly until it said to run the queries. I got these errors when I tried to run them:

When I tried to run this: INSERT INTO setting VALUES ( '171', '32', 'Prefixes', 'customposttypes', '', 'These will be displayed like \"Poll: \" and \"Sticky: \" but are custom. Enter each word you want with a space between it, like: \"Announcement Important Read\". Don\'t use commas. If you wish to use a space in the Post Prefix, place a _ where you want it to be.', '', '1');
I got this error: Error

MySQL said:


Duplicate entry '171' for key 1

And when I tried to run this query: INSERT INTO setting VALUES ( '172', '32', 'Display Options', 'displayoption', '3', 'This allows you to decide whether you want your custom prefixes to override, be displayed along with, or be overwritten by \"Poll: \" and \"Sticky: \".', '<select name=\\\"setting[$setting[settingid]]\\\">
<option value=\\\"1\\\" \".iif($setting[value]==\"1\",\"selected\",\"\").\">Overwrite</option>
<option value=\\\"2\\\" \".iif($setting[value]==\"2\",\"selected\",\"\").\">Show Both</option>
<option value=\\\"3\\\" \".iif($setting[value]==\"3\",\"selected\",\"\").\">Be Overwritten</option>
</select>', '2');
I got this error: MySQL said:


Duplicate entry '172' for key 1

Every other query ran fine... and I also have other hacks installed, which may be part of it.

Any help anyone could give me would be great.

Thanks

LangTuDaTinh
04-05-2002, 07:20 PM
this hack would be cool if we can edit or removed our custom post prefixes when we want.

plattopus
04-06-2002, 12:28 AM
Can anyone answer my question? The hack won't work!

FWC
04-06-2002, 06:41 AM
Originally posted by plattopus
Can anyone answer my question? The hack won't work! You already have settings with id 171 and 172. You might try null for the value. I think it will autoincrement it the the appropriate value.

plattopus
04-06-2002, 07:10 AM
You are a legend... it works like a charm now. Thanks heaps for the help. :)

FWC
04-06-2002, 07:33 AM
Originally posted by plattopus
Thanks heaps for the help. :) I'm glad it worked. :)

Ordovicium
04-07-2002, 05:54 PM
Does it work with 2.2.5?

LouChipher
04-12-2002, 12:04 PM
does it work errorless?

ZiRu$
04-19-2002, 09:06 PM
this is a great hack and I will install it tonight on my test board!

apfeifer
04-21-2002, 07:25 PM
I should get around to making a version of this for 2.2.5, I had kinda disappeared off of these forums for a while.

Swamper
04-24-2002, 01:01 AM
I installed it on 2.2.4 and it works fine - for those entries where you basically add items to queries/templates used in the php files I just added your entries since my version is already heavily modded..

Very nice. Thanks.

Chris M
04-30-2002, 08:20 PM
I have installed it on my vb 2.2.5, but it only appears in the admin cp, not in any newthread.php or forumdisplay.php...

Before you ask, yes I have checked both forumdisplay.php and newthread.php more than once, and I have added all the queries you forget etc...

It STILL wont work!

Help!

Satan

Chris M
04-30-2002, 08:21 PM
Ah...

Twould explain why it doesnt...

Satan

Erwin
06-05-2002, 01:05 PM
Works beautifully with 2.2.6.

Thanks. :)

Erwin
06-05-2002, 01:06 PM
Tips: Make sure you use NULL instead of 171 or 172 to set your settings id. Also, choose option "Show Both" in your Admin CP or the prefix won't show.

apfeifer
06-09-2002, 10:17 PM
If anyone wants me to make this for the current version of vB (2.2.6), just leave a reply here and I'll do it tomorrow.

LuBi
06-09-2002, 10:33 PM
Originally posted by apfeifer
If anyone wants me to make this for the current version of vB (2.2.6), just leave a reply here and I'll do it tomorrow.

sounds great

Xelation
06-10-2002, 12:04 AM
I cant get this to work for 2.2.5 I've added it twice now... and I edited the queries and all.... can anyone help me? and yes I've set it to showboth

apfeifer
06-10-2002, 12:31 AM
Alright, after I get home from sports acceleration (fun, working out..:rolleyes:) I'll work on this!

supreemball
06-15-2002, 02:40 PM
anyone figure out how to make these prefixes for certain forums? like a if ($forumid == "3") statement? i know the code, just not sure where to put it.

Sigon
06-16-2002, 12:47 PM
Everytime I go to run the SQL queries its giving me a duplicate key. Whats going on here?

BigJohnson
07-14-2002, 04:39 PM
Ok I have a request for this. When you preview posts you loose the drop item you choose how do u fix this?

BigJohnson
07-14-2002, 04:41 PM
Also to be able to edit the custom prefix as well is anothign kool addon if possible.

BigJohnson
07-17-2002, 01:14 PM
Can someone please help me and make an edit post feature where you can edit this. That would be great.

WitchyT
07-22-2002, 10:47 PM
Just got this hack working! Works great! :D

Just a question: Is there any way, I could edit/remove the Custom Prefix through the Edit Thread in Admin Options? Like, first I put "Pre-Show Discussion", and some days later I want to change that prefix into "Post-Show Discussion".
Because right now I'd only be able to put the prefix once, when I post, and not edit that prefix.

Dalius
07-29-2002, 05:48 PM
Okay, I finished instaled it all, its all in, the drop down box is in the newthread template, just one question, where do you edit the sutf in the ACP???

Units
08-03-2002, 04:07 AM
I cant run the sql querys

Units
08-03-2002, 04:26 AM
This hack is super confusing. I've ran the queries, But now i dont know where to test this out. I dont see any Custom Prefix options in the admin cp...

FlyingDutchman
08-20-2002, 02:40 PM
Originally posted by apfeifer
If anyone wants me to make this for the current version of vB (2.2.6), just leave a reply here and I'll do it tomorrow.

can you plz make a 100% working version for vb 2.2.6?
thanks in advance...

Fuitad
08-23-2002, 06:43 PM
how can that prefix be edited after?

NTLDR
08-23-2002, 08:46 PM
Originally posted by Fuitad
how can that prefix be edited after?

You need to manually edit the row in the thread table as this hack doesn't have any built in may of editing them.

squawell
08-24-2002, 07:37 AM
one question ...

how to do can make different prefixes show up in different forums?

like here... only full releases forum have the prefixes..

NTLDR
08-24-2002, 07:17 PM
You need to change the code to specify the forum id(s) that you wish to include custom prefixes for like the following:

if ($permissions['canusecustomprefixes'] == "1" && $forumid == '69' OR $forumid == '16' OR $forumid == '73' OR $forumid == '49' OR $forumid == '50' OR $forumid == '81') {

Rose
08-25-2002, 07:59 PM
https://vborg.vbsupport.ru/showthread.php?postid=200613#post200613


I've downloaded and installed the hack from the above link. And that was like a goose hunt to get that. :s

Anyway, Everything seems to be okay except for a few things:

1) A couple of the queries came back with errors saying duplicate id.

2) The custom post prefix options in the admin cp are not right. It's something to do with a poll, not the prefixes (though the category title is correct). Here's what I get:
Results Per Page
The number of entries to be displayed on the "View Quiz Results" and "Quiz Category" pages.

Passing Percentage
The percentage of questions a quiz user must answer to succesfully pass a quiz.

Quiz Display Cutoff
The number of high scores/recent results to display on the quiz display page.

Display Author's Results?
The option to "hide" any quiz results taken by the author of the quiz.

Sound weird? I'll post a screenshot if needed, but at the moment my psp is acting bad.

NTLDR
08-25-2002, 08:04 PM
Originally posted by Rose
Sound weird?

Sounds like you have the vBquiz hack installed ;) Which is not what this hack was expecting :D

Are the options in the Admin CP, just without a link at the top?

Rose
08-25-2002, 08:11 PM
But I don't have the vbquiz hack installed. :s

The options aren't in the admin cp, what I quoted above is what is in the admin cp under "Custom Post Prefix". *lol* Is there a way to .... dump the queries of the first three (in the instructions) and rerun them? Or does that make sense?

I'll try to find everything I have to be more clear and post back later. :)

NTLDR
08-25-2002, 08:29 PM
Originally posted by Rose
But I don't have the vbquiz hack installed. :s

You have it semi-installed though ;)

Rose
08-25-2002, 11:16 PM
Hrm. You know what, NTLDR - I do remember trying to install it. But it didn't do anything that I wanted and I thought I took it all out. Is there a way to take it out so I can fix the postprefix? I guess I better head over to the quiz hack and see if there's a uninstall. It added the 'quiz' templates three times to my default template set. So...yeah. It made me upset and I've still got all those unused templates taht I need to delete. (If you know a quick mass-delte templates, pm me! Unless I can acheive this via TBS, which I will try soon). Anyway, back on track....uninstall..

NTLDR
08-25-2002, 11:23 PM
I'll take a look at the hack, its just a case of removing the quiz stuff from the setting table.

(If you know a quick mass-delte templates, pm me! Unless I can acheive this via TBS, which I will try soon).
PM on its way :D

squawell
08-26-2002, 07:59 AM
Originally posted by NTLDR
You need to change the code to specify the forum id(s) that you wish to include custom prefixes for like the following:

if ($permissions['canusecustomprefixes'] == "1" && $forumid == '69' OR $forumid == '16' OR $forumid == '73' OR $forumid == '49' OR $forumid == '50' OR $forumid == '81') {
thankz for ur reply.......

but can we add the prefixes when we create a new forum?

can do that?thankz...

NTLDR
08-26-2002, 05:44 PM
Originally posted by squawell
but can we add the prefixes when we create a new forum?

You need to manually update the list with the forumid

criz
11-11-2002, 12:28 PM
Originally posted by BigJohnson
Ok I have a request for this. When you preview posts you loose the drop item you choose how do u fix this?

any conclusion right now?

and another feature would be quite interesting: posting only with choosing a prefix, otherwise errormessage: please choose a category! how can I do that?

gmarik
05-17-2003, 08:30 PM
Should it work with 2.3.0 as well?
NTLDR, got an idea of it?!

gmarik
05-17-2003, 08:31 PM
Should it work with 2.3.0 as well?
NTLDR, got an idea of it?!