» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 74
0 members and 74 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Fix for recent post block! within the Nuke 6.5 to 6.9 - Blocks forums, part of the PHP-Nuke 6.5 to 6.9 category; I have found the fix for the recent forum block, (the one that show the latest 5 discussions on your ...


Go Back   Nukemods Forum » PHP-Nuke 6.5 to 6.9 » Nuke 6.5 to 6.9 - Blocks

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2003, 06:33 AM
Junior Member
 
Join Date: Oct 2002
Location: Netherlands
Posts: 81
Fix for recent post block!
I have found the fix for the recent forum block, (the one that show the latest 5 discussions on your homepage), If a topic got multiple pages and you click on the link to the latest post you've got linked too the fist post of the topic, now i have downloaded the block last 10 forum post scrolling from http://www.nukecops.com and saw that they handled this problem. Open block-XXX_forums (xxx stands for the theme you use), find this code:
Code:
<a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\
and replace it with this code:
Code:
<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\
This should work for phpnuke 6.0 also.
Like i said before i copied this from the scrolling block from www.nukecops.com so they credit for this fix.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-22-2003, 08:56 AM
Senior Member
 
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
Thanks for this fix anor, these attention to detail fixes are fine tuning php-nuke.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-26-2003, 05:31 AM
Junior Member
 
Join Date: Feb 2003
Posts: 27
how do I limit the most recent center block post at the front page so that it only post newest post of a certain category, not posts of ALL the categories in the forum? Like if I create

CATEGORY 1
- Forum1
- Forum2
CATEGORY 2
- Forum1
- Forum2

Can I just display the post of CATEGORY 1 instead of all the posts from both CATEGORIES?

Thanks,
CK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-26-2003, 06:19 AM
Junior Member
 
Join Date: Mar 2003
Location: Bangkok, Thailand
Posts: 18
my recent posts block doesn't work. www.orientours.com

really have no idea, maybe have to reinstall all 6.5 :cry:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-26-2003, 09:06 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by ceinueng
my recent posts block doesn't work. www.orientours.com

really have no idea, maybe have to reinstall all 6.5 :cry:
where did you get that Recent posts center block from?


Quote:
how do I limit the most recent center block post at the front page so that it only post newest post of a certain category, not posts of ALL the categories in the forum? Like if I create

CATEGORY 1
- Forum1
- Forum2
CATEGORY 2
- Forum1
- Forum2

Can I just display the post of CATEGORY 1 instead of all the posts from both CATEGORIES?

Thanks,
CK
conkein,
http://nukemods.com/modules.php?name...ic&p=5843#5843
hate to type that over again... :?

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-26-2003, 12:44 PM
Junior Member
 
Join Date: Feb 2003
Posts: 27
Mike, I downloaded it from this site, of course

Thanks for the link you mentioned, but it's only show how to display posts in a certain forum. What I was trying to get was to display the post in a certain CATEGORY (it has several forums in it)

Thanks Mikem,
ConKien
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-26-2003, 12:59 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
I imaginw the same sort of code I gave you a link to might work, but the call would have to be for cat_id.
I'll take a look at it and see if I can make it work...

let me know WHICH block you are using.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-26-2003, 07:21 PM
Junior Member
 
Join Date: Feb 2003
Posts: 27
Umm... Ím not sure about that Mike. I don't know exactly how the SQL of phpbb work but since it's a category, it might involve some sort of sub query inside the actual call. Sorry, Ím not really familer with the technical term

Mike, it's the forum's [Recent Post] center block on the very top of your site I was talking about :P

thanks
CK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-26-2003, 08:36 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Well, I did make it work.
I took one of our Center Posts blocks from one of our theme packs and added some code to it to ignore my First Category in my Forum, which is cat_id 1. It works perfectly...

Do you want me to modify your block for you? I know you are talking about the Center Posts block, but for which theme? If you let me know which Center posts block you are using for what theme, I can modify it and get it up here for you.
All you will need to do is change the cat_id # that you want it to ignore.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-26-2003, 09:03 PM
Junior Member
 
Join Date: Feb 2003
Posts: 27
You are the bomb, Mike... hehehe... I'm using the PhpIb theme. But I thought the one in your download has update the code of Mighty_Y? Which shouldn't be transparented to any theme?

And yeah, post it up to the Download section for everyone to see yr beautiful work Mikem

Thanks Mike,
CK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recent Post Center Block problems TheReverend Nuke 7.x - Blocks 3 02-06-2005 08:56 AM
recent post mod (at a glance) for the main forum page AstroCreep nukemods.com 5 06-22-2003 09:30 AM
Recent post block for 6.5 Evil Open topics 7 05-11-2003 07:44 PM
recent forum post unknown Purged Topics 1 02-21-2003 01:57 PM
Center recent post block steve Purged Topics 2 10-13-2002 07:38 AM


All times are GMT -5. The time now is 03:03 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31