collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 523
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Who's Viewing This Page?  (Read 18820 times)

0 Members and 1 Guest are viewing this topic.

Offline grafitus

  • Comrade
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Who's Viewing This Page?
« on: March 20, 2011, 11:43:34 AM »
This mod allows you to add "who is viewing this page" line for any-page. Like:
Quote
grafitus, thesikaleon, [SiNaN] and 3999 Millions Guests are viewing this page.

If you want this, too, download attached mod package, and install via your Package Manager.

Quote
Version 1.1
! Fixed "Undefined offset: 1" issue.

Version 1.0
+ Initial release
« Last Edit: August 31, 2011, 04:27:18 PM by grafitus »
my modsI don't reply support PMs. Please use support forums.

Offline thesikaleon

  • Semi Newbie
  • *
  • Posts: 27
  • Gender: Male
  • Stonekin FTW
    • BattleForge.GR
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Who's Viewing This Page?
« Reply #1 on: March 20, 2011, 01:37:48 PM »
pls can you post here the custom change in language file cause when I have no English  language I get mixed languages txt

examples
Quote
thesikaleon και 1 επισκέπτης are viewing this page.

Quote
0 Mitglieder und 2 Gäste are viewing this page.

« Last Edit: March 20, 2011, 01:39:56 PM by thesikaleon »

Offline grafitus

  • Comrade
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Who's Viewing This Page?
« Reply #2 on: March 20, 2011, 02:59:18 PM »
"and" and "Guests" are already fetching from SMF language files. Except them there's another one, " are viewing this page."

./Themes/default/languages/SPortal.english(-utf8).php
Code: [Select]
$txt['who_viewing_page'] = ' are viewing this page.';
my modsI don't reply support PMs. Please use support forums.

Offline thesikaleon

  • Semi Newbie
  • *
  • Posts: 27
  • Gender: Male
  • Stonekin FTW
    • BattleForge.GR
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Who's Viewing This Page?
« Reply #3 on: March 20, 2011, 03:43:46 PM »
thanks  :applause:

I just need to translate this "are viewing this page."

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Who's Viewing This Page?
« Reply #4 on: March 21, 2011, 01:59:58 PM »
Looks good. You forgot an extra operation for PortalPages.template.php file:

Code: [Select]
<operation>
<search position="replace"><![CDATA[]]></search>
<add><![CDATA[]]></add>
</operation>
And slowly, you come to realize... It's all as it should be...

Offline thesikaleon

  • Semi Newbie
  • *
  • Posts: 27
  • Gender: Male
  • Stonekin FTW
    • BattleForge.GR
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Who's Viewing This Page?
« Reply #5 on: March 21, 2011, 02:11:24 PM »
works for me without the operation

it makes any difference?

Offline grafitus

  • Comrade
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: Who's Viewing This Page?
« Reply #6 on: March 21, 2011, 02:13:30 PM »
Looks good. You forgot an extra operation for PortalPages.template.php file:

Code: [Select]
<operation>
<search position="replace"><![CDATA[]]></search>
<add><![CDATA[]]></add>
</operation>
Thanks. Fixed. :nervous-happy:

works for me without the operation

it makes any difference?
No. ;)
my modsI don't reply support PMs. Please use support forums.

Offline Inti31

  • Semi Newbie
  • *
  • Posts: 37
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #7 on: September 01, 2011, 03:51:10 AM »
grafitus - your updated package works for me - thx for it... - the error message is gone

just one thing:
when I visit first time a page, I am a guest.  If I refresh the page directly (f5) or click again - mostly I am a guest, too
If I count slowly (1,2,3) and refresh the page,  now my name is shown... - I can live with that...

maybe you will update it again:

./Themes/default/languages/SPortal.german(-utf8).php
Quote
$txt['who_viewing_page'] = ' betrachten gerade diese Seite.';

maybe you could extend it with that I asked for: "count views on pages?"

Topic: http://simpleportal.net/index.php?topic=9384.msg49246#msg49246

./Themes/default/PortalPages.template.php

There are two instances of the code, you need to replace them both to see on two main themes -- Core and Curve:
Code: (Find) [Select]
', $context['SPortal']['page']['title'], '
Code: (Replace) [Select]
', $context['SPortal']['page']['title'], ' (', $txt['read'], ' ', $context['SPortal']['page']['views'], ' ', $txt['times'], ')

thx Inti31

« Last Edit: September 01, 2011, 04:26:58 AM by Inti31 »
my forum

my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #8 on: July 14, 2012, 01:06:14 PM »
Cant seem to get this to work

Offline Old Fossil

  • Beta Tester
  • *
  • Posts: 796
  • Gender: Male
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: Who's Viewing This Page?
« Reply #9 on: July 17, 2012, 10:11:09 PM »
Cant seem to get this to work

Tricky why can't you get it to work?

 D:

Are you using 2.0.2 as it may be that the downloads are for 1.1.x

 :radioactive:
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Offline Oldiesmann

  • Comrade
  • *
  • Posts: 38
  • Gender: Male
    • Archie Comics Fan Forum
  • SMF Version: 2.1
  • SP Version: None
  • EhPortal Version: 1.22
Re: Who's Viewing This Page?
« Reply #10 on: July 17, 2012, 10:27:41 PM »
Looking at the package, it's definitely only for 2.0.
Michael "Oldiesmann" Eshom

Offline Old Fossil

  • Beta Tester
  • *
  • Posts: 796
  • Gender: Male
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: Who's Viewing This Page?
« Reply #11 on: July 17, 2012, 10:32:15 PM »
Looking at the package, it's definitely only for 2.0.

* Old Fossil goes back to sleep
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #12 on: August 02, 2012, 09:30:37 AM »
Sorry for late reply but it does not show who is on the page.

needs an update i think if any one could do it i'm sure its simple i would be very grateful..

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Who's Viewing This Page?
« Reply #13 on: August 03, 2012, 11:31:38 AM »
What is your current SimplePortal version? What exactly do you mean by not being able to get it to work?
And slowly, you come to realize... It's all as it should be...

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #14 on: August 03, 2012, 12:39:31 PM »
Version 2.3.4

when i make a page like a shoutbox page and members visit that page they ain't showing that there on the page like example above..

where it shows the members on page there is nothing
« Last Edit: August 03, 2012, 12:42:51 PM by Tricky »

Offline Old Fossil

  • Beta Tester
  • *
  • Posts: 796
  • Gender: Male
  • SMF Version: 2.0.4
  • SP Version: 2.3.5
Re: Who's Viewing This Page?
« Reply #15 on: August 03, 2012, 05:20:49 PM »
Have you considered updating to 2.3.5?
Daily backups mean less headaches

Block Set Up

I may be no coding expert but I am willing to help where I can.

I eat Spammers for breakfast

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #16 on: August 04, 2012, 01:29:00 PM »
Have you considered updating to 2.3.5?

Im happy with the version iv got on

just wish i could get this to work

Offline Tricky

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Who's Viewing This Page?
« Reply #17 on: August 09, 2012, 08:31:37 AM »
iv waited a few days now i hate bumping but any one??

Offline FireDitto

  • Jr. Member
  • **
  • Posts: 91
  • Gender: Female
    • Second Pass Weyr
  • SMF Version: 2.0.11
  • SP Version: 2.3.5
  • Elkarte Version: None
Re: Who's Viewing This Page?
« Reply #18 on: August 13, 2012, 07:36:40 AM »
SMF; 2.0.2
SP; 2.3.5

I get an error in "./Themes/default/PortalPages.template.php" and because the last modified post is pretty old, I didn't want to make edits in case it was a difference between versions and I killed something.

Is there a newer update or a way to make it work on the versions I'm using?

Thank you!

Offline teos

  • Jr. Member
  • **
  • Posts: 57
  • Gender: Male
    • Cultural Heritage photographer
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Who's Viewing This Page?
« Reply #19 on: January 19, 2013, 08:56:46 AM »
smf 2.0.3  sp 2.3.5  default theme curve

  It's strange that 1.1 version of he mod failed in portalpages.template.php

Compared the original 2.3.5 file with mine, and no difference ..

Missing something ?