View Full Version : Adding a More VISIBLE "Submit Link" BUTTON to the Browselinks Header
NashChristian
04-27-2010, 07:37 AM
Hello Brian,
I've really been trying to promote my Links Directory lately, but received a complaint from one of my members, saying that it is hard to figure out how to SUBMIT a new link. I know that the text link is in the top left corner, but typically I figure that if someone is reporting a problem, probably others will also experience it.
As a solution, I'd like to add a "Submit Link" (or in my case "Add Listing") BUTTON to the header of the Browselinks pages. I would like to create a standard "submit" type button, to match the others you use (for moderation tools, etc...) like below:
http://nashvillechristian.com/images/support/vba_submit_button.jpg
I would like to locate it in one of the two locations outlined below:
http://nashvillechristian.com/images/support/vba_submit_button2.jpg
Could you possibly direct me on how to accomplish this?
Thanks for the help!
:D Jeff
Brian
04-27-2010, 08:34 AM
You would just need to add this code to your 'ADV_LINKS_BROWSELINKS' template wherever you would like the button to appear.
<a href="addlink.php?{vb:raw session.sessionurl}c={vb:raw catid}" rel="nofollow" class="newcontent_textcontrol">+ Add Listing</a>
NashChristian
04-28-2010, 03:19 AM
Ok, for the benefit of anyone else who may be interested in doing this, here is what I did:
In the 'ADV_LINKS_BROWSELINKS' template, on approximately line 45, directly below this line:
<div id="above_threadlist" class="above_threadlist">
I ADDED this line:
<div align="left"><a href="addlink.php?{vb:raw session.sessionurl}c={vb:raw catid}" rel="nofollow" class="newcontent_textcontrol">+ Add Listing</a></div>
And here is how it looks:
http://nashvillechristian.com/images/support/vba_submit_button3.jpg
I'm really happy with the placement and how it looks!
I'm only having one small problem, the catid isn't pathing correctly. When I use your "submit link" in the navbar, I get the correct category pre-loaded into the submit link form, however when I use this new submit button, I always get the SAME category pre-loaded, no matter which category I'm viewing when I hit the button. The category I'm getting pre-loaded using the submit button, is actually my very FINAL category in my links directory, "other businesses". I'm assuming there must be some small syntax error, because other than that, this is working great!
Any ideas Brian?
Thanks again for your help!
This is just what I wanted!
:D Jeff
NashChristian
04-28-2010, 03:41 AM
I THOUGHT that I figured this out. I looked at your navbar template and saw that you use c={vb:raw catid_int} instead of c={vb:raw catid} So I tried that instead.
However, then when I tried to use the submit button, it stripped the category and made the url look like this /addlink.php?c=
Hungh! Ideas??? :confused:
Brian
04-28-2010, 11:13 AM
{vb:raw catid} *should* give you the correct catid. $catid_int isn't globalized within the other templates, so that's why I didn't try to stick with that... Try {vb:raw catinfo.catid} instead and see if that gives you any better results.
armchairproduct
10-01-2010, 01:29 PM
Ok, for the benefit of anyone else who may be interested in doing this, here is what I did:
In the 'ADV_LINKS_BROWSELINKS' template, on approximately line 45, directly below this line:
<div id="above_threadlist" class="above_threadlist">
I ADDED this line:
<div align="left"><a href="addlink.php?{vb:raw session.sessionurl}c={vb:raw catid}" rel="nofollow" class="newcontent_textcontrol">+ Add Listing</a></div>
And here is how it looks:
http://nashvillechristian.com/images/support/vba_submit_button3.jpg
I'm really happy with the placement and how it looks!
I'm only having one small problem, the catid isn't pathing correctly. When I use your "submit link" in the navbar, I get the correct category pre-loaded into the submit link form, however when I use this new submit button, I always get the SAME category pre-loaded, no matter which category I'm viewing when I hit the button. The category I'm getting pre-loaded using the submit button, is actually my very FINAL category in my links directory, "other businesses". I'm assuming there must be some small syntax error, because other than that, this is working great!
Any ideas Brian?
Thanks again for your help!
This is just what I wanted!
:D Jeff
This is really useful. Any idea how to add this to my links homepage please?
Brian
10-04-2010, 12:32 PM
You should just need to add that same code to your 'ADV_LINKS' template.
armchairproduct
10-04-2010, 01:55 PM
You should just need to add that same code to your 'ADV_LINKS' template.
Thanks Brian. For anyone else interested; I placed it directly below {vb:raw linksnav}.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.