1
keymaster
How do I find the URL associated with a "button"
  • 2006/2/1 14:43

  • keymaster

  • Just popping in

  • Posts: 19

  • Since: 2006/1/5 1


Hi,

I am hoping someone knows simple answer to this question.

In one of the XOOPS modules I have installed, there is a button called "continue". When you click on it, it takes you to the site's homepage.

I want to change the URL associated with the button, so when you click on it, it takes you to a different page.

(sounds simple enough, but)...

It uses smarty templates and I can't seem to follow through where the URL is assigned.

In the XOOPS admin under Misc. Tools -> templates, there the template for the page, it does contain the {$bt_continue}, but no where is any URL mentioned.

Any ideas where I can look to find it?

(FYI - the module is XosC, and the continue button is what you click on after a successful checkout. The template is the checkout_success.html)

This is the call:
$xoopsTpl->assign("bt_continue",tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));

This is the template line that seems to receive the call:
<{$bt_continue}><{$seperator1}>

Any ideas?

Thanks very much.

2
seventhseal
Re: How do I find the URL associated with a "button"

tep_image_submit is a function that wants the image name and the action to take - look for that... sorry, don't know XosC
John Horne - a.k.a. - VelocityWebDev, Seventhseal, CreepingDeath
**********************************
VelocityWebDev Tech BLOG
VelocityWebHost Hosting and Design

3
keymaster
Re: How do I find the URL associated with a "button"
  • 2006/2/1 15:23

  • keymaster

  • Just popping in

  • Posts: 19

  • Since: 2006/1/5 1


Thanks for responding so quickly.

I've looked at tep_image_submit, it expects a third parameter called $parameters which it concatenates to the end of the html.

This is where one would expect the URL to be passed.

However, here as you can see it is not being passed any third parameter.

So, I don't know where the URL is being assigned.

(??)

4
Dave_L
Re: How do I find the URL associated with a "button"
  • 2006/2/1 15:43

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


<td align="right"> <{$bt_continue}><{$seperator1}> td>


What HTML does that get translated to? (view the page source)

5
keymaster
Re: How do I find the URL associated with a "button"
  • 2006/2/1 16:05

  • keymaster

  • Just popping in

  • Posts: 19

  • Since: 2006/1/5 1






No link mentioned! ??

(mystery grows...)

6
Dave_L
Re: How do I find the URL associated with a "button"
  • 2006/2/1 17:04

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


From the same HTML source, find the "form" tag to which that "input" tag belongs, and see if the form tag has an "action" attribute. If so, the value of that attribute is the script that gets executed when you submit the form. The script might redirect to another URL.

There are a couple of other possibilities, but the above is what I would check first.

7
keymaster
Re: How do I find the URL associated with a "button"
  • 2006/2/1 20:03

  • keymaster

  • Just popping in

  • Posts: 19

  • Since: 2006/1/5 1


Dave_L,

You were right on!

That is exactly what was happening (I had never used before so didn't know to look there.

Thanks very much for your help.

All the best.

FYI
====
For anyone in the future who is looking for the same piece of information:

in osc/checkout_success.php,

after the check for action == 'update'
(around line 37 in XosC, v0.60)

change:

tep_redirect(tep_href_link(FILENAME_DEFAULT,$notify_string));

to:

tep_redirect(tep_href_link('another_pathname_relative_to_/modules/osc',$notify_string)); $notify_string));

Login

Who's Online

430 user(s) are online (300 user(s) are browsing Support Forums)


Members: 0


Guests: 430


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits