|
|
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!
|
| |
|
|
All times are GMT - 5 Hours
|
|
 |
Wed Apr 20, 2005 2:00 am |
 |
Author |
Message |
hexcode  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 |
|
|
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 |
|
|
 |
Wed Apr 20, 2005 4:54 am |
 |
 |
Wed Apr 20, 2005 8:41 pm |
 |
 |
Wed Apr 20, 2005 10:11 pm |
 |
Author |
Message |
poregorn Support Team

Joined: 08 Jan 2005 Posts: 426 Words Posted: 39,413 Average Post: 92.52
|
| Post subject: |
|
|
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 |
|
|
 |
Thu Apr 21, 2005 12:51 am |
 |
Author |
Message |
hexcode  300 Club

Joined: 27 Feb 2005 Posts: 317 Words Posted: 38,916 Average Post: 122.76
|
| Post subject: |
|
|
| 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 |
|
|
 |
Thu Apr 21, 2005 4:34 am |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
| 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 |
|
|
 |
Thu Apr 21, 2005 11:59 am |
 |
Author |
Message |
hexcode  300 Club

Joined: 27 Feb 2005 Posts: 317 Words Posted: 38,916 Average Post: 122.76
|
| Post subject: |
|
|
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 |
|
|
 |
Thu Apr 21, 2005 6:47 pm |
 |
Author |
Message |
aUsTiN Webmaster


Joined: 05 Jan 2005 Posts: 3684 Words Posted: 144,671 Average Post: 39.27 Location: USA
|
| Post subject: |
|
|
The topics on index will only display the parent forum. And dont thank me, Brandi put it together while i was at work
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 |
|
|
 |
Thu Apr 21, 2005 8:38 pm |
 |
Author |
Message |
hexcode  300 Club

Joined: 27 Feb 2005 Posts: 317 Words Posted: 38,916 Average Post: 122.76
|
| Post subject: |
|
|
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 |
|
|
 |
Fri Apr 22, 2005 7:04 pm |
 |
 |
Fri Apr 22, 2005 8:12 pm |
 |
 |
Tue Apr 26, 2005 11:36 am |
 |
Author |
Message |
hexcode  300 Club

Joined: 27 Feb 2005 Posts: 317 Words Posted: 38,916 Average Post: 122.76
|
| Post subject: |
|
|
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 |
|
|
 |
Tue Apr 26, 2005 8:09 pm |
 |
 |
Tue Apr 26, 2005 8:44 pm |
 |
 |
Tue May 17, 2005 10:58 pm |
 |
Author |
Message |
hexcode  300 Club

Joined: 27 Feb 2005 Posts: 317 Words Posted: 38,916 Average Post: 122.76
|
| Post subject: |
|
|
| 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 |
|
|
 |
Fri May 20, 2005 7:24 pm |
 |
 |
Fri May 20, 2005 8:56 pm |
 |
 |
Wed May 25, 2005 9:20 am |
 |
Author |
Message |
MeeJee New TweakeR

Joined: 25 May 2005 Posts: 1 Words Posted: 123 Average Post: 123.00
|
| Post subject: Sub forums go directly to actual forum? |
|
|
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. 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 |
|
|
 |
Wed May 25, 2005 4:14 pm |
 |
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
|
|
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. ::
|
|
|