The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need Help with ID imput..
Hi all I am seeking help.. I am working on a MOD that is based on this MOD https://vborg.vbsupport.ru/showthrea...ighlight=wibya
now the following is the coding within the XML document attached... Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="skysa_toolbar" active="1"> <title>Skysa Toolbar</title> <description /> <version>1.0</version> <url /> <versioncheckurl /> <apm_releasedate>0</apm_releasedate> <apm_author /> <apm_relatedurl /> <apm_extrainfo /> <apm_extraedit /> <dependencies> </dependencies> <codes> </codes> <templates> <template name="skysa_javascript" templatetype="template" date="1254860954" username="TRa5H" version=""><![CDATA[<script src='http://static2.skysa.com?i=$vboptions[skysa_toolbar_id]' type='text/javascript'></script>]]></template> </templates> <plugins> <plugin active="1" executionorder="5"> <title>Cache Templates</title> <hookname>cache_templates</hookname> <phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('skysa_javascript'));]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Global Start</title> <hookname>global_start</hookname> <phpcode><![CDATA[eval('$skysa_toolbar = "' . fetch_template('skysa_javascript') . '";');]]></phpcode> </plugin> <plugin active="1" executionorder="5"> <title>Parse Templates</title> <hookname>parse_templates</hookname> <phpcode><![CDATA[$vbulletin->templatecache['footer'] = str_replace('$ad_location[ad_footer_end]', '$skysa_toolbar $ad_location[ad_footer_end]', $vbulletin->templatecache['footer']);]]></phpcode> </plugin> </plugins> <phrases> <phrasetype name="vBulletin Settings" fieldname="vbsettings"> <phrase name="setting_skysa_toolbar_id_desc" date="1254859124" username="TRa5H" version="1.0" /> <phrase name="setting_skysa_toolbar_id_title" date="1254859124" username="TRa5H" version="1.0"><![CDATA[Toolbar ID]]></phrase> <phrase name="settinggroup_skysa_group" date="1254858566" username="TRa5H" version="1.0"><![CDATA[Skysa Settings]]></phrase> </phrasetype> </phrases> <options> <settinggroup name="skysa_group" displayorder="655356"> <setting varname="skysa_toolbar_id" displayorder="20"> <datatype>number</datatype> </setting> </settinggroup> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> <templateedits> </templateedits> </product> here is a live demo of my site working with the bar but I would like to actually set it up as an Application rather than Imput the informaion manually. http://www.weltmuzik.com/forum/index.php the ID code I want to imput into the ID box is : 98F375C1-1DBC-46A8-AAFC-A96FC8A8EA96 Here is a screenshot of the imput box: SO I am just seeing if anyone knows why the error would be happening when I enter the code since it works fine with the www.wibya.com ID of 5 digits.. but now that I edited to the variations for SKYSA is does this? Thanks ahead of time |
#2
|
|||
|
|||
I don't know a lot about that, but I think your problem is probably this line:
Code:
<datatype>number</datatype> Code:
<datatype>free</datatype> ETA: of course if was set to "number" that probably means the code is expecting a number, so hopefully you've handled that... |
#3
|
||||
|
||||
Bingo!
Thank you works like a charm.. I am glad too I was overlooking the integer all the time.. Thanks again! --------------- Added [DATE]1265934651[/DATE] at [TIME]1265934651[/TIME] --------------- Have another question if I wanted to add this code here into the product: Code:
<script type="text/javascript"> var _SKYAUTH = { loginUrl:'http://www.weltmuzik.com/forum/login.php?u=$bbuserinfo[userid]', memberNick:'$bbuserinfo[username]', memberId:'$bbuserinfo[userid]', profileUrl:'http://www.weltmuzik.com/forum/member.php?u=$bbuserinfo[userid]', photoUrl:'http://www.weltmuzik.com/forum/image.php?u=$bbuserinfo[userid]' }; </script> I would want to add it to this section am I correct?: Code:
<phpcode><![CDATA[$vbulletin->templatecache['footer'] = str_replace('$ad_location[ad_footer_end]', '$skysa_toolbar $ad_location[ad_footer_end]', $vbulletin->templatecache['footer']);]]></phpcode> |
#4
|
|||
|
|||
Yes, you can add it to the plugin where it will be used, or some plugin.
By the way, I should probably save someone else the trouble of posting and say that I don't think you are really meant to edit those files, I think you are really supposed to set up everything using the admin control panel and then export the product (but I've edited my xml file myself, sometimes it's just easier). |
#5
|
||||
|
||||
Yeah I am just having trouble trying to figure out how to implement it .. it belongs right below the other code in the [footer] section and well i dont know Java ..
I am just a reader lol.. i read what I see , test it and then if I have problems ask for help.. more of a designer than a coder.. i can make a site look outstanding once i get around the coding ha! so any help on where, how and what code string would be very helpful.. once its done I will reupload this to the public so they all can use the Product like Namaless did with the original Wibya XML |
#6
|
|||
|
|||
I'm sorry, I wasn't paying enough attention - like you said, the JavaScript needs to go in a template and that part you posted adds to the footer.
Try this: Code:
<phpcode><![CDATA[$js = "<script type=\"text/javascript\"> var _SKYAUTH = { loginUrl:'http://www.weltmuzik.com/forum/login.php?u={$vbulletin->userinfo[userid]}', memberNick:'{$vbulletin->userinfo[username]}', memberId:'{$vbulletin->userinfo[userid]}', profileUrl:'http://www.weltmuzik.com/forum/member.php?u={$vbulletin->userinfo[userid]}', photoUrl:'http://www.weltmuzik.com/forum/image.php?u={$vbulletin->userinfo[userid]}' };</script>"; $vbulletin->templatecache['footer'] = str_replace('$ad_location[ad_footer_end]', '$skysa_toolbar $js $ad_location[ad_footer_end]', $vbulletin->templatecache['footer']);]]></phpcode> |
#7
|
||||
|
||||
thanks again worked like a charm.
Ill reference your help in my comments thanks! Lol now I am trying to add something else to stop unregistered users from being logged in and messaging people through the messenger to other people. here is what I have but it is not working lol.. I am so new to this... If you understand what I am doing wrong this is the last part I am having trouble.. so that way I can update the product later. Code:
plugin active="1" executionorder="5" product="vbulletin"> <title>Disable Unregistered Access</title> <hookname>disable_var _SKYAUTH </hookname> <phpcode><![CDATA[if (in_array($vbulletin->userinfo['usergroupid'],array(1,3,4,8))) { print_no_permission(); }]]></phpcode> </plugin> |
#8
|
|||
|
|||
It looks like you added that section and made up a hook name? You need to pick an existing hook name, or else add a new hook. You probably want to pick an existing hook, but I don't know what to tell you because I'm not sure when you want that code to execute.
|
#9
|
||||
|
||||
I am trying to disable Unregistered Users from accessing the Auto Login Feature that the code enables.
Basically they will be able to see the bar but will not be able to access the messenger .. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|