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)

Tony DiMera 01-15-2003 02:26 PM

Yes I uploaded all the other images, and everyone show up except for this one that appears to be just .gif not 1.gif, 10.gif, 30.gif, etc.

Tigga 01-15-2003 02:47 PM

Hmm... That's strange. The only reason I can think of that it would do that is it wouldn't be recording the icon value in the database, but it doesn't make sense why that wouldn't work if everything else does. Does it ever show the icon? Have you tried using the "force update" link to update the info in the database?

Tony DiMera 01-15-2003 04:00 PM

Yeah, I have and it still shows a white box with an x in it. I just sent you pm with my site and weather.php file so that way as long as you don't mind you can see what I mean. Thanks for your help.

Tony DiMera 01-15-2003 04:08 PM

Sorry I forgot to mention that I use Midhurst for the name of the city in Canada.

Tigga 01-15-2003 04:23 PM

Well I just signed up on your forum and everything worked fine, until I changed the settings to Midhurst. I also tried using Midhurst on my site and it doesn't display the icon there either. Every other city I tried worked fine though, so it has to be something to do with msnbc.com.

Tony DiMera 01-15-2003 07:11 PM

ok, then thankyou for your help.

Bison 01-15-2003 11:49 PM

The News Section (Middle Column) doesn't show up on the home page ... I know I placed the right forumID under the options pages. :paranoid:

Tony DiMera 01-16-2003 01:19 AM

Did you make sure you edited the newthread and newreply php scripts?

Bison 01-16-2003 01:44 AM

Sure did ... the 3.1 instructions didn't show modifications to the newreply.php ... the 3.0 version did though ...

I knew something was missing in the 3.1 version ... and I know there's a mistake in the code somewhere.

Tigga 01-16-2003 02:09 AM

The reason there are no instructions to edit the newreply.php file for v3.1 is because it's really not necessary. During the installation process, it modifies your post table to add an extra column which is used to determine if the post is the first in the thread. Once the newthread.php file is modified, it will always insert a 'Y' into that column indicating that the post is the first in the thread. Since the column is set to have an "N" by default, it's really not necessary to also edit the newreply file.

Rolodex - Did you make the news posts before or after installing the script? If the posts were made before you installed the script, then that is the reason they are not showing up. If you'll refer to this post there are instructions on how you can manually update those posts.
If that's not the case and the posts were made after the script was installed, please post or PM me a link to your website, and let me know what you have your News Forum ID set to and I'll take a look to figure out what's wrong.

Bison 01-16-2003 03:11 AM

No ... the forum didn't have any posts in it. I'm on my company intranet, so I can't give you a link. I can show you a screenshot, if that will help.

Tigga 01-16-2003 03:25 AM

Hmm... If the newthread.php file was edited correctly & uploaded, and the News Forum ID is set correctly, then there's no reason the news part shouldn't work. Do you have access to phpMyAdmin? If so, you could log in with that and check your 'post' table. First make sure that the last column there is called 'isnews', and then find a post that was made in that forum and make sure that it has a 'Y' in that field. If the post doesn't have a 'Y' in that field, try changing it there and see what the result is. Also, what do you have set for your News Forum ID and News Posts Maximum?

Bison 01-16-2003 03:39 AM

My new forumid is "54" ... and the news post "max" is set to zero (unlimited).

The Polls work fine (I Had polls already posted there).

Tigga 01-16-2003 03:43 AM

Did you check to see if the isnews column has a 'Y'?

Bison 01-16-2003 03:44 AM

Here's a snapshot of my admincp settings:

Bison 01-16-2003 03:47 AM

I checked the post table but I don't have any posts in that forum. I set it so that the forum cannot be seen on the main forum index page but can accept new posts from the vbindex page.

Did I do this right?

Tigga 01-16-2003 04:03 AM

Ok, this is strange... I checked my test server and set the News Limit to 0, and it resulted with no news being displayed. I had changed a couple of things on that one though, so I uploaded a fresh version and setting it to 0 worked fine... Try setting the news limit to something other than 0 and see if that changes anything.

Bison 01-16-2003 04:10 AM

Nothing ... I even changed every post column in the database under isnews to "Y" and still nothing!

Bison 01-16-2003 04:14 AM

Is it possible that there's an misspelled variable in the v3.1 template code?

Here's a dump of the index_newsbits template:

Code:

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"  width="100%"><tr><td>

<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr id="cat"><td bgcolor="#1D6AA0">$newsicon  <normalfont color="#000000"><b>
$news[title]</b></normalfont></td></tr>

<tr><td bgcolor="#1C5780">

<table width="100%"><tr><td align="left"><smallfont>- by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$news[postuserid]">$news[postusername]</a> on $dateposted</smallfont></td>$newsrating</tr></table></td></tr>

