vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removing from Postbit and Adding (https://vborg.vbsupport.ru/showthread.php?t=168098)

juan71287 01-18-2008 12:53 PM

Removing from Postbit and Adding
 
Hey guys, I could have sworn I asked thsi question before, but when i searched I didn't find it so I ask again.

I would like to remove the POST: # from the postbit so it don't show. I tried removing

PHP Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> 

but that didn't work.

I would also like to replace the post count with the "Gender" of the person. Thanks again.

snakes1100 01-18-2008 01:05 PM

Depending if your using legacy style postbit or not, you need to modify postbit or postbit_legacy templates.

For gender, you need to call the profile field you set up for it manually or use this hack:
EMiN3M Show Profile Field In Post Bits

juan71287 01-18-2008 01:58 PM

I am using legacy. And I know that I need to modify it, but I cant seem to find the correct code to take off. Thats why I am asking for help.

snakes1100 01-18-2008 02:21 PM

Comment this out <!-- -->

Code:

$vbphrase[posts]: $post[posts]

SEOvB 01-18-2008 02:48 PM

Quote:

Originally Posted by juan71287 (Post 1423785)
I am using legacy. And I know that I need to modify it, but I cant seem to find the correct code to take off. Thats why I am asking for help.

Are you trying to remove the users post count, or the post# (the little link in the corner)

To show gender, Create custom profile field called Gender, the adminCP will asign a number to it such as fieldX

Then in the postbit_legacy
Code:

$vbphrase[posts]: $post[posts]
Replace with
Code:

Gender: $post[fieldX]

juan71287 01-18-2008 03:24 PM

Its showing my Gender as 1 instead of Male. Why is that?

EDIT: Figured out that my problem was with the 'Profile Field Type' option. Its tricky. Thanks again all.


All times are GMT. The time now is 07:15 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
  • Page Generation 0.00986 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete