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
  #132  
Old 08-20-2002, 02:40 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
can you plz make a 100% working version for vb 2.2.6?
thanks in advance...
Reply With Quote
  #133  
Old 08-23-2002, 06:43 PM
Fuitad's Avatar
Fuitad Fuitad is offline
 
Join Date: Nov 2001
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can that prefix be edited after?
Reply With Quote
  #134  
Old 08-23-2002, 08:46 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #135  
Old 08-24-2002, 07:37 AM
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
Posts: 681
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one question ...

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

like here... only full releases forum have the prefixes..
Reply With Quote
  #136  
Old 08-24-2002, 07:17 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to change the code to specify the forum id(s) that you wish to include custom prefixes for like the following:

PHP Code:
if ($permissions['canusecustomprefixes'] == "1" && $forumid == '69' OR $forumid == '16' OR $forumid == '73' OR $forumid == '49' OR $forumid == '50' OR $forumid == '81') { 
Reply With Quote
  #137  
Old 08-25-2002, 07:59 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https://vborg.vbsupport.ru/showthrea...613#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:
Quote:
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.
Reply With Quote
  #138  
Old 08-25-2002, 08:04 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Rose
Sound weird?
Sounds like you have the vBquiz hack installed Which is not what this hack was expecting

Are the options in the Admin CP, just without a link at the top?
Reply With Quote
  #139  
Old 08-25-2002, 08:11 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #140  
Old 08-25-2002, 08:29 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Rose
But I don't have the vbquiz hack installed. :s
You have it semi-installed though
Reply With Quote
  #141  
Old 08-25-2002, 11:16 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
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:42 AM.


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.04631 seconds
  • Memory Usage 2,318KB
  • 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
  • (1)bbcode_php
  • (5)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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