![]() |
User's Favourite Quote in Postbit...
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:
Step C) Open the file: admin/functions.php Find this: PHP Code:
PHP Code:
(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 |
This is the View from the actual posts...
Satan |
This is the view from your Profile...
Satan |
im isntalling this :D
|
/me clicks install button
i think that was the fasted ive ever installed a hack :alien: |
Cool...
Tell me what you think:) Satan |
ill leave my members to that job, once i get the forum back up tomorrow :p
|
Ok:)
If anyone wants to make any suggestions, by all means, go ahead!:) Satan |
Dude, you can do this without any file-hacks.
Just put $post[fieldX] (where X is the profile field ID) inside the postbit template and you're set to go... No file hacks necessary at all. |
Nice avatar, though ;)
|
All times are GMT. The time now is 11:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|