vb.org frist post

pudz

New Member
samplesncrdsfmfmadf7.png


that thingy? above it looks like the chief post. but i'm looking for the exact one.. that looklikes the first post in vb.org? anyone? thanks..

Reply To Visitor Message (Profile Comments) - vBulletin.org Forum
Private Message Notification! - vBulletin.org Forum
Veoh.com BB Code - vBulletin.org Forum
Simple CSS rounded corners for your forum [no images] - vBulletin.org Forum
One Touch Select ALL: CODE, PHP, HTMML - vBulletin.org Forum
Add notice on shoubox[Updates] - vBulletin.org Forum
 
vb.org first post is a custom mod which hasnt been released.


Reply To Visitor Message (Profile Comments)
Find in template memberinfo_visitormessage:

HTML:
<div class="visitor_message_body">$message[message]</div>

Add after:
HTML:
<div class="smallfont"><a href="member.php?$session[sessionurl]u=$message[postuserid]#visitor_messaging">Reply To Comment</a></div>
....................................................................................................

Private Message Notification!

This Mod Gives The Members A Clear Notification, Telling That They Got A Private Message!

Goto The Navbar Template, Add This To The End!

HTML:
<!-- PM Notification --> 
<if condition="$bbuserinfo[pmunread]"> 
<table  border="10" align="center"> 
<tr> 
            <td><a href="private.php"><div style="text-decoration:none;"> <font size=5 color=red><b>You currently have $bbuserinfo[pmunread] Private Message!</font></b><if condition="$bbuserinfo[pmunread] >= 2">s</if> <font size=5 color=white><b><br><center>Click To View!</center></font></B></div></a></td> 
        </tr> 
</table> 
<br /> 
</if> 
<!-- / PM Notification -->

You Can Edit This Code, To Change The Words, Color, Size & Place!
......................................................................................................

Veoh.com BB Code

Title: Veoh BB Code

Tag: vh

Replacement:
HTML:
<embed src="http://www.veoh.com/videodetails2.swf?permalinkId={param}&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="425" height="350" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed><br/>

Example:
[vh]v605857XbNKHpcX[/vh]

Description: Veoh.com BBCode

Use {option} No

You can change the values width="425" height="350"if you want in the replacement codes to change the size of the video window.
.......................................................................................................

Simple CSS rounded corners for your forum 9no images0

With this simple CSS you can give your forum that look you always wanted. Sick and tired of the old bland square design every where in vBulletin? Well fear no more, because here's your rounded edges.

In your style of choice, go to add the following into the Additional CSS:

