One forums latest posts on another forum

Started by yourdailysaver, December 10, 2009, 01:07:06 AM

Previous topic - Next topic

yourdailysaver

and sorry sir but one more issue when i am clicking on recent posts it opens in same small window . is it possible to make them links which opens in new browser window ?

Arantor

So how exactly does it look then?

BEFORE I go any further, please PM me with a link to actually show me the block you've added because right now I'm trying to figure out how to make something look different without seeing the code you have now.
Holder of controversial views, all of which my own.



Arantor

This might help.

<?php require('/homepages/9/d269191381/htdocs/ForumBollychilli/SSI.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/Themes/default/css/index.css?rc2" />
<title>Untitled Document</title>
</head>
<body>
<?php $posts ssi_recentTopics(8nullnull'array');
echo '
<table border="0" class="ssi_table">'
;
foreach ($posts as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">
['
$post['board']['link'], ']
</td>
<td valign="top">
<a target="_blank" href="'
$post['href'], '">'$post['subject'], '</a>
'
$txt['by'], ' '$post['poster']['link'], '
'
, !$post['is_new'] ? '' '<a href="' $scripturl '?topic=' $post['topic'] . '.msg' $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' $settings['lang_images_url'] . '/new.gif" alt="' $txt['new'] . '" border="0" /></a>''
</td>
<td align="right" nowrap="nowrap">
'
$post['time'], '
</td>
</tr>'
;
echo '
</table>'
;
?>

</body>
</html>


This should load the main style code for Curve (the theme in use), then lay it out using the rules therein, plus load it in a new tab as opposed to the frame.
Holder of controversial views, all of which my own.


yourdailysaver

where do i need to add this code sir ? in recenttopics.php file ?

Arantor

Holder of controversial views, all of which my own.


yourdailysaver

Quote from: Arantor on December 12, 2009, 05:15:50 PM
Yes. In place of the code you had before.

yes sir the click problem is solved it opens in new window now. but the background was better before and how to remove board name, date & time and posted by from the list. and it shows large blank space after topic list you can check it at the same link. i have activated the block now.

Arantor

#47
<?php require('/homepages/9/d269191381/htdocs/ForumBollychilli/SSI.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/Themes/default/css/index.css?rc2" />
<title>Untitled Document</title>
</head>
<body style="background:#F0F4F7;">
<?php $posts ssi_recentTopics(8nullnull'array');
echo '
<table border="0" class="ssi_table">
<tr>
<td>'
;
foreach ($posts as $post)
echo '
<a target="_blank" href="'
$post['href'], '">'$post['subject'], '</a>
'
$txt['by'], ' '$post['poster']['link'], '
'
, !$post['is_new'] ? '' '<a href="' $scripturl '?topic=' $post['topic'] . '.msg' $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' $settings['lang_images_url'] . '/new.gif" alt="' $txt['new'] . '" border="0" /></a>''
<br />
'
$post['time'], '
<hr />'
;

echo '
</td>
</tr>
</table>'
;
?>

</body>
</html>
Holder of controversial views, all of which my own.


yourdailysaver

thanks a lot sir i really appreciate your efforts . i can't believe its done . i have enabled block now you can see that .

Arantor

Good to see it's working. You can shorten it by shortening the height in the iframe.

There was a minor typo in the code - the last <td> should have been </td> - I've fixed the above though.
Holder of controversial views, all of which my own.


yourdailysaver

thanks a lot sir i have shortened it also . just last request if its possible to bold those fonts as it looks little thinner than recent posts block

Arantor

<?php require('/homepages/9/d269191381/htdocs/ForumBollychilli/SSI.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/Themes/default/css/index.css?rc2" />
<title>Untitled Document</title>
</head>
<body style="background:#F0F4F7;">
<?php $posts ssi_recentTopics(8nullnull'array');
echo '
<table border="0" class="ssi_table">
<tr>
<td>'
;
foreach ($posts as $post)
echo '
<span class="smalltext">
<strong><a target="_blank" href="'
$post['href'], '">'$post['subject'], '</a></strong>
'
$txt['by'], ' '$post['poster']['link'], '
'
, !$post['is_new'] ? '' '<a href="' $scripturl '?topic=' $post['topic'] . '.msg' $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' $settings['lang_images_url'] . '/new.gif" alt="' $txt['new'] . '" border="0" /></a>''
<br />
'
$post['time'], '</span>
<hr />'
;

echo '
</td>
</tr>
</table>'
;
?>

</body>
</html>
Holder of controversial views, all of which my own.


yourdailysaver

great sir you are a genious. thanks a lot once again

Advertisement: