PDA


View Full Version : Link Block worked with ver1 CMPS but not Ver2


xrayhead
08-03-2005, 12:47 PM
Hi All

I have pasted the code in bellow for the nav block I was using on my CMPS v1. I have tryed porting it over but I dont know HTML that well. I want to use this in my module with the option for "Module Shell Template Options" switched ON.

At present I get the error :(
------------------------------------------------------
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_vba_cmps.php on line 634

Processing Complete - Proceed
------------------------------------------------------
Here is the code I am trying to use.


<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<!-- put module content here -->
<!-- Home --><hr size="1"/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><img src="$stylevar[imgdir_misc]/menu_open.gif" alt=""/> <b>The Community</b></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/forum_index.php?$session[sessionurl]"><strong>Forums</strong></a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/calendar.php">PB Calendar</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/memberlist.php">Members List</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/vBChat.php?" target="_blank">Chat Room</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/index.php?page=forum_rules">Forum Rules</a></td></tr>
</table>

<!-- Editors Choice --><hr size="1"/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><img src="$stylevar[imgdir_misc]/menu_open.gif" alt=""/> <b>Editors Choice</b></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/article.php?">PB Articles</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="http://www.walkonzone.com/reviews/">PB Kit Review's</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/forumdisplay.php?f=27">Classifieds Section</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/forumdisplay.php?f=69">Tourney Zone</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/forumdisplay.php?f=64">Scenario/Woodland</a></td></tr>
</table>

<!-- Media Gallery --><hr size="1"/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><img src="$stylevar[imgdir_misc]/menu_open.gif" alt=""/> <b>Media Gallery</b></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/gallery/">Photo Gallery</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/index.php?page=401construction">Download Centre</a></td></tr>
</table>

<!-- Links Library --><hr size="1"/>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td><img src="$stylevar[imgdir_misc]/menu_open.gif" alt=""/> <b>Contact zone</b></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/showgroups.php">Staff</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a></td></tr>
<tr onmouseover="this.className='alt1'" onmouseout="this.className='alt2'"><td><img src="$stylevar[imgdir_misc]/navbits_dash.gif" alt=""/> <a href="$vboptions[bburl]/index.php?page=401construction">Mod Application</a></td></tr>
</table>
<!-- put module content here -->
</td>
</tr>
</tbody>
</table>
<br />

Brian
08-03-2005, 04:03 PM
http://www.vbadvanced.com/forum/showthread.php?t=8513

xrayhead
08-04-2005, 09:46 AM
http://www.vbadvanced.com/forum/showthread.php?t=8513


That stopped the error, thanks.

The module is still well messed up though..... i have had to disable it untill I suss out the correct code.

Xray

Brian
08-04-2005, 12:18 PM
How exactly is it messed up?

xrayhead
08-04-2005, 05:00 PM
Could it be somthing to do with this?
http://www.vbadvanced.com/forum/showthread.php?t=9823

I am also having problems with the drop down nav boxes on the CMPS page.
Whoever coded your style didn't move the <div> tags with the menus for those from the navbar template to the header template like they should have.

:(

Xray

PS, here is a screen pic 4 you.
http://img119.imageshack.us/img119/2064/screen7sn.th.png (http://img119.imageshack.us/my.php?image=screen7sn.png)