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

Problem with accessing new field

Author Vishal
Registered
#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 Top

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

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB