Welcome, Guest. Please Login or Register.
May 08, 2024, 08:00:42 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [BETA] YaBB Poll v0.1 Released « previous next »
Pages: 1 ... 4 5 [6] 7 8 ... 10 Reply Ignore Print
Author Topic: [BETA] YaBB Poll v0.1 Released  (Read 22443 times)
GauGau
Noobie
*
Posts: 18


Klugscheisserei grood recht!

WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #75 on: July 29, 2002, 05:42:01 AM »
Reply with quote

Nossi,

I understand you changed lines 48 and 50 of poll.php for security reasons, but line 46 should usually read $host_poll="localhost"; //MySQL Host Address and line 54 should be somthing like $dbprefix_poll="yabbse_polls"; //MySQL YaBB Tables Prefix (check this with phpMyAdmin or something similar) in the "real thing".

Next thing that bothered me on my board were the lines 67+68, so I relied on the vars $username and $password passed by SSI.php instead of those of poll.php. I changed the code from        $YaBB_Username_Cookie=$HTTP_COOKIE_VARS["3dhomeworldname"]; //YaBB username cookie
        $YaBB_Password_Cookie=$HTTP_COOKIE_VARS["3dhomeworldpassword"]; //YaBB password cookie
to        $YaBB_Username_Cookie=$username; //YaBB username cookie
        $YaBB_Password_Cookie=$password; //YaBB password cookie
, because php vars can be tricky depending on your webhosts's php version.
Maybe this already does the trick for you - did it for me.

GauGau
Logged
nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #76 on: July 29, 2002, 06:42:21 AM »
Reply with quote

poll.php must be in the same directory as your index.html file and it must be called relatively.

<? require('poll.php'); ?>
is okay...

<? require("/home/3283/planet/www.3dhomeworld.com/public_html/poll.php"); ?>
is not okay..

change that and your cookie problems should go away...
« Last Edit: July 29, 2002, 06:42:52 AM by nsanden » Logged
nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #77 on: July 29, 2002, 06:45:34 AM »
Reply with quote

Quote from: GauGau on July 29, 2002, 05:42:01 AMNossi,

I understand you changed lines 48 and 50 of poll.php for security reasons, but line 46 should usually read $host_poll="localhost"; //MySQL Host Address and line 54 should be somthing like $dbprefix_poll="yabbse_polls"; //MySQL YaBB Tables Prefix (check this with phpMyAdmin or something similar) in the "real thing".

Next thing that bothered me on my board were the lines 67+68, so I relied on the vars $username and $password passed by SSI.php instead of those of poll.php. I changed the code from        $YaBB_Username_Cookie=$HTTP_COOKIE_VARS["3dhomeworldname"]; //YaBB username cookie
        $YaBB_Password_Cookie=$HTTP_COOKIE_VARS["3dhomeworldpassword"]; //YaBB password cookie
to        $YaBB_Username_Cookie=$username; //YaBB username cookie
        $YaBB_Password_Cookie=$password; //YaBB password cookie
, because php vars can be tricky depending on your webhosts's php version.
Maybe this already does the trick for you - did it for me.

GauGau

Line 46 is usually localhost, but some people use mysql on another server, in which case it would be an IP address or domain name like he had

Line 54 should actually be

$dbprefix_poll="yabbse_"; //MySQL YaBB Tables Prefix
unless you used a different prefix for your yabb tables when you installed it. (Remember this is simply the prefix of the tables, not an actual table)
« Last Edit: July 29, 2002, 06:48:15 AM by nsanden » Logged
Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #78 on: July 29, 2002, 03:49:57 PM »
Reply with quote

sorry I still cant get it to work :(

I changed main.php to
   <td height="16" valign="top"><div align="center">Current Poll:</div></td>
  </tr>
  <tr>
    <td height="29" valign="top">
      <? require('poll.php'); ?>
    </td>
  </tr>
  <tr>

line 46 reads
       $host_poll="mysql.xcalibre.co.uk"; //MySQL Host Address
but you didnt need to know that ;)

test account..

user Vaider-Raider
pass purple

thanks..

(\).
Logged

nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #79 on: July 30, 2002, 09:20:43 PM »
Reply with quote

Well then my only recommendation would be to try to include it directly into your index.shtml file. Unless anyone else has any better ideas, I don't know why it wouldnt work 2 includes down.
Logged
René
Noobie
*
Posts: 31


WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #80 on: August 02, 2002, 09:23:31 PM »
Reply with quote

I really like this mod but I've some problems with it.

I have an index.shtml and placed the following lines in it:
<!--#include virtual="/yabb/SSI.php" -->
<!--#include virtual="poll.php" -->

Ok, it shows the poll, so I login, now I can vote.
The problem is that when I vote, it show's the results but it didn't register my vote.
When I vote on the forum, it works fine (and also shows up on index.shtml)

Any idea's?
Logged

Doe meer met uw chello internet verbinding : Chello Underground :)
nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #81 on: August 03, 2002, 12:02:58 AM »
Reply with quote

Quote from: René on August 02, 2002, 09:23:31 PMI really like this mod but I've some problems with it.

I have an index.shtml and placed the following lines in it:
<!--#include virtual="/yabb/SSI.php" -->
<!--#include virtual="poll.php" -->

Ok, it shows the poll, so I login, now I can vote.
The problem is that when I vote, it show's the results but it didn't register my vote.
When I vote on the forum, it works fine (and also shows up on index.shtml)

Any idea's?

Hi,

If you like, make me a test account at your forums, and give me the url to your site and i'll check it out.
Logged
mephisto_kur
Sr. Member
****
Posts: 308


Hi ho.

WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #82 on: August 03, 2002, 01:55:18 AM »
Reply with quote

Doesn't seem to play well with YaPP blocks, btw.
Logged



Awmp, ding, soo googoongee doop, dee
Googoo Fleegoogeegoo
Goo Fleegoogeegoo
Duht, Deeheeh
Oogoogoog Dtee
Oogoogagoo oogoogweee
Fleegoogeegoo, fleegow
Go go mah mah mefs sufh yeah...
René
Noobie
*
Posts: 31


WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #83 on: August 03, 2002, 10:43:48 AM »
Reply with quote

Quote from: nsanden on August 03, 2002, 12:02:58 AM[If you like, make me a test account at your forums, and give me the url to your site and i'll check it out.

I've emailed the information to you..thnx!
Logged

Doe meer met uw chello internet verbinding : Chello Underground :)
Tha Master
Full Member
***
Posts: 201


G€€N G€KL!€R, !K B€N H!€R

vermeulen_yves@hotmail.com WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #84 on: August 20, 2002, 03:23:47 PM »
Reply with quote

hmmmmzzz,
i have an cookie problem with the poll.php file!!!
Logged

« Last Edit: Next Week at 23:59:59 pm by Tha Master »
_________________________________________________________________________________________________________
tha master was here ;)
http://www.forumekes.tk
nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #85 on: August 20, 2002, 08:04:23 PM »
Reply with quote

Quote from: Tha Master on August 20, 2002, 03:23:47 PMhmmmmzzz,
i have an cookie problem with the poll.php file!!!

That's not too helpful... What exactly is the problem
Logged
perrera
Jr. Member
**
Posts: 51


I love YaBB SE!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #86 on: August 20, 2002, 08:11:49 PM »
Reply with quote

The poll always display the results as a guest...
Logged
koen
Noobie
*
Posts: 9


doctor-me!

ICQ - 27306460neok82@Hotmail.com
Re:[BETA] YaBB Poll v0.1 Released
« Reply #87 on: September 30, 2002, 06:14:05 PM »
Reply with quote

Quote from: René on August 02, 2002, 09:23:31 PMI really like this mod but I've some problems with it.

I have an index.shtml and placed the following lines in it:
<!--#include virtual="/yabb/SSI.php" -->
<!--#include virtual="poll.php" -->

Ok, it shows the poll, so I login, now I can vote.
The problem is that when I vote, it show's the results but it didn't register my vote.
When I vote on the forum, it works fine (and also shows up on index.shtml)

Any idea's?

I've got the same problems here -->  you guys already found out what the problem is? (btw, cool addon for the forum! :D )
Logged
Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[BETA] YaBB Poll v0.1 Released
« Reply #88 on: October 01, 2002, 06:30:42 PM »
Reply with quote

lol I thought I was the only one with this problem ;)
Logged

nsanden
Jr. Member
**
Posts: 58


I'm a llama!

Re:[BETA] YaBB Poll v0.1 Released
« Reply #89 on: October 08, 2002, 06:56:48 PM »
Reply with quote

My apologies for being away.

If your having problems similiar to Nossie, or Rene try the following:

open poll.php and go to line 172.

should read:

echo "<form action=$PHP_SELF method=post style=\"FONT-FAMILY: $font_face; FONT-SIZE: $font_size\">";
change to

echo "<form action=poll.php method=post style=\"FONT-FAMILY: $font_face; FONT-SIZE: $font_size\">";
---------------------------------------------------------------------

This should fix the problem.
« Last Edit: October 08, 2002, 07:55:03 PM by nsanden » Logged
Pages: 1 ... 4 5 [6] 7 8 ... 10 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [BETA] YaBB Poll v0.1 Released « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.025 seconds with 20 queries.