vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   xmenu system... (https://vborg.vbsupport.ru/showthread.php?t=34731)

Yaa 101 02-01-2002 10:00 PM

Not long ago i made a menusystem into a hack for my board.

I want to share this hack.

Before downloading and using it have a look on a working system.
I have to find some ways to lure people to my board :D:D:D ;)

http://forums.knowledge-emporium.com

All info and instructions you can find in the attached zipfile ( 9k ) that you can download.

This hack is a Intermediate - Expert level hack.
My tip is to try it first on a test style.

Have fun with it,
Yaa101


IMPORTANT! change in package: included the 3 pics that are used.
Also changed the description to this fact.

My excuses to the persons missing these files.

Dade 02-02-2002 04:42 PM

Nice hack, I'm gonna try it out on my test board :)

Thomas P 02-02-2002 05:49 PM

Hi,

yery nice menu, really slick,
I'll give it a try the next update,
thx a bunch for sharing,
-Tom

Martz 02-02-2002 06:34 PM

Great hack, works well. :)

Yaa 101 02-02-2002 06:48 PM

:)

Lesane 02-02-2002 07:43 PM

Something wich i can add in my new style, thanks. :up:

Martz 02-02-2002 08:45 PM

You can see it running if you go my my forums and select the grey style from the drop down list on the right hand side.

I just need some menu items to put in there now :)

Yaa 101 02-02-2002 08:56 PM

Looks good...

btw... busy board you got, :little envy: , lol...

You should check out the website of the creators of the menu.

The address is in the source...

Yaa 101 02-02-2002 09:17 PM

I changed the package a little to include the 3 missing pics.

Sorry Martz and others for the extra work.

Martz 02-02-2002 09:44 PM

Its ok, I bodged it my renaming a few images and putting them in the right place :)

Good work.

Floris 02-02-2002 10:51 PM

First of all; change your url to: http://forums.knowledge-emporium.com/index.php?s= because your link is broken :)

Second of all; way cool :) This is really supahfly looking.

Third of all; which browsers does this work on? Looks fly on IE6 and mozilla 0.9.* and opera6 doesn't align it properly (to the top) and no transparency. I am not sure about netscrape, because (as usual) it crashed.

Fourth of all; way cool :p hehehe

Yaa 101 02-02-2002 10:56 PM

Like you say, Netscape 6.2 renders it little off page... lol...
and 4.x crap does not even load the page...


thanks for telling about the url... :) bedankt... lol...

christina 02-03-2002 01:31 AM

As an FYI, it doesn't work at all using IE 5.1.3 on Mac OS 10.1.2. Might not be as many Mac users as Windows ones, but... Can't help it if I like Macs, and annoying to run to the PC.

Christina

Yaa 101 02-03-2002 01:43 AM

Sorry but i can't help you with that, but do agree.
Don't you think it's sad that IE for windows is different from it's MAC counterpart.

A remote tip: i see you run Darwin ( OS 10+ ) you can run a ported xwindows and linux capabilities on Darwin.
I use KDE window system for my xwindows in linux.
They come with a good solid ( slow in some area's still ) Browser called Konqueror.

If all manufacturers would build a good DOM from a html ( generated or not ) file that enters the browser from a remote host.

This would save us programmers a lot of trouble and headaches.

lol...

On the other hand, there would be less jobs around, long live imperfection...

lol...

afterlab 02-03-2002 04:09 AM

Great hack. I will look into using it on my new Forums build, FFR Overdrive X.

cyrus 02-03-2002 08:50 AM

very nice, wouldve added it if it was compatible with all major browsers in Windows ... its isnt so I think Ill give it a miss ;)

sleepbirdcyp 02-03-2002 12:52 PM

why my forum can not display the images

the images path is http://wwww.xxxx.com/xxxx/imagesarrow.down.png


there's no "/" between images and arrow.down.png

so how can i change to
http://wwww.xxxx.com/xxxx/images/arrow.down.png


THX :china:

Yaa 101 02-03-2002 01:06 PM

by putting the / ( slash ) behind the url you filled in as pointer to your images directory, this is done on your style page in the section imagepaths as it reads out that value.

you can alternatively change the setting in the xmenu_menudef template.

In the last part of that template the path is defined by the following line:

webfxMenuImagePath = "{imagesfolder }"; //points to your styles imagesfolder

without the space between r and } I did that because it even renders in here... lol... it returns the path to this boards image forlder.

