Hi there, i need some help with this one.
It's supposed to redirect "non registered" users to a PartnerHub seeming though my Hub is now Registered Only.
Could someone check whats wrong so that it works with TD4.99 ? (or do i really have to go back to TD4 ;))
-----------------------------------------------------------------------------------------
-- --
-- RegHub Script --
-- --
-----------------------------------------------------------------------------------------
--???????????????????????????????????????????????????????????????????????????????
--? ???????????? HELVETIA REG HUB ???????????? ?
--???????????????????????????????????????????????????????????????????????????????
addy="oberlausitzer.homeip.net" -- ? <<<<< Enter the Redirect Adress here ?
-- ??????????????????????????????????????????????
text= " Sorry, only for registered Users\n"..
" <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
" Interested in becoming Reg User? Then ask one of the Admin's in our Open Hub\n"..
" <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
" You will now be redirected to our PartnerHub > oberlausitzer.homeip.net" -- ? <<<<< Put your Info Text here ?
--???????????????????????????????????????????????????????????????????????????????
--? ???????????? End ???????????? ?
--???????????????????????????????????????????????????????????????????????????????
function NewUserConnected(user)
if (user.iProfile == -1) then
user:SendData(text)
user:SendData("$ForceMove "..addy.."|")
end
end
try this.
user:SendData(text.."|$ForceMove "..addy.."|")
plop
QuoteOriginally posted by plop
try this.
user:SendData(text.."|$ForceMove "..addy.."|")
plop
8o should of seen that one..lol.. thnx alot plop
yw.
plop
OK, after having the script running 4 a while, i had another minor problem.
The hublistpinger coulndt enter either, so i modified the script with help from another forum.
Now this is what i have:
--???????????????????????????????????????????????????????????????????????????????
--? ???????????? HELVETIA REG HUB ???????????? ?
--???????????????????????????????????????????????????????????????????????????????
addy="oberlausitzer.homeip.net" -- ? <<<<< Hier die UmleitungsAdresse angeben ?
-- ??????????????????????????????????????????????
text= "Dieser Hub ist nur f?r registrierte User\n"..
" <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
" Interesse Reg User zu werden dann fragt mal Puppa, Domenik oder Simba im Oberlausitzer Hub\n"..
" <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>\n"..
" Du wirst nun zu unserem PartnerHub > oberlausitzer.homeip.net < weitergeleitet\n" -- ? <<<<< Hier denn zusendenen Text angeben ?
--???????????????????????????????????????????????????????????????????????????????
--? ???????????? Oberlausitzer Open Hub ???????????? ?
--???????????????????????????????????????????????????????????????????????????????
function NewUserConnected(user)
if (user.iProfile == -1 and (user.sName ~= "{HubListPinger}" or "HubListPinger") then
user:SendData(text.."|$ForceMove "..addy.."|")
end
end
which should actually only let HubListPinger or {HubListPinger} in without a password.
The Problem is that it doesnt redirect as it should. Only a small percentage gets redirected and a lot of unregistered users ended up in my RegHub ;(
I need the Pinger to be able to enter without other unregged Users slipping in as well.
***EDIT***
found the answer....
instead of....
function NewUserConnected(user)
if (user.iProfile == -1 and (user.sName ~= "{HubListPinger}" or "HubListPinger") then
user:SendData(text.."|$ForceMove "..addy.."|")
end
end
i now have:
function NewUserConnected(user)
if (user.iProfile == -1) then
if (user.sName =="{HubListPinger}") then
else
user:SendData(text.."|$ForceMove "..addy.."|")
end
end
end
function DataArrival(user,data)
if (strsub( data, 1, 8 ) == "$MyINFO ") and (user.iProfile == -1) then
if (user.sName =="{HubListPinger}") then
else
user:SendData(text.."|$ForceMove "..addy.."|")
end
end
end
and the way it seems - all is working correctly
***EDIT 2***
found an easier way to get the HubListPinger into the Hub without anyone else....has to be done from the same server as the hub is running
http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger
just fill in ur details for hubadress, nick and pass
so u can register the Bot in ur hub as well with the nick of ur choice
I only want to register the hub in the hublist.org that I can see withen DC++
the website is working alright and I can see that it detected that I can PtokaX and the requiremnts (share/slots/etc..)
the thing is that I can't see my hubs name in the hublist.org in DC++
I placed > reg.hublist.org < in the register Address in PtokaX
I have tried this link many times, but didn't work:
http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger
and also tried using the script (http://www.hublist.org/hubinfo.lua) provided by hublist.org.
any idea why am I having this?
--[using]-----
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]
RoboCopv9.0a
----------------
QuoteOriginally posted by NeoUltimicia
I only want to register the hub in the hublist.org that I can see withen DC++
the website is working alright and I can see that it detected that I can PtokaX and the requiremnts (share/slots/etc..)
the thing is that I can't see my hubs name in the hublist.org in DC++
I placed > reg.hublist.org < in the register Address in PtokaX
I have tried this link many times, but didn't work:
http://www.hublist.org/registerpinger.php?address=hubadress.no-ip.net&nick=Pinger&pass=Pinger
and also tried using the script (http://www.hublist.org/hubinfo.lua) provided by hublist.org.
any idea why am I having this?
--[using]-----
PtokaX DC Hub 0.3.3.0 build 15.25 [debug]
RoboCopv9.0a
----------------
Well i have the same Probs (running a reg only hub) and on top of that the hublist.org page is having quit a few ups and downs lately
I have at least 25 Ppz in my Hub at all Times and even then the Pinger mostly says 0 Users
http://www.hublist.org/?p=hub&id=77588