Page Index Toggle Pages: 1 2 [3] 4 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) [2.3.1] Online Activity 4 YaBB 2.3.1 (Read 2246 times)
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #30 - Mar 4th, 2009 at 12:05pm
Print Post  
D0T-C0M wrote on Mar 4th, 2009 at 4:18am:
In your next update can you please add this to your activity list for the shoutbox?

http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?action=write_shouts

It presently is marked as undefined


Under normal conditions it's extremely easy to add a new action description to the list. You just add a new element to the '%activitytxt' in BoardIndex.pl where 'key' is the action and 'value' is the description. But for the Shoutbox it's different because the content comes from external pages performed in a iframe. The user must be listed as visiting the Board Index page doing a shout.

Try this:

In "BoardIndex.lng" find:
Code
Select All
'unknown' => 'Undefined', 


and add after:
Code
Select All
'shouting' => 'shouting', 



Then in "BoardIndex.pl" find:
Code
Select All
				elsif($theplace =~ /(\?|\;)(action)\=(.+?)(\/|\;|$)/) {
					$thetext = $2;
					$thepage = $3;
					$thisname = $activitytxt{$thepage};
				} 


and replace it with:
Code
Select All
				elsif($theplace =~ /(\?|\;)(action)\=(.+?)(\/|\;|$)/) {
					$thetext = $2;
					$thepage = $3;
					if($thepage eq "write_shouts") {
						$thetext = "";
						$theplace = "";
						$thisname = $activitytxt{'boardindex'};
						$addname = qq~ $activitytxt{'shouting'}~;
					}
					else {
						$thisname = $activitytxt{$thepage};
					}
				} 

  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #31 - Mar 4th, 2009 at 2:07pm
Print Post  
Thanks for the fast response

I tried that and it only shows
• Darryl Hayes is visiting "Board Index"

Also the shoutbox has the option of opening a completely new page independant of the boardindex called
http://nbvrl.servebeer.com/~nascar/cgi-bin/ShoutDisplay.pl?showall=1


This mod like the shoutbox would be great if it used AJAX to communicate directly with the server as apposed to having to refresh it to see the changes.
  
Back to top
 
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #32 - Mar 4th, 2009 at 4:44pm
Print Post  
If it changed from "Undefined" to "Board Index" it pretty much looks like you did something wrong with the language hash element. I do not have shoutbox installed, but when i add "action=write_shouts" to the address field in my browser i get this in the list:

  • cd is visiting the "Board Index" shouting.
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #33 - Mar 4th, 2009 at 6:47pm
Print Post  
Ok thanks I'll review the code. I appreciate the help
  
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #34 - Mar 4th, 2009 at 7:54pm
Print Post  
I hope you don't find me annoying by posting the links that turn up as undefined but I'm only trying to make this mod the best it can be.  I think this one is built into YaBB.

http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?action=newsindex;type=java
  
Back to top
 
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #35 - Mar 4th, 2009 at 9:36pm
Print Post  
D0T-C0M wrote on Mar 4th, 2009 at 7:54pm:

Not in my (clean) version of SubList.pl
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #36 - Mar 4th, 2009 at 11:44pm
Print Post  
I thought the newsindex feature was standard in the new YaBB.  I know I'm using it to post a specific boards to an external website.
  
Back to top
 
IP Logged
 
smith21
Full Member
***
Offline


I love YaBB 2.1

Posts: 130
Location: North East Of Eangland
Joined: Feb 19th, 2006
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #37 - Mar 5th, 2009 at 1:02pm
Print Post  
when viewing as a member / guest you still get the Online Activity box which is empty and it is set to only admin and Gmod in advanced settings. How or what needs doing so the box is not shown to member / guest.
  


Back to top
WWW  
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #38 - Mar 5th, 2009 at 2:39pm
Print Post  
smith21 wrote on Mar 5th, 2009 at 1:02pm:
when viewing as a member / guest you still get the Online Activity box which is empty and it is set to only admin and Gmod in advanced settings. How or what needs doing so the box is not shown to member / guest.

Are you sure you uploaded the modded "BoardIndex.template"?
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #39 - Mar 5th, 2009 at 8:54pm
Print Post  
Here's another showing undefined.  This one I'm positive its in YaBB.

http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?action=myprofileOptions;usern...
  
Back to top
 
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #40 - Mar 5th, 2009 at 9:03pm
Print Post  
D0T-C0M wrote on Mar 5th, 2009 at 8:54pm:
Here's another showing undefined.  This one I'm positive its in YaBB.

http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?action=myprofileOptions;usern...

Yep - as mentioned in a earlier post this is still a early beta. I'll promise you that all 'actions' will be added in the final release. Guess some will be shown in a more general form - like some of the profile settings - there should be a little privacy after all.  Wink
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #41 - Mar 5th, 2009 at 9:22pm
Print Post  
ah ok , I will stop posting them here , I thought it would help you out by posting the ones I found undefined.   Smiley
  
Back to top
 
IP Logged
 
smith21
Full Member
***
Offline


I love YaBB 2.1

Posts: 130
Location: North East Of Eangland
Joined: Feb 19th, 2006
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #42 - Mar 6th, 2009 at 10:01am
Print Post  
Carsten wrote on Mar 5th, 2009 at 2:39pm:
smith21 wrote on Mar 5th, 2009 at 1:02pm:
when viewing as a member / guest you still get the Online Activity box which is empty and it is set to only admin and Gmod in advanced settings. How or what needs doing so the box is not shown to member / guest.

Are you sure you uploaded the modded "BoardIndex.template"?


Must have missed that one out somewhere along the lines?? Thanks working as should now. Great mod and FREE  Grin

Mar 6th, 2009 at 10:24am * smith21  Edited:
I think I know what went wrong I moved the mod up in the board index and left the highlighted section where it was as I did not realise it was to do with the mod LOL

Code
Select All
~;
if($enableactivlog == 1 || ($enableactivlog == 2 && !$iamguest) || ($enableactivlog == 3 && ($iamgmod || $iamadmin)) || ($enableactivlog == 4 && $iamadmin)) {
$boardindex_template .= qq~
<table class="bordercolor" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
	<td class="tabtitle" width="1%" height="25" valign="middle">
		<a name="activlog">&nbsp;</a>
	</td>
	<td class="tabtitle" width="99%" height="25" valign="middle">
		<span class="ie6alpha">$activitytxt{'activity'}</span>
	</td>
</tr>
</table>
<table class="bordercolor" cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
	<td class="windowbg" width="5%" valign="middle" align="center">
		<img src="$imagesdir/online.gif" border="0" alt="" />
	</td>
	<td class="windowbg2" valign="top">
		{yabb activity}
	</td>
</tr>
</table> 

  


Back to top
WWW  
IP Logged
 
Derek Bullock
Full Member
***
Offline


I love Camp Oven Cooking

Posts: 184
Location: Brisbane
Joined: Nov 9th, 2007
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #43 - Mar 6th, 2009 at 10:09am
Print Post  
smith21 wrote on Mar 6th, 2009 at 10:01am:
Great mod and FREEGrin


Grin Grin Grin Grin Grin Grin
  

Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: [2.3.1] Online Activity 4 YaBB 2.3.1
Reply #44 - Mar 7th, 2009 at 12:29am
Print Post  
German-Mods for 022a attached.

Greetings
Mick
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 
Send TopicPrint