vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Want to remove my href tags here: (https://vborg.vbsupport.ru/showthread.php?t=95890)

okc 09-08-2005 10:19 PM

Want to remove my href tags here:
 
I have a hack that tells you who has visited in the day to my board. I love the hack but I don't want the ability to pm a user, just their username only, so I want to remove the href tags, but I can't seem to do it without getting errors - can someone tell me how to change this code so i get the name only & not a clickable link:

if ($today['visible'])
{
$wrdate = vbdate($vboptions['timeformat'], $today['lastactivity']);
$whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
if ($today['visible'] == 2)
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
}
else
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
}
}

thx alot!!!

Boofo 09-08-2005 10:25 PM

This should do what you want:

PHP Code:

if ($today['visible']) 
{
$wrdate vbdate($vboptions['timeformat'], $today['lastactivity']);
if (
$today['visible'] == 2
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>*, ";
}
else 
{
$whotoday .= $today['opentag'].$today['username'].$today['closetag']."</a>, ";
}



okc 09-08-2005 10:43 PM

Thx - Very close - it does take away the link, but it only lists 1 user instead of the multiple users I have - any other thoughts?

Boofo 09-08-2005 10:47 PM

I re-edited the code above. Should work fine now.

okc 09-08-2005 11:06 PM

Excellent - thx alot!


All times are GMT. The time now is 02:21 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.01108 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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