vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Members who have visited today. (https://vborg.vbsupport.ru/showthread.php?t=196458)

Paul M 04-13-2013 09:21 PM

Its not needed in 4.2, the feature is part of the core software since 4.2.0.

rockerzteam 09-08-2016 06:50 PM

Sorry to bump a old thread but how do i remove the collapse feature....


Code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
I know the code is different for the part I want to edit...

SamirDarji 09-08-2016 11:37 PM

Quote:

Originally Posted by rockerzteam (Post 2575702)
Sorry to bump a old thread but how do i remove the collapse feature....


Code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
I know the code is different for the part I want to edit...

I believe you can simply select an option to make a modele collapasble or not in the vbadvanced control panel.

rockerzteam 09-09-2016 01:32 AM

Quote:

Originally Posted by SamirDarji (Post 2575718)
I believe you can simply select an option to make a module collapsible or not in the vbadvanced control panel.

Thanks for your reply but this is in vbulletin itself. I have vbadvanced already setup to disable collapse.

blind-eddie 09-09-2016 09:37 AM

To remove the collapse feature for this modification,
Search in templates for: Display_Visitors
Below is the Display_Visitors, you will see where I commented out the collapse feature. Do the same or replace your template code with this one.

Code:

<!-- $data_wvt[title] -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <!--<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a> -->
                        $whotitle
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
        <tr>
                <td class="alt2"><a href="memberlist.php"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
        </tr>
</tbody>
<!-- PEMDATA38: $data_wvt[title] : Version = $data_wvt[version] : Revision = $data_wvt[cvs] -->


rockerzteam 09-09-2016 02:40 PM

Quote:

Originally Posted by blind-eddie (Post 2575730)
To remove the collapse feature for this modification,
Search in templates for: Display_Visitors
Below is the Display_Visitors, you will see where I commented out the collapse feature. Do the same or replace your template code with this one.

Code:

<!-- $data_wvt[title] -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <!--<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a> -->
                        $whotitle
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
        <tr>
                <td class="alt2"><a href="memberlist.php"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="" border="0" /></a></td>
                <td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
        </tr>
</tbody>
<!-- PEMDATA38: $data_wvt[title] : Version = $data_wvt[version] : Revision = $data_wvt[cvs] -->


Amazing like always. Thanks a million!!!!:D

Paul M 09-09-2016 06:20 PM

JFYI, if someone has theirs set to collapsed, you have removed their ability to uncollapse it.

(Although they could logout & login to reset it I guess, as its a just a cookie).

I'm also curious why you would want to remove the option.

blind-eddie 09-09-2016 11:53 PM

Good point Paul.


All times are GMT. The time now is 07:52 AM.

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.01533 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete