Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 03-06-2010, 01:11 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not a coder so I really have no clue how easy it may be to remove. I have never seen a modification that did it, nor anyone else ever asking to do it - which may be why it caught my eye. Well, that and the fact you have something wrong with yours already with the bad overlap.
Reply With Quote
  #12  
Old 03-06-2010, 08:26 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can tell you how to remove it but then how would people change subscription folders etc ...
So here is the code edited to show only the subscription block.

Copy and paste it in USERCP_SHELL template. (Save the original code)

HTML Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" <vb:if condition="!is_browser('ie') OR is_browser('ie',8)"> dir="{vb:stylevar textdirection}"</vb:if> lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>

	{vb:raw headinclude}

	<vb:if condition="$vboptions['storecssasfile']">
		<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}usercp-rollup.css" />
	<vb:else />
		<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}attachments.css,forumbits.css,forumdisplay.css,postlist.css,projecttools.css,threadlist.css,usercp.css" />
	</vb:if>

	<vb:if condition="THIS_SCRIPT == 'subscription'"><script type="text/javascript" src="clientscript/vbulletin-threadbit.js?v={vb:raw vboptions.simpleversion}"></script></vb:if>
	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}usercp-ie.css" /><![endif]-->
	<!--[if lt IE 8]>
		<script type="text/javascript" src="clientscript/vbulletin-threadlist-ie.js?v={vb:raw vboptions.simpleversion}"></script>
		<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}threadlist-ie.css" />
	<![endif]-->

	<vb:if condition="$includecss">
		<vb:each from="includecss" value="file">
		<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}{vb:raw file}.css" />
		</vb:each>
	</vb:if>

	<!--[if lt IE 8]>
	<script type="text/javascript" src="clientscript/vbulletin-threadlist-ie.js?v={vb:raw vboptions.simpleversion}"></script>
	<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}threadlist-ie.css" />
	<noscript>
	<style type="text/css">
	.threadinfo { width:59.9%; }
	.threadstats { width:15%; }
	.threadlastpost { width:25%; }
	</style>
	</noscript>
	<![endif]-->

	{vb:raw clientscripts}

	<title>{vb:raw pagetitle} - {vb:raw vboptions.bbtitle}</title>
        {vb:raw headinclude_bottom}
</head>

<body>

{vb:raw header}

{vb:raw navbar}
<vb:comment>
<div id="pagetitle">
	<h1>{vb:raw pagetitle}</h1>
	<p class="description">{vb:raw pagedescription}</p>
</div>
</vb:comment>
<div id="usercp_content">
	<div class="cp_content">
		{vb:raw HTML}
	</div>
</div>

<vb:if condition="THIS_SCRIPT == 'subscription'">
<div id="usercp_nav">
        <div class="block">
                <h2 class="blockhead">{vb:rawphrase my_subscribed_threads}</h2>
                <div class="blockbody">
                        <ul class="blockrow">
				{vb:raw cpnav.subsfolders}
                        </ul>
                        <hr />
                        <ul class="blockrow">
				<li class="{vb:raw navclass.substhreads_listthreads}"><a href="subscription.php?{vb:raw session.sessionurl}do=viewsubscription">{vb:rawphrase list_subscriptions}</a></li>
				<li class="{vb:raw navclass.substhreads_editfolders}"><a href="subscription.php?{vb:raw session.sessionurl}do=editfolders">{vb:rawphrase edit_folders}</a></li>
                        </ul>
                </div>
        </div>
