Thread: Major Additions - vBSocial.com Wall 2.5
View Single Post
  #121  
Old 08-20-2013, 03:31 PM
daveaite's Avatar
daveaite daveaite is offline
 
Join Date: Jul 2009
Location: Florida
Posts: 1,890
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DGrey2011 View Post
@daveaite
I have tried installing it again and overwriting the .xml several times, but still the status editor doesn't show up at all. After I overwrote it, I even got an error that the user doesn't exist each time when I tried to go on a profile.
Spent a few hours looking into why. Sometimes the template status_whats_on_box_profile is not registering. Copy the contents from that template into memberinfo template right below navbar hook:

So do this:

Open memberinfo template, Find {vb:raw navbar}

and paste below the template:

Code:
		{vb:cssfile status.css}
		<style>
		.post {
			background-image: url({vb:stylevar imgdir_misc}/status/facebook_back.png);
			background-repeat: no-repeat;
			background-size: auto;
			background-position: -1px -441px;
			background-color: #5B74A8;
			border-color: #29447E #29447E #1A356E;
			color:white;
			padding:3px;
		}
		.cancel {
			background-image: url({vb:stylevar imgdir_misc}/status/facebook_back.png);
			background-repeat: no-repeat;
			background-size: auto;
			background-position: -1px -343px;
			background-color: #EEE;
			-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
			padding:3px;
		}
		.post:hover {
			background-repeat: no-repeat;
			background-size: auto;
			background-position: -1px -441px;
			background-color: #5B74A8;
			border-color: #29447E #29447E #1A356E;
			color:white;
			padding:3px;
		}
		</style>
		<script>
		function statussubmit (status){
			if (status == '' || status == "{vb:rawphrase whatsonyourmind}") 
			{
				  alert('{vb:rawphrase status_blank}');
				  return false;
			}
		}
		</script>
<form action="status.php" method="post" onsubmit="return statussubmit(this.whatsonyourmind.value)" enctype="multipart/form-data">
<div>
	<div style="float:left;width:97%; position:relative;">
		<div class="blockbody whatsonbox" style="width:100%; position:relative;float:left;margin-top:10px;border:10px solid rgba(106, 131, 163, .7);border-radius:8px;-moz-border-radius:8px;-webkit-border-radius: 8px;padding:10px;">
			<ul class="share_type" id="share_type" style="position:relative;width:90%;">
				<li>
					<a href="javascript:type_post('status');" class="strong" id="_status"><i class="status_item"></i>Status</a>
				</li>
				<!--<li>
					<a href="javascript:void(0);"><i class="photo_item"></i>Photo</a>
				</li>-->
				<li>
					<a href="javascript:type_post('place');" id="_place"><i class="place_item"></i>Place</a>
				</li>
				<li>
					<a href="javascript:type_post('event');" id="_event"><i class="life_item"></i>Life Event</a>
				</li>
				<li>
					<a href="javascript:type_post('poll');" id="_poll"><i class="poll_item"></i>Poll</a>
				</li>
				<li>
					<a href="javascript:type_post('link');" id="_link"><i class="link_item"></i>Link</a>
				</li>
				<li>
					<a href="javascript:type_post('note', {vb:raw userid}, '{vb:raw username}');" id="_note"><i class="note_item"></i>Note</a>
				</li>
				<li>
					<a href="javascript:type_post('announcement');" id="_announcement"><i class="announcement_item"></i>Announcement</a>
				</li>
			</ul>

		<div class="setting_popup" style="float:right;margin-top:2px;">
			<ul class="floatcontainer">
				<li class="popupmenu" style="float:left;margin-left:10px;">
					<a href="javascript:void(0);" onclick="write_langmenu(event);" class="popupctrl button">Language for post</a>
					<ul class="popupbody popuphover" id="write_lang_menu" onclick="lang_inner_click(event);">
						<li><label><input type="radio" name="write_lang_check" value="1" checked="checked" />English (US)</label></li>
						<li><label><input type="radio" name="write_lang_check" value="2" />Hispano</label></li>
						<li><label><input type="radio" name="write_lang_check" value="3" />Italiano</label></li>
						<li><label><input type="radio" name="write_lang_check" value="4" />Deutsch</label></li>
						<li><label><input type="radio" name="write_lang_check" value="5" />fran?ais</label></li>
						<li><label><input type="radio" name="write_lang_check" value="6" />Rom?n</label></li>
					</ul>
				</li>
			</ul>
		</div>

		    <table id="whatsonbox" width="100%">
		       <!--<form action="status.php" method="post" onsubmit="return statussubmit(this.whatsonyourmind.value)" enctype="multipart/form-data">-->
		       <tbody>
		       <tr><textarea class="textInput" name="whatsonyourmind" style="position:relative;width:100%;border:1px solid #B4B9BD;border-bottom:none;margin-top:10px;" maxlength="{vb:raw vboptions.max_char_per_status}" id="whatsonyourmind" rows="3" placeholder="{vb:rawphrase whatsonyourmind}"></textarea></tr>
		       <tr id="poll_wrapper">
		       </tr>
		       <tr>
			<th class="blocksubhead">
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="poststatus" />
			<input type="hidden" name="userid" value="{vb:raw userid}" />
			<input type="hidden" name="from_profile_page" value="1" />
			<input type="hidden" name="type_status" id="type_status" value="status" />
			<input type="hidden" name="site_url" id="site_url" value="" />

		          <!-- buttons -->
			<div style="float:right;">
			<input type="button" value="{vb:rawphrase add_photo}" class="button" style="padding-right:10px;padding-left:10px;" onclick="javascript: this.style.display = 'none'; document.getElementById('addphoto_profile').style.display = 'inline-block'; document.getElementById('addphoto_profile').click();"/>

			<input type="file" name="addphoto" id="addphoto_profile" style="display: none; width:auto;" />

		            <select name="whocanview" class="button">
		              <option value="2">{vb:rawphrase status_group}</option>
		              <option value="1">{vb:rawphrase status_friends}</option>
		              <option value="0" selected="selected">{vb:rawphrase status_public}</option>
		            </select>
		            <input type="submit" class="button post" style="padding-right:10px;padding-left:10px;" value="{vb:rawphrase status_post}"> 
		          </div>

		        </div>
		       </th>
		       </tr>
		        </tbody>
		        <!--</form>-->
		    </table>
		</div>
	</div>
</div>
</form>
<div class="clear"></div>
or you can paste below the template variable:
Code:
{vb:raw status_whats_on_box_profile}
But this does not always work.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01505 seconds
  • Memory Usage 1,802KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete