EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Prob with Modifying url lists  (Read 22407 times)

Gom

  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Operating System:
  • Windows Vista Windows Vista
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Prob with Modifying url lists
« on: 11 January 2010, 18:05 »

If i put this 'xxx; http://www.xxx.com/%R;' in url.ini,
the results of right click 'www open' on a rom must be
http://www.xxx.com/yyy
but it is http://www.xxxxx.com/yyyzzz

(yyy is the name of the rom selected)
(zzz is the name of the set of the rom selected)

but i want only 'http://www.xxxxx.com/yyy'

how can i do this ?
Where is my mistake ?

please.
Thank you.
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3445
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #1 on: 11 January 2010, 19:11 »

Well, first of all, be sure what a setname and what a romname is. roms are inside sets. Like pacman(.zip) is a set with let's say bla1.bin and bla2.bin romfiles. So what do you want to open at http://www.xxxx.com then? pacman or bla1/bla2.bin?

clrmame builds the final URL for the site as follows:

prestring + setname + poststring

so 'xxx; http://www.xxx.com/%R;' matches:
xxx = site alias for menu
http://www.xxx.com/%R = pre string
and an empty poststring
the setname is the selected by the clicked entry

So yes, you will end up with http://www.xxxxx.com/bla1.binpacman for the upper example if you clicked on the rom (not the set).

If you want to access 'pacman' you need to use:
xxxx;http://www.xxxxx.com/;

If you want to access 'pacman.zip' you need to use:
xxxx;http://www.xxxxx.com/;.zip

If you want to access the selected rom in the set and assuming the set is not zipped you need to use:
xxxx;http://www.xxxxx.com/;./%R

Note, the setname is always pasted after the prestring and before the poststring.
Logged

Gom

  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Operating System:
  • Windows Vista Windows Vista
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #2 on: 12 January 2010, 08:26 »

Thank you to reply me.....
but it doesn't work.
the result for xxx;http://www.xxx.com/;./%R
is stil http://www.xxxxx.com/yyyzzz

in fact i must explain you that it is for Manuals Arcade 0.136.dat
like this :
<?xml version="1.0"?>
<datafile>
   <header>
      <name>Manuals Arcade</name>
      <description>Manuals Arcade 0.136</description>
      <category>Standard DatFile</category>
      <version>0.136</version>
      <author>dany69</author>
      <date>01-01-2010</date>
      <homepage>http://www.mamext.net</homepage>
      <clrmamepro forcepacking="unzip"/>
   </header>
   <game name="arcade">
      <description>arcade</description>
      <rom name="005.pdf" size="1875064" crc="b53d67bb"/>
      <rom name="10yard.pdf" size="3385946" crc="7bd026f1"/>
      <rom name="18wheelr.pdf" size="2974867" crc="17359bb4"/>
                ....
      <rom name="zookeep.pdf" size="4407026" crc="75bffd03"/>
      <rom name="zwackery.pdf" size="3137315" crc="a098be3a"/>
   </game>
</datafile>

The results for the first line is
http://www.xxx.com/005.pdfarcade

Is there a solution for download pdf file without mofify the dat file ?
If i had to modify dat, how can i do ?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3445
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #3 on: 12 January 2010, 09:41 »

actually for your example xxx;http://www.xxx.com/;/%R should do the job...(note the missing .)

It would open: http://www.xxx.com/arcade/005.pdf in case you right-clicked the rom-issue 005.pdf line in the set-issue line of 'arcade'.

xxx is the site alias
http://www.xxx.com/ is the prestring
'arcade' is the setname
/%R is the poststring where %R gets replaced with the rom name...

so prestring + setname + poststring results in: http://www.xxx.com/arcade/005.pdf

Don't forget to restart clrmamepro after modifying the urls ini file(s).
« Last Edit: 12 January 2010, 09:52 by Roman »
Logged

Gom

  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Operating System:
  • Windows Vista Windows Vista
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #4 on: 12 January 2010, 09:54 »

i'm embarrassed, it doesn't work...
the result is http://www.xxx.com/arcade./10yard.pdf
and i would like http://www.xxx.com/10yard.pdf.

Is it possible ?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3445
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #5 on: 12 January 2010, 10:02 »

you can't get http://www.xxx.com/10yard.pdf

since it's lacking the setname. Coming from your dat, the setname is 'arcade' <game name="arcade">
The setname is always pasted after the prestring and before the poststring.

I also wonder why it creates http://www.xxx.com/arcade./10yard.pdf for you.
In detail I wonder where the "." after 'arcade' comes from if you used xxx;http://www.xxx.com/;/%R
There is no "." in there (unless you used a new dat where the setname is "arcade."
Logged

Gom

  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Operating System:
  • Windows Vista Windows Vista
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #6 on: 12 January 2010, 10:27 »

Thank you
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3445
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.7 Firefox 3.5.7
    • View Profile
Re: Prob with Modifying url lists
« Reply #7 on: 12 January 2010, 15:13 »

Well, your request can be done if I change the url functionality a bit to support the common variables (%r, %s etc...) so you don't have a pre/post string anymore but a simple url with placeholders....then you'd be able to not specify a setname...

I will think about it.
Logged
Pages: [1]   Go Up
 

Page created in 0.088 seconds with 22 queries.