Log in

View Full Version : Forum Home Enhancements - IRC I-frame


momo2
11-22-2008, 10:00 PM
Well everyone shares their tricks, I'll show you mine

I used News Announcment product from http://+++++++.vn/up/index.php
than from cpanel i used my code for it to have IRC inside my home forum with out loading
unless u click on it, so it will be hide/show

here is his code as product

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="lns" active="1">
<title>News Announcements</title>
<description>Show latest news in FORUMHOME or All Pages</description>
<version>3.7.001</version>
<url>http://+++++++.vn/up/index.php</url>
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="forumhome_lastest_news" templatetype="template" date="1222979626" username="noob" version=""><![CDATA[
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latestnews')"><img id="collapseimg_latestnews" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestnews].gif" alt="" border="0" /></a>$vboptions[lns_title]</td>
</tr>
<tbody id="collapseobj_latestnews" style="$vbcollapse[collapseobj_latestnews]">
<tr>
<td class="alt1">$vboptions[lns_text]</td>
</tr>
</tbody>
</table>
<br>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>Cache Templates</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates[] = 'forumhome_lastest_news';]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>Templating Starting</title>
<hookname>parse_templates</hookname>
<phpcode><![CDATA[if($vbulletin->options['enable_lns'] AND in_array($vbulletin->userinfo['usergroupid'], explode(',', $vbulletin->options['lns_ug'])))
{
switch($vbulletin->options['lns_place'])
{
case 1:
$place = '$navbar';
$fechttemplate = 'FORUMHOME';
break;
case 2:
$place = '$ad_location[ad_navbar_below]';
$fechttemplate = 'navbar';
break;
default:
$place = '$navbar';
$fechttemplate = 'FORUMHOME';
break;
}
$vbulletin->templatecache[$fechttemplate] = str_replace($place, $place . '\n' . fetch_template('forumhome_lastest_news'), $vbulletin->templatecache[$fechttemplate]);
}
]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_enable_lns_desc" date="1222979626" username="noob" version="3.7.001"><![CDATA[Set to "No", if you want to disable this hack.]]></phrase>
<phrase name="setting_enable_lns_title" date="1222979626" username="noob" version="3.7.001"><![CDATA[On/Off Hack?]]></phrase>
<phrase name="setting_lns_place_desc" date="1222979626" username="noob" version="3.7.001"><![CDATA[Choose one, where you want show News.<br /><br />1) <strong>index</strong>: show News only in FORUMHOME<br />2) <strong>allpage</strong>: show News all pages.]]></phrase>
<phrase name="setting_lns_place_title" date="1222979626" username="noob" version="3.7.001"><![CDATA[Where is News?]]></phrase>
<phrase name="setting_lns_text_desc" date="1222979626" username="noob" version="3.7.001"><![CDATA[Full Detail of the news.]]></phrase>
<phrase name="setting_lns_text_title" date="1222979626" username="noob" version="3.7.001"><![CDATA[News Detail]]></phrase>
<phrase name="setting_lns_title_desc" date="1222979626" username="noob" version="3.7.001"><![CDATA[The title of the news which will be showed.<br />Forexample:- "News Mods!" etc.]]></phrase>
<phrase name="setting_lns_title_title" date="1222979626" username="noob" version="3.7.001"><![CDATA[News Title]]></phrase>
<phrase name="setting_lns_ug_desc" date="1222979626" username="noob" version="3.7.001"><![CDATA[Enter IDs of Usergroups, which you want show News.<br /> Seperate with comma. Ex: 2,5,6,7]]></phrase>
<phrase name="setting_lns_ug_title" date="1222979626" username="noob" version="3.7.001"><![CDATA[Allowed Usergroups]]></phrase>
<phrase name="settinggroup_lns" date="1222979626" username="noob" version="3.7.001"><![CDATA[News &amp; Announcements]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="lns" displayorder="65535">
<setting varname="enable_lns" displayorder="10">
<datatype>free</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>1</defaultvalue>
</setting>
<setting varname="lns_ug" displayorder="20">
<datatype>free</datatype>
<defaultvalue>2,5,6,7</defaultvalue>
</setting>
<setting varname="lns_place" displayorder="30">
<datatype>free</datatype>
<optioncode>select:piped
1|index
2|allpage
</optioncode>
<defaultvalue>2</defaultvalue>
</setting>
<setting varname="lns_title" displayorder="40">
<datatype>free</datatype>
<defaultvalue>News Announcements</defaultvalue>
</setting>
<setting varname="lns_text" displayorder="50">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
<defaultvalue><![CDATA[<center>
<a href="link"><font size="3" color="red"><strong>News &amp; Announcements</strong></font></a>
<br/>
<a href="link"><font size="3" color="red"><strong>News &amp; Announcements</strong></font></a>
<br/>
<a href="link"><font size="3" color="red"><strong>News &amp; Announcements</strong></font></a>
<br/>
</center>]]></defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>

now after installing in go to vb option, use my code inside what you want to show in all pages,

<script type="text/javascript" language="JavaScript"><!--
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//--></script>

<center>
<a href="javascript:ReverseDisplay('uniquename')">IRC Chat - Show/Hide</a><br/><br/>
<div id="uniquename" style="display:none;">
<iframe src="http://embed.mibbit.com/?channel=%23XXXYour channelXXXX&settings=3091a574841ed769a94e513e763b3fb8" width="100%" height="200px" frameborder="0" style="border:0px none;margin: 0px;"></iframe>
</div>

<br/>
</center>
remove all the XXX and type your channel name

and you are done, this what it looks like once someone clicks on it

Enjoy all codes are legal and the product was used from vb.org site with the name of maker
all i did used my irc plus iframe code..

momo2
11-23-2008, 01:31 AM
all my members like this and hope u can enjoy it too..

Magnumutz
11-23-2008, 10:38 AM
Could you please PM me the demo, cuz it's been removed?

momo2
11-23-2008, 03:40 PM
Could you please PM me the demo, cuz it's been removed?

code been sent..

for others here is the part is was filtered.

http://vietvb&_#98;.vn/up/index.php << please remove _ in this link

For those who asked my about using this hack, there are many irc servers u can use but i prefer the one I use which is inside the code, their server is super fast and never have to worry about getting ddos.

Here is how u can enter to IRC server site i recommend
http://embed.mibbit.com/