So, the only way I can think of doing it is to remove (or maybe better to comment out) the above code from BoardIndex.pl and then make it a global variable in Subs.pl somewhere in the template sub. So something like this:

But, here's the part I'm not too sure how to get to work... Usually when you login it will redirect you to the page that you were on before you logged in - It's done through a hidden form field in the sharedlogin sub in LogInOut.pl, but I really don't know how to pass it with what you want to do, so the redirect won't work. As I say, I'm afraid I can't help you 100% with this.

Anyway, that might at least give you some sort of idea what you need to do, and hopefully someone who knows for sure can tell you more... and as always, I have only tested quickly so don't know what other problems might arise...

« Last Edit: Oct 4th, 2010 at 12:43am by Derek Barnstorm »

IP Logged

Lopa

Junior Member
Offline

Posts: 95
Location: Australia

Re: How do I qualify a yabb var in default.htmlReply #2 - Oct 4th, 2010 at 8:48am

Thanks again Derek,

If anyone's blood is worth bottling - It's yours!

To be honest I haven't been to the Mods Database to see if anyone has ever done anything with this, but from what I read into the .pl files - It seems people are kind of being forced to build themes around a Menu?

YaBB wants to move to pulling the html out of the .pl - This would be a good place for them to start, because I'm sure that all of the Menu vars are not going to function if one simply calls it in the header.

Anyway, I moved some other things around and re-wrote the header as best I could with what I've got to play with!

Still a couple of <br>'s in the perl script that annoy me - But that's for another thread.