Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - uksoreeyes

Pages: 1 2 3 4 [5] 6
61
So is anyone going to fix this mod? It's almost their. Also how can you upload cat icons to existing categories? The upload form is only present when I click on 'Add Category'

62
hi I hate to be the awkward person here but I have applied the phpbb integration mod, How can I get this mod to work with phpbb?

Carl

63
Installation, Update & Configuration / Rate form autojump
« on: April 10, 2003, 01:02:38 PM »
Perfect, Thank you

64
Installation, Update & Configuration / Rate form autojump
« on: April 09, 2003, 06:51:11 PM »
Hi I made the changes and now when I select a number from the rate form, nothing happens.

Code: [Select]
<form method="post" action="{self}">
 <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="bottom">
              <select name="rating" onchange="if (this.options[this.selectedIndex].value != 0){ forms['imagesperpage'].submit() }" class="select" />
                <option value="">--</option>
                <option value="5">5</option>
                <option value="4">4</option>
                <option value="3">3</option>
                <option value="2">2</option>
                <option value="1">1</option>
              </select>
            </td>
<td width="3"></td>
            <td>
              <input type="hidden" name="action" value="rateimage" />
              <input type="hidden" name="id" value="{image_id}" />
            </td>
<td width="10"></td>
          </tr>
        </table>
</form>


Did I do something wrong?

65
Installation, Update & Configuration / Rate form autojump
« on: April 08, 2003, 09:37:55 PM »
Does anyone know how to make the rate form on the details page an autojump menu like the category select box?

Thanks in advance

carl

66
Installation, Update & Configuration / Category Date Added
« on: April 06, 2003, 10:05:20 PM »
is it possible to display beside a category, when the category was created? this would be very useful

67
Installation, Update & Configuration / Main Category
« on: April 06, 2003, 10:04:05 PM »
sorted it thanks

68
Installation, Update & Configuration / Main Category
« on: April 06, 2003, 06:10:48 PM »
is there anyway of seeing these categories on another page apart from the index.php. i.e. if I was to create a page called gallery.html then access it via: www.mydomain.com/4images/index.php?template=gallery

69
Installation, Update & Configuration / Main Category
« on: April 06, 2003, 05:06:08 PM »
I was wondering if there is a way to access the main category?

To access my first category listed under the main category I type this:

Quote
http://www.mydomain.com/4images/categories.php?cat_id=1


Can I access the main category by typing something similar? like this:

Quote
http://www.mydomain.com/4images/categories.php?cat_id=0


help would be great

Thanks Carl

70
Installation, Update & Configuration / user_online_list
« on: March 27, 2003, 11:35:24 PM »
Thanks I looked in their but must have missed it  :D

71
Installation, Update & Configuration / user_online_list
« on: March 27, 2003, 11:13:53 PM »
Hi, is there any way I get get the user online list to display the results under eachother eg:

user_1
user_2
user_3
user_4

rather than beside eachother like this:

user_1, user_2, user_3, user_4

Thanks in advance

Carl

72
Installation, Update & Configuration / loggedin_user_name
« on: March 24, 2003, 07:09:53 AM »
success, lol I feel so dumb, I had that
Code: [Select]
define('ROOT_PATH', './');
bit in before but always got internal server error, so I took it out and got  that security violation, when I put it back like you said I got another internal server error. So what I done is looked at my lightbox.php and seen that code above and then realised that I had my shout.php in the wrong folder, so I moved it into the 4images main directory and it worked.

Now that script is finally done and secure I can get on and finish the rest of my site and then add all my images  :D

If anyone would like to see how my site is getting along you can do so here: http://www.myleeneklass.com/4images/index.php

Thanks alot v@no you have been a massive help

Carl

73
Installation, Update & Configuration / loggedin_user_name
« on: March 24, 2003, 06:41:41 AM »
Oh god its just one problem after another lol

Part of me wishes he hadnt taken on this project yet the other is some what excited.

These are the changes I made to my script:

Code: [Select]
<?php

if &#40;$shout&#41;&#123; 

include&#40;'4images/global.php'&#41;; 
require&#40;'4images/includes/sessions.php'&#41;;

if &#40;$message == !""&#41;&#123;
$ip $REMOTE_ADDR;
$info $HTTP_USER_AGENT;
$add_date=time &#40;void&#41;;
$message stripslashes&#40;$message&#41;;
$message htmlspecialchars&#40;$message&#41;;
$user_name $user_info['user_name'&#93;; 
$result=MYSQL_QUERY&#40;"INSERT INTO shoutbox &#40;id,name,message,timestamp,ip,browser,block&#41;".
"VALUES &#40;'NULL', '$user_name', '$message', '$add_date', '$ip', '$info', '$block'&#41;"&#41;;  
echo "<META http-equiv='refresh' content='0;URL=/4images/index.php?template=shout'>"
&
#125;
else &#123;
echo "<META http-equiv='refresh' content='0;URL=/4images/index.php?template=shout'>"
&
#125;
&#125;
?>


Now I am getting an error saying
Quote
Security violation


Can you explain what I am doing wrong?

Regards Carl

74
Installation, Update & Configuration / loggedin_user_name
« on: March 24, 2003, 06:08:01 AM »
Hi, Thanks for the quick reply.

Will that code still work even though I have applied the phpbb intergration?

75
Installation, Update & Configuration / loggedin_user_name
« on: March 24, 2003, 03:13:42 AM »
Hi I am currently intergrating 4images with a shoutbox I coded. The shoutbox uses php and mysql.

As a way to stop just anyone posting in my shoutbox I made it so users had to register with 4images before they could post anything. In other words I have made use of the {if user_loggedin} etc so is the user is not logged in they get a message telling them to login. If they are logged in they are presented with the form in which they can freely post messages.

I have this working great, they do not have to put in their name as what ever name they are logged in as, appears above their messages which makes it easy to track and ban troublemakers.

The bit I am haveing trouble with is inserting the logged_in_username into my mysql database. at the moment I have a hidden form field:

Code: [Select]
<input type='hidden' name='name' class="news" size='20' value='{loggedin_user_name}'>

This works fine and inserts the username correctly. But I find it a bit of a security risk as someone could easily 'view source' edit and change the name inside the 'value' bit. what I would like to do is get rid of that hidden field and have the username taken from the 4images database.

Here is my shoutbox code:



Code: [Select]
<?php
if &#40;$shout&#41;&#123; 
if &#40;$name == !"" && $message == !""&#41;&#123;
$ip $REMOTE_ADDR;
$info $HTTP_USER_AGENT;
$add_date=time &#40;void&#41;;
$name stripslashes&#40;$name&#41;;
$name htmlspecialchars&#40;$name&#41;;
$message stripslashes&#40;$message&#41;;
$message htmlspecialchars&#40;$message&#41;;
mysql_connect&#40;"username etc"&#41;; 
mysql_select_db&#40;"shout"&#41;; 
$result=MYSQL_QUERY&#40;"INSERT INTO shouts &#40;id,name,message,timestamp,ip,browser,block&#41;".
"VALUES &#40;'NULL', '$name', '$message', '$add_date', '$ip', '$info', '$block'&#41;"&#41;;  
echo "<META http-equiv='refresh' content='0;URL=/4images/index.php?template=shout'>"
&
#125;
else &#123;
echo "<META http-equiv='refresh' content='0;URL=/4images/index.php?template=shout'>"
&
#125;
&#125;
?>


as you see the $name bit relates to that hidden form field I showed you earliar. Is there any way I can replace that $name bit with the actual logged in username data taken straight from mysql? my shoutbox resides on the same mysql tabe as 4images does so there is no need to connect twice.

Please help me here as I am very stuck and this will finish my site off nicely. I am not very good at explaining things so if theres something you don't understand, just ask me and I'll tell you.

Thanks in advance

Carl

Pages: 1 2 3 4 [5] 6