View Full Version : Small frame at the top
Is it possible for eSyndicat Directory version 1.5 to have like the functionality of this directory >>> HERE (http://www.pinoyblogger.com/modules.php?op=modload&name=Web_Links&file=index)
That is, everytime visitors click a link from his directory, the site will open but there is a small frame at the top of the website that was opened that contains links back to his directory. Is it possible for eSyndicat Directory version 1.5?
Dave Baker
08-14-2006, 05:53 AM
Hello enoc,
Yes it is possible. You can create a page with frames which will open at transition on a hyperlink. And to transfer in URL the address necessary for loadings. Which will load in one of frames.
you mean I will going to create a page with frame everytime I will add link to my directory?
Is there any other way so that it will done automatically ??
Vincent Wright
08-14-2006, 11:02 AM
Well, I clicked a link in the aforementioned directory -- I cannot see any frame there.
Dave Baker
08-15-2006, 06:36 AM
I meant the following:
Create a file frame.php in directory with such contents:
<?php
require_once('header.php');
$gDirSmarty->display('frame.tpl');
?>
Create a file frame.tpl in yours template with such contents:
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
<link rel="stylesheet" type="text/css" href="{$templates}/css/style.css" />
</HEAD>
<FRAMESET rows="10%, 80%" border="1">
<FRAME name="frame1" src="menu.php" scrolling="no">
<FRAME name="frame2" src={$smarty.get.what}>
</FRAMESET>
</HTML>
In code red color designates file with my menu which will be shown in the top frame. This file should be located in a root directory.
Example of the links in this file
<a href="http://www.esyndicat.com" target="_blank">HOME</a>
OR
<a href="http://www.esyndicat.com" target="frame2">HOME</a>
Open link-display.tpl and find following line:
<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}</a>
and replace with the following:
<div class="title">{if $link.crossed}@{/if} <a href="frame.php?what={$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.esc_codes}{text_to_html aText=$link.title aParagraph=true}{else}{$link.title}{/if}</a>
It approximately, what I meant
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.