Welcome, Guest. Please Login or Register.
November 24, 2017, 10:55:27 PM
Home Help Search Login 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  |  Topic: whoview « previous next »
Pages: [1] Reply Ignore Print
Author Topic: whoview  (Read 8889 times)
daddywolfe
Noobie
*
Posts: 14


Where's a llama!


whoview
« on: February 11, 2004, 08:18:21 PM »
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


WWW
Re:whoview
« Reply #1 on: February 11, 2004, 08:49:42 PM »
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 11, 2004, 09:06:05 PM »
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


WWW
Re:whoview
« Reply #3 on: February 11, 2004, 11:09:44 PM »
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, 12: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 09, 2004, 11:27:41 PM »
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


WWW
Re:whoview
« Reply #6 on: March 10, 2004, 04: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, 02: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


WWW
Re:whoview
« Reply #8 on: March 10, 2004, 08:47:46 PM »
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


WWW
Re:whoview
« Reply #9 on: March 10, 2004, 08:52:14 PM »
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 10, 2004, 09:26:33 PM »
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 10, 2004, 09:45:47 PM by daddywolfe » Logged
daddywolfe
Noobie
*
Posts: 14


Where's a llama!


Re:whoview
« Reply #11 on: March 10, 2004, 11:34:10 PM »
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:

Code: [Select]
$Text = preg_replace("/whoview/i", $realname, $Text);
right after the statement:

Code: [Select]
/* 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, 03:58:24 PM by daddywolfe » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Topic: 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.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.099 seconds with 19 queries.