Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"View posts since last visit" request
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback
View previous topic :: View next topic  
Author Message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Fri Sep 06, 2002 11:10 pm    Post subject: "View posts since last visit" request Reply with quote

Would it be unmaintainable to add a "Mark all forums read" link/button to the pages viewed after clicking on "View posts since last visit?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Scandium
Retired Dev
Retired Dev


Joined: 22 Apr 2002
Posts: 340
Location: Germany

PostPosted: Sun Sep 08, 2002 7:35 pm    Post subject: Reply with quote

*nod*

what a great idea :)
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun Sep 08, 2002 7:51 pm    Post subject: Reply with quote

Submit a patch and I'll look at it. :) Off the top of my head, my guess is you'd need to modify /templates/search_body.tpl to include the necessary link.

As an alternative, you could just bookmark the following link:

https://forums.gentoo.org/index.php?mark=forums

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Tue Sep 10, 2002 4:16 am    Post subject: Reply with quote

I find it a bit amusing tha Gentoo Forums use phpbb and there is no ebuild for it ;)
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Scandium
Retired Dev
Retired Dev


Joined: 22 Apr 2002
Posts: 340
Location: Germany

PostPosted: Tue Sep 10, 2002 12:03 pm    Post subject: Reply with quote

kanuslupus wrote:
I find it a bit amusing tha Gentoo Forums use phpbb and there is no ebuild for it ;)


In general I heavily doubt the usefullness of things like phpbb, postnuke, phpnuke etc. becoming ebuild'ed...

You only need to extract them into your webhome and open the setup script in your browser...However, I read things like PHPNuke etc. won't get ebuild'ed and that's good ;)
Back to top
View user's profile Send private message
dioxmat
Bodhisattva
Bodhisattva


Joined: 04 May 2002
Posts: 709
Location: /home/mat

PostPosted: Tue Sep 10, 2002 12:21 pm    Post subject: Reply with quote

kanusplusplus : where do you want the link to be *exactly* ?
I can work on a patch if you tell me what is exaclty needed...
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Tue Sep 10, 2002 5:05 pm    Post subject: Reply with quote

Sent a PM.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Scandium
Retired Dev
Retired Dev


Joined: 22 Apr 2002
Posts: 340
Location: Germany

PostPosted: Tue Sep 10, 2002 11:27 pm    Post subject: Reply with quote

I am the only non-moderator posting in this thread...*feeling strange* :)
Back to top
View user's profile Send private message
Chickpea
l33t
l33t


Joined: 03 Jun 2002
Posts: 846
Location: Vancouver WA

PostPosted: Tue Sep 10, 2002 11:34 pm    Post subject: Reply with quote

I was thinking the same thing the other day. It would be very nice to mark "all forums read" much easier than clicking each forum.

Now, Scandium, you wont be the only non-moderator posting to this thread :) feel less strange yet?

C
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Sep 11, 2002 12:05 am    Post subject: Reply with quote

Chickpea wrote:
I was thinking the same thing the other day. It would be very nice to mark "all forums read" much easier than clicking each forum.

just to clarify -- you can currently do that on the main page. There's a link in the bottom left corner of the home page that says "Mark all forums read". That link, however, is not on the "view posts since last visit" page, which I believe is the one that kanuslupus was referring to.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Wed Sep 11, 2002 12:12 am    Post subject: Reply with quote

klieber wrote:
That link, however, is not on the "view posts since last visit" page, which I believe is the one that kanuslupus was referring to.
You are correct sir. [/Ed McMahon]
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Sep 11, 2002 12:15 am    Post subject: Reply with quote

A low-tech solution to be sure, but could you just bookmark https://forums.gentoo.org/index.php?mark=forums?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Wed Sep 11, 2002 12:17 am    Post subject: Reply with quote

*cough*
klieber wrote:
As an alternative, you could just bookmark the following link:

https://forums.gentoo.org/index.php?mark=forums

--kurt
*cough*

I'd prefer the 'high-tech' solution if it proves to not be a hassle to maintain.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Sep 11, 2002 12:42 am    Post subject: Reply with quote

rac wrote:
A low-tech solution to be sure, but could you just bookmark https://forums.gentoo.org/index.php?mark=forums?

As an attempt to atone for that rather pointless effort,
Code:
--- includes/page_header.php.orig   Sat Aug 17 14:10:11 2002
+++ includes/page_header.php   Wed Sep 11 09:42:02 2002
@@ -349,6 +349,7 @@
    'L_LOG_ME_IN' => $lang['Log_me_in'],
    'L_AUTO_LOGIN' => $lang['Log_me_in'],
    'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
+   'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
    'L_REGISTER' => $lang['Register'],
    'L_PROFILE' => $lang['Profile'],
    'L_SEARCH' => $lang['Search'],
@@ -371,6 +372,7 @@
    'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
    'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),
    'U_INDEX' => append_sid('index.'.$phpEx),
