Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2001, 12:22 AM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone used the poll hack in VB 1.1.6?

I'm working on a hack running on an Apache server and I'm getting code parse errors on the page.

http://isman.freephp.digiro.net/foru...php?threadid=2

Can anyone offer any suggestions on this one?

If you need to see the actual code let me know.

Thanks in advance.
Reply With Quote
  #2  
Old 04-24-2001, 09:20 AM
doron
Guest
 
Posts: n/a
Default

i'm the writer of the hack. What is your line 7 of showthread.php?
Reply With Quote
  #3  
Old 04-24-2001, 12:03 PM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eval("$creditscode = \"".gettemplate('creditscode')."\";");

Thanks for looking.
Reply With Quote
  #4  
Old 04-24-2001, 12:17 PM
doron
Guest
 
Posts: n/a
Default

hmm, that is not part of the poll hack. Was it working before you installed it?
Reply With Quote
  #5  
Old 04-24-2001, 12:43 PM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was working before I installed it. The hack I setup didn't include any changes on line 7. Most of the changes were more toward the middle and end of the showthread.php

//poll hack
$posts=$DB_site->query("SELECT post.dateline as dateline,post.postid as postid,post.pagetext as pagetext,
post.allowsmilie as allowsmilie,post.signature AS showsignature,post.title as title,
post.ipaddress as ipaddress,post.iconid as iconid,post.username as fakename,
post.userid as userid,post.pollid as pollid,
user.userid as userid,user.email as email,user.username as username,
user.usertitle as usertitle,user.signature as signature,user.showemail as showemail,
user.homepage as homepage,user.icq as icq,user.aim as aim,user.yahoo as yahoo,
user.joindate as joindate,user.posts as posts
FROM post
LEFT JOIN user ON (user.userid = post.userid)
LEFT JOIN icon ON (icon.iconid = post.iconid)
WHERE post.threadid=$threadid AND visible=1
ORDER BY dateline $postorder
LIMIT $limitlower,$perpage");
//end poll hack

and

////////// poll hack start
if ($post[pollid] <> 0) { //post has a poll
$pollmodule = 'pollshow';
include ('pollmodule.php');
}
//end of "post has poll"
else $pollbit = ''; //no poll, nothing returned

//lets get the signature after the poll
$message=bbcodeparse($post[pagetext],$forumid,$post[allowsmilie]).$pollbit.bbcodeparse($signature,0,$allowsmilies) ;

/////end poll hack

Line 7 is the original code for showthread.php. Remember I'm using version 1.1.6. I don't know what any of the previous versions looked like.
Reply With Quote
  #6  
Old 04-24-2001, 06:06 PM
doron
Guest
 
Posts: n/a
Default

does removing the poll code from the file fix this?
Reply With Quote
  #7  
Old 04-24-2001, 06:15 PM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, if you follow the link in the first post you'll open the original showthread.php. The parse error is still there.

Not sure what that means.
Reply With Quote
  #8  
Old 04-24-2001, 08:23 PM
doron
Guest
 
Posts: n/a
Default

i just visited the url, no error..
Reply With Quote
  #9  
Old 04-24-2001, 10:48 PM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Took me a minute to get the correct version up there.

Yes, with the non-hack version it shows up correctly. With the hacked version I get the parse error.

Can you help me with a fix for this. I'd really like to play with the poll hack .
Reply With Quote
  #10  
Old 04-25-2001, 01:21 AM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I discovered my provider is using php3. I uploaded to proper version and made the appropriate modifications and the problem is solved.

I have but one more question.

When you go into view the poll for the first time, before you vote, the question test is all scrunched up (technical term).

http://isman.freephp.digiro.net/foru...hp3?threadid=2

Any suggestions on that one. That should be easy compared to the last one.

Thanks in advance.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04301 seconds
  • Memory Usage 2,234KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete