Jump to content


- - - - -

[Unsupported] D22-Recent Topics v1.0


  • Please log in to reply
97 replies to this topic

#81 Aeolus

Aeolus

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 416 posts
  • Location:Taiwan
  • IPB Version:v3.1.x
Contributor

Posted 30 April 2009 - 12:08 AM

One more question:::

When the forum was set to be moderated, and some one post,the title still showed on the list of the recent topics before it was approved.

How to edit the codes to avoid not to show them?

Thanks.

#82 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 30 April 2009 - 01:28 AM

Open sources\d22mods\d23_rtopics.php and find:

				'where'  => 't.forum_id IN ('.implode(',', $data['forums']).')',
Change to:

				'where'  => 't.approved = 1 and t.forum_id IN ('.implode(',', $data['forums']).')',
Find:

				'where'  => 't.forum_id IN ('.implode(',', $data['forums']).')',
Change to:

				'where'  => 't.approved = 1 and t.forum_id IN ('.implode(',', $data['forums']).')',
But it was done on D23-Recent Topics v1.1: http://forums.dscrip...mp;showfile=139

#83 Aeolus

Aeolus

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 416 posts
  • Location:Taiwan
  • IPB Version:v3.1.x
Contributor

Posted 30 April 2009 - 02:06 AM

Thanks,

I will try it in D22.

#84 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 30 April 2009 - 03:13 PM

Adriano, do you no by chance a solution, how I could display the last 10 topics in two colums? 5 on the left and 5 on the right side?
Rows for Date and forum could be kicked.

#85 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 30 April 2009 - 03:16 PM

View PostAeolus, on Apr 29 2009, 05:56 AM, said:

If any one still interested it, i will post the codes here.

;) that separation is interesting.

#86 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 30 April 2009 - 03:23 PM

View PostTom, on Apr 30 2009, 12:13 PM, said:

Adriano, do you no by chance a solution, how I could display the last 10 topics in two colums? 5 on the left and 5 on the right side?  Rows for Date and forum could be kicked.
Ow, that would be so much more difficult! ;)

Right now I'm translating all IP.Board (public + Admin CP) + Add Ons... when I'll have more time, I'll take a look at this.

I don't promise you anything, but I'll try... :)

#87 Tom

Tom

    Posting God

  • IM Supporters
  • PipPipPipPipPipPipPipPipPip
  • 1,541 posts
  • IPB Version:v2.3.x

Posted 30 April 2009 - 03:26 PM

No problem Adriano. I can live with the current solution.

Thanks for your response anyway.

#88 Aeolus

Aeolus

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 416 posts
  • Location:Taiwan
  • IPB Version:v3.1.x
Contributor

Posted 01 May 2009 - 12:01 AM

View PostTom, on Apr 30 2009, 11:16 AM, said:

View PostAeolus, on Apr 29 2009, 05:56 AM, said:

If any one still interested it, i will post the codes here.

;) that separation is interesting.


Actually,i had changed the mod into new one based  on (FSY23) Universal Mod Installer v2.6.4.

I will upload the new mod here soon, maybe today.

Screenshot

ACP
Attached File  rcent01.JPG   16.83K   1 downloads

Attached File  rcent02.JPG   32.99K   1 downloads

HTML
Attached File  rcent03.JPG   14.79K   1 downloads

#89 Aeolus

Aeolus

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 416 posts
  • Location:Taiwan
  • IPB Version:v3.1.x
Contributor

Posted 01 May 2009 - 03:54 AM

I try to find all over in my hard disk and dvd backup files, just find the last version with Chinese language.

But i will edit them to English in the future, need 3~5 days , so sorry.

Upload ok.

Borad index
Attached File  re_en_01.JPG   80.3K   0 downloads

ACP(Chinese)
Attached File  re_en_02.JPG   70.7K   0 downloads

#90 Aeolus

Aeolus

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 416 posts
  • Location:Taiwan
  • IPB Version:v3.1.x
Contributor

Posted 01 May 2009 - 06:28 AM

New mod edited by Aeolus , and allowed by Logan

Attached File  _090501_Recent_Topics_Replies_22_en_for_modding.zip   8.2K   37 downloads

