CommunityAdmins.com - Does anyone know how to activate the [you] command ?? - Page 2
DeveloperCube, a community for webmasters and web developers
Add Us:   MySpace   Facebook   StumbleUpon
Username:    Password:
Remember Me?    
Does anyone know how to activate the [you] command ??
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    CommunityAdmins.com Forum Index -> Technical Issues
 See a User Guidelines violation? Please contact us.
Author Message

Nick

Joined: 09 Sep 2005
Posts: 772
Location: Next to the stereo

PostPosted: 12/10/2006, 8:14 am    Post subject: Reply with quote

In viewtopic.php, after
Code:
//
   // If the board has HTML off but the post has HTML
   // on then we process it, else leave it alone
   //
Put
Code:
{
$message = str_replace("/me ","<font color=\"orange\"><strong> " .$poster. "</strong></font> ",$message);
}
{
$message = str_replace("/you ","<font color=\"violet\"><strong> " .$userdata['username']. "</strong></font> ",$message);
}
If you want my /we, /us additions, after
Code:
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
   {
      if ( $user_sig != '' )
      {
         $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "&lt;\\2&gt;", $user_sig);
      }

      if ( $postrow[$i]['enable_html'] )
      {
         $message = preg_replace('#(<)([\/]?.*?)(>)#is', "&lt;\\2&gt;", $message);
      }
   }
Put
Code:
{
$message = str_replace("/we ","<font color=\"#4d7bc1\"><strong> " .$userdata['username']."&nbsp;and&nbsp;".$poster. "</strong></font> ",$message);
}
{
$message = str_replace("/us ","<font color=\"red\"><strong> " ."Your Forums". "</strong></font> ",$message);
}
In these codes, you can change the colors to whatever you want. Also, change "Your Forums" to your forum name.
_________________
[Bobsnox Forums] [Shannara Forums] [The Smash Syndicate] [LegendofZeldaForums.com]
Apologetics?
Back to top

Nick1150

Joined: 07 Dec 2006
Posts: 13

PostPosted: 12/10/2006, 11:52 am    Post subject: Reply with quote

Thanks Nick for your help.

I really appreciate it. The /me hack works ok, but the /you still does not work Confused Confused

What can I say ?

Sorry for the inconvenience Bawling

any othe hint ?
_________________
Nick 1150
Back to top

Nick

Joined: 09 Sep 2005
Posts: 772
Location: Next to the stereo

PostPosted: 12/10/2006, 12:35 pm    Post subject: Reply with quote

What specific version of phpBB are you running?
_________________
[Bobsnox Forums] [Shannara Forums] [The Smash Syndicate] [LegendofZeldaForums.com]
Apologetics?
Back to top

Nick1150

Joined: 07 Dec 2006
Posts: 13

PostPosted: 12/11/2006, 3:24 pm    Post subject: Reply with quote

2005 phpbb
_________________
Nick 1150
Back to top

Nick

Joined: 09 Sep 2005
Posts: 772
Location: Next to the stereo

PostPosted: 12/11/2006, 3:45 pm    Post subject: Reply with quote

Nick1150 wrote:
2005 phpbb
Do you know what that is as far as the version number? (i.e. 2.0.17?)
_________________
[Bobsnox Forums] [Shannara Forums] [The Smash Syndicate] [LegendofZeldaForums.com]
Apologetics?
Back to top

Nick1150

Joined: 07 Dec 2006
Posts: 13

PostPosted: 12/11/2006, 3:53 pm    Post subject: Reply with quote

How can I see the version number ?

In the administration panel it states Unable to open connection to phpBB Server, reported error is:
Operation now in progress !!

Any other way ?


Ps. I admire your patience mate Wink

Thanks alot
_________________
Nick 1150
Back to top

Nick1150

Joined: 07 Dec 2006
Posts: 13

PostPosted: 12/11/2006, 3:55 pm    Post subject: Reply with quote

Just found it :

Powered by phpBB 2.0.20 © 2001 phpBB Group

sorry Big Wink
_________________
Nick 1150
Back to top

Nick

Joined: 09 Sep 2005
Posts: 772
Location: Next to the stereo

PostPosted: 12/11/2006, 3:56 pm    Post subject: Reply with quote

It should be at the bottom of the admin index below the who is online box. That might be an addition of the newer versions though...

EDIT: Ok.
_________________
[Bobsnox Forums] [Shannara Forums] [The Smash Syndicate] [LegendofZeldaForums.com]
Apologetics?
Back to top

Nick1150

Joined: 07 Dec 2006
Posts: 13

PostPosted: 12/12/2006, 12:40 am    Post subject: Reply with quote

so why the /you does not work ?

any idea ?
_________________
Nick 1150
Back to top

Nick

Joined: 09 Sep 2005
Posts: 772
Location: Next to the stereo

PostPosted: 12/12/2006, 7:23 am    Post subject: Reply with quote

No ideas here...
_________________
[Bobsnox Forums] [Shannara Forums] [The Smash Syndicate] [LegendofZeldaForums.com]
Apologetics?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    CommunityAdmins.com Forum Index -> Technical Issues All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum





Links: Programming Forum

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - phpBBHacks.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - PhotoshopForums.com - MicrosoftBlog.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact - Staff - User Guidelines>

We Support phpBBHacks.com. Forum Buttons by Daz. Privacy Policy. Powered by phpBB © phpBB Group. phpBB SEO.
Copyright © 2005-2008. CommunityAdmins.com, iFroggy Network. All Rights Reserved.