<tr><td bgcolor="#13486D">$news[avatar]<normalfont>$news[message]<br>$signature</normalfont></td></tr>

<tr bgcolor="#1C5780"><td>
<table width="100%" cellpadding="0" cellspacing="0"><td align="left"><smallfont>$adminopts &nbsp;</smallfont></td><td align="right"><nobr><smallfont>&nbsp; $news[views] Views, $newscomments</smallfont></nobr></td>$sendtofriend $printable</tr></table></td></tr></table></td></tr></table><p>

I personally think it's a variable that's not getting called from your template changes in your last version upgrade.

Tigga 01-16-2003 04:36 AM

Are you sure you have your News Forum ID set correctly? 54 does seem a little high unless that is the 54th forum you have created.

The entire middle column where the news should be is blank, right? With it working fine on my site and many others, it wouldn't be something such as a variable mispelled. Even if something was mispelled in that template, it would result with the tables around the news post showing up, just not the message.

If the News Forum ID is correct, here is something you can try...

First set your News Limit to something other than 0.

Then open your myvbindex.php file and look for this line:
PHP Code:

// News 
if ($newsforum!='') {
if (
$newslimit!=0) {
  
$newsmax "LIMIT $newslimit";


Remove that part, then look for this line right below it:
PHP Code:

ORDER BY thread.threadid DESC $newsmax 

Change that to:
PHP Code:

ORDER BY thread.threadid DESC LIMIT $newslimit 

Then look for:
PHP Code:

$DB_site->free_result($getnews);
unset(
$news);


Remove the } at the end of that line and upload the file.

Doing that will remove the parts that make sure the News Forum ID and News Limit aren't set to 0. It should still work fine with that, but it's always possible that there's something with the version of PHP you're running that would cause it to behave differently, so it's worth a try.

Tigga 01-16-2003 04:37 AM

By the way, you are running v3.1, correct? Did you start out with the version you're using or did you upgrade from an earlier version?

Bison 01-16-2003 04:39 AM

Installed V3.1 ... I didn't upgrade.

Tha tfix you added didn't work either ... i'm using php 4.30

Bison 01-16-2003 04:53 AM

I even deleted the forum (54) and created another one (55) and that didn't work either ....

Tigga 01-16-2003 05:05 AM

This is weird... I really don't see why the news isn't working when everything else works fine... If you want, you can try replacing the part for the news with the query below:
PHP Code:

$getnews $DB_site->query("SELECT thread.threadid,thread.title,thread.replycount,thread.postusername,thread.postuserid,thread.dateline,thread.views,thread.iconid,thread.votenum,thread.votetotal,post.postid,post.pagetext FROM thread LEFT JOIN post ON (thread.threadid=post.threadid) WHERE thread.forumid=55 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC");
while (
$news=$DB_site->fetch_array($getnews)) { 

That strips out the parts for the avatar and a couple of other things. It also removes the variables and the forum id (55) is just hard coded in there.

Bison 01-16-2003 05:26 AM

That didn't do it either ... i'm tellin ya that there's somethin with the variable names that not gettin posted.

I'd like to copy your templates you have working (for the news) into mine, to see if thats the issue here.

Another thing ... does the myvbindex.php file have to keep it's name (Can I rename the file?)?

I renamed it to index.php inside the root directory above my forum folder.

This is the part in the "index template" that's susposed to post the contents of the news variable into the index page ... from the MyVbIndex templates that were created during the install:

Code:

</td><td valign="top">$newsbits</td>

<td valign="top" width="170">

Where in the "myvbindex.php" file, where "$newsbit" being called ... from this template?

Tigga 01-16-2003 05:47 AM

The only 2 that should really matter are the index and index_newsbits since it would at least show something besides a blank page if all the settings and these 2 templates are correct I've attached them in a text file here (I would post them, but it would replace the color variables with vb.org's).

And yes, you can rename the file to whatever you would like.

Tigga 01-16-2003 05:51 AM

The $newsbit variable is what calls the index_newsbits template. It's on line 443 of the myvbindex.php file.

eval("\$newsbits .= \"".gettemplate('index_newsbits')."\";");

Bison 01-16-2003 06:16 AM

I noticed that the $index_footer isn't being called either!

Yikes!

Tigga 01-16-2003 06:25 AM

Um... Did you check that your index template had the right content? What other major hacks do you have installed? I just saw that you have 96 hacks installed, so it's possible that another hack could be affecting something.

Bison 01-16-2003 06:47 AM

I don't have that many installed from my profile. That's how many i've installed to test in the ime i've been a registered member.

This is baffling me but I know now what could be the problem. It seems that none of the templates from the install are being read.

I changed from your index_footer template ... to the regular footer template, and it worked. So in theory, I think that the templates that were installed are not being recognized as default templates. They might have to be redesignated as custom templates instead, in order for them to work.

Is there a way to reassign the templates to custom ... instead of default?

Tigga 01-16-2003 06:57 AM

That's really weird, but hopefully that will be the solution. If the index_newsbits template has already been changed and is showing as custom though, I don't see why it wouldn't display if that was the case. There's not really an easy way to change them all to custom templates other than editing and saving each one.

Tigga 01-16-2003 07:00 AM

Also, by changing the footer template, do you mean you changed the content of the index_footer template to what is in your regular footer template, or that you changed the $index_footer variable to $footer in your index template?

Bison 01-16-2003 07:00 AM

I attached an image in the previous thread ... shows that the templates were installed as default templates...

I changed under the "templates used" to "footer", instead of "index_footer" ...

Littlebit 01-16-2003 11:11 PM

Plurplanet,
I just checked that template you mentioned above..I don't know what I did, but I had just $username instead of $bbuserinfo[username]...oops
thank you :)
there is something I just noticed also, in the online users ...the clickable user names that are logged in take you to the wrong url....leaving out the forums directory...ex.
http://mysite.com/members.php
instead of http://mysite/forums/members.php

Tigga 01-17-2003 12:51 AM

Littlebit - Did you upgrade from v3.0 or 2.0? If I remember correctly, the $username variable was used in versions 2.0 and earlier, but should have been $bbuserinfo[username] in v3.0 and 3.1. It was changed just to remove a small bit of code that wasn't really necessary.
For the logged in users, it sounds like you may have missed a step in the install file, or perhaps the template could have been reverted to it's original. If you'll edit your forumhome_loggedinuser template and add $bburl at the beginning of the code for the link it should fix that right up. :)

Littlebit 01-17-2003 12:58 PM

Oh man...I must have installed 2.0. thinking it was 3.0...what do you recommend I redo to make sure all works since I did all the upgrade instructions for 3.0 to latest instead of 2.0 to latest like I should have done.... :cross-eyed:
Oh thanks for pointing out the forumhome_loggedinuser template. That was it. 2 my bads...ugg :o

mcyates 01-17-2003 04:05 PM

my forum is on this directory

http://www.myfootballforum.com/forum

I want the mYvBindex.php on this directory:

http://www.myfootballforum.com

but when i put it in this directory, none of the pictures show up? They show up on the http://www.myfootballforum.com/forum directory. Wht is this?

The portal file is set to:

// Enter The Full Path To Your Forums Here
chdir('/home/sites/site8/web/forum/');
// No Further Editing Necessary

how come none of the images show up?

Tigga 01-17-2003 06:40 PM

Littlebit - From looking at your site, I don't see anything else that doesn't seem to be working properly. However, there were a few templates that were changed from 2.0 to 3.0, so I'm going to attach the readme file from that version which includes a list of all templates that were changed, and how they were changed. You may want to look over that to be sure you won't have any problems in the future. Also, any of your templates that have not been customized will not need to have anything changed as the upgrade file should have overwritten any original templates. Oh, it's also possible that you would have a couple of extra options in the Admin CP (such as News Smilies) since those would not have been removed with the way you upgraded. It really shouldn't affect anything, but if you would like to just highlight all your myvbindex options and paste them here, I can look over them and tell you how to easily get rid of any that aren't used any more. Again, it won't affect the way the script functions, but may help to prevent some confusion later. ;)

mcyates - It looks like you missed a step in the install file. For the images to work properly, you have to change the path to your images for each style. Here are the instructions from the install file:

Next find the Styles section near the bottom left frame in your Admin CP. Click on "Modify" under Styles, then click on the [fonts/colors/etc] link. Near the bottom of this page you will see a section for Image Paths. Set the "Image folder path" and the "Title image path" to the full URL for your images folder inside your forums (ex - /forum/images or http://yoursite.com/forum/images). You must do this for each of your styles, otherwise your images will not show up.

mcyates 01-17-2003 09:30 PM

ok thanks for that quick reply, i have sorted the images out. Now the problem is, i'm logged into the portal for the url below:

http://www.myfootballforum.com/forum/myvbindex.php?s=

but not logged into the portal when its out side the forum url:
http://www.myfootballforum.com/index.php (the renamed portal file)

Tigga 01-17-2003 10:07 PM

Did you edit your cookie path as instructed in the readme file?


All times are GMT. The time now is 05:02 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.02487 seconds
  • Memory Usage 1,843KB
  • 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_code_printable
  • (5)bbcode_php_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