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)

Ryu 04-24-2003 03:53 AM

Quote:

Yesterday at 08:18 PM Jacko said this in Post #1105
when you upload the file you have to set the permissions in your FTP program. you need to set it to be able to read for all.

i have chomd the index.php to 666and steel not working :cry:

Jacko 04-24-2003 08:14 AM

not the index. the actual image file should also be set to that. and the folders leading to the image.

WitchyT 04-24-2003 05:33 PM

I'm having a little trouble. After my news forum had over 10 threads, which was the default limit in the admin CP, I couldn't have any new threads (news) after that show up on the main index. I tried testing it on another forum already filled with 10 plus threads, and nothing works. Does anyone think I didn't install it correctly? Help would be muchly appreciated. :D

I changed the limit to 100 to even 0, and still nada.

Ermm not sure if I remember what version I installed. Is there any way to know that because I didn't keep a record. Suggest to upgrade?

Tigga 04-24-2003 05:42 PM

My best guess would be that you accidentally removed the changes you made to your newthread.php file. Try looking in the readme file for the modifications to newthread.php and make sure those have been changed. If that's not the problem though let me know.

Nice site btw, I like the color scheme and design. :)

WitchyT 04-24-2003 06:06 PM

Thanks. I'll post if I have any further problems. :D

WitchyT 04-24-2003 09:59 PM

Ok, I'm having problems because I installed the hidden posts hack. I tried fixing it myself, but I get nowhere with newthread.php. Here's what I have so far that I have no idea how to fix to make room for the h.p. hack.:

Code:

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,hidden) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','$hidden')");
Instead of the default newthread php coding of:

Code:

$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1')");

Tigga 04-24-2003 10:20 PM

Actually I think you may be able to make the news work without even editing the newthread.php file. If you would like to try this out, here is what you would do...
Open your myvbindex.php file and look for the news query:
PHP Code:

  $getnews $DB_site->query("SELECT thread.threadid,thread.title,replycount,postusername,postuserid,thread.dateline,views,thread.iconid,votenum,votetotal,postid,pagetext,allowsmilie,showsignature,signature".iif($shownewsavatar,",avatarpath,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline AS avatardateline ","")." ".iif($shownewsicon,',thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','')."
                    FROM thread 
                    LEFT JOIN post ON (thread.threadid=post.threadid) 
                    LEFT JOIN user ON (user.userid=post.userid) 
                    "
.iif ($shownewsavatar,"LEFT JOIN avatar ON (avatar.avatarid=user.avatarid) 
                    LEFT JOIN customavatar ON (customavatar.userid=user.userid) "
,"").
                    "
.iif ($shownewsicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','')."
                    WHERE forumid=
$newsforum AND isnews='Y' 
                    ORDER BY thread.threadid DESC 
$newsmax"); 

Replace that with:
PHP Code:

  $getnews $DB_site->query("SELECT thread.threadid,thread.title,replycount,postusername,postuserid,thread.dateline,views,thread.iconid,votenum,votetotal,MIN(postid),pagetext,allowsmilie,showsignature,signature ".iif($shownewsavatar,",avatarpath,NOT ISNULL(avatardata) AS hascustom,customavatar.dateline AS avatardateline ","")." ".iif($shownewsicon,',thread.iconid as iconid,icon.title as icontitle,icon.iconpath as iconpath','')."
                    FROM thread 
                    LEFT JOIN post ON (thread.threadid=post.threadid) 
                    LEFT JOIN user ON (user.userid=post.userid) 
                    "
.iif ($shownewsavatar,"LEFT JOIN avatar ON (avatar.avatarid=user.avatarid) 
                    LEFT JOIN customavatar ON (customavatar.userid=user.userid) "
,"").
                    "
.iif ($shownewsicon,'LEFT JOIN icon ON icon.iconid=thread.iconid','')."
                    WHERE forumid=
$newsforum AND open<>10 
                    GROUP BY thread.threadid
                    ORDER BY thread.threadid DESC 
$newsmax"); 

There was a problem before with random posts sometimes being displayed on the homepage if the newthread.php file isn't modified, but I'm pretty sure if the query was done that way it should work. If not let me know and I'll see what you would need to change in your newthread.php file instead. :)

WitchyT 04-24-2003 10:32 PM

Oh. Thank you! It worked. :D

WitchyT 04-24-2003 10:50 PM

Actually, another problem *lol* (after taking your suggestion)

Take a look here. I made a screen cap:

http://smallville-torch.com/forum/capst.jpg

Tigga 04-24-2003 10:55 PM

Um... Not sure I see the problem. I noticed the images weren't appearing in the screenshot, but are ok on the site, but that was it...


All times are GMT. The time now is 07:33 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.02976 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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