Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Anaz on August 18, 2002, 09:50:48 pm

Title: Nitpick...
Post by: Anaz on August 18, 2002, 09:50:48 pm
Ok, this has been bugging me... When I go to a forum for a hosted mod, I want to see their site, so I try to click on the banner...which takes me to the forum I'm already in...

so if it wouldn't be too much trouble, could you make the forum banners take you to the hosted MOD's website?
Title: Nitpick...
Post by: WMCoolmon on August 18, 2002, 09:58:02 pm
I don't believe it'd be too easy, since I think it automatically links to the location of the board and isn't settable without changing the code.
IMO it'd be worth it, though. It's a bit confusing to click on the "Over the Top" banner and be taken to the main forums page.
Title: Nitpick...
Post by: Stealth on August 18, 2002, 10:02:14 pm
yeah, but see on like the Hard Light forum, the banner says "HARD LIGHT FORUMS", so it's SUPPOSED to link to the forums i think, just on their forum banners they don't have 'forums' on it... they may have 'over the top', but they don't have 'forums', so when the user clicks it they expect it to go to the website, but it doesn't.

i'm sure an admin can change it in certain sites instead of the entire setup of all forums
Title: Nitpick...
Post by: Pegasus V on August 18, 2002, 10:46:38 pm
Quote
...the banner says "HARD LIGHT FORUMS", so it's SUPPOSED to link to the forums...


It's a bit stupid if you ask me. Why would you want to go to a place that you already are? Please HLP Gods, change it to the website rather than the forum.
Title: Nitpick...
Post by: an0n on August 19, 2002, 08:40:40 am
Eh? The point of the banner is so you have a nice easy way of jumping to the top forum.
Title: Nitpick...
Post by: Kellan on August 19, 2002, 08:42:25 am
Ummm...but surely the bar at the top is just as easy. Y'know, the:

HLP Forums > HLP > Hard Light > Thread

...And you just click on the "HLP Forums" bit. See? Monkey see, monkey do? :D
Title: Nitpick...
Post by: Stealth on August 19, 2002, 10:54:49 am
i don't know abou you, but when i click on 'HLP FORUMS' i don't want to go to the HLP forums, i want to to go the HLP homepage
Title: Nitpick...
Post by: Knight Templar on August 19, 2002, 02:10:38 pm
*cough* sarcsm *cough*
Title: Nitpick...
Post by: aldo_14 on August 19, 2002, 03:25:23 pm
There's a link to the mainpage on the bottom of the screen, anwyays. ;)
Title: Nitpick...
Post by: Stealth on August 19, 2002, 03:59:37 pm
lol, what's even funnier is i didn't mean it to be sarcasm... i typed it backwards by mistake :D  :p
Title: Nitpick...
Post by: Knight Templar on August 19, 2002, 05:37:54 pm
:lol: :lol: :lol:
Title: Nitpick...
Post by: WMCoolmon on August 19, 2002, 07:23:46 pm
:lol:
Now where's that :doh: smilie gone to? :confused: :D
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 06:00:54 am
Quote
Originally posted by Stealth
i don't know abou you, but when i click on 'HLP FORUMS' i don't want to go to the HLP forums, i want to to go the HLP homepage


ROFL!!

Anyways, as for the idea, AFAIK it's hard-coded. And I believe that even if we were to modify the code, we could only define one link for the top banner.

As far as the vB is concerned, every forum and subforum all belong to one "homepage", to which the bottom link that aldo mentioned links.
Title: Nitpick...
Post by: an0n on August 20, 2002, 09:32:48 am
Technically you could use some kinda array thingy whereby it'd reference a list and match the forum number to href code, but that'd mean going through like 40 different css files and changing the header data.
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 10:07:54 am
Quote
Originally posted by an0n
...css files...



No, PHP.
Title: Nitpick...
Post by: an0n on August 20, 2002, 10:43:41 am
I thought vBulletin used css's to designate individual forum styles?
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 10:51:42 am
Quote
Originally posted by an0n
I thought vBulletin used css's to designate individual forum styles?


That may be, but it has nothing to do with the matter. In case you aren't familiar with CSS files (and apparently you aren't), they store information about how the browser should format the appearance of page elements - color, size, borders, etc. CSS files cannot be used to define a link like the one being talked about.
Title: Nitpick...
Post by: Stealth on August 20, 2002, 10:53:05 am
it does, but CSS is used for the color set, font, etc. of forums, not used to link oranything
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 10:58:03 am
Quote
Originally posted by Stealth
it does, but CSS is used for the color set, font, etc. of forums, not used to link oranything


:ha: Beat ya to it! :D
Title: Nitpick...
Post by: an0n on August 20, 2002, 11:03:57 am
CSS can be used to define parameters for the page. And you could get it to change the links for specific forums.

