latest blocks on right columns
capslock 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: latest blocks on right columns
Swarmer 0
From: -
From: -
latest blocks on right columns
Thanks!
Thanks!
1 Re: latest blocks on right columns
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
latest blocks on right columns
should be:
$block_downloads .= "- <a href="https://www.contentteller.com/download.php?det=$insert[download_id]">$insert[download_title]</a><br />";
should be:
$block_downloads .= "- <a href="https://www.contentteller.com/download.php?det=$data[download_id]">$data[download_title]</a><br />";
1 Re: latest blocks on right columns
Swarmer 0
From: -
From: -
latest blocks on right columns
Hi. I'm trying to set up a top 10 downloads in the left side column using info from this thread. my site_header template looks like this,
<?php
global $insert;
dbconnect();
$block_downloads = "";
$result = DBQuery("SELECT * FROM esselbach_st_downloads WHERE download_hook = '0' LIMIT 10");
while ($data = mysql_fetch_array($result))
{
$block_downloads .= "- <a href="https://www.contentteller.com/download.php?det=$insert[download_id]">$insert[download_title]</a><br />";
}
$EST_TEMPLATE = <<<TEMPLATE
<!-- Template site_header -->
and i added $block_downloads to the html section of site_header where i want it be but all that is showing up is the individual dashes for the listings. what am i doing wrong here? thanks
Hi. I'm trying to set up a top 10 downloads in the left side column using info from this thread. my site_header template looks like this,
<?php
global $insert;
dbconnect();
$block_downloads = "";
$result = DBQuery("SELECT * FROM esselbach_st_downloads WHERE download_hook = '0' LIMIT 10");
while ($data = mysql_fetch_array($result))
{
$block_downloads .= "- <a href="https://www.contentteller.com/download.php?det=$insert[download_id]">$insert[download_title]</a><br />";
}
$EST_TEMPLATE = <<<TEMPLATE
<!-- Template site_header -->
and i added $block_downloads to the html section of site_header where i want it be but all that is showing up is the individual dashes for the listings. what am i doing wrong here? thanks
1 Re: latest blocks on right columns
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
latest blocks on right columns
For the forums try the following:
and $block_forums in the HTML part.
For the forums try the following:
$block_forums = "";
$bbdata = BBGetTopics();
for($t = 0; $t < count($bbdata); $t++)
{
$datasplit = explode("||~||", $bbdata[$t]);
$block_forums .= "- <a href="https://www.contentteller.com/$datasplit[0]">$datasplit[1]</a><br />";
}
dbconnect();
and $block_forums in the HTML part.
1 Re: latest blocks on right columns
capslock
OP
0
From: -
From: -
latest blocks on right columns
Perfect!!
Perfect!!
1 Re: latest blocks on right columns
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
latest blocks on right columns
Here an example for reviews, news and downloads. Forums will follow later.
Add in the PHP part of site_footer the following:
Now you can use $block_review, $block_news, and $block_downloads in the HTML part of the template.
Here an example for reviews, news and downloads. Forums will follow later.
Add in the PHP part of site_footer the following:
dbconnect();
$block_review = "";
$result = DBQuery("SELECT * FROM esselbach_st_review WHERE review_hook = '0' AND review_page = '1' LIMIT 10");
while ($data = mysql_fetch_array($result))
{
$block_review .= "- <a href="https://www.contentteller.com/review.php?id=$data[review_id]">$data[review_title]</a><br />";
}
$block_news = "";
$result = DBQuery("SELECT * FROM esselbach_st_stories WHERE story_hook = '0' LIMIT 10");
while ($data = mysql_fetch_array($result))
{
$block_news .= "- <a href="https://www.contentteller.com/story.php?id=$data[story_id]">$data[story_title]</a><br />";
}
$block_downloads = "";
$result = DBQuery("SELECT * FROM esselbach_st_downloads WHERE download_hook = '0' LIMIT 10");
while ($data = mysql_fetch_array($result))
{
$block_downloads .= "- <a href="https://www.contentteller.com/download.php?det=$insert[download_id]">$insert[download_title]</a><br />";
}
Now you can use $block_review, $block_news, and $block_downloads in the HTML part of the template.
1 Re: latest blocks on right columns
capslock
OP
0
From: -
From: -
latest blocks on right columns
forum, reviews, news and downloads
forum, reviews, news and downloads
1 Re: latest blocks on right columns
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
latest blocks on right columns
Yes, everything is possible. Which block like you display on the right side?
Yes, everything is possible. Which block like you display on the right side?
1 Re: latest blocks on right columns
capslock
OP
0
From: -
From: -
latest blocks on right columns
is possible to do that?
is possible to do that?
1 Re: latest blocks on right columns
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
latest blocks on right columns
Not without some heavy modifications.
Not without some heavy modifications.
Is it possible to have latest blocks on right columns? (not on center like now)