p.s.

It's UTF-8

#91 OSH

OSH

    n00b

  • Members
  • Pip
  • 1 posts
  • Real Name:Steve
  • IPB Version:v2.1.x

Posted 20 September 2009 - 11:12 PM

View PostSOSInvision, on Feb 17 2009, 06:31 PM, said:

I got it working to D23-Recent Topics v1.1: http://forum.sosinvi...mp;article=1104

Posted Image

I don't know if it works for D22...

Your link is broken to this tutorial - could you please relink or give us the code here?

Thanks

#92 boogaru02

boogaru02

    Novice

  • Members
  • PipPip
  • 12 posts
  • Real Name:Jeff Nyerges
  • IPB Version:v2.3.x

Posted 24 September 2009 - 06:55 PM

How can I add this to my portal page at the very top.

#93 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 24 September 2009 - 06:58 PM

View Postboogaru02, on Sep 24 2009, 03:55 PM, said:

How can I add this to my portal page at the very top.
For Unreal Portal: http://forum.sosinvi...showtopic=10780

View PostOSH, on Sep 20 2009, 08:12 PM, said:

Your link is broken to this tutorial - could you please relink or give us the code here?
Sorry!

http://forum.sosinvi...?showtopic=7019

#94 boogaru02

boogaru02

    Novice

  • Members
  • PipPip
  • 12 posts
  • Real Name:Jeff Nyerges
  • IPB Version:v2.3.x

Posted 24 September 2009 - 07:11 PM

Am I supposed to log in there for the answer? Can read the language.

#95 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 24 September 2009 - 07:17 PM

Sure. You have to register an account. And you can use English on lang selector.

#96 boogaru02

boogaru02

    Novice

  • Members
  • PipPip
  • 12 posts
  • Real Name:Jeff Nyerges
  • IPB Version:v2.3.x

Posted 24 September 2009 - 08:36 PM

Didn't switch to english

#97 hood06

hood06

    n00b

  • Members
  • Pip
  • 1 posts
  • IPB Version:v2.3.x

Posted 25 March 2011 - 09:26 PM

Adrian- I signed up on your site to view the tutorial on adding group color to recent topics but the link is broken. Can you post a new one please?

#98 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 25 March 2011 - 10:19 PM

You're lucky that I have this in backup:

Open sources/d22mods/d23_rtopics.php and find:

			$this->ipsclass->DB->build_query(array
			(
				'select'   => 't.*',
				'from' 	=> array('topics' => 't'),
				'add_join' => array
				(
					0 => array
					(
						'type'   => 'left',
						'select' => 'r.read_tid, r.read_date',
						'from'   => array('topics_read' => 'r'),
						'where'  => 'r.read_tid=t.tid AND r.read_mid='.$this->ipsclass->member['id'],
					)
				),
				'where'  => 't.forum_id IN ('.implode(',', $data['forums']).')',
				'order'  => 't.last_post DESC',
				'limit'  => array(0, $data['limit'])
			));
Change to:

			$this->ipsclass->DB->build_query(array
			(
				'select'   => 't.*',
				'from' 	=> array('topics' => 't'),
				'add_join' => array
				(
					0 => array
					(
						'type'   => 'left',
						'select' => 'r.read_tid, r.read_date',
						'from'   => array('topics_read' => 'r'),
						'where'  => 'r.read_tid=t.tid AND r.read_mid='.$this->ipsclass->member['id'],
					),
					1 => array
					(
						'type'   => 'left',
						'select' => 'm.mgroup',
									'from'   => array( 'members' => 'm' ),
									'where'  => 'm.id=t.last_poster_id',
					)
				),
				'where'  => 't.forum_id IN ('.implode(',', $data['forums']).')',
				'order'  => 't.last_post DESC',
				'limit'  => array(0, $data['limit'])
			));
Find:

				'name'	=> $r['last_poster_name'],
Change to:

 				'name'	=>  $this->ipsclass->make_profile_link(  $this->ipsclass->make_name_formatted(  $r['last_poster_name'],  $r['mgroup'] ), $r['last_poster_id'] ),
Results:

Posted Image




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users