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-01-2003 10:23 AM

hum i nearly forgot to thank ya PurePlanet.
Thanx ^^

Wells 01-01-2003 10:25 AM

So,
no, with Poll URL no problems. I set up it to http://www.mysite.net/forum/forumdis...?s=&forumid=21 as you wish. Maby in some file....

So I have in my root directory file called index2.php [myvbindex.php] and full error [something with poll butwhat :(( ???]:

Database error in vBulletin 2.2.9:

Invalid SQL: SELECT thread.pollid, thread.open, thread.threadid, thread.replycount, poll.pollid, poll.question, poll.dateline, poll.options, poll.votes, poll.active, poll.numberoptions, poll.timeout, poll.multiple, poll.voters FROM thread LEFT JOIN poll ON (thread.pollid=poll.pollid) WHERE thread.forumid=http://www.mysite.net/forum/forumdisplay.php?forumid=21 ORDER BY thread.pollid DESC LIMIT 1
mysql error: You have an error in your SQL syntax near '://www.mysite.net/forum/forumdisplay.php?s=e2527ec4c416e553eaa3ef0471f35' at line 1

mysql error number: 1064

Date: Wednesday 01st of January 2003 02:13:43 PM
Script: http://www.mysite.net/forum/index2.php
Referer:



I change my server info to www.mysite.net [don't want to spam :) ]

So if you can help me i'll be very happy :)))

Tigga 01-01-2003 10:29 AM

That's the problem. The polls forum id is supposed to be set to just the forum id, not the whole url. Try changing it to 21. ;)

No problem Kamui. Hope you enjoy the hack. :)

Wells 01-01-2003 10:37 AM

I try to set Show Poll?
to no and go to next error:

Database error in vBulletin 2.2.9:

Invalid SQL: 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=http://www.mysite.net/forum/forumdisplay.php?s=&forumid=20 AND isnews='Y' GROUP BY thread.threadid ORDER BY thread.threadid DESC LIMIT 10
mysql error: You have an error in your SQL syntax near '://www.mysite.net/forum/forumdisplay.php?s=&forumid=20 AND isnews='Y' GR' at line 1

mysql error number: 1064

Date: Wednesday 01st of January 2003 02:32:52 PM
Script: http://www.mysite.net/forum/index2.php
Referer:

Wells 01-01-2003 10:41 AM

WOW-WOW-WOW
many thanks, I change and everything working. INCREDIBLE!

Thanx a lot.

Happy New.

Wells 01-01-2003 11:00 AM

And one more question...
how can I change language in your hack?
Because all in english...

Tigga 01-01-2003 11:23 AM

The only way to change the language would be to edit the templates. I think there's only 2 places any words are coded in the file. Those would be:

$replytext = 'Reply';
} else {
$replytext = 'Replies';
}

There should be 2 instances of that code, and other than that everything is in your index templates.

Tigga 01-01-2003 12:43 PM

Ok, I think I might have found a fix for the weather temperature bug. If the temperature won't show up with your weather forcast, try doing this:

Open your admin/functions.php file and look for:
PHP Code:

// ###################### Weather Functions #######################
function convert_temp($number,$tpc) {
$number *= 1;
if (
$tpc == 0) {
$number = (5/9) * ($number-32);
$number round($number);
return 
"$number?C";
} else {
return 
"$number?F";
}


Replace that with:
PHP Code:

// ###################### Weather Functions #######################
function convert_temp($number,$tpc) {
$number *= 1;
if (
$tpc == 0) {
$number = (5/9) * ($number-32);
$number round($number);
return 
"$number";
} else {
return 
"$number";
}


Then download the attached zip file, upload the weather.php file to your forums directory, then change the index_weather_main and index_weather templates to the ones in the zip. Let me know if it works. :)

DarkDraco07 01-01-2003 03:02 PM

*continues to wait for the mini-hack* :p

jarvis 01-01-2003 04:57 PM

ding ding ding ding ding.... looks like we have a winner!! :D

The weather bug appears to have been squashed!!

Thanks for the continued great support... I'm really loving the hack and being able to modify it to handle all of my web pages.

Thanks again!


All times are GMT. The time now is 02:31 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.02603 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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