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
User's Favourite Quote in Postbit... Details »»
User's Favourite Quote in Postbit...
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-08-2002 Last Update: Never Installs: 14
 
No support by the author.

This hack will add the User's favourite Quote in the Postbit...

Download the attached file for the Instructions, or see below :

###-=START=-###

Step A)

Create a new User Profile Field (in your Admin CP). For myself, I created a new field with these properties, in order from top to bottom:

"Favourite Quote"
"Enter your Favourite Quote"
Max Input - 250
Field Length - 25
Display Order - 2
No
No
Yes

Step B)

You need to determine the field id of your new field. If you've never before added a custom profile field, this should be 5. When you hover over the "Edit" link when you go to "Modify" in your Custom profile Field section, a link should appear at the bottom left of the page. It will look something like :
Quote:
http://www.yoursite.com/forum/admin/profile.php?s=&modify&fieldid=7
The last number, in this case "7", is the field id.

Step C)

Open the file: admin/functions.php

Find this:

PHP Code:
        if ($post[aim]!="") {
            eval(
"\$post[aimicon] = \"".gettemplate("aim")."\";");
        } else {
            
$post[aim]="";
        } 
And add below :

PHP Code:
            if ($post[field5]) {
                  
$favquote="$post[field5]<br>";
            } else {
                  
$favquote="";
            } 

(Note : You will need to change the number (5) in the $post[field] brackets to the number that you found out in Step B)

Step D)

Edit the postbit template.

You can put $favquote anywhere in the postbit template that you want. Make sure, however, that there is a <br> before it, but not after it.

Step E)

Upload the functions.php file to your admin directory

###-=END=-###

There are 2 Screenshots to show this hack...

Satan

Show Your Support

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

Comments
  #22  
Old 07-07-2002, 03:58 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it would be great if you can change people's favorite quotes in the Admin Control Panel for each user. How would i got ahead to do this. Can someone please help me out and maybe post the code for me. Thanks a billion. I think that would be a great addon.
Reply With Quote
  #23  
Old 07-09-2002, 01:39 PM
cabby's Avatar
cabby cabby is offline
 
Join Date: Nov 2001
Location: Good old Germany
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BigJohnson
I think it would be great if you can change people's favorite quotes in the Admin Control Panel for each user. How would i got ahead to do this. Can someone please help me out and maybe post the code for me. Thanks a billion. I think that would be a great addon.
I totally agree with BigJohnson! Would be very nice to get this option...
Reply With Quote
  #24  
Old 07-09-2002, 01:45 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hehe... forum god? and satan? interesting..
great hack chris.
Reply With Quote
  #25  
Old 07-09-2002, 04:39 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump. Please call me bigjohnson cabby hehe. BJ sounds too hhmm how should i put it.. Sexual? lol.
Reply With Quote
  #26  
Old 07-09-2002, 04:47 PM
cabby's Avatar
cabby cabby is offline
 
Join Date: Nov 2001
Location: Good old Germany
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BigJohnson

Your request is fulfilled...
Reply With Quote
  #27  
Old 07-10-2002, 04:26 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe. I would really like the requests that people have been asking for to be fulfilled for this hack as well.
Reply With Quote
  #28  
Old 07-10-2002, 05:04 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lmao...

bigjohnson and cabby you can edit userprofilefields in admin cp ;p

btw i agree with Xenon and KujaFire that a file edit isn't necessary...

but i also agree with hellsatan and animeloo that using a file edit can benefit for an additional addon of some sort

g-force2k2
Reply With Quote
  #29  
Old 07-16-2002, 11:38 PM
Heineken77 Heineken77 is offline
 
Join Date: Jul 2002
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey thanks man, this is cool
Reply With Quote
  #30  
Old 07-18-2002, 12:00 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BigJohnson - What g-force2k2 said...

Everyone else - Fanks

Satan
Reply With Quote
  #31  
Old 07-19-2002, 07:46 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have included things by just making changes to the postbit before, what I liked about this hack was that the quote doesn't show in every member who hasn't written anything... Thanks!

I wanted to ask you something, in the attached pic you have Fav Quote: in bold, I figured you added that to the php file, right? So I did and it's showing now, is that what you did? How did you make it bold?

if ($post[field5]) {
$favquote="Fav Quote: $post[field5]<br>";
} else {
$favquote="";
}
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:25 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.04483 seconds
  • Memory Usage 2,312KB
  • 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
  • (2)bbcode_php
  • (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
  • (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