Webmastersite.net
Register Log In

{FUNC_HELPICON[1]}

Comments on {FUNC_HELPICON[1]}

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Dec 01, 2007 - 5:12 AM:

I'd like to use the above function as you have in switches. I have looked at scripts.webmastersite.net/w...emplate-functions-173.html but have to admit I don't fully understand. Is this a function that is already set up that I can use? If yes, then I am doing something wrong as when I try to use it it throws an error

Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'helpicon' was given in /home/club123/public_html/default/includes/templatefunctions.php on line 115

and the image doesn't show.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Dec 02, 2007 - 12:28 AM:

The help icon is for giving contextual help from the WSN Links knowledge base. I can't imagine how/why you'd want to use that, since presumably your visitors don't want to read the WSN Links knowledge Base.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Dec 02, 2007 - 12:34 AM:

Paul wrote:
The help icon is for giving contextual help from the WSN Links knowledge base. I can't imagine how/why you'd want to use that, since presumably your visitors don't want to read the WSN Links knowledge Base.


LOL! I did rather word my post wrong didn't I <G>

I meant that I have a help and information category on MY site (I don't like using the help system so use a cat and links instead). I want to do the same as you have - use help.gif with a link to the appropriate link in the help category (on MY site). I used just html before, but thought perhaps it may be better/easier to use the func as you have smiling face

Hope that makes sense now
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Dec 04, 2007 - 12:48 PM:

You'll need to make your own function for it.
<?php
function helplink($articleid)
{
$url = "yourhelpurl...&articleid=$articleid";
$html = '<a href="'.$url.'"><img src=...></a>';
return $html;
}
?>

Stick in the modifications directory: scripts.webmastersite.net/w...onsspan-directory-369.html
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.