Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Quote Download Post 
Post Recent Topics Blocks From Certain Forums 
 
Hi,

I created a Recent Topics block and would like to have certain forums new recent topics.  The Random Block has an option to pull from certain forum, but don't like it because they could be old topics.

Thank you,
xmenfile
 



 
xmenfilePM  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Updated on 29th January 2009

 :arrow: What is this mod for?
This recent topic block extends the functionalities of the standard one without having to uninstall or modify the older one. The new functionalities are:
  1. You are able to choose which forums to look for recent topics (by specifying ids separated by commas)
  2. You can sort the topics alphabetically, or by date.
  3. It's possible to group the topics by it's first letter
  4. You can add up to five Recent Topic blocks per page (by default; it's explained below how to create more blocks)
If you don't understand something, the best way to see how it works is installing it.

 :arrow: Installation instructions
There's only one file modification. Please repeat it on every style you've installed.

Open templates/mg_styles/common.css
At the very end of the file, add
Code: [Download] [Hide] [Select]
#rtk-letter {
    font-family: "Trebuchet MS", Tahoma, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    border: #888888 solid;
    border-width: 0px 0px 1.5px 0px;
}

Download the attached file (recent_topics_k1-5.zip)
Extract the file you've downloaded
Upload everything contained on ip_root folder to your forum root.

 :arrow: How to use Recent Topics K
The first thing you have to do is going into CMS management and then to the layout in which you wish to add the block(s). There, click Add block button and fill the form. In Block file, choose: recent topics k(1-5)*. Don't check Localize Titlebar, because the block's title doesn't have any language reference. Then Submit the form and you'll get a new form. Choose the options you like the most and submit the form. You will be able to see the new block on your cms page. Please repeat this procedure for each Recent Topic block you wish to add.
*(1-5) means any number between 1 and 5, and you are able to add more numbers by following the steps specified below. Please note: if you add two blocks with the same number in the same cms page, you'll get an awful error.

 :arrow: I need more recent topics blocks, what should I do?
The process is easy.
  1. Go to /blocks/ dir and find this two files: blocks_imp_recent_topics_k1.php and blocks_imp_recent_topics_k1.cfg. Duplicate them and rename the copied files to blocks_imp_recent_topics_k6*.php and blocks_imp_recent_topics_k6*.cfg. Open both files using Notepad, WordPad, Dreamweaver, or any plain text editor you use, and use the Find&Replace function to replace all "k1" on the code (without inverted commas) for "k6"* (without inverted commas).
  2. Then go to /templates/mg_styles/blocks/, duplicate the recent_topics_k1_block.tpl file located there and rename the copied file to recent_topics_k6*_block.tpl. Open the new file using Notepad, WordPad, Dreamweaver, or any plain text editor you use, and use the Find&Replace function to replace all "k1" on the code (without inverted commas) for "k6"* (without inverted commas). Repeat this step on every style you've installed.

*6 is the next number in the recent topic blocks list. If the last file you have is k5, this number must be 6; if the last file you have is k6, this number must be 7; and so on.


Older verision. Still works but not recommended (outdated).
Spoiler: [ Show ]


recent_topics_k1-5.zip
Description:  
Download
Filename: recent_topics_k1-5.zip
Filesize: 19.96 KB
Downloaded: 231 Time(s)

 




____________
Gabriel Anca
 
Edited by KasLimon, Thu 29 Jan, 2009 00:10: I speak some kind of Spanglish, just correcting mistakes
KasLimonPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
 
Off Topic
:
KasLimon, again...
Rank for Kas: "Man of MOD" :mrgreen:  

 




____________
ThE KuKa - www.phpBB-Es.COM - Custom Installations phpBB
 
ThE KuKaPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Moving to customizations ;)
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Thank you KasLimon, it works.  But there are few issues, the forum id(s) save some where after you create a block.

1  let say i create block 1 and assign forum 1,2,3,4,5.  if i change my mind delete forum 5 but add forum 6 (ex: 1,2,3,4,6), then my block still shows topics from forum 5 even it's not listed on my block configuration.

2  I delete the block 1 (above) that I create new block and assign 1,2,3,4,6 and my block still have forum 5 topics.  

I have cleared site cache, that did not help.  Any ideals??


Thank  you so much,
 



 
xmenfilePM  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Look at my block configuration:
ip_recent_topics

Greets!
 




____________
Gabriel Anca
 
KasLimonPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
yes, I did.  that is the first box that i checked.
 



 
xmenfilePM  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
It should be working OK, in my local forum it does...

Could you please send me a link to somewhere you've applied it?

Greetings! :mricy:
 




____________
Gabriel Anca
 
KasLimonPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Here you go, Check it out.  I created 3 blocks, 1 for strolling recent from forum ID 4 ONLY, 1 block from forum ID 15 ONLY and the other recent wide block for all forums ('cause there is no option).  somehow it mixed up each other and recent block shows twice.

Again, thank you so much for your help KasLimon,
 



 
xmenfilePM  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
I think it's working well, but I see some blocks mixed and some strange things...

In this block it's not option, delete it and create it again, you'll see it ;)
 




____________
Gabriel Anca
 
KasLimonPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
well, it's not working.  I deleted all recent blocks, cleared cache, then created 3 new ones.  1 recent topics block from forum 4, another recent topics block from forum 5 only, but some how the 1st block includes in this block too.  Not yet, i created 1 recent topics wide block and this includes both of my first blocks.   I double, triple check my edit and can't find any different than your instructions.  I am going to post them here for another pairs of eyes, just in case.
 
Spoiler: [ Show ]


block_imp_recent_topics.cfg
Spoiler: [ Show ]

 



 
xmenfilePM  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Try this in .php file:

Search:
Code: [Download] [Hide]
  1.         if ($cms_config_vars['md_recent_topic_certain_forums'][$block_id] && !empty($cms_config_vars['md_recent_topic_ids'][$block_id])) 

Replace with:
Code: [Download] [Hide]
  1.         if ( ($cms_config_vars['md_recent_topic_certain_forums'][$block_id] == true) && (!empty($cms_config_vars['md_recent_topic_ids'][$block_id])) ) 


Greetings!
 




____________
Gabriel Anca
 
KasLimonPMWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Sorry still not fixed :(
 



 
xmenfilePM  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
ThE KuKa wrote: [View Post]
 
Off Topic
:
KasLimon, again...
Rank for Kas: "Man of MOD" :mrgreen:  

I will create MODs Man... :wink:
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonPME-mailWebsite  
Back to topPage bottom
Quote Download Post 
Post Re: Recent Topics Blocks From Certain Forums 
 
Mighty Gorgon wrote: [View Post]
ThE KuKa wrote: [View Post]
 
Off Topic
:
KasLimon, again...
Rank for Kas: "Man of MOD" :mrgreen:  

I will create MODs Man... :wink:

 
Off Topic
:
Thanks Luca  :mrgreen:

 




____________
ThE KuKa - www.phpBB-Es.COM - Custom Installations phpBB
 
ThE KuKaPMWebsite  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events