[SOLVED] Block - to show recent reviews posted?

Mods etc.

Moderator: Integra Moderator

[SOLVED] Block - to show recent reviews posted?

PostAuthor: tekguru » Mon Apr 17, 2006 6:34 am

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!
Last edited by tekguru on Mon Apr 17, 2006 10:45 am, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 6:41 am

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>
Last edited by GanBei on Mon Apr 17, 2006 10:17 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 6:44 am

Right I've looked at that before when running basic PhpBBS - is 1.10 still the latest version?
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 6:46 am

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 $
*
************************************************************/
Last edited by GanBei on Mon Apr 17, 2006 10:18 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 6:49 am

Same here when I open the archive <img>

Any chance of a copy of the block file(s) you came up with?
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 6:53 am

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..
Last edited by GanBei on Mon Apr 17, 2006 10:18 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 6:54 am

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>
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 7:01 am

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
Last edited by GanBei on Mon Apr 17, 2006 10:18 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: tekguru » Mon Apr 17, 2006 7:03 am

Already done that <img> The script is just copied into the main directory, i.e.

http://www.4winmobile.com/topics_anywhere.php

and 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?
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 7:06 am

I've PM you..
Last edited by GanBei on Mon Apr 17, 2006 10:18 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 7:07 am

Okay, waiting - nothing there yet <img>
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 8:02 am

The error you are experiencing via email sent to me is caused by the Donation Block
Could not query database for the newest donations

Disable the Donation Block thru ACP | IM Portal | Blocks Management

This should fix the problem <img>
Last edited by GanBei on Mon Apr 17, 2006 10:19 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 8:04 am

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>
Last edited by GanBei on Mon Apr 17, 2006 10:19 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: tekguru » Mon Apr 17, 2006 9:36 am

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!
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: GanBei » Mon Apr 17, 2006 9:39 am

Glad I could be of assistance <img>
Last edited by GanBei on Mon Apr 17, 2006 10:19 am, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 9:41 am

Me too - wanted this for a looooong time <img>
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: Recent Topics block mod - to show recent reviews psoted?

PostAuthor: tekguru » Mon Apr 17, 2006 10:45 am

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).
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 10:46 am

Grin cheers for the account Lee - on the way <img>
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00

Re: [SOLVED] Block - to show recent reviews posted?

PostAuthor: GanBei » Mon Apr 17, 2006 10:50 am

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..
Last edited by GanBei on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 6:48 am
Cash on hand: 0.00

PostAuthor: tekguru » Mon Apr 17, 2006 12:22 pm

Not a problem, at least we are getting there now.

Might be an idea to reference your fix page from here though?
Last edited by tekguru on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 11:29 pm
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: App360MonitorBot, Bing [Bot]