You could quite easily (albeit extremely tediously) make either the php of the boards or the css files reference some other parameter and get the boards to change the header link.

But anyway, this is OT. The simple fact is that the forums are fine the way they are and don't friggin need the links changing.
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 11:13:10 am
Quote
Originally posted by an0n
CSS can be used to define parameters for the page. And you could get it to change the links for specific forums.

You could quite easily (albeit extremely tediously) make either the php of the boards or the css files reference some other parameter and get the boards to change the header link.


Ok, you've got me curious. Getting off the question of actually changing things, how does one use CSS to change a link on a page?
Title: Nitpick...
Post by: an0n on August 20, 2002, 11:18:59 am
Quote
Originally posted by Sandwich
Ok, you've got me curious. Getting off the question of actually changing things, how does one use CSS to change a link on a page?

You get it to point to some arbitrary file full of definitions and have it reference something based on a constant in the file, such as it's forum number or some ****. Then you just change the definition within the list file thingy. You change 40 files in a one-off and afterwards only need to change and access one file to change something instead of trawling through it's own style sheet.
Title: Nitpick...
Post by: an0n on August 20, 2002, 11:34:36 am
And actually, you could probably get the php of the board to do it, by having the php looks for the constant and referencing the stuff for the right html to insert/generate.

The php uses the forumid= thingy to set the style used so you could probably put in a ton of IF thingies for the id number to set which header thingy to use. Or just edit the code so it sends it to the campaigns forum thingy instead of the main index.
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 01:28:22 pm
Quote
Originally posted by an0n

You get it to point to some arbitrary file...


That's the part I'm having problems with. AFAIK, CSS can't be used in this manner. If you know otherwise, let's see some CODE. :D
Title: Nitpick...
Post by: Stealth on August 20, 2002, 03:44:42 pm
Quote
Originally posted by an0n
And actually, you could probably get the php of the board to do it, by having the php looks for the constant and referencing the stuff for the right html to insert/generate.
 


you could definately get the PHP to do it, because it's the PHP that has the links for the banners, it's a question of whether you could get the CSS to do it, like you said you could

i'm not sure about CSS... you might be able to, you probably know more about it than me, all i've ever used CSS for is an easier way to set colors, design, etc. of pages


Yes Sandwich, you did beat me :)  but only this time!!! :p
Title: Nitpick...
Post by: an0n on August 20, 2002, 04:05:24 pm
Tomorrow.

*is busy installing Apache, PHP, FTP and lots of other abbreviated junk on his computer*
Title: Nitpick...
Post by: Sandwich on August 20, 2002, 04:09:03 pm
Quote
Originally posted by Stealth


you could definately get the PHP to do it, because it's the PHP that has the links for the banners, it's a question of whether you could get the CSS to do it, like you said you could


Actually, in order to have PHP do it automatically, it would require an extra field in one of the vB MySQL databases that would store the homepage link of each sub-forum. Only then could vB assign the correct link, as the subforum pages are automatically generated by forumdislay.php and showthread.php.
Title: Nitpick...
Post by: an0n on August 20, 2002, 04:52:28 pm
Quote
Originally posted by Sandwich
Actually, in order to have PHP do it automatically, it would require an extra field in one of the vB MySQL databases that would store the homepage link of each sub-forum. Only then could vB assign the correct link, as the subforum pages are automatically generated by forumdislay.php and showthread.php.

Maybe. But I think you could do it with the existing fields and just change them all from like
.../aob/aobheadr.jpg
to
< a href = WHATEVER >< img src = ...aob/aobheadr.jpg >< /a >

And remove the PHP coding from forumdisplay that automatically links it to the main index.
Title: Nitpick...
Post by: Stealth on August 20, 2002, 10:11:48 pm
i agree with an0n... that should be the easiest and fastest way to do it
Title: Nitpick...
Post by: an0n on August 21, 2002, 07:26:16 am
DISCLAIMER: an0n in no way endorses the changing of the forums from their current basic layouts and will kick and scream like a small, upset child should any changes be made to the layout or the methodology behind the links generated by the php of the boards
Title: Nitpick...
Post by: Stealth on August 21, 2002, 12:14:31 pm
Quote
Originally posted by an0n
DISCLAIMER: an0n in no way endorses the changing of the forums from their current basic layouts and will kick and scream like a small, upset child should any changes be made to the layout or the methodology behind the links generated by the php of the boards


they probably won't change it either... it's not serious ;0
Title: Nitpick...
Post by: WMCoolmon on August 21, 2002, 01:15:40 pm
The header should be stored in a single file somewhere, it doesn't make sense to have it in several different files instead of just using an include.
With that said, you should be able to use if-else statements to control the link for the header image.
Code: [Select]

if($forumid==8) {
print("< A HREF=\"sitelink\">");
} elseif($forumid==19) {
print("< A HREF=\"othersitelink\">");
}