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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

Kamui Shirou 01-11-2003 12:40 PM

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

Littlebit 01-11-2003 02:17 PM

Plurplanet,
thanks for the work you did for the update :)
installing now
-littlebit

Littlebit 01-11-2003 03:29 PM

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?

Tigga 01-11-2003 09:54 PM

Which version did you upgrade from Littlebit? In your index_welcometext template, be sure you have the code "Welcome back $bbuserinfo[username]".

marzlod_zyfus 01-11-2003 10:54 PM

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?

Tigga 01-11-2003 11:04 PM

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.

marzlod_zyfus 01-11-2003 11:35 PM

dosnt seem to work for me!

Tigga 01-11-2003 11:41 PM

Did you set the options in your Admin CP? Specifically, your News Forum ID?

marzlod_zyfus 01-11-2003 11:42 PM

yeah, i have 5 in the news one sine the end of my new forum is "forumid=5"

Tigga 01-11-2003 11:54 PM

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.

Tony DiMera 01-12-2003 12:04 AM

Thanks Plur for the upgrade. BTW How would I go about adding more custom templates?

Tigga 01-12-2003 12:09 AM

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.

XtReMaTriX 01-12-2003 06:17 AM

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?

Tigga 01-12-2003 07:02 AM

What did you set for your home directory in the myvbindex.php file?

XtReMaTriX 01-12-2003 03:15 PM

Quote:

Originally posted by PlurPlanet
What did you set for your home directory in the myvbindex.php file?
chdir('/var/www/html/vbulletin');

and the actualy file is in the html dir

AmericanWoman 01-12-2003 07:13 PM

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!

Tigga 01-12-2003 11:22 PM

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?

XtReMaTriX 01-12-2003 11:27 PM

Thanx PlurPlanet... works like a charm... cant believe i didnt think of it :)

ranger2kxlt 01-13-2003 03:06 AM

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.

Tigga 01-13-2003 03:08 AM

Ranger - Check this thread, about 6-7 posts up. I just answered the question for someone else.

ranger2kxlt 01-13-2003 04:01 AM

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.

Tigga 01-13-2003 04:15 AM

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).

papa 01-13-2003 04:31 AM

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

Tigga 01-13-2003 04:48 AM

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.

papa 01-13-2003 05:31 AM

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?

papa 01-13-2003 05:39 AM

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

Tigga 01-13-2003 05:47 AM

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)

papa 01-13-2003 06:00 AM

worked like a champ. I'll get started on this hack.

papa 01-13-2003 06:40 AM

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???

Tigga 01-13-2003 06:47 AM

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.

Tigga 01-13-2003 06:57 AM

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.

papa 01-13-2003 07:07 AM

AWESOME!!!
I will get the form code added and show you my beta page.

papa 01-13-2003 07:21 AM

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

Tigga 01-13-2003 07:38 AM

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. ;)

jjj0923 01-13-2003 10:26 AM

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:

Got error 28 from table handler
When I removed the GROUP BY clause it ran fine...

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?

Tigga 01-13-2003 10:30 AM

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?

ranger2kxlt 01-13-2003 06:56 PM

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
??

Tigga 01-13-2003 10:36 PM

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

Tony DiMera 01-15-2003 01:44 PM

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.

Tigga 01-15-2003 01:58 PM

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
  • Page Generation 0.02652 seconds
  • Memory Usage 1,824KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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