Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Default or Retro Details »»
Default or Retro
Version: 1.00, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-28-2004 Last Update: Never Installs: 3
 
No support by the author.

This will super simple mod will allow your users to have either a new styled vB3 postbit or the old vB2 postbit with out using phpinclude_start OR hacking


Step 1
Add a new profile field that is a single selction menu
Title: Postbit Style
Description: How all postbits will appear to you.
Options:
Default
Legacy

OR

Legacy
Default

(depending on WHICH you want to be default)
Default: Yes but not blank.

Now, Im going to assume you have NOT modifed your postbit template much and give you 2 predone full template bits, ill also give you 2 non predone bits that you must fill in for your self.

You need to chage the top line of any of the text files to make sure you have the number of the profile field replaced for X.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-24-2004, 01:28 PM
cavola cavola is offline
 
Join Date: Feb 2002
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did, sorry to sound rude.

I mean i have added this profile but where in the User CP can i find it?
Reply With Quote
  #13  
Old 04-24-2004, 06:28 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try UserCP > Edit Profile.
Reply With Quote
  #14  
Old 04-25-2004, 04:58 AM
OGT OGT is offline
 
Join Date: Mar 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Might want to add, if i understand this correctly, any future mods to postbit where you would modify postbit and postbit_legacy would now be done 2 times to each section of this new postbit: once in the default section, then again in the legacy section. the postbit_legacy would be ignored completely.
Reply With Quote
  #15  
Old 05-15-2004, 11:00 PM
imported_Keyser S?ze's Avatar
imported_Keyser S?ze imported_Keyser S?ze is offline
 
Join Date: Jul 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked like a charm, took some figureing out tho, guys need to remeber some of us are really dlow witted ppl ;p

here is a quick explination of how to do it for the other slow folks around here

open the admin cp and scroll down to edit profile fields, follow th einstructions in the 1st post on that, look at it when ur done and remeber what it says next to feild (will prolly say field5)

go edit ur templates, ur going to replace 2 templates, the "postbit" template (replace that with the default.txt file) and the postbit_legacy template (replace with the legacy.txt file


thats it, pretty easy

-edit-

how would i go about making the postbit width (avatar side) noot be so wide? i dont need it that wide (legacy)
Reply With Quote
  #16  
Old 05-18-2004, 07:03 AM
imported_Keyser S?ze's Avatar
imported_Keyser S?ze imported_Keyser S?ze is offline
 
Join Date: Jul 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked fine on my test forum, now on my main one when i install it i get this error

The following error occurred when attempting to evaluate this template:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/virtual/site1/fst/var/www/html/forums/includes/adminfunctions_template.php(3037) : eval()'d code on line 5

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #17  
Old 05-18-2004, 07:46 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like you didnt finish the conditional somewhere...
Reply With Quote
  #18  
Old 05-18-2004, 09:29 AM
imported_Keyser S?ze's Avatar
imported_Keyser S?ze imported_Keyser S?ze is offline
 
Join Date: Jul 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont understand, i didnt hack the postbit at all so i just used the standard, and i changed the feildX, what else besides making the profile field am i suppose to do?
Reply With Quote
  #19  
Old 05-18-2004, 09:37 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Double check all your if statments, if it is not closed properly it will mess it up
Reply With Quote
  #20  
Old 05-18-2004, 09:09 PM
imported_Keyser S?ze's Avatar
imported_Keyser S?ze imported_Keyser S?ze is offline
 
Join Date: Jul 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one thing that is diffrent the filed is 7, it was 5 on the other, the test forum i have is just a plain install, this one is a upgrade from vb2, i think maybe the other feild is a hack, but its not listed

any idea, i at one point had the hack profile custom feild installed
Reply With Quote
  #21  
Old 05-19-2004, 02:28 AM
imported_Keyser S?ze's Avatar
imported_Keyser S?ze imported_Keyser S?ze is offline
 
Join Date: Jul 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i fixed it , my own fault

thanks for the help
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 05:21 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.05694 seconds
  • Memory Usage 2,296KB
  • 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)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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