Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
was this happening before or has it just started happening??

Sponsored Links
Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Quote
quote:
It happened exactly after I upgraded due to your instructions here laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
updated zips to version 1.6

changes
member links in comments work properly.
polls can now have their results hidden from non-admins/mods from the edit poll page.
CP interface, including individual forum control over where polls can be posted (the type of name to show on comments isnt functional yet).
other misc bugfixes/codefixes.

to upgrade from v1.5
rehack ubb_new_topic.cgi
delete previous additions to cp_lib.cgi, and rehack
delete additions to cp_vars_display.pl
rehack cp_users.cgi
hack cp.cgi
hack cp_common.pl
upload ubb_poll_lib.cgi and public_edit_poll.pl, overwriting the old ones.
upload vars_poll.cgi and cp_vars_poll.pl
i would recommend uninstalling from the old directions and reinstalling from the new, just to be careful

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
kaukagaul - im not able to replicate that problem, it works just fine on my test board. and im 99.99% sure that nothing modified in this hack could be affecting the way the threads are sorted/listed in the forum view...so see what other hacks you have that could be conflicting. ?

Joined: Feb 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 8
I just installed 1.6 Looks like theres a few bugs.

The links on comments to members profiles is still broke, you need to add the get_profile&u= to the sting in the public_poll_display.pl template.

most importantly, Members can multiuple vote, and after a vote is made, it goes back to the choice page instead of the graph. If you have hidden results, it does not go back to a page that says you have voted already like in 1.5


-Dan


-Dan
Sponsored Links
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
seems the zipfile decided it wanted to keep the old files instead of adding the new ones when i added them to the zip. its fixed now, reupload ubb_poll_lib.cgi and public_poll_display.pl, sorry bout that (damn zip, heh).

Joined: Feb 2001
Posts: 497
Enthusiast
Enthusiast
Offline
Joined: Feb 2001
Posts: 497
jordo - great !!! laugh i love wink your hack ...

works perfect in german ubb 6.1

[ www.chat-board.de ] in all topics - first threat u can test free ... :rolleyes:

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
I am getting this error below.
Undefined subroutine &main::GetOrPost called at ubb_new_topic.cgi line 136.
What in the world would cause this neat error....lol
I have checked the script 3 times now and all is fine as it was typed. What now?
I did the below and double checked it even.
###==============================
in ubb_new_topic.cgi
###==============================

###########find:

# show signature?
if (($vars_display{AllowSignature} eq 'YES') && ($username ne '')) {
$show_sig = qq(
$vars_wordlets{show_signature});
}

########### add this before:

# show poll?
require "$vars_config{VariablesPath}/vars_poll.cgi";
if ($vars_poll{UbbPoll} eq 'Admin') {
# user must be an admin or mod
#verify cookie id
@user_profile = &verify_id_num($username, $password, $user_number);

# make sure user is an admin or moderator of this forum
my $is_one = &is_admin_or_mod($in{f}, @user_profile);

if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }
}

if ($vars_poll{UbbPoll} eq 'individ_user_level') {
# user must be an admin or mod
#verify cookie id
@user_profile = &verify_id_num($username, $password, $user_number);

# make sure user is an admin or moderator of this forum
my $is_one = &is_admin_or_mod($in{f}, @user_profile);

# get user perms
($j, $perms) = split(/&/, $user_profile[4]);
if ($perms =~ /p/) { $is_one = "true"; }

if ($is_one ne "true") { $show_poll = 'no'; } else { $show_poll = 'yes'; }

}
if ($vars_poll{UbbPoll} eq 'All') { $show_poll = 'yes'; }
my $this_forum = "forum_$in{f}";
if ($vars_poll{$this_forum} eq 'no') { $show_poll = 'no'; }
if (($vars_poll{UbbPoll} ne 'None') && ($show_poll eq 'yes')) {
$show_poll_add = qq(
 Poll: Check to Create a Poll With Topic    
Number of Poll Options:

);
$submit_target = "submit_new_poll";
} else {
$submit_target = "submit_new_topic";
}

############ find :

# perform disk space test:
# this is in case disk quota is exceeded, to limit damage--

############ add this before:

# add poll if there is one
if ($in{Poll} ne '') {
for ($i=0; $i<$in{Poll_total_options}; $i++) {
$this_option = "option_$i";
if ($in{$this_option} =~ /'/) { &StandardHTML('Poll options may not contain a ' (apostrophe).'); }
if ($in{$this_option} eq '') { &StandardHTML('You did not fill out all options.'); }
if ($i == 0) {
$poll_options = $in{$this_option};
} else {
$poll_options .= "|!!|$in{$this_option}";
}
}
require "$vars_config{CGIPath}/ubb_poll_lib.cgi";
&new_poll_thread($exact_path, $new_topic_number, $in{question}, $poll_options);
}

Joined: Jul 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 7
Nice job jordo! v1.6 working fine smile

One minor suggestion when naming the zip files: instead of calling it UbbIntegratedPoll.zip somehow differentiate release; such as, UbbIntegratedPoll 1.6.zip

Another minor suggestion - in the text file , change "and in the control panel, there will be a new option for Poll Settings." to read and in the control panel, there will be a new option for Poll Settings under the Primary Settings menu.

That last bit is a nice touch although the default settings (either to allow or not allow polls) were inconsistant - some forums allowed polls and others didn't.

Keep up the good work! laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
JokerZ - what version UBB? GetOrPost was a sub they added in 6.04e or 6.05 (cant remember which) though i dont think i called it at any point...

Sponsored Links
Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
Quote
quote:
I have 6.04f and I think I found the problem....maybe not??
Look here.....
###==============================
in public_forum_page.pl
###==============================

########## find:

$subject

######### and add before :

$poll

After $subject at the end I also have
$extra_pages

Example:
$subject $extra_pages

Maybe this could be a problem.......I donno.
I have tried it twice now "scripting" and it works fine until I try to add new topic and the poll.
Any ideas? Looks great and I love it!
Just got to get past the hitch...lol

[ July 16, 2001 08:00 PM: Message edited by: JokerZ ]

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Quote
quote:
Yes, this is fixed, it was myself doing some bad hacking, everything works fine now. laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
jokerz - this is very strange, as that sub call is unrelated to this hack, and if it isnt working there but is working elsewhere (cause you would not be able to do much on the board if the sub didnt work anywhere).
i tested the hack on a 6.04f and it worked fine, so im not sure whats up, but i would suggest trying this:

in ubb_net_topic.cgi, before:
&GetOrPost('POST');

add:
require "$vars_config{CGIPath}/ubb_lib.cgi";

try that and let me know.

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
I tried that and OMG I got this......
Can't locate help me/ubbubb_lib.cgi in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at hopeless for me/ubb/ubb_new_topic.cgi line 137.
Maybe I have too many hacks....lol
Wow what errors.............

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
ummm, in vars_config.cgi, what does it say after: CGIPath => ??

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
Quote
quote:
=============================================
It just links to the cgi files.
q!/home/WWW10/name.com/cgi-bin/name/ubb!,
Its linked right here.
I guess its just too many hacks installed....bah.

Joined: Jun 2001
Posts: 20
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 20
I got it working m8 and it works great!
I found the problem and OMG was it fun!
Thanks a million and sorry for the trouble m8.
;0

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Jordo,

Ok you may remember that before v1.5 made it to UBBDev I mentioned a formatting problem with the poll and now I've taken a screenshot. This is under IE5.5 and the latest v1.6 code:

http://www.ispreview.co.uk/images1/polly.gif
(IMAGE reduced to 16colours)

As you can see the top right of the poll has UBB6's (grey) default background colour. I can see the problem in the polls formatting file, but it's not as easy to fix as you might think. You can add an extra TD and BG that, but then it throws the formatting off.

Also on the screen where you type the poll options/names (after 'Post New Topic Screen'), I noticed the formatting wasn't in-tune with the default set by users for their UBB. It extends outwards a little.

Otherwise a good survey system, you just need to fix the long-standing format bugs.

Joined: Aug 2000
Posts: 594
Member
Member
Offline
Joined: Aug 2000
Posts: 594
working great for me smile

great hack!!!

The only problem I am seeing is that the login name is being used with the comments even though I made the public name selection in the cp. I'll muddle through and fix it later


jeremiah
Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Oh and another thing, this time not really a bug:

Allow anyone to post polls.
Allow Nobody to post polls (off).
Allow only Admins and Mods to post polls.
Allow only selected users to post polls (admins and mods too).

So you can allow 'anyone' (Members/Non-Members), Nobody (Polls off), Admins & Mods or selected users + Admins & Mods.

So how do you set the system to allow Forum Members, but not unregistered members?

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Hello jordo
Has there been any progress in that little peace of code to make us choose the Public Displayed Name in the comments instead of login name?

Just want it, want it, want it laugh laugh laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
ill be updating this hack for 6.1 as soon as the beta is out this week, so ill add in the public name functionality (right now it was just put in for future use, it doesnt actually do anything to set it in the cp).
so as soon as the 6.1 beta is out, expect an update. smile

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
OK...but I guess that can be a "different" hack in some way due to the new code in 6.1.