Code:
.rc{display:block}
.rc *{
  display:block;
  height:1px;
  overflow:hidden;
  font-size:.01em;
  background:#000000}
.rc1{
  margin-left:3px;
  margin-right:3px;
  padding-left:1px;
  padding-right:1px;
  border-left:1px solid #919191;
  border-right:1px solid #919191;
  background:#3f3f3f}
.rc2{
  margin-left:1px;
  margin-right:1px;
  padding-right:1px;
  padding-left:1px;
  border-left:1px solid #e5e5e5;
  border-right:1px solid #e5e5e5;
  background:#303030}
.rc3{
  margin-left:1px;
  margin-right:1px;
  border-left:1px solid #303030;
  border-right:1px solid #303030;}
.rc4{
  border-left:1px solid #919191;
  border-right:1px solid #919191}
.rc5{
  border-left:1px solid #3f3f3f;
  border-right:1px solid #3f3f3f}
.rcfg{
  background:#000000}

Then in your header, at the very top enter:
Code:
<div>
  <b class="rc">
  <b class="rc1"><b></b></b>
  <b class="rc2"><b></b></b>
  <b class="rc3"></b>
  <b class="rc4"></b>
  <b class="rc5"></b></b>

  <div class="rcfg">

Then in footer at the very bottom put:
Code:
 </div>

  <b class="rc">
  <b class="rc5"></b>
  <b class="rc4"></b>
  <b class="rc3"></b>
  <b class="rc2"><b></b></b>
  <b class="rc1"><b></b></b></b>
</div>

That will make a black box, with white background, just change the colors in the CSS to match your forum, and you're set!
.......................................................................................................

One Touch Select ALL: CODE, PHP, HTMML

This is small hack used Script selectCode.

Install:
1. Open Temp: headinclude
Add below:
Code:
<script type="text/javascript"> 
function selectCode(a) 
{ 
   var e = a.parentNode.parentNode.getElementsByTagName('PRE')[0]; 
   if (window.getSelection) 
   { 
      var s = window.getSelection(); 
       if (s.setBaseAndExtent) 
      { 
         s.setBaseAndExtent(e, 0, e, e.innerText.length - 1); 
      } 
      else 
      { 
         var r = document.createRange(); 
         r.selectNodeContents(e); 
         s.removeAllRanges(); 
         s.addRange(r); 
      } 
   } 
   else if (document.getSelection) 
   { 
      var s = document.getSelection(); 
      var r = document.createRange(); 
      r.selectNodeContents(e); 
      s.removeAllRanges(); 
      s.addRange(r); 
   } 
   else if (document.selection) 
   { 
      var r = document.body.createTextRange(); 
      r.moveToElementText(e); 
      r.select(); 
   } 
} 
</script>


2. Open bbcode_code:
find:
Code:
$vbphrase[code]:

Add below:
HTML:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>

3. Open bbcode_html:
find:
Code:
$vbphrase[html_code]:

Add below:
Code:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>

4. Open bbcode_php:
find:
Code:
$vbphrase[php_code]:

Add below:
HTML:
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>

Next find:
Code:
$code

Replace with:
Code:
<pre>$code</pre>
......................................................................................................

Add notice on shoubox(Updates)

step 1
Go to your admin Control Panel => Plugin System => Manage Products => [Add/Import Product];
Click Browse and find product-thongbao_shoutbox.xml
Click Import

step 2
OPEN forumhome_vbshout

THEN CLEAR ALL AND REPLACE ALL WITH THIS CODE:
PHP:
<form action="vbshout.php?{$session['sessionurl']}" method="post" name="vbshoutform" onsubmit="return postShout(this)">
<input type='hidden' name='do' value='shout' />
<input type='hidden' name='color' />
<input type='hidden' name='fontFamily' />
<input type='hidden' name='fontWeight' />
<input type='hidden' name='textDecoration' />
<input type='hidden' name='fontStyle' />

<div id='shout_emo' style='display:none'>
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<tr>
			<td class="tcat" align="center">
				Emoticons
			</td>
		</tr>
		<tr>
			<td class='alt2' width='100%' height='100%' align='center' valign='top'>
				$Smilie_Build
			</td>
		</tr>
		</table>
	<br />
</div>
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<thead>
		<tr>
			<td class="tcat" align="center">
				<a style="float:$stylevar[align=right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>
				<a href='vbshout.php?{$session['sessionurl_q']}do=archive'>Khu Chat Chit [yêu cầu viết tiếng việt có dấu]</a>
			</td>
		</tr>
		</thead>
		<tbody id="collapseobj_forumhome_vbshout" style="$vbcollapse[collapseobj_forumhome_vbshout]">
			<tr>
				<td class="alt1" align="left" width="100%">
				<if condition="!$vboptions[shout_editor_position]">
					<if condition="$bbuserinfo[userid] > 0">
					<table width='100%' border='0' cellpadding='0' cellspacing='0'>
						<tr>
						<td width='100%'>
							<input type="text" name="shout" style="width: 90%" class="bginput" />
						</td>
						<td style='white-space:nowrap' width='1%'>
							<input type="submit" value="Shout" class="button" />
							<if condition="$vboptions[shout_extra_options]">
							<input type='button' class='button' value='Clear' onclick='sb_Clear()' />
							<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
							<input id='sb_mem_bold' type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
							<input id='sb_mem_underline' type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
							<input id='sb_mem_italic' type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
							<select id='sb_color_mem' name='font_color' onchange='sb_PropChange(this, "color")'>
								{$DropDowns['color_selector']}
							</select>
							<select id='sb_font_mem' name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
								{$DropDowns['font_selector']}
							</select>
							</if>
						</td>
					</tr>
					</table>
					<div style="height: 2px"></div>
					</if>
				</if>
<!-- Start Thông báo by Vietdjclub -->
<if condition="$vboptions[Shout_box_Notice_enabled] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td align="center"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$vboptions[First_Thread_Id]">
<img src="$vboptions[Show_Notice_Icon]" border="0"/><b>$vboptions[First_Thread_Title]</b></a></td>
<td align="center"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$vboptions[Second_Thread_Id]"><img src="$vboptions[Show_Notice_Icon]" border="0"/><b>$vboptions[Second_Thread_Title]</b></a></td>
</tr>
</table>
</if>
<!-- /End Thông Báo by Vietdjclub -->

					<div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:100%;">
						Đang tải,Vui lòng chờ...
					</div>



				<if condition="$vboptions[shout_editor_position]">
					<if condition="$bbuserinfo[userid] > 0">
					<div style="height: 2px"></div>
					<table width='100%' border='0' cellpadding='0' cellspacing='0'>
					<tr>
						<td width='100%'>
							<input type="text" name="shout" style="width: 90%" class="bginput" />
						</td>
						<td style='white-space:nowrap' width='1%'>
							<input type="submit" value="Shout" class="button" />
							<if condition="$vboptions[shout_extra_options]">
							<input type='button' class='button' value='Clear' onclick='sb_Clear()' />
							<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
							<input id='sb_mem_bold' type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
							<input id='sb_mem_underline' type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
							<input id='sb_mem_italic' type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
							<select id='sb_color_mem' name='font_color' onchange='sb_PropChange(this, "color")'>
								{$DropDowns['color_selector']}
							</select>
							<select id='sb_font_mem' name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
								{$DropDowns['font_selector']}
							</select>
							</if>
						</td>
					</tr>
					</table>
					</if>
				</if>
				</td>
			</tr>
		</tbody>
		</table>


</form>
<br />

<script type='text/javascript'>
<!--

postingShout = false

function requestShouts()
{
	if (!postingShout)
	{
		ShoutRequest = new vB_AJAX_Handler(true)
		ShoutRequest.onreadystatechange(showShouts)
		ShoutRequest.send('vbshout.php', 'nocache=' + (5 * Math.random() * 1.33) )
	}
}

function showShouts()
{
	if (ShoutRequest)
	{
		if (ShoutRequest.handler.readyState == 4 && ShoutRequest.handler.status == 200 && ShoutRequest.handler.responseText)
		{
			Shouts           = fetch_object('vbshout')
			Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>'
			setTimeout('requestShouts()', 10000)
			<if condition="$vboptions[shout_messages_order]">
			document.getElementById('vbshout').scrollTop = 99999;
			</if>
		}
	}
}

function sb_CollectHV(sbForm)
{
	rString = ''
	inputObjs = sbForm.getElementsByTagName('input')
	for (i = 0; i < inputObjs.length; i++)
	{
		if (inputObjs[i].type == 'hidden' && inputObjs[i].value != '')
		{
			rString += '&' + inputObjs[i].name + '=' + PHP.urlencode(inputObjs[i].value)
		}
	}

	return rString
}

function postShout(formObj)
{
	doShout = new vB_AJAX_Handler(true)
	doShout.onreadystatechange(postedShout)

	if (postingShout)
	{
		alert('Posting in progress..')
		return false
	}

	Shout = formObj.shout.value

	if (Shout.replace(/ /g, '') == '')
	{
		alert('You must enter a shout!')
		return false
	}

	doShout.send('vbshout.php', 'do=shout&shout=' + PHP.urlencode(Shout) + sb_CollectHV(document.forms['vbshoutform']))
	sb_Clear()
	postingShout = true

	return false
}

function postedShout()
{
	if (doShout.handler.readyState == 4 && doShout.handler.status == 200)
	{
		postingShout = false
		requestShouts()
	}
}

function sb_Input_SC(sProperty, setting)
{
	set_shout_memory_cookie('vbshout_' + sProperty, setting)
	eval('document.forms["vbshoutform"].shout.style.' + sProperty + ' = "' + setting + '"')
	eval('document.forms["vbshoutform"].' + sProperty + '.value = "' + setting + '"')
}

function getSelectionValue(eSelector)
{
	return eSelector.options[eSelector.options.selectedIndex].value == 'Default' ? '' : eSelector.options[eSelector.options.selectedIndex].value
}

function sb_PropChange(eSelector, sProperty)
{
	sb_Input_SC(sProperty, getSelectionValue(eSelector))
}

function sb_PropChange_Button_Value(sProperty)
{
	trueValue = ''
	switch (sProperty)
	{
		case 'fontWeight':
		falseValue = 'bold'
		break;

		case 'textDecoration':
		falseValue = 'underline'
		break;

		case 'fontStyle':
		falseValue = 'italic'
		break;
	}

	set_shout_memory_cookie('vbshout_' + sProperty, ((eval('document.forms["vbshoutform"].' + sProperty + '.value'))? trueValue : falseValue))

	return (eval('document.forms["vbshoutform"].' + sProperty + '.value'))? trueValue : falseValue
}

function sb_PropChange_Button(cButton, sProperty)
{
	if (cButton.value.match(/\*/))
	{
		cButton.value = cButton.value.replace(/\s+\*/, '')
	}
	else
	{
		cButton.value = cButton.value + ' *'
	}

	sb_Input_SC(sProperty, sb_PropChange_Button_Value(sProperty))
}

function sb_Smilie(code)
{
	document.forms["vbshoutform"].shout.value += ' ' + code
	return false
}

function sb_Clear()
{
	document.forms["vbshoutform"].shout.value = ''
	return true;
}

function sb_Smilies(cButton)
{
	if (cButton.value.match(/\*/))
	{
		cButton.value = cButton.value.replace(/\s+\*/, '')
	}
	else
	{
		cButton.value = cButton.value + ' *'
	}
	
	document.getElementById('shout_emo').style.display = (document.getElementById('shout_emo').style.display == 'none')? '' : 'none'
}

function set_shout_memory_cookie(name, value)
{
	expires = new Date();
	expires.setTime(expires.getTime() + (1000 * 86400 * 365));
	value = value.replace('#', '')

	if (value != '')
	{
		set_cookie(name, value.replace('#', ''), expires);
	}
	else
	{
		delete_cookie(name);
	}
}

function grab_memory_cookies()
{
	memory_font = fetch_cookie('vbshout_fontFamily')
	memory_color = fetch_cookie('vbshout_color')
	memory_bold = fetch_cookie('vbshout_fontWeight')
	memory_underline = fetch_cookie('vbshout_textDecoration')
	memory_italic = fetch_cookie('vbshout_fontStyle')

	if (memory_font != null && memory_font != '')
	{
		obj = fetch_object('sb_font_mem')

		for (i = 0; i < obj.options.length; i++)
		{
			if (obj.options[i].value == memory_font)
			{
				obj.options[i].selected = true
				sb_PropChange(obj, 'fontFamily')
			}
		}
	}

	if (memory_color != null && memory_color != '')
	{
		obj = fetch_object('sb_color_mem')

		for (i = 0; i < obj.options.length; i++)
		{
			if (obj.options[i].value == '#' + memory_color)
			{
				obj.options[i].selected = true
				sb_PropChange(obj, 'color')
			}
		}
	}

	if (memory_bold != null && memory_bold != '')
	{
		sb_PropChange_Button(fetch_object('sb_mem_bold'), "fontWeight")
	}

	if (memory_underline != null && memory_underline != '')
	{
		sb_PropChange_Button(fetch_object('sb_mem_underline'), "textDecoration")
	}

	if (memory_italic != null && memory_italic != '')
	{
		sb_PropChange_Button(fetch_object('sb_mem_italic'), "fontStyle")
	}
}

grab_memory_cookies()
requestShouts()

-->
</script>

step 3:
Go to your admin Control Panel => vBulletin Options => vBulletin Options => Vietdjclub-Add Notice On Shoutbox => [Edit Settings]
 
ooh.. bt i saw it in other site.. hahaha.. anyways.. i thought it already been release.. thanks alot!
 
Back
Top