Page 1 of 1

How to connect to a forum by number (3, 6, 20, 23, 21)

PostPosted: Thu Feb 01, 2018 3:53 pm
by ukoenig
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.

Image

any idea :?:

regards
Uwe :(

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Thu Feb 01, 2018 4:24 pm
by AntoninoP
I think the problem is the topic found... viewtopic.php works also with only parameter t
http://forums.fivetechsupport.com/viewtopic.php?t=33457

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Thu Feb 01, 2018 6:34 pm
by ukoenig
Yes it works but because of the missing forum by default english is used

english
viewtopic.php?f=23&t=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=23&t=33457

regards
Uwe :?:

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Fri Feb 02, 2018 5:54 am
by Antonio Linares
Uwe,

phpbb is a complex creature :-)

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Fri Feb 02, 2018 9:51 am
by AntoninoP
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.

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Fri Feb 02, 2018 10:27 am
by ukoenig
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 :roll:

regards
Uwe :(

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Fri Feb 02, 2018 12:05 pm
by Marc Venken
Uwe,

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

Re: connected to wrong forum (3, 6, 20, 23, 21)

PostPosted: Fri Feb 02, 2018 12:41 pm
by ukoenig
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

Image

regards
Uwe :?: