![]() |
Perfect hack :)
|
Is there a way to control for how long the cookie is set?
For example, after 24 hrs guest can view the threads again... |
Quote:
|
Thanks for your answer....
Another question, then... As it is right now, how long does the cookie lasts? |
nice Mod, thx!
|
installed on 3.8 and agree with the comment above
Quote:
|
thanks for that
|
Quote:
|
hi - yes everything is set correctly i believe - first message should be called at 5 and then lockout message at 10 - i made different messages just to be sure i was not doing something stupid
i never see the first message and can post 10 posts - i am then locked out all settings are set to yes apart from database setting its a board i am setting up - i got another admin to check as a guest and he reported the same - he only saw the lock out message EDIT hang on - i may be lying - i had entered the variable but have done a fair bit of over writing and it may have got deleted - i will report back EDIT 2 - my apologies - i had deleted the line that was needed - i had never tested it when i first installed it so had never seen the message it works fine - thanks again |
Perfect.
|
hi friend nice mod
can you update your mod and add the possibility to limited other usergroups and for specified forum? thanks |
Neither of those functions is on my current to do list but you could easily modify the code yourself to add them until such time as I do a major upgrade.
|
ok thanks please let me know when you update your mod and add these features
Ivan |
Quote:
|
I've used this mod for a long time, and it works perfect.
But now I would like to be able to tell the users either to get registered or to come back in XX time.. but I cant figure out what is the current cookie expiration time? |
The system uses a default vbulletin cookie and honestly I'm not sure how long it lasts. If you want to check the cookie's expiration just view the site as a guest and open the cookie through your browser. Sorry I can't be of more help.
|
Woow, that helped, I was able to find the cookie from the website, but it was set to expire a year from today.
Could you point me as of how ti find that VB default cookie to see if the expiration can be modified? Thanks... |
That's a simple enough task.
Inside the xml file for this plugin find the line: Code:
vbsetcookie('userlgv', $lgv); Code:
vbsetcookie('userlgv', $lgv, time()+86400*5); I didn't test this so I suggest you manually check that the cookie worked right. |
Thank you VERY much.. I will try and post the results.
|
Please do as I'll be using your experience to make a little update so this is easier for others in the future.
|
I love this man, thank you!
|
Hi Ted,
After update your awesome mod, I am receiving this error by email, please help me friend. Code:
Database error in vBulletin 3.7.6: |
Looks like the table requested isn't using your prefix properly. You'll need to remove the addon and manually create the table.
|
Mmmm sorry!!
But how could I do that dear Ted ? |
So only to confirm...
I have to remove the mod, right ?? then install it again the mod and then manually creat the table ???? Is not an easy way to remove the actual table that is not working because the prefix and then add the other one with the correct prefix ??? to don´t uninstall the mod. If yes only tell me the instruction to remove the actual SQL table and then to add the correct one (I will put the correct prefix). Thanx!! |
The table you should have is prefix_lgv where prefix_ is your forum's prefix.
|
Ok but could you tell me Ted the SQL instructions ?? one exactly to manually remove the table that your mod installed and is not working for me and the other one to manually add the correct table. My prefix is this one "vb" without the "_", exaplame: vbaccess
|
The install script will create the table. Just be sure the mysql user in vb has access and run it after uninstalling.
|
Great plugin!
Just one question. How can I change the box color that surrounds the text? I would like to use a different color (like the Sitepoint Sponsors box @ forum index) but don't know how to do it. Thanks |
Mmmm ok I will uninstall it and add the table manually, could you help me giving me the SQL instruction to add the table in MyphpAdmin ?? my prefix is "vb" without the _ only is vb
So the correct table of your forum have to be vblgv I think so. |
Arrggg so sorry if I am stupid, Maybe something easy is that I can give you access to my forum to fix all this quickly, just tell me ok.
Or tell me exactly waht I have to do and I will do it, but I don?t know SQL instructions :( , so you have to give me the exactly SQL instructions to do this. |
Quote:
Before I can help with your SQL queries I need to know if any tables with the name lgv exit in your database. |
Quote:
|
Hi Ted,
No I don´t have any table with the name lgv in my DB. So that is the problem, the mod didn´t install(create) the table in my DB, right ? |
That's correct. The installer was unable to create the table.
If you comment out the line $db->reporterror = 0; by adding a // before it and reinstall you will be told what the error is. Alternatively you can opt not to use the database logging tool and all these issues with not be a factor. |
Hi again Ted,
Tell me exactly what I have to do, I have to edit the product file ?? and then reinstall it ?? Is not more easy add the table manually ?? |
Or no problem tell me where and what I have to do and I will do it to see the problem and to have your mod working like a charm.
|
Ted,
I checked the prodict file, and the part that you told me to add a // alrady have it in the file that I downloaded here, check it: Code:
// check if mod is already installed |
That is not an error.
|
What error? this one?
Code:
Database error in vBulletin 3.7.6: Code:
If you comment out the line $db->reporterror = 0; by adding a // before it and reinstall you will be told what the error is. http://img178.imageshack.us/img178/4...ltables.th.jpg Thanx Ted!! |
All times are GMT. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|