ADD-ON 1
Was reading up at
teckwizards.com with regards to integration this hack w vbHome as requested.
Came upon
this thread.
If going by
Arunan's instructions, the following instructions should give you similiar result for having articles display on your vbHome portal page.
This add-on assumes you have vbHome installed.
Installation
STEP 1
Open the index.php from the vBhome hack, and find:
PHP Code:
// latest threads
$threadbits = '';
$threadmaxnumber = '';
if ($threadmax!=0) {
$threadmaxnumber = "LIMIT $threadmax";
}
ABOVE that code
ADD:
PHP Code:
// vbArticles
$ebg = $DB_site->query("SELECT * FROM vbArticles_cat ORDER BY catname");
if ($DB_site->num_rows($ebg)) {
while ($myrow=$DB_site->fetch_array($ebg)) {
$hasattach=1;
$catid=$myrow["artcatid"];
$catname=$myrow["catname"];
$catdesc=$myrow["catdesc"];
eval("\$catlistbit .= \"".gettemplate('home_articlecatbit')."\";");
}
}
eval("\$vbhacats .= \"".gettemplate('home_articlemain')."\";");
Still in the index.php file find: (This will reduce your queries by 1 or 2)
PHP Code:
$templatesused = 'home,home_articlebits,home_footer,home_header,home_headinclude,home_thread,home_threadbits,home_welcomeguest';
and
REPLACE with:
PHP Code:
$templatesused = 'home,home_articlebits,home_footer,home_header,home_headinclude,home_thread,home_threadbits,home_welcomeguest,home_articlemain,home_articlecatbit';
Save the index.php file
STEP 2
Create a new Template, and call it home_articlemain, put the following code in :
PHP Code:
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576" width="100%">
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr id="cat">
<td bgcolor="#606096"><smallfont><font color="#FFF788"><b>Articles</b></font></smallfont></td>
</tr>
$catlistbit
</table>
</td>
</tr>
</table>
<br>
Create another template and call it home_articlecatbit and put in this code :
PHP Code:
<tr>
<td bgcolor="#13486D"><smallfont>
<b><a href="$bburl/articles.php?s=$session[sessionhash]&action=viewcat&catid=$catid">$catname</a></b><br>
$catdesc
</smallfont></td>
</tr>
STEP 3
Now open the home template from the vBhome template group, and find:
below it
ADD:
Not tested on my end
- If you have this working on your vbHome site , pls let me know your site URL so i can add it as a demo for this add-on.