+   'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"),
    'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
    'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
    'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
--- templates/subSilver/search_results_topics.tpl.orig   Wed Sep 11 09:32:21 2002
+++ templates/subSilver/search_results_topics.tpl   Wed Sep 11 09:33:25 2002
@@ -11,6 +11,12 @@
   </tr>
 </table>
 
+<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
+  <tr>
+   <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
+  </tr>
+</table>
+
 <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
   <tr>
    <th width="4%" height="25" class="thCornerL" nowrap="nowrap">&nbsp;</th>
...this places it in the same style as the link on the index page, directly under the other index link on the search result page. Note that this makes this link appear on all search result pages where threads are returned, not just the newposts.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Wed Sep 11, 2002 1:22 am    Post subject: Reply with quote

Wow. That looks alot more complicated than I'd expected.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
slais-sysweb
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 221
Location: London

PostPosted: Wed Sep 11, 2002 3:00 pm    Post subject: Reply with quote

Why do you need this? If you logon then go view posts since last vist, logoff and logon again view posts since last vist will be clear.
_________________
--
djc
sysweb SLAIS UCL
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Sep 11, 2002 3:03 pm    Post subject: Reply with quote

slais-sysweb wrote:
Why do you need this? If you logon then go view posts since last vist, logoff and logon again view posts since last vist will be clear.

I think it's more of an ease-of-use thing.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Wed Sep 11, 2002 4:53 pm    Post subject: Reply with quote

Exactly. I'd like a feature, not a hack or workaround.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Sep 12, 2002 1:36 am    Post subject: Reply with quote

I haven't forgotten about the patch -- I just got caught up in my httptunnel init script tonight along with trying to figure out why I couldn't get httptunnel to work in the first place (duh, because you had the port blocked on the firewall you idiot...) So, I'll get to this tomorrow night...

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Sep 12, 2002 2:04 am    Post subject: Reply with quote

OK, hang on a bit, because I may rework it to make it look like kanuslupus wants it to. BTW, kanuslupus, could you post your opinion about how it should look to this thread?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Thu Sep 12, 2002 3:03 am    Post subject: Reply with quote

Here's what I sent to dioxmat for what I was wanting to achieve.

See this link for reference. You should see "Search found x matches". Under that, "Gentoo Forums Forum Index". I was going to try to position the "Mark all forums read" link opposite "Gentoo Forums Forum Index". As an example, where "View unanswered posts" is on the main page. In addition, I was going to add one to the bottom of the page on the left side (Under "Page 1 of x" if that is visible). Does that make sense?

The basic idea being to get the "Mark all forums read" link in 2 convenient locations... 1 at the top, the other near the bottom. Those two locations just seemed the best to me.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Sep 12, 2002 5:25 am    Post subject: Reply with quote

OK, here's version 2, which was emailed to klieber as well:
Code:
--- includes/page_header.php.orig       Sat Aug 17 14:10:11 2002
+++ includes/page_header.php    Wed Sep 11 09:42:02 2002
@@ -349,6 +349,7 @@
        'L_LOG_ME_IN' => $lang['Log_me_in'],
        'L_AUTO_LOGIN' => $lang['Log_me_in'],
        'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
+       'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
        'L_REGISTER' => $lang['Register'],
        'L_PROFILE' => $lang['Profile'],
        'L_SEARCH' => $lang['Search'],
@@ -371,6 +372,7 @@
        'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
        'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),
        'U_INDEX' => append_sid('index.'.$phpEx),
+       'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"),
        'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
        'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
        'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
--- templates/subSilver/search_results_topics.tpl.orig  Wed Sep 11 09:32:21 2002
+++ templates/subSilver/search_results_topics.tpl       Thu Sep 12 14:19:47 2002
@@ -8,6 +8,7 @@
 <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
        <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_IN
DEX}</a></span></td>
+       <td align="right"><span class="gensmall"><a href="{U_MARK_READ}" class="
gensmall">{L_MARK_FORUMS_READ}</a></span></td>
   </tr>
 </table>
 
@@ -41,6 +42,9 @@
   <tr>
        <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td
>
        <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINA
TION}</span><br /><span class="gensmall">{S_TIMEZONE}</span></td>
+  </tr>
+  <tr>
+       <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="g
ensmall">{L_MARK_FORUMS_READ}</a></span></td>
   </tr>
 </table>

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Sep 16, 2002 1:10 pm    Post subject: Reply with quote

BTW, this should be implemented now, in case you hadn't already figured that out. :)

Thanks to rac for doing the grunt work.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Mon Sep 16, 2002 3:14 pm    Post subject: Reply with quote

Oh, well, nevermind. I don't need it anymore, I just bookmarked it. :lol:

Just kidding. Thanks all.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20510

PostPosted: Mon Sep 16, 2002 4:07 pm    Post subject: Reply with quote

Just had to add that I really, like this addition.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Forums Feedback All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum