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

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

Postby ukoenig » Thu Feb 01, 2018 3: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.

Image

any idea :?:

regards
Uwe :(
Last edited by ukoenig on Fri Feb 02, 2018 1:03 pm, edited 5 times in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

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

Postby AntoninoP » Thu Feb 01, 2018 4: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
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

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

Postby ukoenig » Thu Feb 01, 2018 6:34 pm

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 :?:
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

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

Postby Antonio Linares » Fri Feb 02, 2018 5:54 am

Uwe,

phpbb is a complex creature :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby AntoninoP » Fri Feb 02, 2018 9: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.
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

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

Postby ukoenig » 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 :roll:

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

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

Postby Marc Venken » 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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1431
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

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

Postby ukoenig » 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

Image

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests