PDA

View Full Version : Photopost Button in Postbit


tomjinx1
05-14-2003, 07:14 PM
Here is something that would be pretty cool...

I would like to have a hack that would check the users against the photopost database and see who has posted an image. If it finds a user, then it adds a gallery button where ever it is stated in the postbit templates. Currently I would like to see it beneath the edit quote buttons, on my site anyways...

If this hack can be done I would appreciate it.

Tom

u2page
05-14-2003, 08:54 PM
There is a hack over at photopost.com that does this exactly - I have it installed on my forum and it works great.

cinq
05-15-2003, 12:09 AM
I believe that hack at PP.com places the button for ALL users , even if he/she hasnt uploaded any pics.

What i would like would be to only show that icon in the postbit IF the user has uploaded pics.

gengar003
05-15-2003, 12:58 AM
Well, here's my 2 bits. I have no Idea how to do this, but you'd probably want to SQL - query the photopost DB row for User, and have an if statement, saying, if their name shows up:


eval( '$ppbutton = "' . gettemplate( 'showthread_ppbutt' ) . '";' );


and if not, then set it to nothing.... *wishes someone would explain vbulletin mySQL queriying syntax to him*

That'd be on the showthread page, and you'd put $ppbutton in the postbit template...

Alien
05-16-2003, 04:51 PM
I'd love to see this made as well, I only want to see the icon if a user actually has uploaded photos.

Anyone want to take this up?

-Jason

tomjinx1
05-16-2003, 06:16 PM
Ok, how about this then...

How about a link in the Admin CP that you can click on and it would look in the Photopost database and look at the Photos table under the userid field.

Then it would look in users profile at a field called Gallery. This field would be a yes or no radio type button and would be hidden from the users.

It would then compare the userid's in the photopost database to the Gallery field. If the Gallery field is set to yes, then it will skip that member. If the Gallery field is set to no, then it would continue.

After it has checked everyone, it would list the userid's sorta like when you do a search of the users.

Beside each user would be a check box. Above and below the list of users would be a select all users check box. This would allow the admin to check the users that he wants or select all users.

Once the user has been checked or select all is checked, then the php/script file would change the Gallery field in each users profile in the database to yes.

If there are some users that the admin leaves the check box blank on then it does nothing to that users profile gallery field.

then the only thing that would have to be done is create an image that says Gallery and link it to something like this....

http://www.nurv-clan.com/photopost/showgallery.php?cat=500&ppuser=$userid&thumb=1

Something like that....

The other way to do it is just have it that it checks the userid for vb with the userid field under the photos table and if there is a match, then display so and so template. Then have a new template called member_gallery and called that template anywhere you want to call it from.

Alien
05-17-2003, 07:14 PM
That seems alot more complicated than what I'd want, but whatever people wanna make I'll end up using I guess. :D

Alien
05-20-2003, 05:06 PM
Someone must be interested in taking this on. :D

<nudge> lol...

dOuBLe_J
06-10-2003, 08:13 PM
Hello all.

Does anyone know if this hack was ever created? Not the static hack, but the one that would only show the icon in postbit IF the user has previously uploaded a pic?

I'm SOOOOO interested in getting something like this implemented.

Also, does anyone know if you can SKIN photopost? I know you can edit colors, etc. using stylesheets but I have a GREAT skin going on my site (www.eq-boss.com/index.php) and I would simply love it if it was possible to integrate with Photopost. Look at the difference --> www.eq-boss/photopost/index.php

*sigh*

Finally, is there a mod out there that can take either random pics from the all galleries or take "most popular" pics (based on pic ratings) and send it to a custom block on the vbPortal homepage?

Thanks. You guys are the best.

- jj -

WebMasterAJ
06-25-2003, 04:05 PM
I would like to see this as well :cool:

dotagious
06-26-2003, 09:04 PM
If someone can help me make my portal/forums fixed width, I will supply them with this hack.

tomjinx1
06-26-2003, 10:46 PM
give me a link to your site so I can see what style you are using and I will tell you where and what to change....

tomjinx1
06-26-2003, 10:51 PM
you want to do something like this here? http://www.nurv-clan.com

cinq
06-27-2003, 12:38 AM
Today at 07:04 AM dotagious said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=413111#post413111)
If someone can help me make my portal/forums fixed width, I will supply them with this hack.

Is this not set in your vb admincp under Styles ?
Table width ?

tomjinx1
06-27-2003, 02:12 AM
Dotagious - If you using VBPortal you will have to change 2 files...

The first one is the P_themeheader. You will want to change the width of the first table statement to whatever size you want. It should look like this :

<table border="0" width="100%" cellpadding="0" cellspacing="0">

Change that to :

<table border="0" width="whatever size" cellpadding="0" cellspacing="0">

The next template to edit is the P_themeleftcolumn

You will want to change the first table statement. It should look something like this:

<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="5" cellspacing="0" border="0">

Change it to :

<table bgcolor="{pagebgcolor}" width="Whatever size" cellpadding="5" cellspacing="0" border="0">


That should do it... if you change the 100% to 800 and the tablewidth one to 800 you should get something that looks like my site at http://www.nurv-clan.com

Now, let's talk about the Photopost button... :)

Tom

Smoothie
06-27-2003, 02:32 AM
Today at 06:04 PM dotagious said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=413111#post413111)
If someone can help me make my portal/forums fixed width, I will supply them with this hack.
You are soooo not allowed to re-distribute that hack buddy........

Smoothie
06-27-2003, 02:33 AM
Today at 11:12 PM tomjinx1 said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=413215#post413215)
Dotagious - If you using VBPortal you will have to change 2 files...

The first one is the P_themeheader. You will want to change the width of the first table statement to whatever size you want. It should look like this :

<table border="0" width="100%" cellpadding="0" cellspacing="0">

Change that to :

<table border="0" width="whatever size" cellpadding="0" cellspacing="0">

The next template to edit is the P_themeleftcolumn

You will want to change the first table statement. It should look something like this:

<table bgcolor="#FFFFFF" width="100%" cellpadding="5" cellspacing="0" border="0">

Change it to :

<table bgcolor="#FFFFFF" width="Whatever size" cellpadding="5" cellspacing="0" border="0">


That should do it... if you change the 100% to 800 and the tablewidth one to 800 you should get something that looks like my site at http://www.nurv-clan.com

Now, let's talk about the Photopost button... :)

Tom Lets not. dotagious is not allowed to re-distrubute that hack to anyone, for any circumstances.

Smoothie
06-27-2003, 02:34 AM
Dotagious, what seems to be your freakin problem?

Smoothie
06-27-2003, 02:35 AM
Moderators, I suggest you close this thread, before its get way out of control....

Smoothie
06-27-2003, 02:38 AM
If someone can help me make my portal/forums fixed width, I will supply them with this hack.


No you won't. What's the matter, can't fix the width yourself?

tomjinx1
06-27-2003, 03:01 AM
Let me ask you a question Smoothie....

If he post it here where only paying members can download it, is it wrong?

If he post a link to it somewhere where it's here somewhere on the forums or on the photopost forums (which has the same downloading requirements) is it wrong?

Not trying to start anything, but as long as he doesn't directly send it to someone, then is it against the rules?

I'm not being an ass, just wondering...

I do understand what your saying though or trying to say...

Tom

dotagious
06-30-2003, 01:25 AM
1. I haven't checked this thread since my post was made, until now. So sorry if I haven't had the chance to answer each person directly. Please refer to #2 regarding my former problem.

2. I've fixed my portal (fixed width) problem with a little (free) help from Weeman, for which I am grateful. Thanks to those who intended to help me in this thread regardless.

3. Smoothie, the modification for which I'm referencing has NOTHING to do with the one purchased from you. In fact, I haven't used that hack since I've had it.... and don't even know if it works with the latest versions of vbulletin and photopost. If you have fawking problem with my affairs, you can contact me in private. Otherwise, mind your own god damn business and find something better to do with your time.