View Full Version : Linking from one page to the link submit page of a category
5websearch
12-02-2005, 07:47 PM
Instead of finding a category by scrolling down a very long category list at (old test link removed) it now just displays the ID of the category (ex: 0).
What I want to do is to use the Link Manager ((old test link removed)) I’m developing to make it easy for the person who wants to add a link to use the Link Manager to find the way to the right category and click the “Add Link†button.
When he click this button he comes to the “submit link†page. But the “submit link†text is linking to submit.php and not to the category
(ex:(old test link removed))
So how do I link the “Add Link†button to a “submit link†site for one category?
Why I request this is because my directory will have more than 3000 categories or more.
And I want to make an easy link submitting process for users of the directory.
5websearch
12-02-2005, 11:52 PM
Just to explain this on a better way.
At 5websearch.com, you got this url:
(old test link removed)
How to get this url to be:
(old test link removed).. and so on?
Mod_rewrite is on.
David
12-03-2005, 02:50 AM
Hi, I saw your question, but I don't know a quick answer. I'm sure it can be done, but I'm not convinced there is a quick and simple method to do this, but I could be wrong.
Ap0s7le
12-03-2005, 06:46 AM
Unless you have another reason to do it that way I'd do it in this manner.
1. Pass the CatID to the submit page.
2. Use a hidden element to store it.
3. Use a recursion function to get the Title URL for display.
That should do it fine.
If you need someone to do that for you, contact me and we'll discuss any details.
-Casey
5websearch
12-03-2005, 05:04 PM
Yes, I understand the "picture" about what you wrote Ap0s7le.
What I don't understand is how this is going to look like with tags and so on.
If we take this "add link" button at (old test link removed) with these tags:
Content visible to registered users only. , what should the a href be?
The submit.tpl got a hidden field that only shows the category ID:
Content visible to registered users only.So how are we now going to get this work? When the visitors hits the "add link", button, he comes to the submit link page for that category.
Give me a respond on this to show me how you thing the code view for this will be. I'm not an expert on this code stuff :wink:
Ap0s7le
12-03-2005, 07:54 PM
The href would be
/submit.php?CATID=1234
(CATID being whatever you want to call it.)
Is that what you were wanting?
-Casey
5websearch
12-03-2005, 11:25 PM
Content visible to registered users only.
Maybe, but it did not work.
Try this: (old test link removed)
The page category is 0, and not 8, since 8 is the category ID for "Arts".
But, yes, I request that kind of function. Then it could be very easy to link to a submit page for category 8, 12, 5000 or whatever :)
I hope we can find out something.
As i know the function of submit.php, it's checking what category ID the visitor did visit before he did hit the "Submit Link" link at the top bar of the page. So there must be something to tell the sumbmit.php to look for a refering page, like (old test link removed)
So here is the picture:
1. A visitor comes to the page (old test link removed).
2. He clicks the "Add Link" button.
3. He comes to the submit.php page (Link submit page)
4. The category_id is number 8 - Arts.
What need to be changed in what type of (.tpl) (.php) dokument, and what need to be added to the HTML document "index.html" at
(old test link removed).
That's all what I request to get this Link Manager work 100%.
If that's not possible, then I have to find out something else.
Ap0s7le
12-04-2005, 04:00 AM
I've done this many times.
Edit top_bar.tpl to include the ID in the submit.php link
Edit submit.php to take the link and grab the URL path from the DB so we can post it and make it pretty.
Hold the ID in a hidden field.
Here's one, I did the front end and now I'm starting to work on the Admin.
(old test link removed)
Here is another.
http://www.inhisgrasp.org/
-Casey
5websearch
12-04-2005, 05:30 AM
HAHA!!! :lol: Yes man! Thanks a lot! Now it works.
In my browser i just past a link like this one:
(old test link removed)
And you can see by yourself what did happen. The link did send me to the submit.php for category_ID 8.
I did not have to edit top_bar.tpl at all 8)
Thanks A LOT man! This is just wonderful… :D
Ap0s7le
12-04-2005, 07:53 AM
I don't have my recursion function here, and god knows I'm not going to rewrite it but once I get home I'll send that over to you, and you'll be able to list the Cat path.
Best of luck
-Casey
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.