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 - lemccoy

Pages: 1 2 3 [4] 5 6 7
46
Mods & Plugins (Requests & Discussions) / Re: Random Pic on Myspace
« on: August 31, 2006, 05:31:06 PM »
Thanks V@no - I have that installed and it works fine:

www.drunkisland.com/random.php

My question is if anyone knows how to get it to work in MySpace?  I tried this:

Code: [Select]
<?php
 
include("http://www.drunkisland.com/random.php");
?>

but nothing comes up, and I tried Iframe but myspace doesn't like that.  Any ideas?

47
how much are you offering?   8)

48
Mods & Plugins (Requests & Discussions) / Random Pic on Myspace
« on: August 30, 2006, 03:46:29 PM »
Does anyone know how to put a random thumbnail from the gallery on myspace?  I could make a page and IFrame it I think, but I was wondering if there was a snippet of code that would allow to show a random thumbnail that links to the main site?

49
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: August 20, 2006, 07:39:32 AM »
There is a file attached to a message somewhere.

I can get it to work but I can't get posts to delete.  I am an admin and it doesn't work through the control panel or the pop-up window.  Any ideas?

Thanks

50
Can anyone create one of those autoinstall files for the database entry?  I haven't figured out how to do this manually yet and am work which I can't install software.

Thanks!

51
I removed the google ads and don't have a problem.  Doesn't really matter - i only made 12 cents (USD) in a week! but Damn, googlebot sure spiders the site a lot...

52
ok it only seems to do it when googlebot is online, and then it only switches you to the googlebot user when you load the details.php page.  I looked through the code and have no reference to the google ads at all.  this is so weird!

53
from sessions.php:

Code: [Select]
// mod GoogleBot
$site_sess = new Session();
$robots = array(
"FAST-WebCrawler" => "searchbot",
"Gulliver" => "searchbot",
"AltaVista" => "searchbot",
"Alexibot" => "searchbot",
"asterias" => "searchbot",
"BackDoorBot" => "searchbot",
"Black.Hole" => "searchbot",
"BlowFish" => "searchbot",
"BotALot" => "searchbot",
"NPBot" => "searchbot",
"Pompos" => "searchbot",
"Scooter" => "searchbot",
"SiteSnagger" => "searchbot",
"Slurp" => "searchbot",
"WebmasterWorldForumBot" => "searchbot",
"zyborg" => "searchbot",
"Google" => "googlebot",
"msnbot" => "searchbot",
"ZACATEK_CZ_BOT" => "searchbot",
"EARTHCOM.info" => "searchbot",
"sherlock" => "searchbot",
"Holmes" => "searchbot",
"ia_archiver" => "searchbot",
"lwp-trivial" => "searchbot",
"appie" => "searchbot",
"Scooter" => "searchbot",
"Gigabot" => "searchbot",
"Wget" => "searchbot",
"jyxobot" => "searchbot",
"Xenu Link Sleuth" => "searchbot",
"SeznamBot" => "searchbot",
);
foreach($robots as $key => $val) {
  if(!$_SERVER['HTTP_USER_AGENT'] || preg_match("/".$key."/i", $_SERVER['HTTP_USER_AGENT'])) {
    $site_sess->login($val, "12345");
    $user_bot = 1;
    break;
  }
}

and I only put the coding in the tempates:
example, details.html
Code: [Select]
{if user_loggedout}
               
<script type="text/javascript"><!--
google_ad_client = "pub-4867234679565045";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "F0F8FF";
google_color_link = "0000FF";
google_color_bg = "F0F8FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
{endif user_loggedout}

54
Mods & Plugins (Releases & Support) / Re: Small Credit "System" "MOD"
« on: June 01, 2006, 04:11:54 PM »
I can get this to show up when I log in and access credits.php:

Code: [Select]
Credits from DrunkIslander   
You have written 2 comments and get:  10 Points

--------------------------------------------------------------------------------
 
You have uploaded 225 Images and get for that: 1125 Points

--------------------------------------------------------------------------------
 
Your images are rated with an average of 5.00, and for this you get: 42 Points 

--------------------------------------------------------------------------------
 
Your Points: 1177 
Your have uploaded images:  225

What I would like to do is to be able to have something so when member_profile.html is used it shows the "Your Points".  How do I call credits.php from other users if not logged in?  I want to be able to see this:


Code: [Select]
Control Panel
--------------------------------------------------------------------------------
User profile of: DrunkIslander Display all images added by DrunkIslander
Join Date: 09.23.2005
Last Activity: 06.01.2006 10:09
Comments: Show user's comments (2 total)
Email: admin at drunkisland.com
Homepage: http://www.drunkisland.com
ICQ: 
Total Points:  1177
 

I added the total points: 1177 in there - how do I have that show up in the member_profile.html?  I have tried the {totalpoints} and the post by Trez.

55
but I never changed my sessions.php file for adding the adsense code?  just the templates?

56
Hi

I added google ads to my template, and now it seems like people are being automatically logged in as googlebot and able to send messages as googlebot?  It seems when I log out from being googlebot it still logs me in after a few page clicks? 

What is going on? 

Thanks

57
Is it possible to set (change) permissions for all categories (at once) ?

This is a great mod, easy install and works great.  I also am interested in above. 

58
Works like a champ...thanks V@no!

59
I have just disabled all checks within rotate.php  :?

The links will only showup for admins.  Hopefully no-one is mean enough to find out which site it is and rotate all my pictures!  (BTW I have never posted the link here!)  :lol:

Oh, and I needed to have the

Code: [Select]
//define variables and includes (should be no need to change these)
or else I got errors.

60
ok in rotate.php I have edited the checking permissions area to come up with:

Code: [Select]
<?
// change to suit your needs eg: define (JPG_QUALITY, '75'); gives a more compressed
// image file, but a poorer quality, when re-writing the jpeg after rotation.

define('JPG_QUALITY', '100');


//define variables and includes (should be no need to change these)
define('ROOT_PATH', './../');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();


//is there an image_id and does the user have permission to delete the image? If not, send them back to the index page!
//if (!$image_id || ($config['user_delete_image'] != 1)) {
//    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
//    exit;
//  }
 
//if ok so far, read the image info from the database 
  $sql = "SELECT image_id, cat_id, user_id, image_name, image_media_file, image_thumb_file
          FROM ".IMAGES_TABLE."
          WHERE image_id = $image_id";
         
  $image_row = $site_db->query_firstrow($sql);

//is the user a registered user and the 'owner' of the image? If not, send them back to the index page!
//  if (!$image_row || $image_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $image_row['user_id'])) {
//    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
//     exit;
//  }

//is the user an administrator? If not, send them back to the index page!
    if ($user_info['user_id'] != ADMIN) {
    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
     exit;
    }
 
//so far so good, more variables need defining...

this isn't working however either.  Basically I only want admins to be able to rotate the pictures.  I can deal with the templates/links.  Thanks Oracle!

Pages: 1 2 3 [4] 5 6 7