description tag script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

description tag script

Started by blastbeat, 09 March, 2007, 01:27:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blastbeat

Hi

I have written a new script which based on hawks description tag script. I tried to limit the bandwidth consumption and now the description tag of single users can be changed.

Thanks for comments, blastbeat

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

TrIp-iN-SuN

[11:45] Syntax ...s\065_-_System_-_desctag_by_blastbeat_v0[1][1].4.lua:86: attempt to call a table value

i get error i am profile 6 hubowner tag added but i get that error

blastbeat

hi

i tested my script with PtokaX 0.3.5.1 with LUA 5.0.2 i think, maybe thats the problem.
Try to use "for i,curUser in ipairs(onlineUsers) do" instead of "for i,curUser in onlineUsers do" in line 86.
I will downlaod a new version of PtokaX and test the script.

TrIp-iN-SuN


bastya_elvtars

Uh, oh, please don't post 5.0. :-/
Everything could have been anything else and it would have just as much meaning.

blastbeat

#6
Hi

the script should work with LUA 5.1 now, and i have changed the timer to prevent overwriting of MyINfos if different users connect in short intervals (< 1 sec)


TrIp-iN-SuN

works good and if i want use only 4 profile from all how i doing that del profiles my self it's not work i get error

[21:26] Syntax ...s\065_-_System_-_desctag_by_blastbeat_v0[1][1].5.lua:173: attempt to concatenate field 'tagToShow' (a nil value)

blastbeat

Hi

you dont have to del anything in the settings. if you use only 4 profiles, then the script only uses the first 4 entries in the tag settings because the custom tag names like "[Operator] " are linked with the profil number which is the number of order in the Profiles.xml i think.
But when you delete a profile number with tag in the settings and the script needs it later then errors like "..attempt to concatenate field 'tagToShow' (a nil value)" appear.

if you dont have defined a special tag for an user then is tagToShow=tag[GetUserProfile(username)]=tag[n] with n=-1,0,1,2,...,numberofprofiles

if tag[k] isnt defined in settings then tag[k]=nil and you get an error

hope i was able to help

blastbeat

TrIp-iN-SuN

no in my hub we have 8 profile but i want to use from all 8 only 4

blastbeat

#10
Hi

leave the tag blank of the profile you dont want to use in the settings. for example if you dont want to use profile 0,2,3 then change the settings like this:

tag={

--standard profiles:
--
--["profile number"]=	"[tagname in description] "

[0]=	"",
[1]=	"[Aufseher] ",
[2]=	"",
[3]= 	"",
[4]=	"[Svip]",
[5]=	"[Vip] ",
[6]=	"[Reguser] ",
[7]=	"[User] ",
[8]=	"[Gast] ",
[9]=	"[Server] ",
[10]=	"[Specialuser] ",
[-1]=	"[Unreg] ",

}


blastbeat

TrIp-iN-SuN

#11
ok tnx :P
[0]=	"-={?Master PsySuN?}=-",
[1]=	"-={?Op PsySuN?}=-",
[2]=	"",
[3]= 	"",
[4]=	"",
[5]=	"-={?SuperOp PsySuN?}=-",
[6]=	"-={?Owner Of PsySuN?}=-",
[7]=	"",
[8]=	"",
[9]=	"",
[10]=	"",
[-1]=	"",


i doing this like u tell me and i get error
[21:51] Syntax ...s\065_-_System_-_desctag_by_blastbeat_v0[1][1].5.lua:181: attempt to concatenate field 'tagToShow' (a nil value)

blastbeat

#12
Hi

i rewrote the script a little bit, now you can switch on/off the profile tag of a certain profile und the tags of unregged user are shown now.

hope it works

blastbeat

TrIp-iN-SuN

hi same one can convert this script to API 2?

SMF spam blocked by CleanTalk