Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by apfeifer apfeifer is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-01-2001 Last Update: Never Installs: 28
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:

Comments
  #62  
Old 11-15-2001, 10:24 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #63  
Old 11-15-2001, 10:36 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #64  
Old 11-15-2001, 11:13 PM
humble's Avatar
humble humble is offline
 
Join Date: Nov 2001
Location: MidWest USA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #65  
Old 11-16-2001, 12:13 AM
humble's Avatar
humble humble is offline
 
Join Date: Nov 2001
Location: MidWest USA
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #66  
Old 11-16-2001, 02:01 AM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about in the 'editpost' part? so we have the option in 'edit post'?
Reply With Quote
  #67  
Old 11-16-2001, 07:05 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #68  
Old 11-16-2001, 03:53 PM
wbc wbc is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where can i get this hack ?
Reply With Quote
  #69  
Old 11-17-2001, 10:42 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have it working...
Reply With Quote
  #70  
Old 11-17-2001, 11:00 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a picture of the admin (I have changed my cp.css file, so the colors are different then original)
Reply With Quote
  #71  
Old 11-17-2001, 11:02 PM
jamesdasher jamesdasher is offline
 
Join Date: Oct 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a picture of posting a new thread...with a prefix
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05108 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete