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)
-   -   Last XX Posts on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=12324)

eva2000 06-22-2001 08:28 AM

Quote:

Originally posted by tubedogg
Eva: Sorry I missed that the first time around. In last10.php add
Code:

$boarddown1 = mysql_query("SELECT value FROM setting WHERE varname='bbactive'");
$boarddown = mysql_result($boarddown1,0,0);
if ($boarddown == "0") { echo("Sorry the forums are down for maintenance"); exit; }

Put that right after
Code:

mysql_select_db($dbname) or die("Can't select database");
heynurse: um...you aren't by any chance on a Windows server are you?

thanks kevin that worked, can i borrow you over in this thread too http://vbulletin.com/forum/showthrea...threadid=20407 :) i tried doing the same in that online.php code but it didn't work :(

tubedogg 06-22-2001 09:19 AM

eva, heynurse: glad you both got them working. :)

xdam: There's no reason it should be doing that. Is everything else about it working?

xdam 06-22-2001 09:25 AM

Yea, everything else works perfect, i have edited alot though maybe i screwed the code somewhere? Have you tried to take the max characters over 120 in your script?

* now sorted, the problem was i removed the <nobr> tags *

tubedogg 06-22-2001 09:43 AM

I just tried it out with max chars set to 300 and it worked fine...

xdam 06-22-2001 09:50 AM

ok thanks for testing, another thing you code help me off if your willing to is that i want to display the posts as news, i've kinda converted this script into a news script, take a look at:

http://digital-forums.com/clan/clan.php

I have displayed it as news, now my problem is that whenever someone replies the 'news article' jumps to the top and there replie appears is there anyway i can make it so the script only see's new topics?


excellent script btw, just what the doctor prescribed :)

tubedogg 06-22-2001 09:56 AM

You mean so it only shows threads with no replies? Sure - just change this
Code:

$query = "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql ORDER BY thread.$ob $obdir LIMIT $maxthreads";
to this
Code:

$query = "SELECT thread.lastpost,thread.title,thread.lastposter,thread.replycount,thread.views,user.userid,thread.threadid,thread.forumid$fsel,thread.iconid FROM thread,user$ftitle $wheresql AND thread.replycount=0 ORDER BY thread.$ob $obdir LIMIT $maxthreads";

xdam 06-22-2001 10:04 AM

<a href="http://digital-forums.com/clan/clan.php" target="_blank">http://digital-forums.com/clan/clan.php</a>

didn't work

xdam 06-22-2001 10:22 AM

it's gone abit weird now a news article was posted and its gone into 7 articles (and this is without your code change)

jdebler 06-24-2001 12:23 AM

First of all, I just want to say thanks to tubedogg for this great hack. I am very new to most of this, but I am starting to learn a lot. Thanks! :D

Now for my error...

I downloaded file last10-102.zip today and started playing with it.

Everything works great, but if I leave the $tw variable blank ("") the font style and size in the resulting table is exactly what I have specified in the $f and $fs variable. If I change the $tw variable to either a pixel number or a percentage, the font in the resulting table is the default font style and size of my browser and doesn't hold the $f and $fs variable information at all. Everything else (colors, etc.) is just fine. This happens when implementing this hack using an PHP-parsed page and server-parsed page.

[EDIT-I just noticed that this only happens when using Netscape 4.77. When viewed in IE it looks fine.]

Any clues? If this is just a strange way that Netscape shows the file, should I just override the $f and $fs variable in the last10.php file? If so, what code do I change? :confused:

I scanned through this entire thread looking for an answer to this problem, but didn't find an answer but it is a pretty big thread so please forgive me if the answer is indeed in here somewhere and I missed it.

Thanks in advance!!

Jason

Grover 06-24-2001 02:22 PM

Tubedogg,

(I won't start by saying: 'thanks for this great hack'..... ;)

Just to let you know that I discovered a little 'issue' in the output of the text in the tables.
The following thing happens:

- If a user uses the character ["] in the subjectline, for example :

Tips van beginnende "gebruikers", (it's Dutch btw) then the output in the last_post hack is:

Tips van beginnende &quo...


Well...a picture says more than......:

http://www.haarweb.nl/Documenten/last_post.gif


I hope that this remark will be helpfull to you, to improve this hack more and more.

(So I will END by saying: 'thanks for this great hack'..... ;)

Grover.


All times are GMT. The time now is 04:33 PM.

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.01316 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (1)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
  • (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