[Request] Who Viewed a Topic

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Mon May 19, 2008 12:27 pm

marian0810 wrote:Try this...

http://forums.nosce-te-ipsum.net/viewtopic.php?f=10&t=8

Don't worry, the install instructions are in English :D
Sounds exactly like what I was looking for , thanks, I will give it a try
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Mon May 19, 2008 4:57 pm

Ok , it worked :D
I have one question though, the mod is designed for ProSilver style, when I tried it on a Subsilver style , well it worked except for the monthly statistics block (which shows the percentage in the same way of the voting system) , so how can I modify the following code to be used in SubSilver :

Code: Select all

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
		<div class="content">
			<h2>{L_TV_TOPIC_VIEW_STATS}</h2>
			<fieldset class="polls">
			<!-- BEGIN stats -->
			<dl class="voted" title="{L_DESCRIPTION}">
				<dt>{stats.MONTH}</dt>
				<dd class="resultbar"><div class="<!-- IF stats.PCT < 20 -->pollbar1<!-- ELSEIF stats.PCT < 40 -->pollbar2<!-- ELSEIF stats.PCT < 60 -->pollbar3<!-- ELSEIF stats.PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{stats.PERCENT};">{stats.RESULT}</div></dd>
				<dd><!-- IF stats.RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{stats.PERCENT}<!-- ENDIF --></dd>
			</dl>
			<!-- END stats -->
			</fieldset>
		</div>
	<span class="corners-bottom"><span></span></span></div>
</div>


Thanks
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Tue May 20, 2008 10:49 am

so ,, anyone can help me with this code ?
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Request] Who Viewed a Topic

Post by marian0810 » Tue May 20, 2008 11:39 am

I don't understand why that wouldn't work, it's still html after all... What happened when you put that file in the subsilver2 directory? Did you get an error?
I'll install the mod later today, maybe I can come up with something.
You and me, time and space. You watch us run!

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Tue May 20, 2008 11:54 am

it worked but the poll functionality for subsilver2 seems to be different that the prosilver one, which resulted in not showing the percentage of viewing for each month ...
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

tommekemc
Registered User
Posts: 457
Joined: Wed May 14, 2008 6:36 pm
Location: Belgium
Contact:

Re: [Request] Who Viewed a Topic

Post by tommekemc » Tue May 20, 2008 5:17 pm

yep, prosilver and subsilver use different coding.
it's hard to convert a prosilver mod to a subsilver one...
my sig
my projects

images deleted because of the 6kb (wtf?) rule...

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Tue May 20, 2008 5:43 pm

tommekemc wrote:yep, prosilver and subsilver use different coding.
it's hard to convert a prosilver mod to a subsilver one...
All I want is to convert a few lines which uses the poll functionality of the prosilver style ti use the subsilver2 one
again here are the lines :

Code: Select all

    <!-- BEGIN stats -->
         <dl class="voted" title="{L_DESCRIPTION}">
            <dt>{stats.MONTH}</dt>
            <dd class="resultbar"><div class="<!-- IF stats.PCT < 20 -->pollbar1<!-- ELSEIF stats.PCT < 40 -->pollbar2<!-- ELSEIF stats.PCT < 60 -->pollbar3<!-- ELSEIF stats.PCT < 80 -->pollbar4<!-- ELSE -->pollbar5<!-- ENDIF -->" style="width:{stats.PERCENT};">{stats.RESULT}</div></dd>
            <dd><!-- IF stats.RESULT == 0 -->{L_NO_VOTES}<!-- ELSE -->{stats.PERCENT}<!-- ENDIF --></dd>
         </dl>
         <!-- END stats -->
I tried to convert it my self but the result was way too ugly :cry: ...
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Request] Who Viewed a Topic

Post by marian0810 » Tue May 20, 2008 8:59 pm

Well... I tried, but I guess my knowledge isn't sufficient either :( I can get it to look decent, but I can't get those pollbars to work. Did you manage that? Who knows, maybe if we combine our efforts :mrgreen:
You and me, time and space. You watch us run!

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Tue May 20, 2008 9:42 pm

I managed to get a good look using the style theme as follow :
Image

but I'm still struggling with the poll , I managed to get it to look like that :
Image

but the correct output (from my style) should be something like this :
Image

the code still needs some cleanup , when I'm finished from it I will post it here...

My biggest problem right now is how to make this option viewable by moderators only, I can't seem to find an answer to this problem, I even posted it in a separate topic : http://www.phpbb.com/community/viewtopi ... 6&t=966625 but no one gave me a solution either ... do you have any Idea on how to do this ?
Last edited by sam_xp on Tue May 20, 2008 10:07 pm, edited 1 time in total.
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Request] Who Viewed a Topic

Post by marian0810 » Tue May 20, 2008 9:48 pm

This is what I did, works for me:

In viewtopic_body.html find:

Code: Select all

<!-- IF S_DISPLAY_TOPIC_VIEWERS -->
and change to:

Code: Select all

 <!-- IF S_DISPLAY_TOPIC_VIEWERS and U_MCP -->
Edit: just read your topic. That's not a problem for me because we only have global moderators who are authorized on all forums. But then again my phpBB3 is still only a testforum without actual members :mrgreen:
You and me, time and space. You watch us run!

Fazid
Registered User
Posts: 8
Joined: Tue May 20, 2008 9:54 pm

Re: [Request] Who Viewed a Topic

Post by Fazid » Tue May 20, 2008 10:16 pm

This mod would be useful for me too, but I have some difficulties in installing it. I edited all required files and copied new ones too. I made a SQL update as well. I met some problems in the last installation point - I mean this DYI section.

Code: Select all

1/ Add the new module in your ACP : System > Modules > Admin Panel > General > General settings.
Don't forget to active this module !
I have no idea what I should do with this. I guess it is about the System -> Module management -> Administrator Control Panel menu and next General -> General Settings category but i don't have "General Settings" category there. In Add module section and Choose Module field I have no modules associated with "Who vieved a Topic" mod. So I'm stuck and I need your help ;)

sam_xp
Registered User
Posts: 213
Joined: Fri Feb 08, 2008 8:05 pm
Location: Lebanon
Contact:

Re: [Request] Who Viewed a Topic

Post by sam_xp » Tue May 20, 2008 10:51 pm

Fazid wrote:I have no idea what I should do with this. I guess it is about the System -> Module management -> Administrator Control Panel menu and next General -> General Settings category but i don't have "General Settings" category there.
just add it to the general tab under forum settings (or any other place), this mod is written originally in french , and then translated to english thats why the author didn't include the exact location I guess ...
In Add module section and Choose Module field I have no modules associated with "Who vieved a Topic" mod.
I didn't understand what you meant by that ? I translated that mod to arabic , and I found it without a problem when I added it to my board, the module is intended only to activate/deactivate the mod, so you can add it where ever you want I guess without a problem ...
Image
مجتمع محبي الكوميكس الناطقين بالعربية http://arabcomics.net

Fazid
Registered User
Posts: 8
Joined: Tue May 20, 2008 9:54 pm

Re: [Request] Who Viewed a Topic

Post by Fazid » Tue May 20, 2008 11:04 pm

I mean that when I want to add this module to my ACP I can't find it on the module's list. But maybe I'm making something wrong... Please, give me some tips what I should do after editing and copying all required files - so maybe I will be able to do the same on my forum.

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Request] Who Viewed a Topic

Post by marian0810 » Wed May 21, 2008 12:12 am

There's a button "Add a module" on that page with a dropdownlist. The module is in that list and it's called "Settings for topic viewers statistics".
You and me, time and space. You watch us run!

wm009
Registered User
Posts: 7
Joined: Tue May 20, 2008 3:10 pm

Re: [Request] Who Viewed a Topic

Post by wm009 » Wed May 21, 2008 12:48 am

Hey, I just installed this, everything but the mysql stuff. I don't really understand what it means.

All it says is SQL - Select all
CREATE TABLE phpbb_topics_viewers (
topic_id mediumint(8) DEFAULT '0' NOT NULL,
user_id mediumint(8) DEFAULT '0' NOT NULL,
date int(11) DEFAULT '0' NOT NULL
);

INSERT INTO `phpbb_config` VALUES ('tv_enable', '1', 0);
What do I do?

Locked

Return to “[3.0.x] MOD Requests”