vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   User Mod for new profile field (https://vborg.vbsupport.ru/showthread.php?t=47762)

xevito 01-16-2003 09:55 AM

User Mod for new profile field
 
I want a new profile field called "id" where the user puts in an id (which is linked to another site).

Anyway this ID I want to get added to a url such as http://bleh.bleh.com?userid=1 for user 1

How can I do this on vb - I want to make it a link too.

*Also* under each name on the forum (where there is a email, www, pm, profile links) I would like another one called idratings I have the image but how do i implement this? any help would rock!

Erwin 01-16-2003 10:48 AM

You can do this without hacking.

Go to:

Admin CP -> User Profile Fields -> Add
Title - ID
Description - Anything you want
Field Required - No
Field Hidden on Profile - Yes
Field Editable by User - Yes

Click Save. Then on the next screen, find "ID", and put your mouse cursor over the "Edit" link. The number at the end of the URL in the status bar is the custom profile id number - write this down.

After this, to make this as a link in the forum in the user's posts, do this:

Go to:

Admin CP -> Templates -> Modify ->Show All -> Postbit

Modify the postbit template:

Find:

Code:

$post[buddy]
Replace with:

Code:

$post[buddy] <a href=http://bleh.bleh.com?userid=$post[fieldx]>ID Ratings</a>
where you replace "x" in "fieldx" with the custom profile id number.

A link called ID Ratings will appear in the posts of users. Replace ID Ratings with the image if you wish. :)

xevito 01-16-2003 03:54 PM

Hi Erwin,


I have done this and it wont work :|

checkout http://forums.hexus.net - maybe I am doing something silly?

xevito 01-16-2003 05:08 PM

Right I got this working - anyway of making it so it shows a default url if no one enters anything in the field.


All times are GMT. The time now is 07:13 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.00974 seconds
  • Memory Usage 1,713KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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