Hard Light Productions Forums
Off-Topic Discussion => General Discussion => Topic started 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?
-
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.
-
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
-
...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.
-
Eh? The point of the banner is so you have a nice easy way of jumping to the top forum.
-
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
-
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
-
*cough* sarcsm *cough*
-
There's a link to the mainpage on the bottom of the screen, anwyays. ;)
-
lol, what's even funnier is i didn't mean it to be sarcasm... i typed it backwards by mistake :D :p
-
:lol: :lol: :lol:
-
:lol:
Now where's that :doh: smilie gone to? :confused: :D
-
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.
-
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.
-
Originally posted by an0n
...css files...
No, PHP.
-
I thought vBulletin used css's to designate individual forum styles?
-
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.
-
it does, but CSS is used for the color set, font, etc. of forums, not used to link oranything
-
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
-
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.
-
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?
-
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.
-
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.
-
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
-
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
-
Tomorrow.
*is busy installing Apache, PHP, FTP and lots of other abbreviated junk on his computer*
-
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.
-
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.
-
i agree with an0n... that should be the easiest and fastest way to do it
-
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
-
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
-
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.
if($forumid==8) {
print("< A HREF=\"sitelink\">");
} elseif($forumid==19) {
print("< A HREF=\"othersitelink\">");
}