PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   Few Things Important for Migrating to VBAG (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/117647-few-things-important-migrating-vbag.html)

iphoto February 20th, 2005 05:11 AM

Few Things Important for Migrating to VBAG
 
Okay, I am currently playing with VBAG and looks quite interesting :) Here are few things, which I would like to do before I migrate my images to VBAG

1.New/Random Images at the Top: Currently, new images are shown below Category Table, would like them to be at the top

2.Link to User Gallery in My Stuff: Would like to add a link to users gallery in "My Stuff" drop down so user can easily go to his/her gallery, displaying all his/her images

3. Statistics at the bottom of page

4. Statistics on VBA CMS page:
I searched but could not get easy instructions on how to do this

5. Daily Upload limit/usergrpup: Would need daily upload limit per usergroup, the most important :D

I think thats it for now, will add when I find somehting more. These are minimum things required for migrating to VBAG, so any quick help will be great :D

rbl February 20th, 2005 05:41 AM

Re: Few Things Important for Migrating to VBAG
 
1 - Simple. Edit the gallery index page template and move it there
2 - Simple. Edit the gallery navbar to add a link to that menu. An if conditional to check if the user browsing the page is a member or a unregistered visitor is advised so that is doesn't display a link to non-members.
3 - On the bottom if every page?
4 - I believe I have seen a thread explaining how to do it in the gallery hacks & mods subforum.
5 - Brian has given me the code to implement it on my site. How many usergroups you need to limit?

Quote:

so any quick help will be great
Why the hurry? Are you going somewhere? =)

ConqSoft February 20th, 2005 07:55 AM

Re: Few Things Important for Migrating to VBAG
 
2) I posted a very simple hack to add this.

iphoto February 20th, 2005 07:57 AM

Re: Few Things Important for Migrating to VBAG
 
Quote:

Originally Posted by ConqSoft
2) I posted a very simple hack to add this.

thanks, I found it later, and installed it. Working great :D
but other stuff, cant find anything :confused:

Brian February 20th, 2005 08:59 AM

Re: Few Things Important for Migrating to VBAG
 
1). You would just need to edit the 'ADV_GALLERY' template and move the stats wherever you would like them.
2). You've found. :)
3). As rbl said, are you talking about the bottom of every page, or what exactly?
4). I'll see if I can post a hack for this in a minute.
5). This should do the trick...

Look in your upload.php file for this code:
Code:

Content visible to verified customers only.
Right above it, add something like this:
Code:

Content visible to verified customers only.
Change the usergroupids and limits in the switch() statement to match your needs.

iphoto February 20th, 2005 09:47 AM

Re: Few Things Important for Migrating to VBAG
 
Quote:

Originally Posted by Brian
1). You would just need to edit the 'ADV_GALLERY' template and move the stats wherever you would like them.
2). You've found. :)
3). As rbl said, are you talking about the bottom of every page, or what exactly?
4). I'll see if I can post a hack for this in a minute.
5). This should do the trick...

thats cool :) I think I should be ready for migration, two more question,
1. will after migration, PP will still be up and running ?
2. I checked the thread, where for new hack, I have to open a ticket for migration, is that correct? it wont take much time, I have just 500+ images :D

Lets me know pl

ConqSoft February 20th, 2005 09:48 AM

Re: Few Things Important for Migrating to VBAG
 
Yes, you can run PP and vBa Gallery at the same time. I did it for a while, until I had Gallery ready.

iphoto February 20th, 2005 09:56 AM

Re: Few Things Important for Migrating to VBAG
 
thanks, conqsoft :)

I am still little confused about usergroup limits, do I need to change "Case" No. to Usergroup ID or do I need to place usergroupid number in "usergrouupid" :confused: , sorry for dumb question, but I am not a programmer by profession :(

Brian February 20th, 2005 11:38 AM

Re: Few Things Important for Migrating to VBAG
 
The numbers in the case part would be the usergroupids, then the $ilimit part just below each would be the limit for that usergroup.

iphoto February 22nd, 2005 01:25 PM

Re: Few Things Important for Migrating to VBAG
 
Brian,

Seems I did some mess up or something is wrong somewhere, users have reported that they can upload only one image perday. Is it something to with :

if ($icount['count'] >= 1)
{
eval(print_standard_error('Sorry, but you are only allowed to upload a maximum of ' . $ilimit . ' images per day.', 0));

Code:

Content visible to verified customers only.

Brian February 22nd, 2005 01:39 PM

Re: Few Things Important for Migrating to VBAG
 
Crap, sorry about that. Change the 1 to $ilimit and that should fix the problem.

iphoto February 22nd, 2005 03:36 PM

Re: Few Things Important for Migrating to VBAG
 
Quote:

Originally Posted by Brian
Crap, sorry about that. Change the 1 to $ilimit and that should fix the problem.

Thanks Brian, just one more question, if I set default as "0" (zero) will it mean no upload permission or unlimited upload. (In photopost zero gives unlimited :D)

What I want to do is: I will have two groups, one default "Registered Users" Group and a "Level 1" group. I will set limit of 3 for "Level 1" and default as Zero. Does this means, newly registered user will not have access to upload image unless he is promoted to "Level 1"

cheers...:)

rbl February 22nd, 2005 07:22 PM

Re: Few Things Important for Migrating to VBAG
 
No no no. Don't go that way! Don't think permissions around this script. This is only about numbers.

Permissions to upload should be set in Gallery's usergroup permission system and not here, because some functions depend on that value.
When you allow a usergroup to upload, that usergroup has no limits for the number pictures they can upload per day.
What you should do with this script is set the upload limit value only for the usergroups that have permission to upload. All others should be ignored. That's why I asked you "how many usergroups you need to limit?" when I replied you before.

So if you have the default usergroups + "level 1", and from all the usergroups with permissions you only want to limit "level 1" you should use the scipt this way:
Code:

Content visible to verified customers only.
If you don't want Registered Users (or any other group) to upload, edit their usergroups permissions.

iphoto February 23rd, 2005 12:27 AM

Re: Few Things Important for Migrating to VBAG
 
Quote:

Originally Posted by rbl
No no no. Don't go that way! Don't think permissions around this script. This is only about numbers.

If you don't want Registered Users (or any other group) to upload, edit their usergroups permissions.

aah! thats an easy one...I think I still have an hangover of PP :D


All times are GMT -5. The time now is 08:29 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97