Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

DimiTech.eu - New design, new extras

Asked Modified Viewed 11,610 times
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
asked
Member

Hi guys! My site is in action again! http://www.dimitech.eu/ This time the site is in English and have much software, hardware and IT news. Check it out and tell me your opinions :)

PS. I will be very grateful if you like my facebook page or become follower on twitter:
http://www.facebook.com/dimitech.eu
https://twitter.com/dimitech_eu
0 replies

24 posts

S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

Well I copied viewpage.php, removed all code that i didn't need i make it how i want exactly.

For the separated news categories, i copied news.php in software.php for example, and in every sql query added "WHEN news_cat=14" (example again).

That's it! It's not much complicated. :)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

:|
Looks great yet I can't grasp how you guys do it. I suck.
There is of course a decent amount of content, which is excellent.

Just to have the forum latest posts in a side panel is genius.
And popular software (I assume thats download counts) in the same way.

Please release the theme for download if you haven't already.
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

The theme is very hardcoded right now. I will try to make it more fusion-like and then i will post it here.

Also, what's so hard with having the latest forum posts in a side panel? or you're just mocking me :D. And for the popular software you're right - most downloaded software is shown in the panel.

BTW. Tell me if you find any typos in the site. My English is not very good :(
0 replies
B
BlackDragon
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

@StoyaN
Can you attach to me your viewpage and software page for example how I need to use that. Sorry but I am just start learning PHP :S And I am not sure how use that :S
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

I'm sorry but i cant give you these files. You can try doing them yourself ;)
0 replies
B
BlackDragon
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

Can you type me here, where I need to put code inside example: software.php . Just type what code I need to put and where. I understand why you cant give me your files :). Please man I just need for my website to have listed news from specific category :).

Regards,
BlackDragon
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Quote

BlackDragon wrote:
Please man I just need for my website to have listed news from specific category :).

I put something together for you. Use this code in a center panel:

$cat = "2"; // News category id
$limit = "5"; // Number of news shown

$result = dbquery(
        "SELECT tn.*, tc.*, tu.user_id, tu.user_name, tu.user_status
        FROM ".DB_NEWS." tn
        LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
        LEFT JOIN ".DB_NEWS_CATS." tc ON tn.news_cat=tc.news_cat_id
        WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().")
        AND (news_end='0'||news_end>=".time().") AND news_draft='0'
        AND news_cat='".$cat."'
        GROUP BY news_id
        ORDER BY news_sticky DESC, news_datestamp DESC LIMIT $limit"
        );

opentable("News");
if(dbrows($result) != 0) {
  echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
  while($data = dbarray($result)) {
    $date = $data['news_datestamp'];
    $n_date = showdate("%d/%m/%y-%H.%I", $date);
    echo "<td class='small' align='center'><a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' /></a><br />\n";
    echo "<span style='background:#999; color:#fff; height:24px; padding:5px;'>".$n_date."</span><br /><br />";
    echo "<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'><b>".$data['news_subject']."</b></a>\n";
    echo "</td>\n";
  }
echo "</tr>\n</table>\n";
}
closetable();

Edit these two lines:

Quote

$cat = "2"; // News category id
$limit = "5"; // Number of news shown


For another time then make your own thread for your support questions..
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
answered
Veteran Member

nice work!
very good!
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Really man... I can observe you passion towards the website and fusion :D

Hats off to the work done on the site ;) Impressive ! Well Done :)

10/10 !
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

Thank you guys! I really appreciate it! :)
0 replies
B
BlackDragon
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums
answered
Member

@smokeman sorry because I spam this thread :S.
And thanks a lot for that :) :)
0 replies
— 3 months later —
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

I made some improvements :) Tell me what you think - http://www.dimitech.eu
0 replies
— 1 month later —
M
MattMadsen
M
Facebook site
https://www.facebook.com/Detherersjovt
The funniest facebook page in the world
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 15 threads in the forums
answered
Member

This is the finest and nicest Php fusion site I ever seen. 10/10 It's crazy how cool it is. :)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

I have to agree with Matt.

Unable to register on the site due to site email not being sent.

I would like to download an check out the theme layout a bit better, can you provide me with a link, or register me?
Edited by Homdax on 31-05-2012 12:49,
0 replies
S
spunk
S
spunk 10
www.duesseltag.de/../../images/banner/banner209x69.png
  • Member, joined since
  • Contributed 92 posts on the community forums.
  • Started 6 threads in the forums
answered
Member

Yes, this is a very nice site!

Can anybody tell me where i can find the "Latest posts" and "Top 5 posters" Panels?
0 replies
A
afoster
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
answered
Senior Member

Sending an email to the administrator does not work either. Perhaps he has shut down new registrations?
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I have the guy on Facebook Richard I will let you know soon.
0 replies
S
spunk
S
spunk 10
www.duesseltag.de/../../images/banner/banner209x69.png
  • Member, joined since
  • Contributed 92 posts on the community forums.
  • Started 6 threads in the forums
answered
Member

The contact.php does not work either.

I have contact Dimi by e-mail.
0 replies
S
StoyaN
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
answered
Member

code for New Posts:


[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
if (!defined("IN_FUSION"wink) { die("Access Denied"wink; }
$cdn='http://cdn.dimitech.net/v7/';
global $lastvisited;
if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }
$data = dbarray(dbquery(
"SELECT tt.thread_lastpost
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt ON tf.forum_id = tt.forum_id
WHERE ".groupaccess('tf.forum_access'wink." AND thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT ".($settings['numofthreads']-1).", 8"wink);
$timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];
$result = dbquery(
"SELECT user_avatar, tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_avatar, tu.user_name,
tu.user_status
FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('tf.forum_access'wink." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT 0,10"wink;
if (dbrows($result)) {
openside("New posts"wink;

$counter = 1; $columns = 2;
echo" <table width='100%' border='0' cellpadding='0' cellspacing='0' id='table-mneniq'>";
while ($data = dbarray($result)) {
echo "<tr>";
if ($counter == "1"wink { } else { echo "<td colspan='2' style='height:1px;background-color:#b8bcc5;'></td></tr><tr>";}
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
$avatar = "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='Avatar' width='34' style='vertical-align:middle;background:#FFF;border:1px solid #e4e8e9;border-collapse:separate;' height='34'/>\n";
} else {
$avatar = "<img src='http://www.dimitech.eu/images/avatars/noavatar100.png' alt='' style='vertical-align:middle;background:#FFF;border:1px solid #e4e8e9;border-collapse:separate;' width='34' height='34' />";
}
$padding="padding-top:3px;padding-bottom:3px;"; if ($counter == "1"wink { $padding= "padding-bottom:3px;"; } else { }
$otgovor = "posts";
if (($data['thread_postcount']-1)==1) { $otgovor = "post"; }
echo"
<td width='12' style='".$padding."padding-right:2px;vertical-align:middle;' valign='middle' align='right'><a href='".BASEDIR."profile.php?lookup=".$data['thread_lastuser']."' title='".$data['user_name']."'>".$avatar."</a></td>
<td style='".$padding."vertical-align:middle;' width='100%' align='left'>
<img src='".$cdn."images/bullet.gif' border='0' style='padding-left:2px;vertical-align:middle;' alt='-'/> <a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'><span style='font-size:13px;font-weight:bold;'>".trimlink($data['thread_subject'], 36)."</span></a>
<br/><img src='".$cdn."images/downloads.gif' alt='-' style='vertical-align:middle;' /><span style='font-size:10px;'> ".($data['thread_postcount']-1)." <span class='info_text'>".$otgovor.", last: </span>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."</span></td>
</tr>";
$counter++;
}
echo "</table>";
closeside();
}

?>[/syntaxhighlighter]

Merged on Jun 02 2012 at 12:58:14:
code for Latest posts:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Latest posts"wink;
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='forum-caption'></td></tr>";
$result = dbquery("
SELECT tt.*, tf.*, u.user_name FROM " . DB_THREADS . " tt
INNER JOIN " . DB_FORUMS . " tf ON tt.forum_id=tf.forum_id
INNER JOIN " . DB_USERS . " u ON tt.thread_lastuser=u.user_id
WHERE " . groupaccess('tf.forum_access'wink . "
ORDER BY thread_lastpost DESC LIMIT 5
"wink;
if (dbrows($result))
{
$count = 1;
while ($data = dbarray($result))
{
$class = ($count % 2 == 0 ? "tbl1" : "tbl1"wink;
$itemsubject = trimlink($data['thread_subject'], 50);
echo "<tr><td class='{$class}'>";
echo "<a href='viewthread.php?thread_id=" . $data['thread_id'] . "'>{$itemsubject}</a><br />";
echo "<small>by: " . profile_link($data['thread_lastuser'], $data['user_name'], "0", ""wink . "<br />";
echo ago($data['thread_lastpost']);
echo "</small></td></tr>";
echo"<tr><td style='height:1px;background-color:#ccc' colspan='6'></td></tr>";

$count++;
}
}

echo "</table>";
closeside();[/syntaxhighlighter]

Merged on Jun 02 2012 at 12:59:03:
code for Top 5 posters:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Top 5 posters"wink;
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
$result = dbquery("SELECT * FROM " . DB_USERS .
" WHERE user_posts != 0 AND user_status !=6 AND user_status !=5 ORDER BY user_posts DESC LIMIT 5
"wink;
if (dbrows($result))
{
$count = 1;
while ($data = dbarray($result))
{
$class = ($count % 2 == 0 ? "tbl1" : "tbl1"wink;
$fcount = dbcount("(thread_author)", DB_THREADS, "thread_author='".$data['user_id']."'"wink;
echo "<tr><td class='{$class}'>";
// echo "<div style='float:right;'>#{$count}</div>";
if (!empty($data['user_avatar']) && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='' align='left' style='width:40px; height:40px; padding-right:6px;' /> \n";
} else {
echo "<img src='".IMAGES."avatars/noavatar100.png' alt='' align='left' style='width:40px; height:40px; padding-right:6px;' /> \n";
}
echo profile_link($data['user_id'], $data['user_name'], $data['user_status']);
echo "<br /><small>".number_format($data['user_posts'])." posts<br />";
echo "". number_format($fcount)." threads</small>";
echo "</td></tr>";
echo"<tr><td style='height:1px;background-color:#ccc' colspan='6'></td></tr>";

$count++;
}
}

echo "</table>";
closeside();[/syntaxhighlighter]
Edited by StoyaN on 02-06-2012 13:59,
0 replies
S
spunk
S
spunk 10
www.duesseltag.de/../../images/banner/banner209x69.png
  • Member, joined since
  • Contributed 92 posts on the community forums.
  • Started 6 threads in the forums
answered
Member

Great! Thank you! :G
0 replies

Category Forum

Post Your Site

Labels

None yet

Statistics

  • Views 0 views
  • Posts 24 posts
  • Votes 0 votes
  • Topic users 11 members

11 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
S
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
A
A
  • Senior Member, joined since
  • Contributed 725 posts on the community forums.
  • Started 128 threads in the forums
S
S
StoyaN 10
  • Member, joined since
  • Contributed 162 posts on the community forums.
  • Started 37 threads in the forums
  • Started this discussions
K
K
------------------------------
PHP-Fusion PL Crew | Spam Cop | My Site
  • Senior Member, joined since
  • Contributed 244 posts on the community forums.
  • Started 23 threads in the forums
M
M
Facebook site
https://www.facebook.com/Detherersjovt
The funniest facebook page in the world
  • Member, joined since
  • Contributed 63 posts on the community forums.
  • Started 15 threads in the forums
J
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
S
S
spunk 10
www.duesseltag.de/../../images/banner/banner209x69.png
  • Member, joined since
  • Contributed 92 posts on the community forums.
  • Started 6 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
B
B
http://www.bolja-buducnost.com.ba My best PHP-Fusion design.
  • Member, joined since
  • Contributed 88 posts on the community forums.
  • Started 14 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet