![]() |
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! |
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 |
try Code: Content visible to verified customers only. |
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! |
what I posted should work if we are talking about the postbit template |
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. |
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 |
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 |
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 |
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 |
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? |
works fine in postbit Code: Content visible to verified customers only. |
ah thats got it working. now just need to get it in the right place thanks Chuck for sticking with me!! |
yeah I mean the variables are pretty absolute which is why I did not know why yours did not work |
to be honest probably me putting it in the wrong place or something! |
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