I tried making the link like this:
PHP Code:
<a href="javascript:showforumrules(420,512,'$session[sessionhash]','$forum[forumid]')">Forum Rules</a>
But I have two problems with that. The actual URL that the link becomes is now like javascript
:showforumrules(420,512,'',''), rather than javascript
:showforumrules(420,512,'') as it used to be. In other words, the forumid number is not showing up in the link. So that's the first thing to solve. The next thing I'm wondering about is will the code in the vbcode.js file know what to do with that extra info, or do I need to add to that part, too, and if so, how?
(Note: Of course the
real links do not have the space in between java and script.)