The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php script for usergroup promotion = users gets banned !!!
The cron jobs stopped working since a long time on my vbulletin 3.6.4 forum for an unknown reason, so i wrote my own script to promote the users to specific usergroups depending on their post number
Quote:
So: 1) What's wrong with my script and why does the users gets banned ? 2) How can i unban all users that were banned for no reason ? - In ModCP it doesn't show any information about the bans : ban date not available, "banned by" not available, lift date not available - In vb_userban table, only the users banned by my moderators are shown. The users that got banned automatically after being promoted by my php script are NOT displayed in this table. --------------- Added [DATE]1377018829[/DATE] at [TIME]1377018829[/TIME] --------------- Apparently lots of my users are saying that they are on the banlist but they can still post on the forum so i'm not sure what's happenning... Anyway, how can i promote users to a new group through a php script without putting the users on the banlist ? |
#2
|
|||
|
|||
I think it would be better suited for the "coding forum" can a moderator move it to this forum ?
|
#3
|
||||
|
||||
I bet'cha this is because for some reason, you might have inadvertently removed the cronimage from the footer. That will make cron stop working, every time.
|
#4
|
||||
|
||||
Why wouldn't you fix the scheduled tasks instead of writing a custom script to only do one of the many things they do?
|
#5
|
|||
|
|||
Quote:
Quote:
https://vborg.vbsupport.ru/showthread.php?t=299778 |
#6
|
||||
|
||||
|
#7
|
|||
|
|||
It's here. http://www.pirate-punk.net/index.php
Code:
<img src="http://www.pirate-punk.net/cron.php?&rand=920528" alt="" width="1" height="1" border="0" /> This is the first thing i tried when i had problems with crons. I gave up and i wrote my own scripts. Just need to figure why the users end up being banned (and how to remove the users that were mass banned because of this script) I'm sure there is a vbulletin file i can include in my php script to use a vb function to promote my users to a new group without having them end up on the banlist. |
#8
|
||||
|
||||
cron.php?&rand=920528" alt="" width="1" height="1" border="0"
In the code, the bolded should not be there. This breaks the string. And what you should actually have is a hook called, like this: HTML Code:
<!-- Do not remove $cronimage or your scheduled tasks will cease to function --> $cronimage <!-- Do not remove $cronimage or your scheduled tasks will cease to function --> |
#9
|
|||
|
|||
The code in my footer is
Code:
$cronimage |
#10
|
|||
|
|||
What kind of trouble shooting have you done so far to see why the cron isnt running?
Is this a dedicate/vps server? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|