![]() |
This may have been covered before, but I am using $user_username like this:
Welcome $user_username but it is just showing "Unregistered" even if you are logged in... am I doing something wrong? |
I'm using it exactly like you and it works.
|
Ahh, but I am using it away from vb... using a php include to call the page into my homepage... and its not working... it might because I am using php functions for everything on the site... any ideas?
|
I mean, it works when I go to the forum directory and try it, but not when I am using it on my homepage.
|
So why do you make a call on your homepage? Any reasons for this? Just make webtemplates your starting page.
|
ehhh, my homepage is a tad more advanced than you think... I couldnt run it from webtemplates even if I wanted too, its got over 1000 lines of functions behind it...
|
Hm, okay.
Ever tried to build this code into the webtemplate? Maybe it works? |
Lol.. Watch out vB world. This kid has an 'advanced' forum.. haha ;)
|
Hm. Even if your posting is not against me - I don't think, you're helpful, Logik.
|
Havent got an advanced forum, just a website that works, I dont know jack++++ about vb forums really, only how to make styles for them...
I'll give working the site into a webtemplate a miss... all I want to know is do you know why it wont display the users name when they're logged in? I tried including global.php too. |
Quote:
|
What type of "functions" do you have on your homepage?
|
Basically everything that site uses... I have all my functions defined in one file, such as sql queries, php, all the html... and then I just call them in on the main pages, so I can edit everything in one place.
|
by functions I mean defining stuff using php:
PHP Code:
PHP Code:
I am just wondering how to get it to work thats all :) hehe. |
You could try to load it in an iframe on your homepage. Only netscape-users can't see this.
|
That might work, i'd have to look up the code to make the iframe transparent as the cell its in has a background image.
|
The easiest way: just put your functions into webtemplates. I really played around with wt and you can do a lot of things with it.
|
Ok, thanks for your help all the same... I may just add a fully fledged welcome bar onto my home page and be done with the whole thing :)
|
Quote:
If you still have the problem, I need some clarification: Can't you make webtemplates work all together or does it work but just $user_username not works? Also please mention if it works if you use it default: ie. you call show.php?pg=template_name directly without PHP includes.. |
Ok, what I did was:
Create a new webtemplate that contained PHP Code:
Hope that clears it up! |
Very nice, will give this a go on my test forum :D
|
I think I just found what i didn't know I was looking for!
Awesome hack, and installs easy! Very fine Job Logician! |
Are there any plans for a new version? PLEASE make it parse PHP.
How can I include login box, who's online etc on my front page using WebTemplates? Thanks! |
will there be a new version?
Thanks! |
Quote:
I must also say that I had too many released hacks here in vb.org which requires my attention&support and it does not help much to have so many hacks when it comes to enhance them. This is the story..Sorry for the delay of new version.. |
ok thanks! another question! can i also call a webtemplate in another webtemplate?
|
Ok, Just installed on my main Forum 2.8 and all went well.
Top Hack, Just need to look into how to use the sql side of things. :rolleyes: XrayHead Thanks again for the hard work you put into this hack. |
Quote:
|
Hey, i was just wondering if there was a query that lets you see:
Active Users: 25 2 members | 23 guests ricksoprano , XtReMaTriX Most users ever online was 71 on 01-31-2003 and that stuff on your template. I use mybvindex for my home page and i want the template to kinda mimic that. i can get everything working exept the active users... A little help would be great... |
Very cool hack ... installed without a glitch on 2.2.9.
Very impressed. |
Excellent hack, can't wait for the next version when you've got it done.
Craig |
Is there any way you can edit your online.php to add the template locations so you can see people moving about the site?
For example i am browsing : http://www.mysite.com/forum/show.php?pg=Links In who is online i want to show the person: Viewing the links page. Thanks Craig |
How does this script perform under *heavy* load? Of course it does depend on the server to a large degree, but are there bottlenecks? Slowdowns? Has it been tested on a high-traffic site?
Thanks. |
Quote:
Edit online.php, find: PHP Code:
PHP Code:
|
Quote:
If PHP running time is high under heavy load, there may be ways to optimize it by cancelling some features like webqueries.. Hopefully the next release will be much performance-friendly if it's is released.. :knockedout: |
I'm waiting on the next release to install this, so I hope it happens. ;)
|
Quote:
Craig |
Since I'm not that wonderful of a hard coder. Can I build my pages in say Dream Weaver and copy the source into your hack and build my pages that way?
Great idea. I love this hack. Mark |
Quote:
|
Logician your the man. Thanks. Lets be best friends. :p I'll buy the beer. :)
Mark |
All times are GMT. The time now is 08:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|