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)

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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

Quote:

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 ...

Code:

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:

Code:

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...

Code:

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

Quote:

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 ...

Code:

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:

Code:

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...

Code:

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

Quote:

Originally posted by humble
Nevermind!!!!

Code:

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

Code:

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

Quote:

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. :)


All times are GMT. The time now is 07:40 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.02958 seconds
  • Memory Usage 1,839KB
  • 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
  • (8)bbcode_code_printable
  • (8)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