mark forum read on simple portal

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

mark forum read on simple portal

Post by neuropass »

guys how can i get the option "mark the forum read" on portal?

It doesn't seem to be working on portal page.

I have this piece of code:

Code: Select all

			<!-- IF not S_IS_BOT and U_MARK_FORUMS -->
			<li><a href="./{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li>
			<!-- ENDIF -->
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: mark forum read on simple portal

Post by cisco007 »

did you add the ./ before or after you found it it didn't work? I don't see why you should put that, because {U_MARK_FORUMS} is already declared in the index.php so you shouldn't have to add that! you are just pointing the link to the wrong place!
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: mark forum read on simple portal

Post by neuropass »

i don't understand what you mean cisco... all i know it's that with the code above in the portal, "mark forum read" isn't working, but the same code in the index page menu, "mark forum read" is working..

So i guess there is some code needed in the portal.php :?
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: mark forum read on simple portal

Post by cisco007 »

I am sure you need to add some other code to the portal.php since that code does not recognized as there being any forums on the portal that is why you do not have it working! does the link even show!?

---EDIT----
found the answer!

open portal.php

Find:

Code: Select all

	'S_WELCOME'                => $s_welcome,
Add after:

Code: Select all

	'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
that should do it!
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: mark forum read on simple portal

Post by neuropass »

cisco007 » 18 May 2010, 02:41 wrote:I am sure you need to add some other code to the portal.php since that code does not recognized as there being any forums on the portal that is why you do not have it working! does the link even show!?

---EDIT----
found the answer!

open portal.php

Find:

Code: Select all

	'S_WELCOME'                => $s_welcome,
Add after:

Code: Select all

	'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
that should do it!

you are the man! it works now!! 8-)
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: mark forum read on simple portal

Post by neuropass »

sorry for the double post.. I know i'm a pain in the b... lol I wanted to know something else.
right now if you click on "marked forum read" on portal, it will work but it redirects you in the index page. would it be possible to be redirected in the portal instead? :?
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: mark forum read on simple portal

Post by cisco007 »

that i do not know!

just a quick question! why do you want a "mark forums read" in the portal anyways? there aren't any forums there! The portal is supposed to be just for info, the index for the forums! Well i know it's your site, but just wondering!
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: mark forum read on simple portal

Post by neuropass »

i know, it's just because my users are in the portal all the time... thanks a lot for your replies. Cisco..
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
Locked