PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   General Discussion (http://www.photopost.com/forum/general-discussion/)
-   -   vb4 postbit link (http://www.photopost.com/forum/general-discussion/142395-vb4-postbit-link.html)

wampforum March 16th, 2010 12:21 PM

vb4 postbit link
 
is there a way to add a link in a users postbit to their photopost gallery? I found a mod but it wont accept the url in the correct way (ie i can link to the main photopost gallery but not a specific users.
mysite.com/photopost?u= (mod adds user id number on the end
but to get to a specific photopost gallery requires a url like this:
mysite.com/photopost/u1-username.html am i correct?
the only other info i can find is for older vbulletin versions!

Chuck S March 16th, 2010 12:59 PM

yes the variables depend on what vb defines them as like I know in the old vb3 it was I think $postbit[userid] and $postbit[username] maybe. So whatever link you place in your postbit will work as long as you create the url filled in where the 1 is to the users userid in vb and username is the username.

I dont know what the variables are for vb4 never have hacked anything in the postbit personally

Chuck S March 16th, 2010 01:02 PM

try

Code:

Content visible to verified customers only.

wampforum March 16th, 2010 01:47 PM

cheers chuck but it throws this up:
The requested URL /photopost/u{vb:raw post.userid}-{vb:raw post.username}.html1 was not found on this server.

changing it to this:
http://www.mysite.com/photopost/?u={vb:raw%20post.userid}-{vb:raw%20post.username}.html1

takes me to the main gallery page but not the personal one.

maybe its just something that aint do-able!

Chuck S March 16th, 2010 02:16 PM

what I posted should work if we are talking about the postbit template

Chuck S March 16th, 2010 02:25 PM

like I said I have never tried it but its all about using the proper code in the proper template for instance it is memberinfo not post and the template is memberinfo_dropdown

Code:

Content visible to verified customers only.

wampforum March 16th, 2010 02:57 PM

no it was the postbit I wanted (though the member info ones handy too - still cant get that one to work though bringing up the same error

Chuck S March 16th, 2010 04:19 PM

I think you misunderstand here

Left view

The memberinfo_dropdown template is the one that drops down on the postbit in vb4

;) it indeed works as I posted

wampforum March 17th, 2010 03:34 AM

ah right I gotcha. I wanted to add the link in the section below where each users reputation,avatar,post count etc sit.
Anyway no matter where I put it I cant get this damn link to work - its beyond me!
thanks for trying anyway Chuck

Chuck S March 17th, 2010 04:54 AM

well as long as you use the proper variables it should work

http://www.yoursite.com/photopost/u{vb:raw post.userid}-{vb:raw post.username}.html

that is the proper format for the postbit template as posted

wampforum March 17th, 2010 06:05 AM

yeah I imagine its me not understanding it right to be honest.
no matter how i put this link:
http://www.yoursite.com/photopost/u{vb:raw post.userid}-{vb:raw post.username}.html
its bringing up the error - am i just changing the url and nothing else?

Chuck S March 17th, 2010 07:56 AM

works fine in postbit

Code:

Content visible to verified customers only.

wampforum March 17th, 2010 09:44 AM

ah thats got it working. now just need to get it in the right place
thanks Chuck for sticking with me!!

Chuck S March 17th, 2010 11:26 AM

yeah I mean the variables are pretty absolute which is why I did not know why yours did not work

wampforum March 17th, 2010 11:38 AM

to be honest probably me putting it in the wrong place or something!

Chuck S March 17th, 2010 11:48 AM

well enjoy


All times are GMT -5. The time now is 07:07 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