Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
IRC I-frame Details »»
IRC I-frame
Version: 1.00, by momo2 momo2 is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.4 Rating:
Released: 11-22-2008 Last Update: Never Installs: 4
Template Edits
 
No support by the author.

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

Code:
<?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,

Code:
<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..

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-23-2008, 01:31 AM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all my members like this and hope u can enjoy it too..
Reply With Quote
  #3  
Old 11-23-2008, 10:38 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you please PM me the demo, cuz it's been removed?
Reply With Quote
  #4  
Old 11-23-2008, 03:40 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Magnumutz View Post
Could you please PM me the demo, cuz it's been removed?
code been sent..

for others here is the part is was filtered.

Code:
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/
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04902 seconds
  • Memory Usage 2,237KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete