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 work with Hidden Forums
Display posts from previous:   
Half Thread Topic  Fully Thread Topic  Download Topic
      All times are GMT - 5 Hours  
Post new topic  Reply to topic

Wed Apr 20, 2005 2:00 am
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Topics On Index work with Hidden Forums Reply with quote

Hi aUsTiN,

Do you have any plans to have these two mods work together? Like if you choose one of the sub forums from the index, and after you are taken to the Parent Forum/Sub Forums page, have the each sub forum also display the last five posts. And maybe have the Parent Forum also display that last five posts aswell. Know what I mean?
Post #1
      Back To Top  

Wed Apr 20, 2005 4:54 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

Ah, can do. I'll have Brandi throw it together today if she can Smile
Post #2
      Back To Top  

Wed Apr 20, 2005 8:41 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Cool, thanks a lot. I just thought it would be helpful for visitors to also see the last five posts in the Parent Forum/Sub Forums pages as well.
Post #3
      Back To Top  

Wed Apr 20, 2005 10:11 pm
Author Message
poregorn
Support Team
Support Team


Joined: 08 Jan 2005
Posts: 426
Words Posted: 39,413
Average Post: 92.52


Post subject: Reply with quote

i was thinking more along the lines of on the index, showing if posts have been made if in the sub forums or regular forums as opposed to showing nothing if the section is all sub forums


did that make sense?
Post #4
      Back To Top  

Thu Apr 21, 2005 12:51 am
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Yeah, I think I know what you are trying to say. I agree and also think that it would be beneficial for there to be someway to indicate that there is a new post in a sub forum. But I would still like it to display the last five posts for the Parent Forum/Sub Forums pages.
Post #5
      Back To Top  

Thu Apr 21, 2005 4:34 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

Code:

Makes the 'Topics On Index' Mod work on the viewforum page when clicking
a sub forum.

-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

hidden_forums.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

for ($i = 0; $i < count($category_rows); $i++)

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

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

   $q =  "SELECT forum_id, topic_title, topic_id, topic_time
         FROM ". TOPICS_TABLE ."
            ORDER BY topic_time DESC";   
   $r           = $db -> sql_query($q);       
   $topic_rows   = $db -> sql_fetchrowset($r);
   $topic_tot    = count($topic_rows);

   $c = 0;
#
#= End Topics In Forum Row By aUsTiN ============
#================================================

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------


                  'U_VIEWFORUM'          => $new_link)
                     );


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

#================================================
#= 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($which_row.'.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++;                                             
                        }
                     }

   $c = 0;                     
#
#= End Topics In Forum Row By aUsTiN ============
#================================================

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------


-----------------------------------
----[ OPEN ]-----------------------
-----------------------------------

templates/*/hidden_forums_body.tpl

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

{parent.HIDDEN_FORUMS}<br />

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

<!-- BEGIN newest_topics -->
       {parent.newest_topics.NEWEST_5_TOPICS}
<!-- END newest_topics -->
      <br />

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------

{hidden.HIDDEN_FORUMS}<br />

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

<!-- BEGIN newest_topics -->
       {hidden.newest_topics.NEWEST_5_TOPICS}
<!-- END newest_topics -->
      <br />

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

EoM
Post #6
      Back To Top  

Thu Apr 21, 2005 11:59 am
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

That works just like I wanted, thanks for the quick code change.

Would it be too difficult to make one other change? Correct me if I am wrong, but does the last topic of index mod when used with the hidden forum mod display display both the last five posts of the parent forum and posts from sub forum as well? I mean on the main forum index? Could that be change to just display the posts from the parent forum? As with the new changes you posted, when you click the sub forum it would display the last five posts of each sub forum.
Post #7
      Back To Top  

Thu Apr 21, 2005 6:47 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

The topics on index will only display the parent forum. And dont thank me, Brandi put it together while i was at work Smile

As for the new reply images, i dont have a plan to add it in the near future, but i should be able to when i get some free time.
Post #8
      Back To Top  

Thu Apr 21, 2005 8:38 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Thanks a lot for the code changes, Brandi.

aUsTin,

Are you sure about the sub forum topics not displaying their posts with the parent from that they are linked to on the index?

Edit- Image Removed

If you take a look at the above image you will see "Test" and "Test File/Poll". Now, "Test" was posted in Hold Page, but "Test File/Poll" was posted in the Test A sub forum. Is that how it should be working? I would like it just to display the posts that are posted into the "Hold Page". Users can see the posts posted into the sub forums once they click one, with the new code changes Brandi made that is.


Last edited by hexcode on Sun Apr 24, 2005 4:33 pm; edited 1 time in total
Post #9
      Back To Top  

Fri Apr 22, 2005 7:04 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

It should only be displaying the one, so i will give it a look..
Post #10
      Back To Top  

Fri Apr 22, 2005 8:12 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Much appreciated
Post #11
      Back To Top  

Tue Apr 26, 2005 11:36 am
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Afternoon aUsTiN,

Did you have a chance to come up with anything? Was this an error on my part during the install of both mods or was it just how the mods were coded?
Post #12
      Back To Top  

Tue Apr 26, 2005 8:09 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

Havnt looked into it yet...
Post #13
      Back To Top  

Tue Apr 26, 2005 8:44 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Alright, no problem.
Post #14
      Back To Top  

Tue May 17, 2005 10:58 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Hope you don't mind me asking again, but have you been able to look into this yet? A fix for the small problem where the subforum's topics display along with the topics from parent on the index would be great. Thanks
Post #15
      Back To Top  

Fri May 20, 2005 7:24 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

ouch.. forgot all about it.

*Added to to-do text*
Post #16
      Back To Top  

Fri May 20, 2005 8:56 pm
Author Message
Cool hexcode Cool
300 Club
300 Club


Joined: 27 Feb 2005
Posts: 317
Words Posted: 38,916
Average Post: 122.76


Post subject: Reply with quote

Thanks Very Happy
Post #17
      Back To Top  

Wed May 25, 2005 9:20 am
Author Message
MeeJee
New TweakeR
New TweakeR


Joined: 25 May 2005
Posts: 1
Words Posted: 123
Average Post: 123.00


Post subject: Sub forums go directly to actual forum? Reply with quote

Hi Austin! I just installed your mod and it works great! I can still use all of my favorite templates and it also didn't interfere with my other mod that I did. Thanks for making it. Cool Also, I was wondering if you (or Brandi) have any plans (or already have a mod) to make it where the extra forums links will go directly to the actual forum?

Meaning, if someone has a forum called Video Games and sub forums
called Xbox, Playstation. When somene clicks on Xbox or Playstation it would go directly to the Xbox forum or the Playstation forum instead of the links going to the same list of all of the sub forums. I hope I asked that correctly!!
Thanks.
Post #18
      Back To Top  

Wed May 25, 2005 4:14 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

atm, i plan to leave it as it is.
Post #19
      Back To Top  

 
         

Post new topic  Reply to topic

phpBB-TweakS Forum Index Topics On Index Topics On Index work with Hidden Forums
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 ] :: [ 3,589 Page(s) Viewed Today ] ::
:: [ Todays Queries: 107,529 ] :: [ 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, 2 hours, 22 minutes, 51 seconds ago. ::

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