Welcome, Guest. Please Login or Register.
November 21, 2024, 05:11:43 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  whoview « previous next »
Pages: [1] Reply Ignore Print
Author Topic: whoview  (Read 30228 times)
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

whoview
« on: February 12, 2004, 01:18:21 AM »
Reply with quote

Does anyone know of a whoview mod for the yabbse board?
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:whoview
« Reply #1 on: February 12, 2004, 01:49:42 AM »
Reply with quote

You will want to look for the Who's Online mod.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #2 on: February 12, 2004, 02:06:05 AM »
Reply with quote

I was actually looking for a mod that will put the viewing member's name in a post/msg in place of something like [whoview]
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:whoview
« Reply #3 on: February 12, 2004, 04:09:44 AM »
Reply with quote

You should post this in Mod Ideas or in Other Help.  You should only start a new topic in Completed Mods if you are posting a new mod.  If you post in one of those other boards, someone should be able to help you get this figured out.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #4 on: February 12, 2004, 05:14:58 AM »
Reply with quote

oops?  Sorry, will do.  That, or I guess I will write one myself for it, and give a link to it.
Logged
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #5 on: March 10, 2004, 04:27:41 AM »
Reply with quote

Okay, I thought I had whoview working, but for some reason after it worked the first few times, it started giving me BoardIndex errors.  Back to the drawing board again, to see what I messed up.  What I really need is a map of the code for the board.  I think I may have left something out, since I am coding it all by hand.
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:whoview
« Reply #6 on: March 10, 2004, 09:43:58 AM »
Reply with quote

I'm not sure what exactly you are trying to get it to do, but have you looked at the User Browsering addon for the Who's Online mod?  It can show who is browsing each board and each thread from inside the thread, if that is what you mean.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #7 on: March 10, 2004, 07:35:25 PM »
Reply with quote

Shadow, the mod I am working on adds a tag, [whoview], to the post which will display the name of the user viewing the post.  Thus:

Welcome [whoview] to the board.

becomes:

Welcome Shadow to the board.
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:whoview
« Reply #8 on: March 11, 2004, 01:47:46 AM »
Reply with quote

Why don't you just create a new yabb tag in subs?  It is really easy to do.  I.e. <yabb whoview>

I'll post an example in a little while.  I have to go eat dinner and take care of a few things first.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:whoview
« Reply #9 on: March 11, 2004, 01:52:14 AM »
Reply with quote

Okay, I probably won't have time to do much to help you tonight.  Maybe tomorrow if I get time.

Anyway, look at Subs.php where various tags are defined... such as <yabb menu> which you can find if you look for "yymenu" in Subs.php and you should be able to get a good idea of what to do.

Sorry it took me so long to understand what you meant.  Sometimes it is hard to describe things on this medium...
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #10 on: March 11, 2004, 02:26:33 AM »
Reply with quote

That's what I did the first time, and it worked fine at first, then the board started giving me boardindex error in line 147.  I didn't see anything that could have remotely caused the problem, but I restored the original subs.php file anyway.
I'll dig up my first try and post it here for you tonight, so maybe somebody can tell me what the cause is.  Thanks.
« Last Edit: March 11, 2004, 02:45:47 AM by daddywolfe » Logged
daddywolfe
Noobie
*
Posts: 14


Where's a llama!

Re:whoview
« Reply #11 on: March 11, 2004, 04:34:10 AM »
Reply with quote

I thought of an easy way of doing it, but not the prefered method by far.  Just making a simple change to the word censor in the Load.php file, adding in the $realname global and the statement:

$Text = preg_replace("/whoview/i", $realname, $Text);

right after the statement:

/* Replace all vulgar word with respective proper words
      Substring or whole words */
function CensorTxt(&$Text)
{
   global $censored, $modSettings, $realname;

   $Text = preg_replace("/$whoview/i", $realname, $Text);
   if (!isset($censored))
      LoadCensorList();

   foreach ($censored as $vulgar => $proper)
   {
« Last Edit: March 11, 2004, 08:58:24 PM by daddywolfe » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  whoview « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.023 seconds with 21 queries.