Navigation

Pligg Support

Hi all,
I doing a custom module to show a message alert to certain users, but I have due with how manage and access to users tables.

I have made a tpl inside in my module and I want to check if the user logged has a value in his profile. Could someone help me with that?

I have some thing like this:


{php}
global $db,$my_base_url,$my_pligg_base;
$userid = $current_user->user_id;
{/php}

some text to show certain user manage with one IF



Hey i was wondering if it was possible to manually sticky/feature items at the top of the home page. Is there a module do this? I want to have "editor's picks" at the top, so people can easily see what i think is the best content.
Freshly installed Pligg 2.0.2 and no changes on any settings and template.

All submissions were not successful because it will show: "URL is invalid or blocked:" even though URLs are valid.

Even if Submit > Validate URL is set to false, it still shows that error.
** YANKIDANK, the code is also on the forked **

If votes to publish, in the admin voting section is set to 0, or auto…
… vote in the submit section is set to true and votes to publish, in the admin voting section is set to 1, then the story will automatically appear in the published page. Users may get confused with that when the new.php page loads and it's empty,

To fix it, I added and IF statement to load either the new stories page or the index page (published).

Open \submit.php

Go to LINE 565 or look for this:
header("Location: " . getmyurl('new'));

And replace it with this block of code:

if ( (int) votes_to_publish == 0 || ((int) votes_to_publish == 1 && auto_vote == true)) {
header("Location: " . getmyurl('root'));
}else{
header("Location: " . getmyurl('new'));
}
Hi there, i have notice that in 2.02 when the option for multiple category is false then the Category is looking like this. please see the attachment
http://pligg.com/support/modules/upload/attachments/Screen%20Shot%202014-08-18%20at%207.31.51%20pm.png

http://pligg.com/support/modules/upload/attachments/Screen%20Shot%202014-08-18%20at%207.32.01%20pm.png
After upgrading to 2.02, i am always getting this error while submitting url
URL is invalid or blocked
*** ATTENTION YANKIDANK ***

USERS, please do not change you files before it is signaled by YankiDank.

This is a fix to \libs\settings-from-db.php

There is a major bug in the foreach and IF statements that is incorrectly assigning smarty variable to some of the results pulled from the config table.

the changes are reflected on my forked pligg at

https://github.com/redwinefireplace/pligg-cms/commit/ce4027357c6d4b4eef2d756c89e719b74269436f

I tried to push it to your github and I don't know if it went through or not.

See the links for details on how the process was and a comparison table of all the 87 variables before and after the fix.

http://mymonalisasmile.com/upload/fix-to-settings-from-db.html

http://mymonalisasmile.com/upload/fix-to-settings-from-db-variables.html
I'm just about at the point where I need a second webserver and was thinking about off loading the databases to Google Cloud instead which could buy me a year or two right there.

Any experiences, advice or thoughts???? My other option would be a vps server with just MySQL running or a server here at the house running over Comcast (not great).
Is there any way to use the URL as the Story Title without user intervention?
I was modifying the submit.php code but got "lost"
Could someone point me in the right direction?
Eventually the template should be modified too, right?
Hello,
I've first installed Pligg on a server with Apache and PHP 5.3.x and went everything fine.
Now I have a fresh install on a different server, with nginx and PHP 5.4.x
I run the troubleshooter.php and everything is fine, however, on submitting URL all the addresses that I've tried are rejected (URL is invalid or blocked).
And yes, I've set to False the option "Validate URL" so this is weird.
The only way to make it work is disabling the "isLink" regex check on submit.php
Could someone tell me what's wrong please?
Thanks.

UPDATE: Fixed, please close this, or delete please. Thanks