vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Mark Forums Read (https://vborg.vbsupport.ru/showthread.php?t=295867)

vimarc 03-07-2013 01:21 PM

Mark Forums Read
 
Hi

I need help in moving Mark Forums Read link to bottom above bottom navigation bar. How i can do this?


www.talkinwebforum.com

findingpeace 03-07-2013 02:37 PM

Hi vimarc,

Remove this line from FORUMHOME :

Code:

<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
You should also delete the pipe after | , so the Forum Leaders link stands alone.

Then, if you want the Mark Forums Read link in the main navbar, just make a new tab link with this URL:

Code:

{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}
If you want it right below the navbar (subnav), open up ACP -> Navigation Options -> Click "Forum", it'll expand showing all of the subnavs (Forum Home, New Posts, etc). Click Edit -> Add Link and add the same link above.

Amaury 03-07-2013 05:00 PM

If you want it in the navigation bar, there's actually already one under the Forum Actions dropdown menu and as a standalone link by default on pages like Activity Stream and New Posts.

vimarc 03-07-2013 05:49 PM

Quote:

Originally Posted by findingpeace (Post 2408525)
Hi vimarc,

Remove this line from FORUMHOME :

Code:

<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
You should also delete the pipe after | , so the Forum Leaders link stands alone.

Then, if you want the Mark Forums Read link in the main navbar, just make a new tab link with this URL:

Code:

{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}
If you want it right below the navbar (subnav), open up ACP -> Navigation Options -> Click "Forum", it'll expand showing all of the subnavs (Forum Home, New Posts, etc). Click Edit -> Add Link and add the same link above.

Hi thanks for reply.. i tried to do but the gap is still there.. pl see bottom of home page above adsense there is huge gap. my motive is to reduce that gap similar to above forum listing.

findingpeace 03-07-2013 06:10 PM

You can just remove the surrounding div tag, including forum leaders link - make sure to backup the template before deleting anything!

vimarc 03-07-2013 06:42 PM

Hi Tried that one also then gap removed completely and ad messed up with forum lists

findingpeace 03-07-2013 06:53 PM

Try just replacing all of this:

Code:

        <div class="navlinks">
        <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
        <vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>
        </div>

with this:

Code:

        <div class="navlinks">
        </div>

or if that leaves a space, this:

Code:

<div> </div>
But really, you should be able to delete it all

vimarc 03-08-2013 01:57 PM

Hi Thanks.. I don't want to delete need to just move to below advertisement..


All times are GMT. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete