Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-05-2006, 05:18 PM
cbolts's Avatar
Senior Member
 
Join Date: 02-15-04
Location: Victoria, Canada
Posts: 294
iTrader: 0 / 0%
Help!

Anyone out there using or know of pligg? Its a digg.com like script. and I am trying to modify it for a different type of site but I can not figure out how allow anonymous posting.

The download site is www.pligg.com

Anyone have skills in this department?

If this is not possible or no one knows how, is there a script or code out there for anonymous posting and voting? the highest voted will go to a front page?

Any help is appreciated.

Casey
 
Reply With Quote
  #2 (permalink)  
Old 07-05-2006, 10:14 PM
helloworld's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 06-29-06
Posts: 71
iTrader: 0 / 0%
In the file submit.php

Line 13 you will see this php include,
Code:
include(mnminclude.'html1.php');
On line 21 you will see a call to a function,
Code:
force_authentication();
That function is defined in libs/html1.php on line 80

It looks like this:

Code:
function force_authentication() { global $current_user; if(!$current_user->authenticated) { //echo '<div class="instruction"><h2>'._('ERROR: you must login').'. <a href="login.php">'._('Login').'</a>.</h2></div>'."\n"; header("Location: " . getmyurl('login', $_SERVER['REQUEST_URI'])); die; } return true; }
What is happening is when submit.php is loaded it starts running the code and sees that there is a call to the function "force_authentication"

It finds the function that was included in submit.php via "include(mnminclude.'html1.php')" and runs it.

That function tells it your not logged in.

Solution???

Try this change line 21 in submit.php
Code:
from this: force_authentication(); To this: ///force_authentication();///
I hope this helps I know nothing about the script, I just downloaded it looked at a couple files and thats about it.

So no gaurentees if anything you atleast have an idea of how it works.
Let me know if it works out for you!

By you allowing anonymous posting your probably going to get a-lot of spam.

Excuse my grammer is terrible tonight, suffering from a July 4th hang over lol
__________________
Website Value Calculator
 
Reply With Quote
  #3 (permalink)  
Old 07-05-2006, 10:56 PM
cbolts's Avatar
Senior Member
 
Join Date: 02-15-04
Location: Victoria, Canada
Posts: 294
iTrader: 0 / 0%
ahhh I love you! I've been bitching and moaning about this for the last week. One more quick question, do you see a way to not have the url submit page? so it just bypasses to the story title and story submit page? you can take a look at my site onlytell(dot)us to see what im talkin about.
 
Reply With Quote
  #4 (permalink)  
Old 07-06-2006, 01:53 AM
helloworld's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 06-29-06
Posts: 71
iTrader: 0 / 0%
What your trying to do isn't practical.

That whole system is based on unique users.

The problem is the posts are associated with the user, editing, storing in the database, votes etc....

In the end you would have rewritten the whole thing!

Now you could create an anonymous username and password in the database, and set a cookie in the visitors browser, but then anyone can edit posts etc.....

Anyway if you did open up the board without user authentication I guarentee it will be full of ****** ads within days of acomplishing any search engine rank.

Good luck
__________________
Website Value Calculator

Last edited by helloworld; 07-06-2006 at 01:57 AM.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:43 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.