-------------------------------------------------------------------------------
CALL TO DEVELOPERS!!
-------------------------------------------------------------------------------
Bug? I thought these replacement variables only work behind the scenes?
Isn't this a major security breach if we all can run replacement variables in here?

-------------------------------------------------------------------------------

you can hardcode the part after = to your url but i wouldn't recommend that.

just put a trailing slash to the imagefolder path entry on your style modification page and it should work.

Bas.

Reno of Shinra 02-03-2002 01:47 PM

Nice hack.

I'm still trying to fiddle around with it a bit more, but I love the transsparency effect (Can you believe I just had a regular dhtml one almost up and ready when a friend of mines shows me this link which undos all my work).

I am currently trying to get the text link (the one where you click to bring up the menu) to become graphicaly but with no success yet

as far as I know, there is one error inside your instructions

in the 3rd template (xmenu_menudef) near the bottom

Quote:

<!-- actual xmenu display -->
<script type="text/javascript">
var ua = navigator.userAgent;
var opera = /opera [56789]|opera\/[56789]/i.test(ua);
var ie = !opera && /msie [56789]/i.test(ua);
var moz = !opera && /mozilla\/[56789]/i.test(ua);
if (ie || moz || opera) {
if (ie)
simplifyCSSExpression();
webfxMenuImagePath = "https://vborg.vbsupport.ru/images"; //points to your styles imagesfolder
document.write(webfxMenuBar);
}
</script>
webfxMenuImagePath = "https://vborg.vbsupport.ru/images"; is missing a slash, so it should be

webfxMenuImagePath = "https://vborg.vbsupport.ru/images/";

Of course it could be that I am using version 2.0.3 right now, becuase I also ran into a problem in modifying the global.php file

Quote:

eval("\$xmenustyle = \"".gettemplate('xmenu_menustyle')."\";");
eval("\$headinclude = \"".gettemplate('headinclude')."\";");

eval("\$xmenucssexpr = \"".gettemplate('xmenu_cssexpr')."\";");
eval("\$xmenucode = \"".gettemplate('xmenu_menucode')."\";");
eval("\$xmenudef = \"".gettemplate('xmenu_menudef')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
That last line that you have to add, is not needed, otherwise it will mess up the header by making it show up twice. Looking at the newer VB 2.2 shows that i might not get this error, but this is a extra instruction for those other users still using 2.0.3

If anyone can figure out how to turn the text links (the one you push down to call the menu up) into graphics, I would be very happy

http://www.shinraonline.com

Reno of Shinra 02-03-2002 02:02 PM

whoops didn't see your post up there

sorry!

=b

Yaa 101 02-03-2002 02:50 PM

It was the purpose of this menusystem ( not made by me, i only made the hack ) is to have a great graphical look without graphics.

The main engine turns textlinks with the help of CSS into a nice menusystem.

The best shot to make graphics is to link them in using the same CSS instructions that are used to render this.

instead of defining a color as background you could link in a pic like this:

.webfx-menu-bar {
background: url(etc/etc.jpg);
}

You can find this in xmenu_menustyle template.

sleepbirdcyp 02-03-2002 09:29 PM

All Done

THX Man

Great hack!!!

DrkFusion 02-10-2002 07:12 PM

I have two desings. And want to add xmenu only to my vbportal pages. How can i do this.
Tried to add some codes wich came with the file to my frontpageheader but it doesnt work!
There is no global.php on vbportal so i dont know where to add lines i added while i was
trying this menu on vbulletin! Could i have some help please!

Yaa 101 02-10-2002 07:24 PM

I am not a expert on vb and don't know vbportal's code

put the evals as early as posible in vbportal.php if there is such a thing.

and include
PHP Code:

$xmenustyle 

in a template whithin <style></style> tags

the other 3 vars:

PHP Code:

<!-- toplinks -->
   
$xmenucssexpr
   $xmenucode
   $xmenudef
   
<!-- /toplinks --> 

can be put anywhere actualy as long as the templates they represent are evalled in a php file and the style var is placed in a style area...


I suggest you make a test style on your board and go experiment...

Sorry i cannot help you more...

Bassie.

psico 04-26-2002 07:13 PM

works on 2.2.5??

Yaa 101 04-26-2002 07:20 PM

See the proove... ;)

This hack is not version specific...

http://forums.knowledge-emporium.com/index.php

Birdie501 05-07-2002 10:42 AM

Hi,

i installed this menu. But i have some difficulties. If I take a look to my site the menu is not shown. If i use another Computer i can see it!! I use WinXP with IE 6.0.
I just thought it is because there is something wrong with my browser but i also went to your homepage where the menu is in use and it works just fine?

Any ideas?

Thanks.

Yaa 101 05-07-2002 10:47 AM

Please be more specific...

what puters, what browsers etc...

And can i take a look?

Birdie501 05-07-2002 11:00 AM

Hi,

sorry it is only offline. But as i told you, i can see the menu on your site without any problems. If i call my page there is nothing to see!?
but if i use another PC with IE 5.5 and Win2000 i can see it? Wonder.

I use internet Explorer 6.0.2600 and Win XP Professional.

Sorry what is meant by "puters"??

Yaa 101 05-07-2002 11:12 AM

puters is just short for "Computers".

Things aint easier when i have non at all view of what is happening...

Also i have no complaints that it does not work under IE 6.

I did not check XP - IE6 only 2k with IE 6...

On what server do you run your offline board?
I run my VB on a Apache webserver with PHP and mySQL.

I don't think i can help you with incompatibilities concerning windows...

Yaa 101 05-07-2002 11:21 AM

Oh yes,

I don't think i can be made resposible for the idiot situation that has been created by the various browser companies concerning the incompatibilities in reference to the W3C standard.

Can you send me some snapshots of your screen? and code-templates you changed?

Birdie501 05-07-2002 11:39 AM

did you make something different to your board, because i can see it there? Could it be that there is a problem with my server? i use nusphere?

Yaa 101 05-07-2002 11:49 AM

No my board is made exactly like things were explaned in the hack...

I hope it's not your webserver...
Though i advice you anyway to get the windows port of Apache...
It's not that dificult to install, it runs mostly out of the box, you only need to change the httpd.conf to make it run with PHP.

Get the 1.3.xx versions as the 2.xx version does not work yet with PHP.

Birdie501 05-07-2002 01:53 PM

Hi,

i found that it shows the menu if i am not logged in.!!!

i have a style default and a style in my language called deutsch.

in the options i set up that the default template uses the deutsch one.

the templates of the menu are only in deutsch style.

Where is my error?

Thanks!

Yaa 101 05-07-2002 02:01 PM

Sounding from this, you only have put the menu in 1 style...

This menu needs to be defined in all styles...

Thus 2 styles means adding 6 templates 3 in each.
And changing header and headinclude in each...

Only the part in the PHP is changed 1 time.

I hope you are on the right track now...

Bassie.

Birdie501 05-07-2002 04:30 PM

mmmh,

i copied the templates to the default style but it is still not shown?????

Any idea? :(

Birdie501 05-07-2002 04:32 PM

Quote:

Originally posted by Yaa 101
Sounding from this, you only have put the menu in 1 style...

This menu needs to be defined in all styles...

Thus 2 styles means adding 6 templates 3 in each.
And changing header and headinclude in each...

Only the part in the PHP is changed 1 time.

I hope you are on the right track now...

Bassie.

why 6 templates?
there are 4 templates + headinclude + header = 6
but you wrote 6 + header and headinclude?

Yaa 101 05-07-2002 04:42 PM

wrong of me... there are 4 templates you need to add to EACH of your current styles...

these are called:

xmenu_cssexpr
xmenu_menucode
xmenu_menudef
xmenu_menustyle

then in EACH style you find the header and headinclude templates, you need to change all.

2 times put

<!-- toplinks -->
$xmenucssexpr
$xmenucode
$xmenudef
<!-- /toplinks -->

inside EACH of the 2 "header" templates (each one in each style)

and 2 times put

$xmenustyle

just before the closing </STYLE> tag inside EACH "headinclude" template of each style

This means you have 2 styles thus 2 x 4 addings = 8 addings , 4 in each style.

Then in 2 styles you change both header and headinclude thus changing 4 templates.

Birdie501 05-07-2002 04:50 PM

well i think this is easy! isnn't it? :-) But it doesn't work. No i deleted one style so there is only one left!

but now it still only show the menur when you are logged out!
Could there be problems with other hacks?

Yaa 101 05-07-2002 05:00 PM

It can but that would be if your hacks involve global.php

in there the eveluation of the templates take place...

can you put on the code or send it to me?

better yet, can you send me your global.php, and the header and headinclude templates?

Often we think we did all right but are to long busy with things to see the real thing going on...

You can reach me here: yaa_at_euronet_dot_nl
I think it also talks more easy...

Bassie.


All times are GMT. The time now is 04:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01450 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete