![]() |
your right. i didnt think that way.
oh by the way you're welcome to register at my forums but i think you wouldnt like speaking german. by the way. i also dont like it XD |
Plurplanet,
thanks for the work you did for the update :) installing now -littlebit |
I just noticed that the username in the usercp login part has black text or isn't showing. I didn't update the templates...is there something in the myvbindex.php that has text color?
|
Which version did you upgrade from Littlebit? In your index_welcometext template, be sure you have the code "Welcome back $bbuserinfo[username]".
|
how do you add news blocks, i'm kinda stupid though. You know the news blocks or whatever you call them, anounment blocks i think hteir also called. how do you add them?
|
I'm not quite sure I follow what you mean... If you're asking how you make new news posts, you just create a new thread in your news forum after you have installed the hack.
|
dosnt seem to work for me!
|
Did you set the options in your Admin CP? Specifically, your News Forum ID?
|
yeah, i have 5 in the news one sine the end of my new forum is "forumid=5"
|
Did you edit your newthread.php file correctly and upload it to your server? If that was edited correctly and the News Forum ID is set correctly (which from what you said it should be correct) then there's no reason new posts shouldn't appear on the homepage. Double check your newthread.php file, upload it again, and try to make a news post. If that still doesn't work let me know.
|
Thanks Plur for the upgrade. BTW How would I go about adding more custom templates?
|
Tony - If you'll refer to posts 194 and 196 of this thread there are 2 different explanations on how to add more templates. Either of those methods will work just fine, they're just 2 different ways of explaining it.
|
Hi, I was looking through the thread to try and find the fix fo rmy problem but couldnt find anything... 30 pages is alot... anyways, my problem is that when i go to myvbindex.php i get this error....
Warning: SAFE MODE Restriction in effect. The script whose uid is 583 is not allowed to access /var/www/html/vbulletin owned by uid 0 in /home/virtual/site79/fst/var/www/html/myvbindex.php on line 13 Warning: Unable to access ./global.php in /home/virtual/site79/fst/var/www/html/myvbindex.php on line 17 can u help me? |
What did you set for your home directory in the myvbindex.php file?
|
Quote:
and the actualy file is in the html dir |
Ok, guys, still having my form elements issue, and I went back to base install of the forums and stepped through the hack procedures complete with documentation...
Maybe I screwed something else up, somehow? Either way, none of the form elements will display, my page bleeds off the right of the screen with no horizontal scrollbar...argh! It seems as easy as a < / table > and < / form > missing somewhere, but with all the bloated nested tables, it's hard to see. Help, please????? Index Page ---> use any article to get to forums Thanks, guys. I really love this hack...if only I can make it WORK! |
XtReMaTriX - Try /home/virtual/site79/fst/var/www/html/vbulletin ;)
AmericanWoman - I checked your page and don't see what you're talking about... Everything seems to be displayed fine. At first I thought you were talking about some missing buttons, but from looking at the source the 'search' button is the last one there. Are you still having a problem with it? If so could you maybe take a screen shot and show me what the problem is? |
Thanx PlurPlanet... works like a charm... cant believe i didnt think of it :)
|
I would like to add a third customizable field to the homepage, how would i go about doing this. the present version only supports two (2) extra fields. thanks for any help.
|
Ranger - Check this thread, about 6-7 posts up. I just answered the question for someone else.
|
thanks... did that but how do i add it to the options menu in vb. The custom templates are not displaying and i think it is because they are not turned on. Thanks.
|
Ahhh, I didn't notice that in Chevy's version he has it where you would have to also create options to turn them on and off... If you don't care about adding the option to disable them in the Admin CP, you can just remove this bit of code at the beginning of each custom one:
if ($showcustom2) { And also the last } right below the call to the template. If you want to add options to turn them on and off, just log into phpMyAdmin and run this query: INSERT INTO setting VALUES (NULL,50,'Show Custom Template 2?','showcustom2','0','Show your second customized template.','yesno','30'); You would change the two places you see the number 2 in that query to 3, then 4, and so on for more templates. You would also need to change the last number (30) to incriment by one for each one you add (that's the part that tells it what order the option should be displayed). |
I am very greatful for your work on this. You are an unsung hero to the vBulletin community.
I have never done any work on the tables or log in using phpmyadmin... do you have any links to learn how to do this? Papa |
Just running queries isn't too hard. I know there's a small tutorial on here somewhere, but I'm not exactly sure where...
To run the queries you would just log in to phpMyAdmin. You should see a drop down box or something to that effect where you can choose which database you want (assuming you have more than 1). After you choose the database you should see a link "SQL" at the top of the right frame. Click on that and you will see a textarea where you past the code to run the query. Then hit the go button and it will tell you the query was successfull or if there was a problem. |
Someone also asked this earlier but how can you use an include in the template?
I used frontpage to build my site and I have it made up of a bunch of pieces so I can just change the content with out messing with the interface (makes adding pages easy) I wanted to use the myvbindex page as the main page but I need more than the forum news and latest threads, instead I wanted to include our main page data. I could just add the html code but we change it very often with new updates and content. Do you know how I can use an include statement to include test.htm for example in to the index template for myvbindex? |
I ran the query and this is what I got:
Error SQL-query : [Edit] ALTER TABLE `user` ADD bbshowcalendar smallint(6) NOT NULL default \'1\'; MySQL said: You have an error in your SQL syntax near '\'1\'' at line 1 |
Unfortunatly you can't use SSI within vBulletin templates. Couldn't you just add some more custom templates and change the content that way?
That's strange the query didn't work... It may be something with your version of phpMyAdmin. Try this one instead: ALTER TABLE `user` ADD bbshowcalendar smallint(6) NOT NULL default 1; (just removing the ' marks around the 1) |
worked like a champ. I'll get started on this hack.
|
I got the changes updated but now the index page does not show if you are logged in or not. Also do the options radio buttons created need to have a form on it so it is saved when you make the choices???
|
Oh crap, sorry about that. It was late when I did that and I didn't think about guests. Give me a few minutes to work around that and I'll post the fix for ya.
|
Ok, this should be a quick/easy way to fix that. Just open your myvbindex.php file and look for:
require('./global.php'); Right below that add: if ($bbuserinfo['userid']==0) { $bbuserinfo[bbshowonline]=1; $bbuserinfo[bbshowonline]=1; $bbuserinfo[bbshowstats]=1; $bbuserinfo[bbshowpoll]=1; $bbuserinfo[bbshowsearch]=1; $bbuserinfo[bbshowcustom1]=1; $bbuserinfo[bbshowcustom2]=1; } If for some reason that doesn't work for you let me know. Oh, and I'm not sure I follow you about the buttons having a form on them... There is a <form> tag started earlier in that template and the new options use that same form. If you were trying to move them to another template or something like that you would just use the same <form> tag as near the top of that file. |
AWESOME!!!
I will get the form code added and show you my beta page. |
Here is the start
http://www.digital-tutors.com/digita...ndex2_beta.php Is there a simple recipe to add custom boxes to the options? Can I just search for the custom1 and duplicate it to make custom 3, 4 and so on? Thanks so much. My page is really getting together. Papa |
Looks very nice so far. :)
I looked over the file edits to be sure and searching for custom1 and duplicating for each additional option should work just fine. By the way, I was planning on making a mini-hack that would move the latest threads part to the center (similar to yours) and would add a little additional info like the forum, last poster, time, and etc. I'll probably post it tomorrow or the next day so be sure to check back here if that's something you'd like. ;) |
I'm not sure if anyone else has experienced this but this morning out of the clear blue I started getting a mysql error on the following code in myvbindex.php. I've been using myvbindex for about 2 weeks.
---------------------------------------------- SELECT thread.threadid,thread.title,thread.replycount,thr ead.postusername,thread.postuserid,thread.dateline ,thread.views,thread.iconid,thread.votenum,thread. votetotal,post.postid,post.pagetext,post.allowsmil ie,post.showsignature,user.signature FROM thread LEFT JOIN post USING (threadid) LEFT JOIN user ON (user.userid=post.userid) WHERE thread.forumid=81 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC LIMIT 1 so I pasted the query into mysqladmin and ran it and got the following error... Quote:
I checked the integrity of the data in the thread tables and post table and everything checks out just fine. Like I said - this just started happening after two weeks of running fine. ideas? |
Can you check your myvbindex.php file and look for this line:
// Latest Forum Topics Copy the next 5-6 lines after that and paste them here for me. Also what version of myvbindex do you have? |
plurplanet, got something for ya
we want another page, but want the menus on left and right to be the same, just don't want the news in the middle we want a different template there, is there an easy way to make this ?? |
Ranger - Something like this should be pretty simple and should work...
Open your myvbindex.php file and look for: // News if ($newsforum!='') { Right above that add: if ($action=="newpage") { eval("\$newsbits = \"".gettemplate('index_newpage')."\";"); } else { Then look for: $DB_site->free_result($getnews); unset($news); } And add another } right below that. You can change "newpage" in the first part ($action=="newpage") to whatever you want, and also of course name the template to whatever you'd like. You would then add the content you'd like in your new template, and then to display that template instead of the news, you would link to http://yoursite.com/myvbindex.php?s=$session[sessionhash]&action=newpage |
For the weather part, is there anyway to set the city you want to be the default city for guests instead of New York? Say I wanted it to be Midhurst for the default? Also I have another question. I am always getting a white box with an X in it for the icon. This is the URL of the icon, http://www.mysite.com/forums/images/weather/.gif As you can see it is always trying to find an image icon that is .gif no matter what the weather is, and I don't have a .gif image icon.
|
Tony - If you look in the readme file, right under the section that explains the Admin CP options, there are instructions on how to change the default city.
I'm not quite sure why the image wouldn't be working... Did you upload the weather icons to your forum/images folder? Also, does the rest of the info display properly? |
All times are GMT. The time now is 03:22 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:
|