FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to connect to a forum by number (3, 6, 20, 23, 21)
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to connect to a forum by number (3, 6, 20, 23, 21)
Posted: Thu Feb 01, 2018 03:53 PM
Hello,

I noticed connecting to a forum number -> 3, 6, 20, 23 or 21 opens the wrong forum
the topic-number is OK

my sample must connect to the GERMAN forum
forum number german = 23 but opens english = 3
The forum number shows the correct number but a wrong forum.



any idea :-)

regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Thu Feb 01, 2018 04:24 PM
I think the problem is the topic found... viewtopic.php works also with only parameter t
http://forums.fivetechsupport.com/viewtopic.php?t=33457
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Thu Feb 01, 2018 06:34 PM

Yes it works but because of the missing forum by default english is used

english

viewtopic.php?f=23t=29567
copy from german forum goes to english

viewtopic.php?t=33457
the same with forum number 23 ( german ) -> defined forum ignored :cry:

viewtopic.php?f=23t=33457

regards
Uwe :?:

&&

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Fri Feb 02, 2018 05:54 AM

Uwe,

phpbb is a complex creature :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Fri Feb 02, 2018 09:51 AM
in my browser the links viewtopic.php?t=29567, viewtopic.php?f=23&t=29567 and viewtopic.php?f=3&t=29567
return the same page.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Fri Feb 02, 2018 10:27 AM
in my browser the links viewtopic.php?t=29567, viewtopic.php?f=23&t=29567 and viewtopic.php?f=3&t=29567
return the same page.


Yes, I think because by defaúlt it is < english >
I'm still working on a solution :-)

regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Fri Feb 02, 2018 12:05 PM

Uwe,

It seems that the -f parameter is not used from Phpbb3.00

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: connected to wrong forum (3, 6, 20, 23, 21)
Posted: Fri Feb 02, 2018 12:41 PM
Marc,
I think it must be possible to connect to a forum by number
I noticed during importing topics there is NO connection to the selected forum as well :-)

cUrl := TopicNoToURL( nTopic )
DO WHILE .t.
---lFilter1 := .T.
------cPageURL := cUrl + If( nPage > 1, "&start=" + LTrim( Str( nPage * 15 ) ), "" )
------MsgRun( cPageURL, "READING FORUM PAGE ( BREAK = key RETURN )", { || ;
------cText := WebPageContents( cPageUrl, .t. ) } )


//---------------------------

FUNCTION TOPICNOTOURL( nTopic )
LOCAL cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=3&t=" + cValToChar( nTopic )

//:addbmpfile( c_path + "U-Kingdom.bmp" ) // 3 from Disk
//:addbmpfile( c_path + "Spain.bmp" ) // 6 from Disk
//:addbmpfile( c_path + "Italy.bmp" ) // 20 from Disk
//:addbmpfile( c_path + "Germany.bmp" ) // 23 from Disk
//:addbmpfile( c_path + "Portugal.bmp" ) // 21 from Disk
//sammmple -> viewtopic.php?f=23&t=33496

// nForum ITEMS " 3", " 6", "20", "23", "21"

IF nForum = 1 // selected forum
---cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=3&t=" + cValToChar( nTopic )
ELSEIF nForum = 2
---cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=6&t=" + cValToChar( nTopic )
ELSEIF nForum = 3
---cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=20&t=" + cValToChar( nTopic )
ELSEIF nForum = 4
---cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=23&t=" + cValToChar( nTopic )
ELSEIF nForum = 5
---cFLink := "http://forums.fivetechsupport.com/viewtopic.php?f=21&t=" + cValToChar( nTopic )
ENDIF

RETURN cFLink



regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion