![]() |
Thanks for the speedy reply. Does it matter where I place the code in global.php?
|
Yes, there are some places you could put the code where it would not work. I'd recommend placing it right below this code:
PHP Code:
|
Quote:
|
Tigga:
I have the Store Hack and the Country Flag hack installed on my site. I'd like to be able to display the user's points total (from the Store hack) and the user's chosen flag (from the Country Flag hack) on my website. What code do I need to add to myvbindex.php to do this? (Merely adding the variables to the templates doesn't work.) |
reismarktq2 - Adding $bbuserinfo[storep] to one of the templates should display the users current store points. I did a quick search for "Country Flag", but found 3 different hacks. If you can post a link to the one you're using I'll take a look and see if I can tell you what would need to be added for that one.
|
AJR's Country Flag Hack - https://vborg.vbsupport.ru/showthrea...threadid=27485
One more thing that I can't find in the thread: I want to edit the threadbit so that it displays the name of the last user to post in a thread instead of the name of the creator of a thread. What's the code for that? (I know it's just a template change...) |
I haven't tested this, but I'm pretty sure it should work... In your myvbindex.php file look for:
// Show Avatar Above that Add: PHP Code:
For the latest threads part, if you look in your index_threadbit template you will see this code in the link to the thread: title="Last post at $lastposttime by $thread[lastposter]" That's what shows the last post time and last poster, so you would just move that to whereever you would like it to display. ;) |
One minor problem with that code: The flag doesn't display because the %20 is still showing up in the image URL. I tried to change $Country to $Countryalt in the IMG SRC to get around it, but that didn't work...
|
Tigga,
Check your pm and reply :) |
Lol, calendar has gone weird again. 8th of June does not belong anywhere. :confused:
|
um why does it show images from my image folder
when i did a replacement for it do get images from elsewhere.? |
reismarktq2 - I'm really not sure why that wouldn't work... Most of the code there was taken from the postbit section for the flags hack, so it should work. I checked one of the flags in your postbit section and it was working fine and did contain %20 in the url, so perhaps it's something else? If you can't figure it out, if you could post the url that the image is pointing to I will try to help you figure out the problem.
ivanmcp - Checked and replied. ;) I'll try to re-write the calendar section for the hack as soon as I get the time. It does at least work properly if someone hasn't changed their "Start of the week" in their profile, so at least it shouldn't affect too many people. Re-writing the calendar part will require a bit of work and these last couple of weeks have been very busy for me. Hopefully though the next couple won't be quite as bad and I'll have the time to re-write the calendar, but unfortunatly I can't make any promises. spick - I'm assuming you mean the URL for your header images and such is pointing to /images/ instead of /forum/images? If so then you need to modify your images path for each style you have as instructed in the install file. |
Quote:
first find: Code:
$today = vbdate('m-d',time()); Code:
$today = vbdate('d-m-Y',time()); second find: Code:
if (!$bbuserinfo['startofweek']) { Code:
if (!$bbuserinfo['startofweek']) { and the calculation of the weeks is working now. |
Figured it out, Tigga - $bburl should have preceded images in the img SRC. Working now. :)
|
I have it installed, but haven't made it my home page just yet. Probably will shortly. I like the calendar atatchment. I have been using home lite but really wanted my calendar included.
Anyhow, I have a few other things I'm wanting to do. There are 2 custom templates included with the program which I have utilized. 1 is going to be my navigation setup, the other will probably be some links. I would like to figure out how to add other custom templates to the set up that could be turned on and off from the Admin panel and used in a similar manner. Is this possible? I also want to eventually build pages that break out the individual forums from the board. Example: I run an outdoor site and have included a separate Forum for each of the lakes in this area. I want to build pages for the lakes that have specific lake information other than the reports from the board as well as advertising for those local businesses. Somewhere in that page, I want to put its forum. I haven't yet figured out how to do that. I'm no programmer, just trying to figure out how to get this system to do what I want it to do. I notice that with the index template, you use something like this to include other templates in it $calendar. How could you include other templates not in group of myVbindix. Example $forumid135 or $home_quicklinks. Maybe you have to add the other templates to the myVbindex group. If so, how do you do that? Skip |
It says this on my index page...
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site30/fst/var/www/html/index.php:6) in /home/virtual/site30/fst/var/www/html/forums/admin/functions.php on line 1614 This happened when I changed from an HTML index page to myvBindex as my index page. The funny thing is it doesn't do it ALL the time. Any help, ideas?? Thanks in advance! |
reismarktq2 - Glad you figured out the problem. :)
Skipsoutdoors - If you'll refer to this post I have updated the instructions there to include options to turn these new templates on/off. If you are trying to include other templates on your homepage, you would have to follow the same instructions there, except you would change the name of the custom template to the name of your current template. jdmuniverse - Have you modified your original myvbindex.php file in any way? Can you post here or PM me with a link to your site? |
That should help. This is a really nice hack, and I appreciate your taking the time to help people like me who are constantly having troubles.
Skip |
Tigga - another quickie if you don't mind :). Today my homepage is taking an eternity to display. I used the old ?explain=1 at the end of the link to see what queries / times were being executed. It produced the following:
Code:
Query: SELECT * FROM weather_userdata WHERE userid='1' Thx. for any advice. Update I've just turned off the weather display and the page loads fine. So I guess it must be down to the website providing the weather. As this is out of our control and would produce a timeout after 30 seconds for php execution, would it be possible to incorporate some sort of time limit on display of the weather and if it doesn't display in that time then don't display it? Otherwise we're all at the mercy of an independently run site. |
Thanx scotty :)
|
I inserted the code as per the previous post. Still I need some more help.
I didn't manage to make the options to turn it off and on show up in the Admin panel. Any suggestions as to what I did wrong? Skip |
Intex - Unfortunatly that's something that can happen when the server that provides the weather is down. I'm planning on re-writing that part of the hack to work a slightly different way which won't require the updates as much, but with vB3 being released on Friday I'm not sure when I'll have the time to do that.
Skipsoutdoors - Did you run the queries in those instructions through phpMyAdmin. If you did that there's no reason I can think of that the options shouldn't show up... |
Any ideas yet Tigga on how to get to show announcements?
|
Just letting you know the log out thing works wonderfully now. Thanks. One other question, though.
In the news forum, within a thread I posted, this image -> http://www.smallville-torch.com/foru...es/yw/cool.gif looks fine within that thread. But when you view it in the main index it shows it as: http://smallville-torch.com/images/smilies/yw/cool.gif |
Quote:
The only time the moderate will show up bold on Portal is when I change him to Super Moderator status, in the forums he shows up bold when he is in Moderator status. and yes that is the hack I used above to view invisable users. |
If you want i can help importing/translating/converting it to vb3..
|
Thx for the confirmation anyway Tigga :).
Quote:
|
Intex you could propably try and obtain a copy of the weather program the site uses and upload it to your own server and run it.. I may be able to get it up and give you guys the file modifications so it can link to it on my server that way it has fast download times (server has 100mbps connection)
|
i get this error when i go to my forums dir..
Database error in vBulletin: Invalid SQL: SELECT userid,username FROM user WHERE userid<> AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2) ORDER BY RAND() LIMIT 1 mysql error: You have an error in your SQL syntax near 'AND (usergroupid=5 OR usergroupid=6 ' at line 4 mysql error number: 1064 Date: Friday 13th of June 2003 08:04:21 PM Script: http://localhost/myvbindex/forum/myv...rum/index.php? Referer: |
Guys, I need help with this.
I have done all the install instructions but when I go to view the portal I get: Quote:
Quote:
|
Yuber - I'll try to get to that as soon as I can. With the release of vB3 though I'm going to be very busy trying to get everything on my site to work with it.
WitchyT - Did you change the url of each of your smilies to the full url (ex /forum/images/smilies) as instructed in the readme file? Goat Boy - The code for the online users bit is pretty much the same as the code in your forum/index.php, so they should behave in the same way. What is the usergroup id of your moderators group? csidlernet - Thanks for the offer, but I'm pretty much finished with the vB3 version of this hack. I still have a couple of things to do, but it is finished for the most part. Intex - No problem. I should be able to start working on the new method to pull the weather info for the vB3 version of this hack soon, so I should be able to port it over for a final release of the vB2 version. ;) Exero - That wouldn't be anything to do with this script. It looks like it's having a problem trying to select a random user on your forum's homepage. DigitalDesktops - Try removing the final trailing slash from the path to your forums. ;) |
Quote:
|
Hey Tigga, I just setup the new version 3.2.2 and i dont see any difference from 3.1
The page doesnt load any faster. Is there some other things that I am not seeing? Here are the two URLs: http://www.xtremods.com/index.php (3.1) http://www.xtremods.com/myvbindex.php (3.2.2) I have it so it tells you how fast the page wasgenerated at the bottom... The page actally uses an extra query and takes longer to load... BTW, this is a great hack and you have done a great job...! I am just wondering if i am missing something... Thanks! |
Quote:
|
Quote:
I am wondering because my site is a business site, and the slowest time of the year is during the summer, so I want to be able to do this all in the upcoming few weeks, or ASAP to have the site down for as little time as possible (some people will still be checking it out for next year's registration, etc.) Just curious. :) |
XtReMaTriX - The 2 pages seemed to be loading at about the same speed for me, and both had 19 queries. The main change in the new version is the way forum permisions are done and people with larger forums (over 100,000 posts) are the ones that would notice the biggest difference. The pages do seem to be loading a little slow though, so if you'd like to put your server in debug mode, do an explain=1 on the page, and post the results here I'll be glad to take a look and see if anything can be done to speed it up.
Kyle_TX - So far the new version is pretty much the same as the old one, except it will use less queries (thanks to vB3 and some of it's features ;)) and less templates since I'll be taking full advantage of the new "if conditions". I'm not sure how many more options I will add to the first vB3 version... It's going to be quite a bit of work for me to upgrade my entire site to work with vB3, so the first version will most likely be the same as the current one for vB2 until I have time to add new features. Lacrosse Boy - I know a few people will be waiting on this before they can upgrade their boards (I'm in the same boat, but with a lot more than an index page to recode :p) so I'm planning on asking one of the mods if it would be ok to email or PM the script to others per request once it's finished. |
Thanks Tagga, I will give it a shot, have never used Debug Mode so I will have to try and figure it out...
|
Just add
$debug='1'; Right before the ?> at the end of your admin/config.php file. Then go to the url http://www.xtremods.com/myvbindex.php?explain=1 and that will list all the queries and how long each one took. ;) |
Here are the results to the debug mode... (had to zip up the HTML file...)
Thanks again! |
Check your PMs. :)
|
All times are GMT. The time now is 12:19 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:
|