new topics on the other side

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
Sv3n
Registered User
Posts: 17
Joined: Fri Mar 18, 2016 6:04 am

new topics on the other side

Post by Sv3n »

sorry for my bad english

I have now created a new page with name new.php and new.html

how can I integrate the last topics from the forum there?


And here (under the text should) The 10 last topics in the forum
Attachments
nfo1.png
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6676
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: new topics on the other side

Post by HiFiKabin »

This extension may be of help to you in figuring out how to do it.

https://www.phpbb.com/customise/db/exte ... _2/support
Sv3n
Registered User
Posts: 17
Joined: Fri Mar 18, 2016 6:04 am

Re: new topics on the other side

Post by Sv3n »

I can not find there
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6676
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: new topics on the other side

Post by HiFiKabin »

Sv3n wrote: Thu Feb 08, 2018 1:43 pm I can not find there
https://www.phpbb.com/customise/db/exte ... _topics_2/
Sv3n
Registered User
Posts: 17
Joined: Fri Mar 18, 2016 6:04 am

Re: new topics on the other side

Post by Sv3n »

No Extension. I will this with Code make. And this on lasttopics.php.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6676
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: new topics on the other side

Post by HiFiKabin »

I know, but if you look at the code within the extension it may help you do what you are wanting
User avatar
Ger
Registered User
Posts: 2108
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: new topics on the other side

Post by Ger »

Take a look at my cmBB extension. I fetch the latest topics for the sidebar part, called here: https://github.com/GerB/cmbb/blob/maste ... r.php#L625

Directly below I put the latest topic info in a block var. That is parsed in the template here: https://github.com/GerB/cmbb/blob/maste ... ml#L35-L44

The actual query is performed in this function: https://github.com/GerB/cmbb/blob/maste ... #L564-L592
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:

-Don't PM me for support-
Sv3n
Registered User
Posts: 17
Joined: Fri Mar 18, 2016 6:04 am

Re: new topics on the other side

Post by Sv3n »

Ger wrote: Thu Feb 08, 2018 2:57 pm Take a look at my cmBB extension. I fetch the latest topics for the sidebar part, called here: https://github.com/GerB/cmbb/blob/maste ... r.php#L625

Directly below I put the latest topic info in a block var. That is parsed in the template here: https://github.com/GerB/cmbb/blob/maste ... ml#L35-L44

The actual query is performed in this function: https://github.com/GerB/cmbb/blob/maste ... #L564-L592
sorry but I can not do that together
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: new topics on the other side

Post by mrgoldy »

Not sure what else you want/need then.
Above examples actually show identical code and queries as to what you are requesting, so it's a matter of copy and pasting and adjusting it to your set up and requirements.
If you do not know anything about coding, you should perhaps not custom code your own pages.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
Sv3n
Registered User
Posts: 17
Joined: Fri Mar 18, 2016 6:04 am

Re: new topics on the other side

Post by Sv3n »

posey wrote: Thu Feb 08, 2018 7:40 pm
If you do not know anything about coding, you should perhaps not custom code your own pages.
That's why I asked if someone has something for me
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: new topics on the other side

Post by GanstaZ »

If extension based coding is not what you are looking for, then maybe this wiki ?
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
Lumpy Burgertushie
Registered User
Posts: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: new topics on the other side

Post by Lumpy Burgertushie »

when there are extensions that will do almost exactly the same thing, why dont you use one of them.?


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Post Reply

Return to “phpBB Custom Coding”