vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Custom Post Prefixes (https://vborg.vbsupport.ru/showthread.php?t=32038)

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

Quote:

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

Quote:

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/showthrea...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&displa y=&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:

Quote:

When I tried to run this:
Code:

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:
Code:

Error

MySQL said:


Duplicate entry '171' for key 1

And when I tried to run this query:
Code:

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:
Code:

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

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 04:21 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
  • Page Generation 0.01320 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete