SimplePortal
Customization => Blocks and Modifications => Topic started by: grafitus on March 20, 2011, 11:43:34 AM
-
This mod allows you to add "who is viewing this page" line for any-page. Like:
grafitus (http://simpleportal.net/index.php?action=profile;u=288), thesikaleon (http://simpleportal.net/index.php?action=profile;u=17028), [SiNaN] (http://simpleportal.net/index.php?action=profile;u=2) and 3999 Millions Guests are viewing this page.
If you want this, too, download attached mod package, and install via your Package Manager.
Version 1.1
! Fixed "Undefined offset: 1" issue.
Version 1.0
+ Initial release
-
pls can you post here the custom change in language file cause when I have no English language I get mixed languages txt
examples
thesikaleon και 1 επισκέπτης are viewing this page.
0 Mitglieder und 2 Gäste are viewing this page.
-
"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
$txt['who_viewing_page'] = ' are viewing this page.';
-
thanks :applause:
I just need to translate this "are viewing this page."
-
Looks good. You forgot an extra operation for PortalPages.template.php file:
<operation>
<search position="replace"><![CDATA[]]></search>
<add><![CDATA[]]></add>
</operation>
-
works for me without the operation
it makes any difference?
-
Looks good. You forgot an extra operation for PortalPages.template.php file:
<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. ;)
-
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
$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:
', $context['SPortal']['page']['title'], '
', $context['SPortal']['page']['title'], ' (', $txt['read'], ' ', $context['SPortal']['page']['views'], ' ', $txt['times'], ')
thx Inti31
-
Cant seem to get this to work
-
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:
-
Looking at the package, it's definitely only for 2.0.
-
Looking at the package, it's definitely only for 2.0.
/me goes back to sleep
-
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..
-
What is your current SimplePortal version? What exactly do you mean by not being able to get it to work?
-
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
-
Have you considered updating to 2.3.5?
-
Have you considered updating to 2.3.5?
Im happy with the version iv got on
just wish i could get this to work
-
iv waited a few days now i hate bumping but any one??
-
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!
-
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 ?