Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 7 1 2 3 4 5 6 7
Joined: Jul 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 3
Err, why are my polls/results center-alligned ? How can I change them to left-alligned ?

Sponsored Links
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I have a minor problem (major to me) and I was wondering if you could help. Click here for a screenshot.

If I send you my public_topic_page and my modified public_poll_display pages do you think you can help me get rid of that extra blue stripe above the poll section?

Thanks.

Joined: Oct 2001
Posts: 85
Member
Member
Offline
Joined: Oct 2001
Posts: 85
hmmmm problem with poll

I start a poll and i deleter the thread

When i start a new topic he is a poll ??

why ?

how delete poll ?

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Cobra - i would download the zip file, and upload the file ubb_poll_lib.cgi to your server, it is possible that he used an old version that has a bug in it. do not apply the multihack at this point, afaik it will just double the code since it is already there.


mrnewbie - make sure you have all the latest templates before applying this hack. iirc this happens when a 6.0x template (cp_add_new_style.pl or something like that) is used with 6.1.x.

Morpheus - it would have to be code in cp_common.pl. remove the additions this hack makes to that file and see if it works, if it still does not then compare it to a stock file, as you may have accidentally deleted something.

steamfish81 - all the html is in the templates file, in particular, public_poll_display.pl. you can add center tags in there, look for html code following a line like "sub results {" of something of that sort. should be fairly straightforward.

XPerT - you cannot send ubb files. you most likely have an extra
cell near the top of the file public_poll_display.pl

Boubou - check the additions you made in ubb_topic_maint.cgi. the .poll file should be deleted whenever a topic is deleted if that file was edited correctly.
Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
Does this hack work with 6.2 beta release?

Sponsored Links
Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
I've got the Polls working on beta 6.2....well for the most part. The only problem I've encountered, which may be a universal problem, is the polls do not work properly when viewing and writing of posts are restricted to Administrators, the forum Moderator, and other authorized* users.

Has anyone else had this problem with 6.1?

Thanks

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
sorry i havent had a chance to test it on 6.2 yet, but i will.

can you describe the problem that occurs? afaik there is no such problem when using it with 6.1.0, but more information would be helpful smile

Joined: Jun 2001
Posts: 216
Member
Member
Offline
Joined: Jun 2001
Posts: 216
Thanks Jordo for the Code -- works beautifully on V6.1.0.3

Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
Does anyone have a multihack file for this?? I need one for the latest version of multihack. I am too lazy to install this huge mod, that is why I need it.

Joined: Oct 2001
Posts: 85
Member
Member
Offline
Joined: Oct 2001
Posts: 85
this hack work very fine in public forum

but in private forum he dont work correctly

somebody have this problem ??

Sponsored Links
Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
Jordo,
Here's the scope.

When the forum is made completely private (in the bb CP by checking off "Restrict Viewing and Writing of Posts To Administrators, the forum Moderator, and other authorized* users" in the details section for a particular forum), not all polling functionality works properly ie. all votes cast for that poll are not recognized.

I believe I have found the source to the problem. Forums that are made private create a sub dir within the main forum dir (main dir: Forum#, sub dir name: private-whatever), the initial .poll file is created within the private-whatever dir. Once a vote is cast, the vote gets written to a new .poll file within the main forum dir Forum#. This is what causes the conflict.

The .poll file within the sub dir, private-whatever is what is called on when displaying current poll results. It is inacurate because it never changes. Only the second .poll file (which shouldn't even be there) within the main forum dir, Forum#, is updated with new poll votes.

Since I've pretty much narrowed it down, I'm sure this will be an easy fix. If I get the time, I might even put my novice skills to the test and try to fix it myself. If I do, I'll be sure to post the fix here.

You can check out the problem forum here

User Name: test
Password: polltest

Otherwise, great job on this hack!

Thanks
Ron

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Gridlock, why doesn't your board have an Infopop copyright?

Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
It was accidentally removed when I intergrated the forum into my web site design. Don't worry it's on the to do list

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
The exact path is constructed when you vote, so it should be writing to the .poll file in the private subdir. on viewing your test board, i notice that the test account has already voted in that poll... have you done something to change it here? or was the test account able to vote and have their vote recorded properly?

Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
Woo Hoo! Just fixed it!

In ubb_poll_lib.cgi

Find (three times)
if ($permission eq 'private') {

Replace With
if ($permission =~ m/private/) {

And thats it!

Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
quote:
Originally posted by jordo:
The exact path is constructed when you vote, so it should be writing to the .poll file in the private subdir. on viewing your test board, i notice that the test account has already voted in that poll... have you done something to change it here? or was the test account able to vote and have their vote recorded properly?



It did not properly recognize that the forum was restricted/private, so it would write a new .poll file to the main forum directory and not onto proper .poll file in the private sub dir. Making that change I've listed above corrected the problem and it works perfect now!

Once again great job with the hack!

Ron

[ 01-08-2002 09:25 PM: Message edited by: GRIDLOCK ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
well now thats what i call testing. file updated with fixes, thank you.

-jordo

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
quote:
Originally posted by GRIDLOCK:
It was accidentally removed when I intergrated the forum into my web site design. Don't worry it's on the to do list smile It's only 1 file!

[ 01-09-2002 06:25 AM: Message edited by: LK ]

Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
quote:
Originally posted by LK:
Please add it ASAP... Err, please add it NOW tipsy

[ 01-09-2002 06:25 AM: Message edited by: LK ]




Hows This

It's not the standard location but I think it does the job. If you want to get technical, the font is even bigger!

Ron

Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Hi all,

Quick question. Can the polls be added to the sidebar area if you want or only in posts.

Thanks

Rainner

Joined: Oct 2001
Posts: 199
Member
Member
Offline
Joined: Oct 2001
Posts: 199
Very nice hack! Thank you!

Rainner
6.1.0.3

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Just wondering if an SSI to another page has been done on this...


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
no, but it is something to think about...

Joined: Nov 2001
Posts: 37
Member
Member
Offline
Joined: Nov 2001
Posts: 37
it sounds like a nice hack but i can't get it to work i've installed and hacked all the files as said but thats what i get everytime .......
i hope someone can tell me whats wrong here

==================================================
/usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi: syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 172, near "$permission ~"
syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 226, near "}"
==================================================

cheers :}

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
kamli - redownload the zip and reupload ubb_poll_lib.cgi

Joined: Dec 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 1
When I try to use the MultiHack file, MultiHack tells me that the file is created in an earlier version and is not supported....

[Linked Image]
[Linked Image]

Any suggestions?

Joined: Nov 2001
Posts: 37
Member
Member
Offline
Joined: Nov 2001
Posts: 37
Jordo i'm still getting the same error .......

/usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi: syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 172, near "$permission ~"
syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 226, near "}"


i checked the ubb_poll_lib.cgi
and this is the section thats causing the problem
sub do_vote {
my(@choice,$new_total,$comment_num);

my $type = param('type');
my $vote = param('vote');
my $comment = param('comment');
my $username = param('username');
my $forum = param('forum');
my $thread = param('thread');

#get forum details
my @this_forum = &GetForumRecord($forum);

# determine exact path & check permission if necessary
my $permission = $this_forum[6];
my $exact_path = "Forum$forum";
##line 172## if ($permission ~= m/private/) { $exact_path .= "/private-$this_forum[7]";
}

&RequireVars("$vars_config{NonCGIPath}/$exact_path/$thread.poll");

unless ($vote) {
&StandardHTML("$vars_wordlets_polls{ipolls_option_error}");
}
if ($username eq "") {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}

$vars_wordlets{login_now}!);
}

my @voters = split(/||/, $poll_data{voters});
foreach my $voter (@voters) {
if ($voter eq $username) {
&StandardHTML("$vars_wordlets_polls{ipolls_already_voted_error}");
}
} # end foreach

$poll_data{voters} .= "$username||";
foreach my $key (keys %poll_data) {
if ($key =~ /choice_/) {
@choice = split (/||/, $poll_data{$key});
if ($vote eq $choice[0]) {
$new_total = $choice[1] + 1;
$poll_data{$key} = "$choice[0]||$new_total";
}

}
}
if ($comment) {
$poll_data{comment_total} = $poll_data{comment_total} + 1;
$comment_num = "comment_$poll_data{comment_total}";
$poll_data{$comment_num} = "$username||$vote||$comment";
}
$poll_data{total_votes} = $poll_data{total_votes} + 1;

&WriteHashToFile("$vars_config{NonCGIPath}/$exact_path/$thread.poll", "poll_data", %poll_data);

# take viewer back to topic
my $forum = param('forum');
my $topic = param('thread');

# grab topic
my @this_topic = &OpenTopic($topic, $forum);

# grab topic stat line
my @stat_line = split(/||/, $this_topic[0]);

do "$vars_config{NonCGIPath}/styles/vars_style_$template_match{transition}.cgi";
&set_page_elements;
&Transition("$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$forum&t=$topic", "$vars_wordlets_polls{ipolls_thanks_voting}", "$stat_line[4]");

} ## end do_vote sub #######line 226######

i hope this can help to identify the problem

cheers

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
you did not upload the new ubb_poll_lib.cgi, please do that.

Joined: Nov 2001
Posts: 37
Member
Member
Offline
Joined: Nov 2001
Posts: 37
jordo i upeed the ubb_poll_lib.cgi file and then i got this error ....
i hope its the same file on page 1 of this post....

let me know if u want me to do something else

thanks a lot for helping .......

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
ok i updated the zip when i replied previously (4 replies before this) and the code you posted is not from the updated version. so... redownload the zip and upload ubb_poll_lib.cgi.

Joined: Jan 2002
Posts: 1
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 1
this works! excellent!

the current problem is lack of sleep and fast typing wink

Code
[/code]
the "~=" needs to be "=~"
only change on line 172
that will solve it :D
(make sure that u download the zip (now) and use it, 'couse maybe u got a version of it with more errors in it on the private thing) (i've downloaded it about 1 hour ago)

also, i don't know perl, or ubb hacking, but i'm not sure that "m" in the m/private/ is needed (it's not there on my screen at least)


there is however 1 other issue:
i started a new poll (test poll)
in the subject of the poll (after the "add new topic")
i wrote:
Code
</pre></div></div><br>and that was the output:<br>[code]


after some more testing, i've found out that when u create a poll, it ignores the "Disable smilies in this post." and displays them no matter what (including that error)

however, i've installed a Greamlins hack, so it might be that too, i dunno confused

great hack! ('cept for that minor problem)

--
1 more thing, the "code" UBB tag does not disable other ubb tags (like the wink for the graemlins) so what is it for? wink

(yes, 3rd edit 'couse i forgot to disable smilies again :p)
[ 01-18-2002 02:32 PM: Message edited by: TniT ]

[ 01-18-2002 02:36 PM: Message edited by: TniT ]

[ 01-18-2002 02:38 PM: Message edited by: TniT ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
quote:
Originally posted by TniT:
this works! excellent!

the current problem is lack of sleep and fast typing wink

quote:
Originally posted by TniT:

there is however 1 other issue:
i started a new poll (test poll)
in the subject of the poll (after the "add new topic")

...
1 more thing, ...




ill take a look at those, but it uses the standard ubb parsing routines for smilies and ubbcode, so if you have a hack that modified those it may be causeing some conflicts.

Joined: Nov 2001
Posts: 37
Member
Member
Offline
Joined: Nov 2001
Posts: 37
hi jordo ..........

i got the hack to work ......
the updated ubb_poll_lib.cgi works pefectly fine ...

thanks

Joined: Apr 2001
Posts: 3
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 3
Erm, maybe I'm really dumb but I can't for the life of me download the zip file from http://www.jordodesigns.com/UbbIntegratedPoll6.1.x.zip

It appears the file isn't there?!

If anybody could email the latest version of the hack to [email protected] I'd be very grateful.

Thanks in advance!

[ 01-20-2002 07:12 AM: Message edited by: Red Cafe ]

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
try again Red Cafe, its there.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It's because there is a redirection. Try http://www.cs2.addr.com/jordo/UbbIntegratedPoll6.1.x.zip

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Question. Been reading through the thread and it's hard to tell. Does this now work with the acclerator or not? I saw Jordo refer to ultimatebb.php in one post but in the directions it makes no mention of that file. Just curious because as I have it, it won't work with the accelerator and seems people do have it working right with it. I must have missed something.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Can anyone help us regarding whether this works with the acc?

BTW - I have created a MultiHack file for this version. It will work if you have Sticky Threads installed or not. This is based on Version 2.0, which the zip file is, and not 1.9.

You can grab a copy of it here.

I have tested it on 6.1.0.4

Not sure if one of the mods would like to upload it to the database here.

Whilst I do not have the time to make hacks, I can build MultiHack files, and make them available to others.

Regards,

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Jordo, to get it to work with PHP and 6.2:[code][/code]

[ 01-23-2002 10:01 AM: Message edited by: LK ]

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
LK - which file would this be in? Would this work with php & 6.1.0.4 or just 6.2?

BTW - the multihac version linked on page one, is for the older version, my multichack version is for 2.1.

Regards,

Ian


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Page 6 of 7 1 2 3 4 5 6 7

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)