#1 2006-08-16 23:34:22

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Trying change hyperlink of logo at top.

I'll try posting a new topic for this question.

I am trying to get the logo.jpg at the top of the page(which I have changed to my own)  to link to my home page not the forum.

At present, when I click the logo at the top, it goes to www.*****.com/dir/, as yours does (www.wwwthreads.com/forum/).  At the moment, when I click the logo, it goes to the page of the test forum with the following post: If you are looking at this (which I guess you are), the install of WWWThreads Forum appears to have worked! Now log in and head over to the administration control panel to configure your forum.

I have deleted the install folder and the Test forum category but it still goes to this page.

How do I fix this so it either goes to /forum/index.php or my site homepage(preferred)

Thanks
David

Offline

 

#2 2006-08-17 16:00:59

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Hi Tabs,

Thanks for the offer.

I want the logo at top to link to www.slimsafeonline.com


Let me know if I have not given you the right code.

Thanks David



$tpl_main = str_replace('<forum_page>', basename($_SERVER['PHP_SELF'], '.php'), $tpl_main);
//$tpl_main = str_replace('<forum_title>', '<h1><span>'.convert_htmlspecialchars($configuration['o_board_title']).'</span></h1>', $tpl_main);
$tpl_main = str_replace('<forum_title>', '<img src="img/wwwlogo.gif" title="WWWThreads" alt="WWWThreads" border="0">', $tpl_main);
$tpl_main = str_replace('<forum_description>', '<p><span>'.$configuration['o_board_desc'].'</span></p>', $tpl_main);
$tpl_main = str_replace('<forum_navlinks>','<div id="brdmenu" class="inbox">'."\n\t\t\t". generate_navlinks()."\n\t\t".'</div>', $tpl_main);
if ($forum_user['is_guest'])
{
    $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li>'.$lang_common['Not logged in'].'</li></ul>'."\n\t\t\t";
    if (basename($_SERVER['PHP_SELF']) == 'view_topic.php') $tpl_temp .= "\n\t\t\t".'<ul class="conr"><li><a href="view_printable.php?id='.$id.'">'.$lang_common['Print version'].'</a></li></ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
    else $tpl_temp .= '<div class="clearer"></div></div>';
}
else
{
    $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li>'.$lang_common['Logged in as'].' <strong>'.convert_htmlspecialchars($forum_user['username']).'</strong></li>'."\n\t\t\t\t".'<li>'.$lang_common['Last visit'].': '.format_time($forum_user['last_visit']).'</li>';
    if ($forum_user['g_id'] < USER_GUEST)
    {
        $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
        if ($db->result($result_header)) $tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><strong><a href="admin_reports.php">There are new reports</a></strong></li>';
        if ($configuration['o_maintenance'] == '1') $tpl_temp .= "\n\t\t\t\t".'<li class="maintenancelink"><strong><a href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong></li>';
    }

Offline

 

#3 2006-08-17 17:47:00

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Thanks for that.

I replaced the code, but logo.jpg at the top still goes to www.slimsafeonline.com/community/ instead of www.slimsafeonline.com.
community/ should normally load up index.php but is loading the test forum (which I deleted in the admin section).

Doesn't make sense.

David

Offline

 

#4 2006-08-17 18:30:41

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

I will post the entire code in case I'm failing to give you the right bit.  Hope you don't mind.

Code: php:

<?php
if (!defined('IN_FORUM')) exit;
header('Expires: Mon, 1 January 1900 00:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
if (defined('ADMIN_CONSOLE'))
{
  if(is_file(FORUM_ROOT.'include/template/'.$forum_user['style'].'/admin.tpl')) $tpl_main = file_get_contents(FORUM_ROOT.'include/template/'.$forum_user['style'].'/admin.tpl');
  else $tpl_main = file_get_contents(FORUM_ROOT.'include/template/admin.tpl');
}
else if (defined('FORUM_HELP'))
{
  if(is_file(FORUM_ROOT.'include/template/'.$forum_user['style'].'/help.tpl')) $tpl_main = file_get_contents(FORUM_ROOT.'include/template/'.$forum_user['style'].'/help.tpl');
  else $tpl_main = file_get_contents(FORUM_ROOT.'include/template/help.tpl');
}
else
{
  if(is_file(FORUM_ROOT.'include/template/'.$forum_user['style'].'/main.tpl')) $tpl_main = file_get_contents(FORUM_ROOT.'include/template/'.$forum_user['style'].'/main.tpl');
  else $tpl_main = file_get_contents(FORUM_ROOT.'include/template/main.tpl');
}
$tpl_main = str_replace('<forum_content_direction>', $lang_common['lang_direction'], $tpl_main);
if (defined('IN_WIKI'))
{
  include FORUM_ROOT.'lang/English/lang.php';
  include FORUM_ROOT.'lang/'.$forum_user['language'].'/lang.php';
  $tpl_main = str_replace('<forum_char_encoding>', $lang['encoding'], $tpl_main);
}
else
{
  $tpl_main = str_replace('<forum_char_encoding>', $lang_common['lang_encoding'], $tpl_main);
}
ob_start();
if (!defined('ALLOW_INDEX')) echo "\t".'<meta name="ROBOTS" content="NOINDEX, FOLLOW" />'."\n";
echo "\t".'<meta name="description" content="' . $configuration['o_board_meta'] .'" />'."\n";
echo "\t".'<meta name="keywords" content="' . $configuration['o_board_meta_keywords'] .'" />'."\n";
if ($configuration['o_board_meta_author']) echo "\t".'<meta name="author" content="Generated by WWWThreads Forum (C) 2005-2006 WWWThreads" />'."\n";
if (defined('IN_WIKI'))
{
  require_once("wiki/common.php");
  $ID = str_replace('_',' ',$ID);
  $page_title = convert_htmlspecialchars($configuration['o_board_title'])." (Powered By WWWThreads Forums)" .' / '.$conf['title'].' / '.$ID;
?>
  <title><?php echo $page_title ?> (Powered By WWWThreads Forums)</title>
  <link rel="stylesheet" type="text/css" href="style/<?php echo $forum_user['style'].'.css' ?>" />
  <link rel="stylesheet" type="text/css" href="style/<?php echo $forum_user['style'].'_wiki.css' ?>" />
<?php
  html_head();
}
else
{
?>
  <title><?php echo $page_title ?></title>
  <link rel="stylesheet" type="text/css" href="style/<?php echo $forum_user['style'].'.css' ?>" />
<?php
}
define("_BBC_PAGE_NAME", $page_title);
define("_BBCLONE_DIR", "include/stats/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
echo ("\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"New topics feed.\" href=\"extern.php?action=new&amp;type=rss\"/>\n");
echo ("\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Recent activity feed.\" href=\"extern.php?action=active&amp;type=rss\"/>\n");
if ($id)
{
  if (ereg('view_forum.php', $REQUEST_URI))
  {
    $auto_discover_new = '<link rel="alternate" type="application/rss+xml" title="New topics feed for forum #'.$id.'." href="extern.php?action=new&amp;type=rss&amp;fid='.$id.'"/>';
    $auto_discover_active = '<link rel="alternate" type="application/rss+xml" title="Recent activity feed for forum #'.$id.'." href="extern.php?action=active&amp;type=rss&amp;fid='.$id.'"/>';
    echo ($auto_discover_new . "\n" . $auto_discover_active . "\n");
  }
}
?>
  <link rel="stylesheet" type="text/css" href="include/css/syntax_highlighter.css" />
<?php
if (defined('ADMIN_CONSOLE')) echo "\t".'<link rel="stylesheet" type="text/css" href="include/css/base_admin.css" />'."\n";
$script_filename = basename($_SERVER['PHP_SELF']);
if ($script_filename == 'view_topic.php' || $script_filename == 'post.php' || $script_filename == 'edit.php') echo '<link rel="stylesheet" type="text/css" href="include/css/image_upload.css" />'."\n";
if ($script_filename == 'post.php' || $script_filename == 'edit.php' || $script_filename == 'poll.php')
{
  echo '<script type="text/javascript">
    function process_form(the_form)
    {
      var element_names = new Object()
      element_names["req_email"] = "E-mail"
      element_names["req_subject"] = "Subject"
      element_names["req_message"] = "Message"
      if (document.all || document.getElementById)
      {
        for (i = 0; i < the_form.length; ++i)
        {
          var elem = the_form.elements[i]
          if (elem.name && elem.name.substring(0, 4) == "req_")
          {
            if (elem.type && (elem.type=="text" || elem.type=="textarea" || elem.type=="password" || elem.type=="file") && elem.value=="")
            {
              alert("\"" + element_names[elem.name] + "\" is a required field in this form.")
              elem.focus()
              return false
            }
          }
        }
      }
      return true
    }
    </script>
    <script language="Javascript" src="include/tiny_mce/tiny_mce_gzip.php"></script>
    <script language="Javascript" src="include/tiny_mce/tinymce_integration.js"></script>';
}
if ($script_filename == 'profile.php' || $script_filename == 'admin_options.php' || $script_filename == 'admin_loader.php' || $script_filename == 'admin_modules.php' || $script_filename == 'admin_maintenance.php' || $script_filename == 'admin_reports.php' || $script_filename == 'admin_censoring.php' || $script_filename == 'admin_bans.php' || $script_filename == 'admin_ranks.php' || $script_filename == 'admin_notes.php' || $script_filename == 'admin_permissions.php' || $script_filename == 'admin_categories.php' || $script_filename == 'admin_users.php' || $script_filename == 'admin_forums.php' || $script_filename == 'admin_groups.php' || $script_filename == 'admin_themes.php' || $script_filename == 'admin_index.php')
{
  echo '<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="include/css/tabpanel.css" />'."\n";
  echo '<script type="text/javascript" src="include/js/tabpanel.js"></script>'."\n";
  echo '<script type="text/javascript" src="include/js/ads.js"></script>'."\n";
}
if ($script_filename == 'admin_notes.php')
{
  echo '<script type="text/javascript" src="include/tiny_mce/tiny_mce_gzip.php"></script>'."\n";
  echo '
    <script type="text/javascript">
    tinyMCE.init({
      mode : "textareas",
      theme : "advanced",
      theme_advanced_toolbar_location : "top",
      verify_html : false,
      theme_advanced_buttons2_add_before: "hr,sup,sub,charmap,forecolor,backcolor",
      theme_advanced_buttons3: "",
      theme_advanced_disable: "code,visualaid,cleanup,help,anchor",
      remove_linebreaks : false
    });
    </script> ';
}
echo "\t".'<script type="text/javascript" src="include/js/overlib_mini.js"></script>'."\n";
echo "\t".'<script type="text/javascript" src="include/js/uncrypt_email.js"></script>'."\n";
echo "\t".'<script type="text/javascript" src="include/js/global.js"></script>'."\n";
if (isset($required_fields))
{
?>
<script type="text/javascript">
<!--
function process_form(the_form)
{
  var element_names = new Object()
<?php
  while (list($elem_orig, $elem_trans) = @each($required_fields)) echo "\t".'element_names["'.$elem_orig.'"] = "'.addslashes(str_replace('&nbsp;', ' ', $elem_trans)).'"'."\n";
?>
  if (document.all || document.getElementById)
  {
    for (i = 0; i < the_form.length; ++i)
    {
      var elem = the_form.elements[i]
      if (elem.name && elem.name.substring(0, 4) == "req_")
      {
        if (elem.type && (elem.type=="text" || elem.type=="textarea" || elem.type=="password" || elem.type=="file") && elem.value=='')
        {
          alert("\"" + element_names[elem.name] + "\" <?php echo $lang_common['required field'] ?>")
          elem.focus()
          return false
        }
      }
    }
  }
  return true
}
// -->
</script>
<?php
}
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false) echo '<script type="text/javascript" src="include/js/minmax.js"></script>'."\n";
if ($script_filename == 'edit.php' || $script_filename == 'poll.php' || $script_filename == 'post.php') echo '<script type="text/javascript" src="include/js/image_upload.js"></script>'."\n";
if ($script_filename == 'post.php' || $script_filename == 'poll.php' || $script_filename == 'edit.php') echo '<script type="text/javascript" src="include/js/spellmessage.js"></script>'."\n";
if ($script_filename == 'admin_groups.php') echo '<script type="text/javascript" src="include/js/color_picker.js"></script>'."\n";
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<forum_head>', $tpl_temp, $tpl_main);
ob_end_clean();
if (isset($focus_element))
{
  $tpl_main = str_replace('<body onload="', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus();', $tpl_main);
  $tpl_main = str_replace('<body>', '<body onload="document.getElementById(\''.$focus_element[0].'\').'.$focus_element[1].'.focus()">', $tpl_main);
}
$tpl_main = str_replace('<forum_page>', basename($_SERVER['PHP_SELF'], '.php'), $tpl_main);
//$tpl_main = str_replace('<forum_title>', '<h1><span>'.convert_htmlspecialchars($configuration['o_board_title']).'</span></h1>', $tpl_main);
$tpl_main = str_replace('<forum_title>', '<a href="www.slimsafeonline.com"><img src="img/wwwlogo.gif" title="WWWThreads" alt="WWWThreads" border="0"></a>', $tpl_main);
$tpl_main = str_replace('<forum_description>', '<p><span>'.$configuration['o_board_desc'].'</span></p>', $tpl_main);
$tpl_main = str_replace('<forum_navlinks>','<div id="brdmenu" class="inbox">'."\n\t\t\t". generate_navlinks()."\n\t\t".'</div>', $tpl_main);
if ($forum_user['is_guest'])
{
  $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li>'.$lang_common['Not logged in'].'</li></ul>'."\n\t\t\t";
  if (basename($_SERVER['PHP_SELF']) == 'view_topic.php') $tpl_temp .= "\n\t\t\t".'<ul class="conr"><li><a href="view_printable.php?id='.$id.'">'.$lang_common['Print version'].'</a></li></ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
  else $tpl_temp .= '<div class="clearer"></div></div>';
}
else
{
  $tpl_temp = '<div id="brdwelcome" class="inbox">'."\n\t\t\t".'<ul class="conl">'."\n\t\t\t\t".'<li>'.$lang_common['Logged in as'].' <strong>'.convert_htmlspecialchars($forum_user['username']).'</strong></li>'."\n\t\t\t\t".'<li>'.$lang_common['Last visit'].': '.format_time($forum_user['last_visit']).'</li>';
  if ($forum_user['g_id'] < USER_GUEST)
  {
    $result_header = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
    if ($db->result($result_header)) $tpl_temp .= "\n\t\t\t\t".'<li class="reportlink"><strong><a href="admin_reports.php">There are new reports</a></strong></li>';
    if ($configuration['o_maintenance'] == '1') $tpl_temp .= "\n\t\t\t\t".'<li class="maintenancelink"><strong><a href="admin_options.php#maintenance">Maintenance mode is enabled!</a></strong></li>';
  }
  if(!$forum_user['is_guest'] && $forum_user['g_pm'] == 1 && $configuration['o_pms_enabled'] )
  {
    require FORUM_ROOT.'lang/'.$forum_user['language'].'/pms.php';
    $result_messages = $db->query('SELECT COUNT(id) FROM '.$db->prefix.'messages WHERE showed=0 AND owner='.$forum_user['id']) or error('Unable to check for new messages', __FILE__, __LINE__, $db->error());
    if ($db->result($result_messages, 0))
    {
      $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['You have'].$db->result($result_messages, 0).' '.$lang_pms['New messages'].'</a></strong></li>';
    }
    if($configuration['o_pms_messages'] != 0 && $forum_user['g_id'] > USER_GUEST)
    {
      $result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$forum_user['id']) or error('Unable to test if the message-box is full', __FILE__, __LINE__, $db->error());
      list($count) = $db->fetch_row($result);
      if($count >= $forum_user['g_pm_limit']) $tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">'.$lang_pms['Full inbox'].'</a></strong></li>';
    }
  }
  if (in_array(basename($_SERVER['PHP_SELF']), array('index.php', 'search.php'))) $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="search.php?action=show_new">'.$lang_common['Show new posts'].'</a></li>'."\n\t\t\t\t".'<li><a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a></li>'."\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
  else if (basename($_SERVER['PHP_SELF']) == 'view_forum.php') $tpl_temp .= '</ul>'."\n\t\t\t".'<p class="conr"><a href="misc.php?action=markforumread&id='.$id.'">'.$lang_common['Mark forum as read'].'</a></p>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
  else
  if (basename($_SERVER['PHP_SELF']) == 'view_topic.php') $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<ul class="conr">'."\n\t\t\t\t".'<li><a href="view_printable.php?id='.$id.'">'.$lang_common['Print version'].'</a></li></ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
  else $tpl_temp .= "\n\t\t\t".'</ul>'."\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
}
$tpl_main = str_replace('<forum_status>', $tpl_temp, $tpl_main);
if ($configuration['o_announcement'] == '1')
{
  ob_start();
?>
<div id="announce" class="block">
  <h2><span><?php echo $lang_common['Announcement'] ?></span></h2>
  <div class="box">
    <div class="inbox">
      <div><?php echo $configuration['o_announcement_message'] ?></div>
    </div>
  </div>
</div>
<?php
  $tpl_temp = trim(ob_get_contents());
  $tpl_main = str_replace('<forum_announcement>', $tpl_temp, $tpl_main);
  ob_end_clean();
}
else $tpl_main = str_replace('<forum_announcement>', '', $tpl_main);
if ($configuration['o_advertisement'] == '1')
{
  ob_start();
?>
<div id="advertisement" class="block">
  <h2><span><?php echo $lang_common['Advertisement'] ?></span></h2>
  <div class="box">
    <div class="inbox">
      <div><?php echo $configuration['o_advertisement_message'] ?></div>
    </div>
  </div>
</div>
<?php
  $tpl_temp = trim(ob_get_contents());
  $tpl_main = str_replace('<forum_advertisement>', $tpl_temp, $tpl_main);
  ob_end_clean();
}
else $tpl_main = str_replace('<forum_advertisement>', '', $tpl_main);
if ($configuration['o_information'] == '1')
{
  ob_start();
?>
<div id="information" class="block">
  <h2><span><?php echo $lang_common['Information'] ?></span></h2>
  <div class="box">
    <div class="inbox">
      <div><?php echo $configuration['o_information_message'] ?></div>
    </div>
  </div>
</div>
<?php
  $tpl_temp = trim(ob_get_contents());
  $tpl_main = str_replace('<forum_information>', $tpl_temp, $tpl_main);
  ob_end_clean();
}
else $tpl_main = str_replace('<forum_information>', '', $tpl_main);
if ($configuration['o_guest_information'] == '1' && $forum_user['g_id'] == USER_GUEST)
{
  ob_start();
?>
<div id="guestinformation" class="block">
  <h2><span><?php echo $lang_common['Guest_information'] ?></span></h2>
  <div class="box">
    <div class="inbox">
      <div><?php echo $configuration['o_guest_information_message'] ?></div>
    </div>
  </div>
</div>
<?php
  $tpl_temp = trim(ob_get_contents());
  $tpl_main = str_replace('<forum_guest_information>', $tpl_temp, $tpl_main);
  ob_end_clean();
}
else $tpl_main = str_replace('<forum_guest_information>', '', $tpl_main);
ob_start();
if (defined('IN_WIKI') && $lang_common['lang_encoding'] != 'iso-8859-1' && $lang_common['lang_encoding'] != 'utf-8') msg('Wiki cannot support this language as is cannot be converted to utf-8',-1);
elseif (defined('IN_WIKI') && $lang['encoding'] == 'utf-8') $tpl_main = utf8_encode($tpl_main);
define('FORUM_HEADER', 1);

Offline

 

#5 2006-08-17 22:31:33

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Using your previous code as an example, where it says href: I entered www.slimsafeonline.com but when I tried it, I got www.slimsafeonline.com/community/www.slimsafeonline.com

So here is the whole file code of main.tpl

Code: php:

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="<forum_content_direction>">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="shortcut icon" href="img/general/favicon.ico" />
<forum_head>
</head>
<body>
<script type="text/javascript">var ol_textsize = "10px";</script>
  <div id="re_vowrap">
    <div id="re_vowrap2">
      <div id="re_vo<forum_page>" class="re_vo">
        <div id="brdheader" class="block">
          <div class="box">
            <div class="custom_header">
              <a href="./"><img src="img/Default/logo.jpg" border="0"></a>
            </div>

<!--          <div id="brdtitle">
              <forum_title>
              <forum_description>
            </div>-->


            <forum_navlinks>
            <forum_status>
          </div>
        </div>
        <forum_announcement>
        <forum_guest_information>
        <forum_main>
        <forum_advertisement>
        <forum_information>
        <forum_footer>
      </div>
      <a name="bottom" id="EOP" />
    </div>
  </div>
</body>
</html>

Offline

 

#6 2006-08-17 22:42:29

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

By changing the "./" to "index.php" in the following line, <a href="./"><img src="img/Default/logo.jpg" border="0"></a>
I have at least managed to get the hyperlink on the logo to not go the setup page, so that solves that problem, but I have no way back to the home page of the website.  If I can get the logo to go to the home page, I would be a happy camper.

Thanks
David

Offline

 

#7 2006-08-17 23:35:39

DavidA
Member
RankingRanking
Registered: 2006-08-09
Posts: 20
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Thanks Tabs,

Now that I know how, I will have to choose between having the forum open in a new window from the website, therfore having the logo link to the forum index page where is it now going or have the logo return to the home page.

I appreciate your help and efforts.

David

Offline

 

#8 2006-08-20 04:01:13

mib
Member
RankingRankingRankingRanking
Registered: 2006-07-12
Posts: 188
Reputation :  [+ 13/ -1 ]
Expertise

Re: Trying change hyperlink of logo at top.

Use
include/template/main.tpl
include/template/admin.tpl
files to
change logo and link url at frontend and backend.

Here you can find string like this <a href="./"><img
src="img/Default/logo.jpg" border="0"></a> to link external server
replace "./" to http://server.com

to change logo replace "img/Default/logo.jpg" to your logo path...

Offline

 

#9 2007-07-25 10:53:01

benney50
Member
RankingRanking
Registered: 2007-07-23
Posts: 15
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

mib wrote:

Use
include/template/main.tpl
include/template/admin.tpl
files to
change logo and link url at frontend and backend.

Here you can find string like this <a href="./"><img
src="img/Default/logo.jpg" border="0"></a> to link external server
replace "./" to http://server.com

to change logo replace "img/Default/logo.jpg" to your logo path...

Hi smiley-smile

I am having a similar problem. The link on the logo takes me to here http://www.priceform.com/forum/. I would like it to go to http://www.priceform.com.

As a "not very teckie", could you walk me through it?

Thanks in advance

Patrick

Offline

 

#10 2007-07-25 22:38:10

Rambosko
Member
RankingRanking
Registered: 2006-07-15
Posts: 36
Reputation :  [+ 1/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

login as a administrator > Admin menu > Options > General Tab > Change Base URL > Save

Offline

 

#11 2007-07-25 23:29:52

benney50
Member
RankingRanking
Registered: 2007-07-23
Posts: 15
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Rambosko wrote:

login as a administrator > Admin menu > Options > General Tab > Change Base URL > Save

Hi smiley-smile

I have tried that with no effect smiley-sad

Regards

Offline

 

#12 2007-07-26 08:49:22

benney50
Member
RankingRanking
Registered: 2007-07-23
Posts: 15
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Hi smiley-smile

Is there anybody who can help?

I cannot figure it out. I have gone to the below but cannot find the specific line of code.

"Here you can find string like this <a href="./"><img
src="img/Default/logo.jpg" border="0"></a> to link external server
replace "./" to http://server.com"

Regards

Patrick

Offline

 

#13 2007-07-26 08:51:32

benney50
Member
RankingRanking
Registered: 2007-07-23
Posts: 15
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

This is the code i can see

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="<forum_content_direction>">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="shortcut icon" href="img/general/favicon.ico" />
<forum_head>
</head>
<body>
<script type="text/javascript">var ol_textsize = "10px";</script>
    <div id="re_vowrap">
        <div id="re_vowrap2">
            <div id="re_vo<forum_page>" class="re_vo">
                <div id="brdheader" class="block">
                    <div class="box">
                        <div class="custom_header">
                            <forum_logo>
                        </div>
                        <!--
                        <div id="brdtitle">
                            <forum_title>
                            <forum_description>
                        </div>
                        -->
                        <div id="rightmenu">
                        <forum_navlinks>
                        <forum_status>
                        </div>
                    </div>
                </div>
                <forum_announcement>
                <forum_guest_information>
                <forum_main>
                <forum_advertisement>
                <forum_information>
                <forum_footer>
            </div>
            <a name="bottom" id="EOP" />
        </div>
    </div>
</body>
</html>


Regards

Offline

 

#14 2007-07-27 22:52:53

mib
Member
RankingRankingRankingRanking
Registered: 2006-07-12
Posts: 188
Reputation :  [+ 13/ -1 ]
Expertise

Re: Trying change hyperlink of logo at top.

Find and Open header.php file

* Find the following Line

Code::

//logo
$tpl_main = str_replace('<forum_logo>', '<a href="./"><img src="img/'.$forum_user['style'].'/logo.jpg" border="0" title="WWWThreads" alt="WWWThreads" /></a>', $tpl_main);

* Replace with

Code::

//logo
$tpl_main = str_replace('<forum_logo>', '<a href="http://www.priceform.com/"><img src="img/'.$forum_user['style'].'/logo.jpg" border="0" title="WWWThreads" alt="WWWThreads" /></a>', $tpl_main);

Offline

 

#15 2007-07-28 03:15:35

benney50
Member
RankingRanking
Registered: 2007-07-23
Posts: 15
Reputation :  [+ 0/ -0 ]
Expertise

Re: Trying change hyperlink of logo at top.

Hi smiley-smile

Thank you, thank you, thank you smiley-smile smiley-smile

Offline

 

Board footer

OPML feedsRSS feeds



Powered by WWWThreads Forum
© Copyright 2006, WWWThreads