Quote:
Originally Posted by Synth
Is there a vBadvanced module for this, I can't find one and am not having very much luck creating my own :disappointed:
|
I got it working om my site...it's probably not the best or easiest way to do it, since I'm not a coder...but it works fine for me...
here we go
Create a template called 'adv_portal_latestjournalentry'
Paste the text below in it and change 'http://www.nordinho.net/vbull/journal.php?$session[sessionurl]' to the url where your journal is located.
HTML Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cmps_pagesmenu')"><img id="collapseimg_cmps_pagesmenu" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_cmps_pagesmenu].gif" alt="" border="0" /></a>
<span class="smallfont"><strong><a href="http://www.nordinho.net/vbull/journal.php?$session[sessionurl]">$vbphrase[adv_latest_journalentries]</a></strong></span>
</td>
</tr>
</thead>
<tbody id="collapseobj_cmps_pagesmenu" style="$vbcollapse[collapseobj_cmps_pagesmenu];text-align:$stylevar[left]">
$latestbitscmps
</tbody>
</table>
Next create a template called 'journal_latestentrybitcmps'
Paste the following and change both 'vbull' and 'http://www.nordinho.net/vbull' to your forum directory
HTML Code:
<td class="$bgclass"><a href="vbull/journal.php?do=showentry&e=$latest[entry_id]" title="$latest[entrytext]">$latest[entrytitle]</a>
<td>
<div align="right" class="smallfont"> ($latestentrydate - $latestentrytime)</div>
</td>
</td>
<tr>
<td class="$bgclass" colspan="2">
$latest[entrytext] <br />
<span class="smallfont" style="float:$stylevar[right]">Written by:<a href="http://www.nordinho.net/vbull/member.php?u=$latest[journalist_id]">$latest[journalist]</a></span>
<br /></tr></td>
Upload the attached 'journalentries.php'
Create a new module in your cmps
-
Title - Latest Blog Entries (or whatever you want)
-
File to Include - journaltries.php
-
Templates Used - adv_portal_latestjournalentry,
journal_latestentrybitcmps
-
Use module shell - no
Click and it should be done. Live demo at
http://www.nordinho.net
If you want to change the number of entries shown, look for 'LIMIT 3' in the journalentries.php file and change that to the number of entries you want.