</div>        
<vb:else />
<div id="usercp_nav">
        <vb:if condition="$show['pmmainlink']">
        <div class="block">
                <h2 class="blockhead">{vb:rawphrase my_private_messages}</h2>
                <div class="blockbody">
                        <ul class="blockrow">
				<!-- <li class="{vb:raw navclass.pm_messagelist}"><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li> -->
                                {vb:raw cpnav.pmfolders}
                        </ul>
                        <hr />
                        <ul class="blockrow">
				<li class="{vb:raw navclass.pm_newpm}"><a href="private.php?{vb:raw session.sessionurl}do=newpm"><strong>{vb:rawphrase send_new_message}</strong></a></li>
				<li class="{vb:raw navclass.pm_trackpm}"><a href="private.php?{vb:raw session.sessionurl}do=trackpm">{vb:rawphrase track_messages}</a></li>
				<li class="{vb:raw navclass.pm_editfolders}"><a href="private.php?{vb:raw session.sessionurl}do=editfolders">{vb:rawphrase edit_folders}</a></li>
                        </ul>
                </div>
        </div>
        </vb:if>
        <div class="block">
                <h2 class="blockhead">{vb:rawphrase my_subscribed_threads}</h2>
                <div class="blockbody">
                        <ul class="blockrow">
				{vb:raw cpnav.subsfolders}
                        </ul>
                        <hr />
                        <ul class="blockrow">
				<li class="{vb:raw navclass.substhreads_listthreads}"><a href="subscription.php?{vb:raw session.sessionurl}do=viewsubscription">{vb:rawphrase list_subscriptions}</a></li>
				<li class="{vb:raw navclass.substhreads_editfolders}"><a href="subscription.php?{vb:raw session.sessionurl}do=editfolders">{vb:rawphrase edit_folders}</a></li>
                        </ul>
                </div>
        </div>
        <div class="block">
                <h2 class="blockhead">{vb:rawphrase my_settings}</h2>
                <ul class="blockbody">
                        <li>
                                <h3 class="blocksubhead profile"><img class="usercpimage" src="{vb:stylevar imgdir_siteicons}/profile.png" alt="{vb:rawphrase your_profile}" border="0" /> {vb:rawphrase your_profile}</h3>
                                <ul class="blockrow">
                                        <li class="{vb:raw navclass.profile}"><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
                                        <vb:if condition="$show['profilepiclink']">
                                                <li class="{vb:raw navclass.profilepic}"><a href="profile.php?{vb:raw session.sessionurl}do=editprofilepic">{vb:rawphrase edit_profile_picture}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['avatarlink']">
                                                <li class="{vb:raw navclass.avatar}"><a href="profile.php?{vb:raw session.sessionurl}do=editavatar">{vb:rawphrase edit_avatar}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['siglink']">
                                                <li class="{vb:raw navclass.signature}"><a href="profile.php?{vb:raw session.sessionurl}do=editsignature">{vb:rawphrase edit_signature}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['privacylink']">
                                                <li class="{vb:raw navclass.privacy}"><a href="profile.php?{vb:raw session.sessionurl}do=privacy">{vb:rawphrase profile_privacy}</a></li>
                                        </vb:if>
                                </ul>
                        </li>
                        {vb:raw template_hook.usercp_navbar_profile}
                        <li>
                                <h3 class="blocksubhead"><img class="usercpimage" src="{vb:stylevar imgdir_siteicons}/account.png" alt="{vb:rawphrase my_account}" border="0" /> {vb:rawphrase my_account}</h3>
                                <ul class="blockrow">
                                        <li class="{vb:raw navclass.password}"><a href="profile.php?{vb:raw session.sessionurl}do=editpassword">{vb:rawphrase edit_email_and_password}</a></li>
                                        <li class="{vb:raw navclass.options}"><a href="profile.php?{vb:raw session.sessionurl}do=editoptions">{vb:rawphrase edit_options}</a></li>
                                        <vb:if condition="$show['publicgroups']">
                                                <li class="{vb:raw navclass.usergroups}"><a href="profile.php?{vb:raw session.sessionurl}do=editusergroups">{vb:rawphrase group_memberships}</a></li>
                                        </vb:if>
                                        <li class="{vb:raw navclass.ignorelist}"><a href="profile.php?{vb:raw session.sessionurl}do=ignorelist">{vb:rawphrase edit_ignore_list}</a></li>
                                        <vb:if condition="$show['paidsubscriptions']">
                                                <li class="{vb:raw navclass.paid_subscriptions}"><a href="payments.php{vb:raw session.sessionurl_q}">{vb:rawphrase paid_subscriptions}</a></li>
                                        </vb:if>
                                </ul>
                        </li>
                        {vb:raw template_hook.usercp_navbar_myaccount}
                        <li>
                                <h3 class="blocksubhead"><img class="usercpimage" src="{vb:stylevar imgdir_siteicons}/network.png" alt="{vb:rawphrase networking}" border="0" /> {vb:rawphrase networking}</h3>
                                <ul class="blockrow">
                                    <li class="{vb:raw navclass.buddylist}"><a href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
                                    <li class="{vb:raw navclass.event_reminders}"><a href="calendar.php?{vb:raw session.sessionurl}do=viewreminder">{vb:rawphrase event_reminders}</a></li>
                                </ul>
                        </li>
                        {vb:raw template_hook.usercp_navbar_networking}
                        <li>
                                <h3 class="blocksubhead"><img class="usercpimage" src="{vb:stylevar imgdir_siteicons}/forum.png" alt="{vb:rawphrase forums}" border="0" /> {vb:rawphrase miscellaneous}</h3>
                                <ul class="blockrow">
                                        <vb:if condition="$show['attachments']">
                                                <li class="{vb:raw navclass.attachments}"><a href="profile.php?{vb:raw session.sessionurl}do=editattachments">{vb:rawphrase attachments}</a></li>
                                        </vb:if>
                                </ul>
                        </li>
                        {vb:raw template_hook.usercp_navbar_miscellaneous}
                        <vb:if condition="$show['moderation']">
                        <li>
                                <h3 class="blocksubhead"><img class="usercpimage" src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="{vb:rawphrase moderation}" border="0" /> {vb:rawphrase moderation}</h3>
                                <ul class="blockrow">
                                        <li class="popupmenu {vb:raw navclass.deleteditems}">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase deleted_items}</a>
                                                <ul class="popupbody popuphover">
                                                        <li><a href="moderation.php?{vb:raw session.sessionurl}do=viewthreads&amp;type=deleted">{vb:rawphrase threads}</a></li>
                                                        <li><a href="moderation.php?{vb:raw session.sessionurl}do=viewposts&amp;type=deleted">{vb:rawphrase posts}</a></li>
                                                        <vb:if condition="$show['deletedvms']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewvms&amp;type=deleted">{vb:rawphrase visitor_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['deletedgms']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewgms&amp;type=deleted">{vb:rawphrase group_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['deleteddiscussions']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewdiscussions&amp;type=deleted">{vb:rawphrase group_discussions}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['deletedpcs']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewpcs&amp;type=deleted">{vb:rawphrase picture_comments}</a></li>
                                                        </vb:if>
                                                </ul>
                                        </li>

                                        <vb:if condition="$show['moderateditems']">
                                        <li class="popupmenu {vb:raw navclass.moderateditems}">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase moderated_items}</a>
                                                <ul class="popupbody popuphover">
                                                        <vb:if condition="$show['moderatedposts']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewthreads&amp;type=moderated">{vb:rawphrase threads}</a></li>
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewposts&amp;type=moderated">{vb:rawphrase posts}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['moderatedvms']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewvms&amp;type=moderated">{vb:rawphrase visitor_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['moderatedgms']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewgms&amp;type=moderated">{vb:rawphrase group_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['moderateddiscussions']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewdiscussions&amp;type=moderated">{vb:rawphrase group_discussions}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['moderatedpcs']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewpcs&amp;type=moderated">{vb:rawphrase picture_comments}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['moderatedpics']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewattachments">{vb:rawphrase attachments}</a></li>
                                                        </vb:if>
                                                </ul>
                                        </li>
                                        </vb:if>

                                        <li class="popupmenu {vb:raw navclass.newitems}">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase new_items}</a>
                                                <ul class="popupbody popuphover">
                                                        <vb:if condition="$show['newvms']">
                                                                <li><a href="moderation.php?{vb:raw session.sessionurl}do=viewvms&amp;type=new">{vb:rawphrase visitor_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['newgms']">
                                                                <li><a href="moderation.php?{vb:raw session.sessionurl}do=viewgms&amp;type=new">{vb:rawphrase group_messages}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['newdiscussions']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewdiscussions&amp;type=new">{vb:rawphrase group_discussions}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['newpcs']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewpcs&amp;type=new">{vb:rawphrase picture_comments}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['newpics']">
                                                        	<li><a href="moderation.php?{vb:raw session.sessionurl}do=viewattachments&amp;type=new">{vb:rawphrase attachments}</a></li>
                                                        </vb:if>
                                                </ul>
                                        </li>
                                </ul>
                        </li>
                        </vb:if>
                        {vb:raw template_hook.usercp_navbar_bottom}
                </ul>
        </div>
</div>
</vb:if>
{vb:raw footer}

</body>
</html>

Hope this helps.


.
Reply With Quote
  #13  
Old 03-06-2010, 10:22 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Seven thank you very much for the code! One thing though, what part would I remove to get rid of the "My subscription" block? I don't need people to change folders, I just want the thread portion (so none of the left sidebar). Thank you again for your help!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:15 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.03847 seconds
  • Memory Usage 2,291KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete