Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Forum block center - from extra's wotlk
Forum block center - from extra's wotlk

1 Replies / 999 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


Bromide
Reputation: 4.4 Add RepSubtract Rep
Local time: 4:17 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Oct 15, 2008
Last Visit: 20 Feb 2009
Posts: 7
Points: 478 

Post Forum block center - from extra's wotlk Posted: Mon Dec 08, 2008 1:00 pm

Shop Purchases:
WOW Wrath Of The Lich King Theme

Hi Guys,

Regarding the Forum Blocks On my website..it will not display any topics written in the private section of our forums which can only be accessed by ofc if your registered and permission given. It will show any topic put in the Public areas,

The code for block is below can you instruct where i can change the code so it picks up posts written in the private sections?

Code:
 
   1. <?php
   2. if (eregi("block-Forum.php",$PHP_SELF)) {
   3.     Header("Location: index.php");
   4.     die();
   5. }
   6.
   7. global $prefix, $dbi, $sitename, $admin, $ThemeSel;
   8.
   9. $HideViewReadOnly = 1;
  10. $Last_New_Topics  = 8;
  11. $Count_Topics = 0;
  12. $Topic_Buffer = "";
  13.
  14. $result = sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC", $dbi );
  15. while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result, $dbi ) )
  16.
  17. {
  18.    $skip_display = 0;
  19.    if( $HideViewReadOnly == 1 )
  20.    {
  21.       $result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
  22.       list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
  23.       if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
  24.    }
  25.
  26.    if( $topic_moved_id != 0 )
  27.    {
  28.   // Shadow Topic !!
  29.       $skip_display = 1;
  30.    }
  31.   
  32.    if( $skip_display == 0 )
  33.    {
  34.   $Count_Topics += 1;
  35.
  36. $result2 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$topic_poster'", $dbi);
  37. list($username, $user_id)=sql_fetch_row($result2, $dbi);
  38. $avtor=$username;
  39. $sifra=$user_id;
  40.
  41. $result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%d/%m/%Y om %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
  42. list($poster_id, $post_time)=sql_fetch_row($result3, $dbi);
  43.
  44. $result4 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
  45. list($username, $user_id)=sql_fetch_row($result4, $dbi);
  46.
  47.                       $viewlast .="  <tr>
  48.     <td height="34" nowrap bgcolor="#272727" class="row1"><img src="themes/$ThemeSel/forums/images/folder_new.gif" border="0" /></td>
  49.     <td width="100%" bgcolor="#272727" class="row1"> <a href="modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id">$topic_title</a></td>
  50.     <td align="center" bgcolor="#303030" class="row2">$topic_replies</td>
  51.     <td align="center" bgcolor="#414141" class="row3"><a href="forum-userprofile-.html$sifra">$avtor</a></td>
  52.     <td align="center" bgcolor="#303030" class="row2">$topic_views</td>
  53.     <td align="center" nowrap bgcolor="#414141" class="row3"><font size="-2"><i>  $post_time </i></font><br>
  54.       <a href="forum-userprofile-.html$user_id">$username</a> <a href="modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id"><img src="themes/$ThemeSel/forums/images/icon_latest_reply.gif" border="0"></a></td>
  55.   </tr>";
  56. }
  57.   
  58.    if( $Last_New_Topics == $Count_Topics ) { break 1; }
  59.   
  60. }
  61.
  62.     $content .= "<table width="100%" border="0" cellspacing="1" cellpadding="0">
  63.   <tr>
  64.     <td><table width="100%" border="0" cellspacing="1" cellpadding="0">
  65.         <tr>
  66.           <td bgcolor="#010101"><table width="100%" border="0" cellpadding="2" cellspacing="1">
  67.   <tr>
  68.     <th height="28" colspan="2" align="center" nowrap background="themes/$ThemeSel/forums/$ThemeSel/images/cellpic3.gif" class="thcornerl"><font class="block-title"><strong>Topics</strong></font></th>
  69.     <th width="50" align="center" nowrap background="themes/$ThemeSel/forums/$ThemeSel/images/cellpic3.gif" class="thtop"><font class="block-title"><strong> Answers </strong></font></th>
  70.     <th width="100" align="center" nowrap background="themes/$ThemeSel/forums/$ThemeSel/images/cellpic3.gif" class="thtop"><font class="block-title"><strong> Author </strong></font></th>
  71.     <th width="50" align="center" nowrap background="themes/$ThemeSel/forums/$ThemeSel/images/cellpic3.gif" class="thtop"><font class="block-title"><strong> Views </strong></font></th>
  72.     <th align="center" nowrap background="themes/$ThemeSel/forums/images/cellpic3.gif" class="thcornerr"><font class="block-title"><strong> Last Post </strong></font></th>
  73.   </tr>";
  74.     $content .= "$viewlast";
  75.
  76.     $content .="  <tr>
  77.     <td height="12" colspan="6" class="catbottom"></td>
  78.   </tr>
  79. </table></td>
  80.         </tr>
  81.       </table></td>
  82.   </tr>
  83. </table>";
  84.
  85. ?>

 

 
View user's profileSend private message Reply with quote

Bromide
Reputation: 4.4 Add RepSubtract Rep
Local time: 4:17 PM

blank.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Oct 15, 2008
Last Visit: 20 Feb 2009
Posts: 7
Points: 478 

Post Forum block center - from extra's wotlk Posted: Tue Dec 09, 2008 11:45 am

Shop Purchases:
WOW Wrath Of The Lich King Theme

Never mind i found it..

Kinda staring at me all the time

$HideViewReadOnly = ALL;
 

 
View user's profileSend private message Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Blocks


 
1 Replies / 999 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum