PDA

View Full Version : Adding Featured Listings to BOTH sides...


Digityman
05-15-2007, 11:25 PM
Hello -

First -
Thanks Simon and Michael for your help with a previous issue. Support here is great and you can quote me on that.

Onward -
I'm looking for a possible fix or mod (will pay for mod if someone can show me how to do it for other sites) that displays featured links on both sides of the site.

Here's my site: www.memassagedirectory.com

As you can tell there is a big blank area on the left that I would like to fill up with featured links if possible.

Cheers!
Matt

John Turner
05-16-2007, 04:35 AM
Hi Matt,

Here simply solution for you.
1. open '../includes/view.inc.php'
find following code

/** get featured links **/
if ($config->get('featured_links'))
{
$featured_links = $Link->getFeatured($id, 0, $config->get('num_featured_display'));
$gDirSmarty->assign_by_ref('featured_links', $featured_links);
}


add following code after it

/** get featured for left side links **/
if ($config->get('featured_links'))
{
$featured_links_ls = $Link->getFeatured($id, 0, $config->get('num_featured_display'));
$gDirSmarty->assign_by_ref('featured_links_ls', $featured_links_ls);
}


*** save and close it.

2. open '../templates/Thematic_BLUE/header.tpl'
find following code

{if {$config.banners and $left_banner}
<!-- left banner start -->
{dynamic}
{include file="banner.tpl" banner=$left_banner}
{/dynamic}
<!-- left banner end -->
{/if}


add before it following code

{if $config.featured_box && $featured_links_ls}
<!-- featured links box start -->
{include file="box-header.tpl" caption=$lang.featured_links style="column"}
<div class="links">
{foreach from=$featured_links_ls item=link}
<div class="featured-link"><a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{$link.title}</a></div>
{/foreach}
</div>
{include file="box-footer.tpl"}
<!-- featured links box end -->
{/if}


*** save and close it.

HTH

Digityman
05-16-2007, 09:48 PM
Seriously -
You are good John.
Nice work.

Now, I have one that will test you skill. Ready?

My site --> www.memassagedirectory.com

I would like to use the block where the editors login would go as a "premium" banner ad. Is this possible?
As you can tell, I don't want to use the editors login so it's just wasted space.

John Turner
05-17-2007, 12:12 PM
Hi Matt,

Thanks for positive words about my work.
I checked your Directory, I think you got it?
If not describe your goal in more details.

Digityman
05-17-2007, 02:05 PM
Hey John -

www.memassagedirectory.com

I'm actually looking to fill the space between "Maine List" and the logo. It's the light blue part just below the logo and to the left of the clouds.

Any thoughts?

John Turner
05-18-2007, 03:58 AM
Hi Matt,

Thanks for positive words about my work.
I checked your Directory, I think you got it.
If not please describe your goal in more details.

Digityman
05-22-2007, 04:37 PM
John -
You said the same thing in the post before my last one.
I didn't get it.
Please read my previous post. It explains it clearly.

Thanks!

Dave Baker
05-22-2007, 05:16 PM
Hello Digityman,
***Open templates/yourTemplate/header.tpl and find code:***

{if $config.editors}
<!-- editors box start -->
{dynamic}
{include file="box-header.tpl" caption=$lang.editors_area style="column"}
{if $editor}
{$lang.welcome}, <strong style="color: #FFF;">{$editor.username}</strong>!
<ul class="editor-menu">
{if $category.id > 0 || $config.categories_list}
{if $config.suggest_category}<li><a href="suggest-category.php{if $category.id}?id={$category.id}{else}?id=0{/if}">{$lang.suggest_category}</a></li>{/if}
<li><a href="suggest-link.php{if $category.id}?id={$category.id}{else}?id=0{/if}">{$lang.suggest_link}</a></li>
{/if}

***Before add***

<img src="uploads/YourImage.gif" alt="" title="" />

***Save changes***
Your image should be placed in the "uploads/" folder of your directory.

Digityman
05-24-2007, 01:16 PM
Dave -
Great help.
That worked.
Thanks again.

Dave Baker
05-24-2007, 05:23 PM
You're welcome!