View Full Version : Forum Home Enhancements - Your Area
bellaa
09-11-2009, 10:00 PM
install:
Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'yourarea.xml' from your computer then press 'Import'
html code free
christicehurst
09-12-2009, 09:13 AM
What is this mod? You need to tell us what it does
bellaa
09-12-2009, 09:20 AM
You can do what you want, announcements, or ad vs.
Storyteller69
09-12-2009, 09:30 AM
Great idea! :up: But the xml-file seems to be wrong. Looks like this one: https://vborg.vbsupport.ru/showthread.php?t=222975
bellaa
09-12-2009, 10:11 AM
xml no problem
bellaa
09-12-2009, 10:15 AM
sorry xml files mixed, new xml fixed id
TimberFloorAu
09-12-2009, 11:28 AM
Isnt this exactly the same as your other "mod" ? But with different titles
SwollenCranium
09-12-2009, 02:10 PM
Yeah ...
If one adds htlm to one of the boxes then the entire forum home takes on the html attributes denoted in the code added to the title box of your mod.
Well .. at least it does for me. Average mod, needs work.
Uninstalled.
SEW810
09-13-2009, 04:18 PM
I don't got it, what's this for???????
creative-friend
11-01-2009, 09:33 PM
nice
loved it
linuxututs
11-05-2009, 01:33 AM
Great Mod,
Thank you, just what I was looking for, but I had to change, or rather take out some of the code to get it to show just one box instead of four.
Here's the code and snapshot of it, if anyones interested....
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="yourarea" active="1">
<title>Senin Alan?n</title>
<description />
<version>1.0</version>
<url>https://vborg.vbsupport.ru/member.php?u=342407</url>
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="yourarea" templatetype="template" date="1238976000" username="vBulletinMaster" version="1.0"><![CDATA[<if condition="$vboptions['yourarea_active']">
<br />
<table class="tborder" align="center" border="0" cellpadding="5" cellspacing="2" width="100%"><tr> <td class="thead" colspan="3"><span class="smallfont"><b><center>$vboptions[title]</center></b></span></td></tr>
<tr> <td rowspan="2" class="alt1" width="30"> <img src=$vboptions[img]> </td> <td class="alt1" nowrap="nowrap"> <fieldset><legend><b>$vboptions[title1]</b></legend> <center><b>$vboptions[area1]</b></center> </fieldset> </td>
<br />
</if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>threadinfo</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates[] = 'yourarea' ;]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>threadinfo</title>
<hookname>forumhome_complete</hookname>
<phpcode><![CDATA[eval('$yourarea = "' . fetch_template('yourarea') . '";');
switch ($vbulletin->options['yourarea_position'])
{
case 1:
$Position = '<!-- what\'s going on box -->';
break;
case 2:
$Position = '<!-- end what\'s going on box -->';
break;
case 4:
$Position = '<!-- main -->';
break;
default:
$Position = '$navbar';
break;
}
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $yourarea', $vbulletin->templatecache['FORUMHOME']);]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_area1_desc" date="0" username="" version=""><![CDATA[area1]]></phrase>
<phrase name="setting_area1_title" date="0" username="" version=""><![CDATA[Area1]]></phrase>
<phrase name="setting_img_desc" date="0" username="" version=""><![CDATA[img location]]></phrase>
<phrase name="setting_img_title" date="0" username="" version=""><![CDATA[img location]]></phrase>
<phrase name="setting_title1_desc" date="0" username="" version=""><![CDATA[title1]]></phrase>
<phrase name="setting_title1_title" date="0" username="" version=""><![CDATA[title1]]></phrase>
<phrase name="setting_title_desc" date="0" username="" version=""><![CDATA[title]]></phrase>
<phrase name="setting_title_title" date="0" username="" version=""><![CDATA[title]]></phrase>
<phrase name="setting_yourarea_active_desc" date="0" username="" version=""><![CDATA[your area active?]]></phrase>
<phrase name="setting_yourarea_active_title" date="0" username="" version=""><![CDATA[your area active?]]></phrase>
<phrase name="setting_yourarea_position_desc" date="0" username="" version=""><![CDATA[Your Area Location]]></phrase>
<phrase name="setting_yourarea_position_title" date="0" username="" version=""><![CDATA[Your Area Location]]></phrase>
<phrase name="settinggroup_yourarea" date="0" username="" version=""><![CDATA[Your Area]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="yourarea" displayorder="65535">
<setting varname="yourarea_active" displayorder="10">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="yourarea_position" displayorder="20">
<datatype>number</datatype>
<optioncode><![CDATA[<select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\">
<option value=\"0\" " . iif($setting['value']==0,'selected="selected"') . ">Forumlar?n ?st?ne</option>
<option value=\"4\" " . iif($setting['value']==4,'selected="selected"') . ">Navbar Alt?na</option>
<option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Forumlar?n Alt?na</option>
<option value=\"2\" " . iif($setting['value']==2,'selected="selected"') . ">?konlar?n ?st?ne</option>
</select>]]></optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="img" displayorder="30">
<datatype>free</datatype>
<defaultvalue>siteinfo.png</defaultvalue>
</setting>
<setting varname="area1" displayorder="50">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="title" displayorder="80">
<datatype>free</datatype>
<defaultvalue>Ba?l?k</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
Thanks,
1320Nation
11-05-2009, 02:19 AM
This mod does not support the English Language. :(
Frank Sinatra
11-05-2009, 05:07 AM
Isnt this exactly the same as your other "mod" ? But with different titles
Same here..
:confused:
:confused:
:confused:
ricardoNJ
11-05-2009, 05:07 PM
Great Mod,
Thank you, just what I was looking for, but I had to change, or rather take out some of the code to get it to show just one box instead of four.
Here's the code and snapshot of it, if anyones interested....
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="yourarea" active="1">
<title>Senin Alan?n</title>
<description />
<version>1.0</version>
<url>https://vborg.vbsupport.ru/member.php?u=342407</url>
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
<template name="yourarea" templatetype="template" date="1238976000" username="vBulletinMaster" version="1.0"><![CDATA[<if condition="$vboptions['yourarea_active']">
<br />
<table class="tborder" align="center" border="0" cellpadding="5" cellspacing="2" width="100%"><tr> <td class="thead" colspan="3"><span class="smallfont"><b><center>$vboptions[title]</center></b></span></td></tr>
<tr> <td rowspan="2" class="alt1" width="30"> <img src=$vboptions[img]> </td> <td class="alt1" nowrap="nowrap"> <fieldset><legend><b>$vboptions[title1]</b></legend> <center><b>$vboptions[area1]</b></center> </fieldset> </td>
<br />
</if>]]></template>
</templates>
<plugins>
<plugin active="1" executionorder="5">
<title>threadinfo</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[$globaltemplates[] = 'yourarea' ;]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title>threadinfo</title>
<hookname>forumhome_complete</hookname>
<phpcode><![CDATA[eval('$yourarea = "' . fetch_template('yourarea') . '";');
switch ($vbulletin->options['yourarea_position'])
{
case 1:
$Position = '<!-- what\'s going on box -->';
break;
case 2:
$Position = '<!-- end what\'s going on box -->';
break;
case 4:
$Position = '<!-- main -->';
break;
default:
$Position = '$navbar';
break;
}
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $yourarea', $vbulletin->templatecache['FORUMHOME']);]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="vBulletin Settings" fieldname="vbsettings">
<phrase name="setting_area1_desc" date="0" username="" version=""><![CDATA[area1]]></phrase>
<phrase name="setting_area1_title" date="0" username="" version=""><![CDATA[Area1]]></phrase>
<phrase name="setting_img_desc" date="0" username="" version=""><![CDATA[img location]]></phrase>
<phrase name="setting_img_title" date="0" username="" version=""><![CDATA[img location]]></phrase>
<phrase name="setting_title1_desc" date="0" username="" version=""><![CDATA[title1]]></phrase>
<phrase name="setting_title1_title" date="0" username="" version=""><![CDATA[title1]]></phrase>
<phrase name="setting_title_desc" date="0" username="" version=""><![CDATA[title]]></phrase>
<phrase name="setting_title_title" date="0" username="" version=""><![CDATA[title]]></phrase>
<phrase name="setting_yourarea_active_desc" date="0" username="" version=""><![CDATA[your area active?]]></phrase>
<phrase name="setting_yourarea_active_title" date="0" username="" version=""><![CDATA[your area active?]]></phrase>
<phrase name="setting_yourarea_position_desc" date="0" username="" version=""><![CDATA[Your Area Location]]></phrase>
<phrase name="setting_yourarea_position_title" date="0" username="" version=""><![CDATA[Your Area Location]]></phrase>
<phrase name="settinggroup_yourarea" date="0" username="" version=""><![CDATA[Your Area]]></phrase>
</phrasetype>
</phrases>
<options>
<settinggroup name="yourarea" displayorder="65535">
<setting varname="yourarea_active" displayorder="10">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="yourarea_position" displayorder="20">
<datatype>number</datatype>
<optioncode><![CDATA[<select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\">
<option value=\"0\" " . iif($setting['value']==0,'selected="selected"') . ">Forumlar?n ?st?ne</option>
<option value=\"4\" " . iif($setting['value']==4,'selected="selected"') . ">Navbar Alt?na</option>
<option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Forumlar?n Alt?na</option>
<option value=\"2\" " . iif($setting['value']==2,'selected="selected"') . ">?konlar?n ?st?ne</option>
</select>]]></optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="img" displayorder="30">
<datatype>free</datatype>
<defaultvalue>siteinfo.png</defaultvalue>
</setting>
<setting varname="area1" displayorder="50">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="title" displayorder="80">
<datatype>free</datatype>
<defaultvalue>Ba?l?k</defaultvalue>
</setting>
</settinggroup>
</options>
<helptopics>
</helptopics>
<cronentries>
</cronentries>
<faqentries>
</faqentries>
</product>
Thanks,
Nice but there's a block in the left side...
linuxututs
11-13-2009, 07:09 AM
Its not a block, its for an image.
Check mine out Here (http://www.linuxtuts.net).
And as far as this not being English. There's not but a few settings you have to deal with anyway. ( One really, and that's the drop down menu for you to choose where you want it displayed ) You can figure it out easily......
Thanks,
yesfans
04-10-2011, 01:43 AM
This is a nice simple mod. I like it. Allows me to post some HOT LINKS from my site. I like.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.