My first mod:: Hide text in [Code] from gusts.

techiekaran

New Member
Hello all

Finally I have made my OWN first hide hack code.

In bbcode_code template,

Replace by:

<div style="margin:20px; margin-top:5px">
<if condition="is_member_of($vbulletin->userinfo, 1)">
<tr>
<td colspan="2" style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Courier, Courier New, sans-serif; BACKGROUND-COLOR: {codebackground};"><pre>You cannot view code until you register</pre></td>

</tr>
<else />
<div class="smallfont" style="margin-bottom:2px">$vbphrase
Code:
:</div>
	<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: $stylevar[cellpadding]px;
		border: 1px inset;
		width: $stylevar[codeblockwidth];
		height: {$blockheight}px;
		text-align: left;
		overflow: auto">$code</pre>
</if>
</div>[/quote]

Screenshot:
[img]http://i39.tinypic.com/fbb2pz.gif[/img]

Demo:
http://www.wheaven.com/

Help needed..
Can anyone tell me how can I hyperlink it to the register page? - I do not have any php knowledge!!

Thanks
 

ahmedr

New Member
a great start mate,
thanks for this, like vb.org, I'll def be using it!,
did you find a way to enable this for archive viewing also? this would be even better
 

Error 404

New Member
You said this code is yours, and then you saying you dont have any php knowledge?
The code that you wrote, most of it is html. And its got some php in it..

anyways, the hyperlink text would be something like:
HTML:
You cannot view code until you <b><a href="http://YOURSITE.XXX/register.php">register</a></b>
 

techiekaran

New Member
Error 404 said:
You said this code is yours, and then you saying you dont have any php knowledge?
The code that you wrote, most of it is html. And its got some php in it..

anyways, the hyperlink text would be something like:
HTML:
You cannot view code until you <b><a href="http://YOURSITE.XXX/register.php">register</a></b>

Hey....

Yes I do not have any knowledge of php. I just scoured through some templates and discovered this code.

I had tried this html code, but this does not work.

2u88ako.gif
 

Error 404

New Member
Well you got few choices :

1st One is a simple button beside a string like this:
HTML:
<b>[Only fully-registered users can see this link. <a href="http://YOURSITE.XXX/register.php" onclick="alert('Registration is free, quick and simple. Thanks For Participating.')"><input value="Register" onclick="javascript:window.location.href='http://YOURSITE.XXX/register.php'" type="button"></a>]</b>

OR

Image which will lead to register.php page
Something like this:
HTML:
<a href="http://YOURSITE.XXX/register.php"><img src="http://www.sttoms.com/pictures/registernow.jpg" alt="Register Now, To See The Links" /></a>
** The picture can be different of course.. I just found that pic on google..

anyways, you got the thrill..
 
Top