Will you not be fixing the code so the hack work properly for those who choose to stay with 6.0X.
I guess many of us that has installed the hack will choose to stay with 6.0X for a while...and not forgetting those who not will be upgrading at all for different reasons.
It would be nice to have a finished hack working on 6.0X.

Do I have to make a Poll, so you can see how many people begging you to fix that public displayd name thingy for 6.0X? laugh laugh laugh

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Jordo,

What about the format bug I mentioned?

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Come on Jordo, reply =). Don't just ignore it.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
kaukagaul - ok when i update for 6.1 ill make that a seperate version and ill add in the name functinality.

mark99 - redownload the zip and upload public_poll_display.pl

Joined: May 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 8
This has been working fine for me until:

I closed a poll and users can still vote and...

Someone started a poll today and it creates the following error...

Substitution replacement not terminated at /home/ravensnest2/ubb/Forum2/008899.poll line 11.

Here is the file.

%poll_data = (
question => 'Who Is The NFL's Most Terrifying Defensive Presence, And WHY?',
choice_total => '8',
choice_0 => 'Trace Armstrong||0',
choice_1 => 'Champ Bailey||0',
choice_2 => 'La Roi Glover||0',
choice_3 => 'Jevon Kearse||0',
choice_4 => 'Ray Lewis||0',
choice_5 => 'Warren Sapp||0',
choice_6 => 'Junior Seau||0',
choice_7 => 'Michael Strahan||0',
choice_8 => 'Charles Woodson||0',
);
1;

Now when I look at my .poll files in a text editor, the choice_total value is always one less than the actual number of choices. Is this right? Anyway, I tried to fix that, cleared my cache and it still displays an error.

Steve
www.ravensnest2.com/ravensboard.htm

[ July 26, 2001 08:28 PM: Message edited by: Ravenous52 ]

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Great hack, works great. I have a lot of people wanting to do polls themselves but I'm only allowing Mods/Admins at this time.

Thanks for your great hack.

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
Ravenous52 - download the zip, and reupload the file: ubb_poll_lib.cgi, overwriting the old. then in the .poll file that is causeing the problem, take out the apostrophe in the middle of the first line (not either of the ones on the "ends" of the right side). it was yet another check for apostrophes i missed, and something that will be fixed in the next version (ie: apostrophes will be allowed and handled properly, not just blocked).

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Jordo,

Sweet.. yeah that sorted the format bug, which is the last complaint I have about this hack. It's now perfecto..

Joined: Sep 2000
Posts: 441
Member
Member
Offline
Joined: Sep 2000
Posts: 441
uh, just installed v1.6 on ubb6.01 and when hitting 'submit' creating a new message a blank page returns :-/

any ideas?
regards,
chris
http://technoforum.de

Joined: Mar 2001
Posts: 326
Member
Member
Offline
Joined: Mar 2001
Posts: 326
Huge changes since v6.01, suggest you ramp up to at least v6.04 or v6.05.

Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
I'm using UbbIntegratedPoll v1.3 over 6.05 what will happened if i update to 6.1 bp1?
confused


Nervana
Cairo, Egypt
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
this hack will not work on 6.1.0
i will be making an updated version for 6.1.0 as soon as i have a satisfactory cache workaround.

Joined: Mar 2001
Posts: 19
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 19
Okay Okay
I adore you really integrated Poll and i will wait.
but what about my old Polls if i upgrade and after you finish it I install it again?


Nervana
Cairo, Egypt
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
dont worry im not gonna change the data files, so old polls will still work. smile

Joined: Jul 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 22
To bad seeing this thread moving far down the threadlist.
This last fix for Public Displayed Name is a 100 times better to wait for than a buch of those 6.1 betas stopping every 6.0x activity.

So we have to give this one a little bump to get it up in the sun again, and maybe that can help a little to get jordo in good mood to make that little fix laugh

Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
As promised smile files updated with functionality for public/login name selection on comments. simply reupload ubb_poll_lib.cgi and public_poll_display.pl overwriting the old. and be sure to make your selection in the Poll CP as to which you want displayed. enjoy.

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
Hehe....thanks jordo laugh
Now I am jumpin an hoppin straight to the download url and singing and joddling and kauking and gauling laugh laugh laugh

Joined: Jul 2001
Posts: 109
Member
Member
Offline
Joined: Jul 2001
Posts: 109
a little bugreport

If you choose to hide the pollresults, guests are not able to open the thread/topic at all.
If a guest try to read7open the topic, he gets an empty screen with this message "FYI, Sorry, we have no one registered with that name. Use your browser's back button to try again."

I think it would be better to let the guest see the topic and the polloptions, and provide him with a message and an option to log in, but not let anyone see the pollresults.

Page 2 of 5 1 2 3 4 5

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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)