miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

®
 
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   
 

Problem with accessing new field

 
Author Vishal
Partaker
#1 | Posted: 8 Nov 2005 15:02 | Edited by: Vishal 
Hello!

I have added a new field 'user_website_follow' using method described at:
http://www.minibb.com/forums/5_2171_0.html

I display user's website as signature using the function in bb_plugins.php as:

function parseUserInfo_user_website($web){
if($web!='') {
if($GLOBALS['action']=='userinfo') return "<a href=\"$web\" target=\"_new\" rel=\"nofollow\">$web</a>";
else return "----------------<br><a href=\"$web\" target=\"_new\" rel=\"nofollow\">$web</a>";
}
else return '';
}

The new field (user_website_follow) contains the default value: rel="nofollow"

I tried to incorporate this value into the above function using:

function parseUserInfo_user_website($web){
if($web!='') {
if($GLOBALS['action']=='userinfo') return "<a href=\"$web\" target=\"_new\".$GLOBALS['user_website_follow'].">$web</a>";
else return "----------------<br><a href=\"$web\" target=\"_new\".$GLOBALS['user_website_follow'].">$web</a>";
}
else return '';
}

...but I'm not getting it. The link in sig does not contain the nofollow attribute.

I want to make the value of the new field "null" for some users so their link in sig will not have the nofollow attribute.

How to access the value in the above function?

Thanks

Author Team
8-)
#2 | Posted: 8 Nov 2005 17:53 
First of all, you should name your function parseUserInfo_user_website_follow(....

Specific miniBB Support Forums / Specific /
 Problem with accessing new field
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP