phpBB-TweakS
 
Advanced Search
   
 
Home Downloads FAQ Register FAQ Memberlist Usergroups Ranks
 
 

Please help us to develop!

 
It appears you are using a browser that is not based on Internet Explorer, this means you are not viewing the web as good as you should be. Other browsers might try to immitate Internet Explorer, but none can parse the web as it should like Internet Explorer can. So view the web as it was meant to be with Avant Browser!
         

phpBB-TweakS Forum Index Topics On Index Topics on index
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Sat Jul 23, 2005 1:50 am
Author Message
llj143
Moderate TweakeR
Moderate TweakeR


Joined: 01 Jul 2005
Posts: 63
Words Posted: 12,662
Average Post: 200.98


Post subject: Topics on index Reply with quote

hi just installed the hack, but i got some little problems and some couple of questions.. Smile

1. after installing it only showed the latest 5 topics in one forum section, others dont.. Confused

on this part i have a different line

Code:
-----------------------------------
----[ FIND ]-----------------------
-----------------------------------


                        'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
                     );

-----------------------------------
----[ ADD, AFTER ]-----------------
-----------------------------------

#================================================
#= Start Topics In Forum Row By aUsTiN ==========
#

                  for($t = 0; $t < $topic_tot; $t++)
                     {      
                     if($topic_rows[$t]['forum_id'] == $forum_id && $c < 5)
                        {
                        $Max = "15"; # change this number if you want to change the amount of characters it shows before adding the ...
                        if(strlen($topic_rows[$t]['topic_title']) > $Max)
                           {
                        $new_t_name = substr($topic_rows[$t]['topic_title'], 0 , ($Max - 3)). "...";
                           }
                        else
                           {
                        $new_t_name = $topic_rows[$t]['topic_title'];
                           }
                     $template->assign_block_vars('catrow.forumrow.newest_topics', array(
                        'NEWEST_5_TOPICS' => "<img src='". $images['icon_minipost'] ."' alt='". $topic_rows[$t]['topic_title'] ."' title='". $topic_rows[$t]['topic_title'] ."' border='0'> <a href='viewtopic.". $phpEx ."?t=". $topic_rows[$t]['topic_id'] ."' alt='". $topic_rows[$t]['topic_title'] ."' title='". $topic_rows[$t]['topic_title'] ."'>". $new_t_name ."</a>")
                           );
                     $c++;                                             
                        }
                     }
                     
#
#= End Topics In Forum Row By aUsTiN ============
#================================================



mine is this

Code:
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_data['forum_id'])



2. instead of 5 latest topics, how can i make it to 3 ?

Smile
Post #1
      Back To Top  

Sat Jul 23, 2005 6:48 am
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

if($topic_rows[$t]['forum_id'] == $forum_id && $c < 5)

Make the 5 a 3.
Post #2
      Back To Top  

Sat Jul 23, 2005 6:54 am
Author Message
llj143
Moderate TweakeR
Moderate TweakeR


Joined: 01 Jul 2005
Posts: 63
Words Posted: 12,662
Average Post: 200.98


Post subject: Reply with quote

tnx.. im still having problems coz it wont show in index page

Code:
-----------------------------------
----[ FIND ]-----------------------
-----------------------------------


                        'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
                     );


mine is this

Code:
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_data['forum_id'])


is there something to change in ADD,AFTER line?
Post #3
      Back To Top  

Sat Jul 23, 2005 3:17 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

Its not a find, its a replace with, and you would replace that just the same.
Post #4
      Back To Top  

Sun Jul 24, 2005 7:03 am
Author Message
llj143
Moderate TweakeR
Moderate TweakeR


Joined: 01 Jul 2005
Posts: 63
Words Posted: 12,662
Average Post: 200.98


Post subject: Reply with quote

i just reinstall it and install it again.. its weird coz it showed only in one section, others dont Confused

can you check the lines if its correct? i upload it

index.php
indexbody_tpl

Smile
Post #5
      Back To Top  

Sun Jul 24, 2005 7:04 am
Author Message
llj143
Moderate TweakeR
Moderate TweakeR


Joined: 01 Jul 2005
Posts: 63
Words Posted: 12,662
Average Post: 200.98


Post subject: Reply with quote

edit: oops sorry for the double post, i submit it twice.. Embarassed
Post #6
      Back To Top  

Sun Jul 24, 2005 9:13 pm
Author Message
aUsTiN
Webmaster
Webmaster


Usa Georgia

Joined: 05 Jan 2005
Posts: 3684
Words Posted: 144,671
Average Post: 39.27

Location: USA

Post subject: Reply with quote

Ok, that tpl doesn't do me much good as its outputed as HTML. But my first guess is you use the CH mod, right?
Post #7
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index Topics On Index Topics on index
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


      Back To Top  

Page 1 of 1
Jump to:  
 
Protected by phpBB Security © phpBB-TweakS
phpBB Security Has Blocked 3,237 Exploit Attempts.

· Archive · Sitemap: Index · Sitemap: Forums · Sitemap: Topics · Sitemap: Posts ·

:: [ Load Time: 2.8 Seconds ] :: [ 29 Queries ] :: [ 412 Page(s) Viewed Today ] ::
:: [ Todays Queries: 12,539 ] :: [ Highest Load: 1,396,429 Queries On May. 08, 2007 ] ::
:: [ SQL Load: 60% Time: 1.7 ] :: [ PHP Load: 40% Time: 1.1 ] :: [ Debug: On ] :: [ GZIP: Enabled ] ::
:: The server last rebooted 82 days, 16 hours, 8 minutes, 20 seconds ago. ::

The phpBB[Network]!
       
Powered by phpBB 2.0.* © 2001, 2002 phpBB Group
Avalanche style by What Is Real © 2004