![]() |
sorry m8 yes was referring to the mini calendar hack.
I can see it if i call it in on a page on its own but cant get it to integrate with vbindex. |
You need to put:
PHP Code:
Add the template for the calendar and then make sure that the calendar php file doesn't output the template but evals it to a variable, eg: PHP Code:
|
Quote:
Quote:
|
Quote:
like some else said. it takes about ages to load. and i have a lot users (100?) online at the same time. i'm guessing it's the 'online users' script that might cause, which i don't really need. can i ditch that left column? or maybe ditch everything except for the display of the actual news stories? (i don't need the welcome box either) i'd like to use it a php include on my news page. any help would be appreciated. (excellent hack btw, just needed to say that) |
Quote:
Quote:
|
that worked. thank you very much.
but i can't get rid of that 'welcome' table |
Quote:
|
doesn't this remove the welcome message + stats from vbulletin?
|
The home and home_ templates have nothing to do with vBulletin, there all for vBindex so removing that HTML won't effect your forums home page.
|
thanks again.
one more thing (i know: again!): the news forum is now private. i underdstand that it has to be public to let people post replies, but can i keep people from posting new threads? cause that's not what i want:) |
Just change the forum permissions in the Admin CP for the usergroups that you don't want to post new threads.
|
Thanks for the hack! I recently switched from vbhome_lite becuase it's not supported anymore. :(
This seems to be working great. However, I have a few questions. 1.) I'd like for the members to return to the index.php after a)logging in/logging out and b)voting (instead of returning to the poll). I think this is possible with a login.php code you mentioned a page or two back? Could I get this? 2.) In the last posts column - is there a way to hide private forums? I'm sure I'll have more, but this is all for now. I'm having fun with it all. :D Edited to say: Also, I don't really need the who's online bit on the index page. I suppose I can remove this - is it in a template or the index.php? |
pretty hard this really as aint sure which thread to put it in as it involves 2 hacks.
Is it possible to get the shoutbox from the main Indexpage to show on the VBindex page and in a column ????? Like most portals have. |
Also, if a person isn't logged in - they see two login boxes (one in the welcome panel and one in the left-column). Is there a way to remove the log in box in the left-column, basically either showing the stats or showing nothing and skipping to the online now users?
|
Quote:
Quote:
Quote:
Code:
<tr> |
Quote:
|
Quote:
|
Quote:
Edited to say I get it. A member won't see the private forums last posts, only those allowed will. (y) Thanks! And thank you for the rest. I have made the changes, with the exception of the files via pm, which I will do soon. I've taken care of the who'sonline (I just wanted the actual members removed, not the statistics) and have done that. Now I'm off to reincorporate Kura's quote hack and the microstats! Thanks! |
Quote:
I think if you have manually set the permissions manually so that users can't view them then they shouldn't show. If the forum is just using the permissions of the parent forum then it seems like they will show up. I hope this is clear ;) |
Quote:
|
Quote:
If you can't see them as a guest, you shouldn't be able to see them as a regular user or anyone else who can't view the forum. |
Quote:
Firstly edit forum/golbal.php and find: PHP Code:
PHP Code:
Add the home_menu template that can be found in the zip file. Don't forget to remove the stuff you won't be using, then lastly edit your header template, in between the following comments: Code:
<!-- /logo and buttons --> Code:
$menu Please let me know what functions you would like to see in the forums menu so I can impliment this properly with the next version. |
Cheers NTLDR for feedback.
I have done the global in root done the home template and added the code in the header The forum is to the right so that bit works but to the left only the search box is showing and online users is showing with it but its as if no one is on.Nothing else is showing in the left hand panel. Small gif to show u how i mean |
Just an idea which would be cool. As you may know, I run a console gaming website. Now, it would be good if we could replace the avatar on the posts with a custom picture on each news story. So, say if I was doing a story on Xbox, I could put a picture of a xbox there. If I was doing a story on PS2, I could put a picture of one there too. If I was doing a story of a mod chip, I could put a picture of it there... etc etc...
I guess you could maybe put it as an attachment to the post, which automatically is shown on the news page where the avatar currently is. A good example to what I was thinking would be this: http://www.neowin.net/ It would also be nice if I could select previous images I had used as news stories, so I don't need to upload the same xbox image for like 20 stories which just uses up the database. Anyway, just something to think about :) |
good idea.
I gather the template for the way the posts are shown on there can be altered in some way to make it look like that sort of post. All in all good hack and one that can be built upon. |
sorry i called it in wrong way i was still on the old VBindex php file
switched to this one now and i get this error Fatal error: Call to a member function on a non-object in /vbb/vbimenu.php on line 40 Line 40 is this : $buddys=$DB_site->query($sql); |
Quote:
|
Quote:
|
Quote:
Just a quick question. I thought it would be nice if I could have "Last comment was by username" at the bottom of the news posts. Now, what I put in the home_newsbit template was: Code:
Last <a href="$bburl/showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$newsthreadid">comment</a> was by <a href="$bburl/member.php?action=getinfo&find=lastposter&threadid=$newsthreadid"><b>insert name here</b></a> I was looking at the forumdisplay templates where they do it for each thread (i.e. where they have Thread name, Thread Starter, replies number, Views and Last Post). I found they were using $thread[lastposter] to do it, but if i put that right into the vBindex templates it does nothing. so yeah, i was guessing it had something to do with the php file and that i would need to add a line or two to the vbindex.php file or something. Anyway, keep up the good work :) |
Nice suggestion there DWZ :)
In the vbindex.php file add after: PHP Code:
PHP Code:
I may also add this in to the new version. |
sorry m8 not calling yout hack but when i run vbimenu.php from main root that is when i get the error.
I have done the global in root - and also put #menu in the header so i have folowed it htough with no luck as yet. |
You need $menu in the header not #menu (not sure if that was a typo by you or what you have in your template).
Calling vbimenu.php directly isn't supposed to work, if you added both lines to global.php then it should be included automatically for each page and display the home_menu template wherever $menu is placed, on any page the requires global.php |
yeah is $menu my mistake and will check my global now
// parse css, header & footer ################## eval("\$headinclude = \"".gettemplate('headinclude')."\";"); eval("\$header .= \"".gettemplate('header')."\";"); eval("\$footer .= \"".gettemplate('footer')."\";"); $timediff=''; if ($bbuserinfo['timezoneoffset']!=0) { if (abs($bbuserinfo['timezoneoffset'])==1) { $timediff=" $bbuserinfo[timezoneoffset] hour"; } else { $timediff=" $bbuserinfo[timezoneoffset] hours"; |
This is what the section of global.php should look like for vB 2.2.6:
PHP Code:
|
// End Forumlinks
// parse css, header & footer #########include('./vbimenu.php'); eval("\$menu .= \"".gettemplate('home_menu')."\";");######### eval("\$headinclude = \"".gettemplate('headinclude')."\";"); eval("\$header .= \"".gettemplate('header')."\";"); eval("\$footer .= \"".gettemplate('footer')."\";"); include('./vbimenu.php'); eval("\$menu .= \"".gettemplate('home_menu')."\";"); |
You haven't edited gobal.php correctly, see post 154 above.
|
yeah have m8 its jsut that i have added a hack inbetwwen so misses this bit ov
// parse PHP include ################## eval(gettemplate('phpinclude',0,0)); and thsi bit is further down below // parse other global templates eval("\$gobutton = \"".gettemplate('gobutton')."\";"); |
If you have the added code directly after the parse css comment as shown (https://vborg.vbsupport.ru/showthrea...993#post284993) then it will work, you can't add it after this point like you have in your post above.
|
Do u want to hit me m8 ?
|
Quote:
|
All times are GMT. The time now is 08:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|