PDA

View Full Version : How do I create a link Block


b4ne
07-19-2004, 04:03 PM
Hi how do i create a Block where I can post some links to Artikles Afiliates etc ?

mholtum
07-19-2004, 04:04 PM
Huh?

Our Sponsors
 

b4ne
07-19-2004, 04:05 PM
lol I selected Enter by acident

mholtum
07-19-2004, 04:13 PM
You just have to create a template with the desired HTML code for all your links and then create a Module and have it use the template.

Our Sponsors
 

apokalupsis
07-19-2004, 04:21 PM
I have over 150 links. Here is what I did: http://www.myfamilycorner.net/index.php?page=resources (it's still under construction, header acting funky due to random quote code...ignore that. ;) )

I plan to user gossamer links in the near future...but I don't think there is a way to integrate that w/ vb or CMPS. I think I'll have to use header/footer files for that.

b4ne
07-20-2004, 02:34 AM
Thats excactly what I need thanks I try to find out how to create all that now

Cheers

apokalupsis
07-20-2004, 03:27 AM
It's easy actually. Create the link list in html (I use Dreamweaver, but any html program will work...and it's much faster than doing it by hand).

Copy that html file to a new template...like: "adv_portal_links"

Create the module called "Links", reference "links" as the template (don't use the 'adv_portal_' part of it), and select it for "center" column.

Then create a new page, call it "links", select the module "Links" to be displayed (as well as any sideblocks you want to appear), then the url to bring it up would be http://www.yourdomain/index.php?page=links

:)

b4ne
07-20-2004, 07:27 AM
sweet guys : www.battlefield2.us works :)

Thanks for helping

apokalupsis
07-20-2004, 04:46 PM
did you create a links page?

hani
08-29-2004, 05:19 AM
It worked
Thanx
But I need it boxed in its own block with its title

How can I do so please

Thanx again

Hani

mholtum
08-29-2004, 05:39 AM
Use this Code:

<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><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">

<!-- put links content here -->
</td>
</tr>
</tbody>
</table>
<br />

hani
08-29-2004, 06:00 AM
Thanx
got the box, but not the title
I get this:
$vba_options[portal_blockbullet] $mods[title
plus a broken link to a collapse/expand botton

any ideas?

thanx again

Hani

mholtum
08-29-2004, 06:05 AM
This is my collapsable module Template:


<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><tr><td></td></tr></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">

<!-- put module content here -->
</td>
</tr>
</tbody>
</table>
<br />


It automatically adds the title and other options. Try it. I use it for my "Click Me!" module on my site

hani
08-29-2004, 07:14 AM
Thanx a million
I like the collapse/expand tweak
but what if I dont want to use it? (I like to force my users to always see things with no option to hide them :) )

Thanx again for all your help

Hani

mholtum
08-29-2004, 08:08 AM
then remove the colapse feature

hani
08-29-2004, 08:56 AM
Good advice, but HOW :)
Should I remove the line where it resides?
or just the link to it?

thank you for your patiance

Hani