Page 1 of 1
[SOLVED] Block - to show recent reviews posted?

Posted:
Mon Apr 17, 2006 6:34 am
Author: tekguru
What I'm looking to produce is a block similar to that which displays the recent topics, but it should:
- Run along side and seperately from the recent topics block
- Pull posts from only one/two forums
- Show the posts based on the date of of the original post in the thread in reverse order
What it will be used for is displaying the most recent X reviews which have been posted on the site.
I've looked at hacking the Recent Topics block but it seems like it will not be that easy to adjust (for me at least). It bothers me not if the block has to be editted by hand to specfiy the forums to extract data from.
So any thoughts folks?
Any help would be very much appreciated!
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 6:41 am
Author: GanBei
I really recommend you look into the Topics_Anywhere MOD.. I have been running it on my site for 6 months now and it works flawlessly.. I have mine embedded into a center block as well.. <img>

Posted:
Mon Apr 17, 2006 6:44 am
Author: tekguru
Right I've looked at that before when running basic PhpBBS - is 1.10 still the latest version?
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 6:46 am
Author: GanBei
Mine is
1.11:
/************************************************************
* topics_anywhere.php
* -------------------
* begin : Wednesday, Aug 28, 2002
* copyright : (C) 2001 The phpBB Group
* email : <a>support@phpbb.com</a>
*
* $Id: topics_anywhere.php,v 1.11.0 2003/09/01 14:32:00 DtM Exp $
*
************************************************************/

Posted:
Mon Apr 17, 2006 6:49 am
Author: tekguru
Same here when I open the archive <img>
Any chance of a copy of the block file(s) you came up with?
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 6:53 am
Author: GanBei
It's just html/java script insertion into the block file.. Here's an example of Translations Block.. If you need additional help just let me know..
[code]<span><b>IntegraMOD-tw Translations</b></span><script language="JavaScript" type="text/javascript" src="http]
I'm sure you already know what all the flags/parameters is for already so I won't go into all those details..

Posted:
Mon Apr 17, 2006 6:54 am
Author: tekguru
Especially as I've just tried ot run the config PHP file and get:
"General Error
Could not query database for the newest donations "
So it's not that straight forward <img>
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 7:01 am
Author: GanBei
Strange, it works for me.. I just tested it.. Make sure initially you set the config settings in topics_anywhere.php to:
- Code: Select all
$topics_anywhere_authlevel = 0;
After making the script just change it back to
1
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 7:03 am
Author: tekguru
Already done that <img> The script is just copied into the main directory, i.e.
http://www.4winmobile.com/topics_anywhere.phpand then run. I'm wondering if there are any additional includes that are needed which you may have added?
Any chance of a look at your file so I can look for differences?
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 7:06 am
Author: GanBei
I've PM you..

Posted:
Mon Apr 17, 2006 7:07 am
Author: tekguru
Okay, waiting - nothing there yet <img>
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 8:02 am
Author: GanBei
The error you are experiencing via email sent to me is caused by the
Donation BlockCould not query database for the newest donations
Disable the
Donation Block thru
ACP |
IM Portal |
Blocks ManagementThis should fix the problem <img>
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 8:04 am
Author: GanBei
Once you have created your script just insert them into a new Block and activiate it.. Then 'Enable' the Donation Block again.. Clear your Block Cache.. VOila, you are good to go <img>
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 9:36 am
Author: tekguru
Lee you are a regular hero my friend, now up and running perfectly, a few style out of size issues with the CSS if I show the forum name so I've taken that out but it works perfectly, my greatest thanks!
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 9:39 am
Author: GanBei
Glad I could be of assistance <img>

Posted:
Mon Apr 17, 2006 9:41 am
Author: tekguru
Me too - wanted this for a looooong time <img>
Re: Recent Topics block mod - to show recent reviews psoted?

Posted:
Mon Apr 17, 2006 10:45 am
Author: tekguru
The only issue now is that the block only seems to show up in the user is logged into the forum. And that CSS of course, and I can't get logged in to your site to fix that (yet).

Posted:
Mon Apr 17, 2006 10:46 am
Author: tekguru
Grin cheers for the account Lee - on the way <img>
Re: [SOLVED] Block - to show recent reviews posted?

Posted:
Mon Apr 17, 2006 10:50 am
Author: GanBei
very strange.. i just registered you.. the control images can be confusing sometimes.. i sometimes get messed up with the captital letters and lowercase letters.. sorry for the inconvenience..

Posted:
Mon Apr 17, 2006 12:22 pm
Author: tekguru
Not a problem, at least we are getting there now.
Might be an idea to reference your fix page from here though?