MobileHacks
New Member
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
now after installing in go to vb option, use my code inside what you want to show in all pages,
remove all the XXX and type your channel name
and you are done, this what it looks like once someone clicks on it
all i did used my irc plus iframe code..
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
PHP:
<?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[align=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 & 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 & Announcements</strong></font></a>
<br/>
<a href="link"><font size="3" color="red"><strong>News & Announcements</strong></font></a>
<br/>
<a href="link"><font size="3" color="red"><strong>News & 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,
PHP:
<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>
and you are done, this what it looks like once someone clicks on it
all i did used my irc plus iframe code..