Go Back   Netpond ™ > Webmaster Forums and Resources > Blogging Forum
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Blogging Forum Blogging Discussion Forum, links and tools.

Megasite
Dating Dating Live Sex Cams
Reply
 
LinkBack Thread Tools Display Modes
Old 01-26-2008, 06:33 PM   #81 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
Pam:

When I wrote it, I prob used the wrong variable, or a depreciated variable. If I recall correctly, I had a problem with something similar to this on an unrelated plugin. Let me do some x-digging (ha), and see what I come up with.

@X-Digg: when I complete the debugging, I'll send you on a copy.
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 06:40 PM   #82 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
What's weird is it's fine on 6 or 8 blogs, but the last 5 I tried to add it to gave the error. All use the same version of WP and all pretty much have the same plugins, too!
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-26-2008, 06:42 PM   #83 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
Quote:
Originally Posted by pam View Post
Code:
/**The actual admin page**/
function x_digg_run() {
  global $user_level, $x_digg_user_threshold, $x_digg_slug;
  if($x_digg_user_threshold > $user_level){
    die('You aren\'t allowed to do that, dave.');
  }
  /*
Okay, Pam. I'm debuging this by the seat of my pants, to see if we can get it working for you more quickly. under the global statement, you are going to want to add: get_currentuserinfo()

Like so:
Code:
/**The actual admin page**/
function x_digg_run() {
  global $user_level, $x_digg_user_threshold, $x_digg_slug;
  get_currentuserinfo(); //add this in to see if it works.
  if($x_digg_user_threshold > $user_level){
    die('You aren\'t allowed to do that, dave.');
  }
Let me know if this works...
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 06:59 PM   #84 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
Still says I can't do it, Dave ....
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-26-2008, 07:03 PM   #85 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
okay, for debugging purposes, select one of the blogs that isn't working.

find:
PHP Code:
die('You aren\'t allowed to do that, dave.'); 
replace:
PHP Code:
echo "Your current user level is insufficient to do that. Current User Level: $user_level";
die; 
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 07:05 PM   #86 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
Bingo

Your current user level is insufficient to do that. Current User Level: 0

Which makes no sense since I'm the admin and the only one with access to these blogs
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-26-2008, 07:05 PM   #87 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
Crud, I forgot to ask: are you using WP-MU installs?
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 07:29 PM   #88 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
I'm obviously being a nonce and missing something obvious. The below code checks to see if the $userdata object has been created, then prints out its properties. If you are comfortable, run that and paste the results in here.

PHP Code:
global $userdata$user_level$x_digg_user_threshold$x_digg_slug;
  
get_currentuserinfo();
  if( 
is_object($userdata) ){
    
$test_ar = array();
    
$test_ar get_object_vars($userdata);
    
print_r($test_ar);
  }else{
    echo 
"The function isn't initializing the object for some reason.";
  }
  die;
  
/*if($x_digg_user_threshold > $user_level){
    echo "Your current user level is insufficient to do that. Current User Level: $user_level";
    die; 
  }*/ 
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 07:32 PM   #89 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
If the above code actually prints something a string of weird variables, then replace the old code with the following:

PHP Code:
function x_digg_run() {
  global 
$userdata$x_digg_user_threshold$x_digg_slug;
  
get_currentuserinfo();
  if(
$x_digg_user_threshold $userdata->user_level){
    echo 
"Your current user level is insufficient to do that. Current User Level: " $userdata->user_level;
    die; 
  } 
I hate Hiesenbugs, and global variables. Global variables always lead to messes. If this doesn't work, we will start corresponding via PM to get this working for you.
__________________
The Netpond News #32 is LIVE!

Last edited by Lucky Cappuccino : 01-26-2008 at 07:37 PM. Reason: correcting bugs, gdmit!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-26-2008, 08:39 PM   #90 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
This plugin has been deactivated because your changes resulted in a fatal error.
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-26-2008, 08:43 PM   #91 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
So I tried the 2nd one

Plugin could not be activated because it triggered a fatal error.
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-27-2008, 11:59 AM   #92 (permalink)
Lucky Cappuccino
I'd rather be Lucky than Good
 
Lucky Cappuccino's Avatar
 
Join Date: May 2006
Posts: 706
Points: 1,413
Send a message via ICQ to Lucky Cappuccino
Okay, we fixed Pam's problems.

For some reason, her original admin account did not properly set the user_level field in the object (and I assume, the db). By simply saving the record again (I believe she changed her password), the system righted itself and the plugin worked for her correctly. This issue may have occurred because of a hiccup during her WordPress installation. If you experience this sort of problem, go to your WordPress admin panel -> Users, click the "edit" link associated with the account, and click the "Update User" button to update the record. If that does not work for you, please reply in this thread so someone can solve your issue.

I will be sending an updated plugin which addresses code readability to x-digg in a few days. If any of you have additional issues, please post them here so they can be addressed.
__________________
The Netpond News #32 is LIVE!
Lucky Cappuccino is offline   Reply With Quote Send a private message to Lucky Cappuccino
Old 01-27-2008, 04:22 PM   #93 (permalink)
pam
Those with the biggest egos are insecure
 
pam's Avatar
 
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,150
Points: 1,196
Thanks to Lucky for figuring out what this was ... as soon as I logged in with a new password, everything was fine. Weird error, weirder than being called Dave
__________________
Quote:
Originally Posted by Baldbastard
If your making money from USA based sponsors, then play by USA rules.


pam is offline   Reply With Quote Send a private message to pam
Old 01-28-2008, 10:35 PM   #94 (permalink)
X-Digg
X-Digg.com Support Staff
 
X-Digg's Avatar
 
Join Date: Dec 2007
Location: Quebec, Canada
Posts: 172
Points: 660
Lucky -
Thank you for the assistance!! Lucky is actually the creator of the X-Vote Plugin for X-Digg - so I knew he would be the one to figure the issues out! Pam I am very happy you are now underway!

X-Digg will have a major server and site update on Wed. 1/30/08 from 7am to 10am EST - we will be closing submissions during this time. Hopefully we will not be down the full time, but there may be intermittent issues. It will also be posted on the site header of the site as a reminder - starting tomorrow. This maintenance will allow for more features, and even more continual growth for X-Digg.

Also I will be making a separate post tomorrow, I have obtained several discounted text link ads, and a few banner spots for adult webmasters. so Stay Tuned on the board tomorrow.

Jerry Martine - Support Staff
X-DIGG.COM ENTERPRISES INC.
__________________
X-Digg is online now   Reply With Quote Send a private message to X-Digg
Old 01-29-2008, 12:38 PM   #95 (permalink)
Hentaikid
Yep, I made this animation myself
 
Hentaikid's Avatar
 
Join Date: Apr 2004
Posts: 9,232
Points: 155
Quote:
Originally Posted by Pam
weirder than being called Dave
I guess you never watched 2001 then...
Hentaikid is online now   Reply With Quote Send a private message to Hentaikid
Old 03-02-2008, 01:50 PM   #96 (permalink)
X-Digg
X-Digg.com Support Staff
 
X-Digg's Avatar
 
Join Date: Dec 2007
Location: Quebec, Canada
Posts: 172
Points: 660
Hello All -

Just an update we have improved the "Related Links" tabs on the individual stories pages, so links to stories with similar tags will also appear (giving your stories/links an even better chance of being read). We also have made some updates and code improvement in the recent weeks, to increase load times, and increase site security.

If you have not heard, we also purchased a small TGP site, and converted it to a multi-site, adding a Photo Gallery module to X-Digg. While we are still working out some bugs we are hoping to have the Photo Gallery / TGP module completed within the next few weeks.

The requested improvements that many of you have been requesting such as a image upload button and the ability to add up to 4 (back) links on your individual profile pages, are also in the final stages of completion.

Jerry Martine - Support Staff
X-DIGG.COM ENTERPRISES INC.
__________________
X-Digg is online now   Reply With Quote Send a private message to X-Digg
Old 03-02-2008, 03:15 PM   #97 (permalink)
msacras
mmmmm coffee
 
msacras's Avatar
 
Join Date: Jun 2005
Posts: 1,179
Points: 1,710
Don't know how I missed this thread - but I thought I would give the plugin a go on one of my blogs.
__________________

RSS Builders
RSS FEEDS & HOSTED BLOGS
msacras is online now   Reply With Quote Send a private message to msacras
Old 03-02-2008, 07:12 PM   #98 (permalink)
X-Digg
X-Digg.com Support Staff
 
X-Digg's Avatar
 
Join Date: Dec 2007
Location: Quebec, Canada
Posts: 172
Points: 660
Quote:
Originally Posted by msacras View Post
Don't know how I missed this thread - but I thought I would give the plugin a go on one of my blogs.
msacras -

Great, and if you need any assistance, please just let me know, I am always happy to assist.

Jerry Martine - Support Staff
X-DIGG.COM ENTERPRISES INC.
__________________
X-Digg is online now   Reply With Quote Send a private message to X-Digg
Old 03-11-2008, 09:26 AM   #99 (permalink)
X-Digg
X-Digg.com Support Staff
 
X-Digg's Avatar
 
Join Date: Dec 2007
Location: Quebec, Canada
Posts: 172
Points: 660
$10 TEXT ADS on X-DIGG

If anyone is interested in Text Link Ads (30 Day Ads for $10 payable by PayPal or Epassporte) on X-Digg please contact me via PM or via the CONTACT US PAGE on X-Digg.

The right side text links will hold 5 text links, and we will only be taking in 20 text link orders.

Jerry Martine - Support Staff
X-DIGG.COM ENTERPRISES INC.
__________________
X-Digg is online now   Reply With Quote Send a private message to X-Digg
Old 03-30-2008, 04:20 PM   #100 (permalink)
TopJock
Lets all help Meat find a wife
 
Join Date: Jan 2008
Posts: 230
Points: 460
Dose X-Dig get any gay traffic?

-TJ
__________________
From the sticky keyboard of Top Jock Jock Hangout, Adult Gay Jock Blog
An Infraction in legal sense (minor offense, minor violation, petty offense, or frequently citation, sometimes used as synonymous with violation, regulatory offense, welfare offense, or contravention) is a "petty" violation of the law less serious than a misdemeanor.
TopJock is offline   Reply With Quote Send a private message to TopJock
Reply


Thread Tools
Display Modes