Author |
Message |
|
Same issue here
|
 |
|
Now I got the INCLUDE_ONCE()S working by going through the template.class.php and adding some code to it.
My question now is:
How do I get the Counter and the Advanced Poll working along with the guestbook using the INCLUDE_ONCE()S in the template of the header and footer?
Cause for the Counter line:
<?php
include ("./counter/config.inc.php");
if ($COUNT_CFG['use_db']) {
include ("./counter/mysql.class.php");
}
include ("./counter/counter.class.php");
$counter = new dcounter();
$visits = $counter->show_counter(); /* Returns an associative array */
?>
That seems to conflict each other with the Adv. Guestbook!
As far as having the Poll on it with line:
echo $php_poll->poll_process(4);
That seems to conflish with Adv. Guestbook as well!
Anyone can help?
All help greatly appreciated!
Thank you.
Sincerely,
Dr. DK
|
 |
|
Now I was using include_once () for the PHP file. But when I added that into the guestbook, then the include doesn't work. If I use the use_db for other script then it created a problem withing the Guestbook file.
How do I get around this? Still to use include_once() and maybe even use the other coutner script with use_db script in the php?!?!
Any replys welcome!
Thanks.
Sincerely,
Dr. DK
|
 |
|
Well I got it... Just going to edit header, body, and footer. For each image just add ../ and it's going to work. Create the tables and all that and bam. Just wanted to find out if there was any easier way out of this, like enter the dir_url and each of the images will have it. But this works as well...
Thanks!
Sincerely,
Dr. DK
|
 |
|
Hello all again.
Here's my problem:
In Advanced Guestbook: I want it when the link is clicked the Guestbook to be in on the right side and the whole page to actually stay the way it is. Now I tryed to do that with Templates but it didn't work out.
If I use PHP to just include the page in it, would that work?
I just want to get it to for like for example on here you have the FORUM link, once clicked the whole template stays just the forum is displayed on here!!!
Thank you.
Sincerely,
Dr. DK
|
 |
|
I mean:
(Like the option field "NAME" have a picture of a head.
Or the Location have a globe)
Hope you get it. Cause i really i need help...
I'd like to add another field, which I'v already done.
But I dont know how to display it in the guestbook.
You can enter something in the addentry page, but it's
not shown.
I've tried to edit the preview_body or something.
My question: How to show an entered value in the guestbook, and can you remove the text that say Location: (stands over the place).
Thanks
|
 |
|
Not sure what you mean by an extra option field with an image. can you be more specific. Do you mean like an avatar
|
 |
|
When I've added the following text to my page? then what?
It just displays the script text.
Not the poll. Or should i save the index file in php????
Thanks
<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
--------------------------------------------------------------------------------
<?php
/* path */
$poll_path = "/home/joshi/public_html/db";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();
$php_poll = new poll();
/* the first poll */
echo $php_poll->poll_process(1);
/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);
/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}
?>
|
 |
|
I've been asking several times.
Using different names in afraidnes of stupidity.
Anyway, my problem:
An extra option field in the guestbook with an image...?
How?
Read trough all old topics, but there are no ones.
Thanks!
Jash2
|
 |
|
it needs to be included at the very start of your webpage before anything else
eg:
<?php
include_once "/blah/blah/blah/yourdomain.com/poll/db/poll_cookie.php";
?>
<html>
<head>
and so on
|
 |
|
im going to assume you all know what an ftp programme (such as cute ftp) is. and that you know how to set it up to get acces to upload files..
only writing this, because some people here didnt seem to know how to chmod/give permissions to their files.
right click on the file, and click on properties/chmod
then, either enter the permission manually, (eg=0777 or 666) via the input box
or tick off the appropiate checkboxes.
script readme files will let you know what permissions to give.
|
 |
|
whoops, forget the mySQL stuff, looks like it stores as text files.
BUT, however... where can I change the field length of the input fields for the poll question and the poll answers???
|
 |
|
Where can I change the length of the input fields. IE: The question right now can only be so many characters. Where can I change that in the code and what table/field will need to be changed in mySQL?
|
 |
|
The IP-address of voters is detected, but not stored in the database. So if i disable cookies on my browser, i can vote for infinite times. I want to give only one chance to vote to particular IP-address. How Can I do it?
I have looked through the include/*.php but find nothing wrong
|
 |
|
u can easily remove the icq and the aim option in the advancew guestbook, but can u add a optional field.
Like:
Name:
Email:
Location:
Phone number:
MSN:
Yahoo!:
Age:
?????
Thanks
Inder
|
 |
|