vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   a tutorial on <url /> and <versioncheckurl /> (https://vborg.vbsupport.ru/showthread.php?t=123540)

harmor19 08-09-2006 09:49 PM

a tutorial on <url /> and <versioncheckurl />
 
Can someone write a tutorial on how to use <url /> and <versioncheckurl /> in the product?

Code Monkey 08-10-2006 04:50 AM

For the url bit you simply put in the url to find the hack. Wether it be your own website or a release thread here if you released it here.

For the versioncheck you must host your own version file. It can be a txt file and you can name it what you wish. But it must contain the following format and nothing else. Product id and version. Pretty simple really. Then you just put a link to that file.

<version productid="cm_vbmodder_com_vbweather">1.0.0</version>

Just make sure you update the version number with each new release.

harmor19 08-10-2006 10:05 AM

What would the attributes be? Do I use "value" or "location" or no attribute or what?

<url value="mysite.com/myhack.php" />
<versioncheckurl value="mysite.com/myhack.php?do=version />

Code Monkey 08-10-2006 02:34 PM

From one of mine.

<url>http://vbmodder.com</url>
<versioncheckurl>http://vbmodder.com/versions/vbweather_versioncheck.txt</versioncheckurl>

harmor19 08-10-2006 05:05 PM

Alright.
How do you figure this stuff out? I had self closing tags which threw me off.

Thanks. I understand now.

Code Monkey 08-10-2006 05:32 PM

I wouldn't use php to create the version output such as you have there with myhack.php?do=version. A simple txt file will do and is much less resource intensive. No need to use php just for the sake of using php. Always go for the most efficient method.

harmor19 08-10-2006 05:36 PM

will do sir.

The only thing I could use was php.
I tried using a text and html file but when I did the version check it gave me an error.


All times are GMT. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00959 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete