Results 21 to 40 of 99
-
01-21-2011, 08:43 PM #21
Yeah, we need to get @theking648 in here to take a look. Once we can create a link that will search trip reports per certain user, I'll be able to throw that link below the postcount, under the avatar of each user.
the search string we need to incorporate is prefixid=Trip_Report
For an example of how I got that, check out the url on the Trip Report index dropdown up in the navbar:
Code:http://www.bogley.com/forum/forumdisplay.php?13-Backpacking-amp-Camping&prefixid=Trip_Report
Code:http://www.bogley.com/forum/search.php?do=finduser&userid=333&starteronly=1&contenttype=vBForum_Thread
-
01-21-2011 08:43 PM # ADS
-
01-21-2011, 09:04 PM #22
this shouldn't be two hard to do, may have to write a new piece of code to pull from the data base but not hard.. my only problem is I don't know how the database is set up and which tables the certain data is stored, I'm not familiar with vbulliten's system but probably isn't much different than another site i manage that uses an SMF forum (http://www.wildsurvive.com/outdoor-c...orum/index.php)
it's defiantly possible, and I'm sure I could do it. but I would have to spend quite a bit of time looking at the files an see if there is a php function i can use or if i need to write one, in the case i needed to write one i would need to find out which table in the database they are stored in.
-
01-21-2011, 09:10 PM #23
maybe just modify the search.php form to except a new var, then do a simple if statement to check if the first part of the string contains [trip report] using substr() function.
then just return the results that have the prefix
so the url would have a new var like &startsWith=[trip report]
this will also work for anything then like &startsWith=hiking
however this won't work if the prefix isn't appended to the title, in that case it may be in a different table which will make it a lot easier
-
01-21-2011, 09:28 PM #24however this won't work if the prefix isn't appended to the title, in that case it may be in a different table which will make it a lot easier
Another idea is to have, on the profile page itself, a list (with links) of the top 10 or 20 trip reports by that user, based & sorted on either most replies, or most views, so someone can get a snapshot of the groovy things folks do...
-
01-21-2011, 09:31 PM #25
-
01-22-2011, 09:29 AM #26
It's definitely going to be a search string. We're getting close though.
-
01-22-2011, 10:02 AM #27●Canyoneering 'Canyon Conditions' @ www.candition.com
●Hiking Treks (my younger brother's website): hiking guides @ www.thetrekplanner.com
"He who walks on the edge...will eventually fall."
"There are two ways to die in the desert - dehydration and drowning." -overhearing a Park Ranger at Capitol Reef N.P.
"...the first law of gear-dynamics: gear is like a gas - it will expand to fit the available space." -Wortman, Outside magazine.
"SEND IT, BRO!!"
-
01-22-2011, 10:04 AM #28
-
01-22-2011, 11:03 AM #29
OK, we're getting somewhere. Here is the search string that will bring all of jman's Trip Reports:
http://www.bogley.com/forum/search.php?do=finduser&userid=333&starteronly=1&co ntenttype=vBForum_Post&prefixchoice[]=Trip_Report
and the same code, unlinked:
Code:http://www.bogley.com/forum/search.php?do=finduser&userid=333&starteronly=1&contenttype=vBForum_Post&prefixchoice[]=Trip_Report
Currently, just replace the 333 which is jman's profile number with 6, to get mine.
http://www.bogley.com/forum/search.php?do=finduser&userid=6&starteronly=1&cont enttype=vBForum_Post&prefixchoice[]=Trip_Report
Or, any user's profile number, like CarpeyBiggs' which is 1887
http://www.bogley.com/forum/search.php?do=finduser&userid=1887&starteronly=1&c ontenttype=vBForum_Post&prefixchoice[]=Trip_Report
Plus, if we want a number next to the "My Trip Reports" link on their profile, I'll have to make some sort of a cron job that counts maybe once per day.
-
01-22-2011, 11:16 AM #30
nice job, did you have to write that in or was prefixchoice already available?
-
01-22-2011, 11:20 AM #31
No, all of this stuff is already available, it's just learning the different variables that you can plug into the search string. I had some help over at vbulletin. So instead of &prefixid=Trip_Report as it shows in the Trip Report dropdown menu, it was
&prefixchoice[]=Trip_Report and also changing the vbforum_thread to vbforum_post
-
01-22-2011, 11:26 AM #32
nice work beech! very cool, thanks a lot.
-
01-22-2011, 11:38 AM #33
-
01-22-2011, 11:53 AM #34
well i wouldn't replace it.. just add "trip reports" below "theads"
-
01-22-2011, 12:14 PM #35
Looking at that link sombeech just created - makes me want to post more TRs. Only 9 in the past 4or5 years?? That's pathetic on my part.
Anyways, this is exciting seeing this progress.●Canyoneering 'Canyon Conditions' @ www.candition.com
●Hiking Treks (my younger brother's website): hiking guides @ www.thetrekplanner.com
"He who walks on the edge...will eventually fall."
"There are two ways to die in the desert - dehydration and drowning." -overhearing a Park Ranger at Capitol Reef N.P.
"...the first law of gear-dynamics: gear is like a gas - it will expand to fit the available space." -Wortman, Outside magazine.
"SEND IT, BRO!!"
-
01-22-2011, 12:22 PM #36
- Join Date
- Oct 2005
- Location
- Just a few miles from Zion National Park
- Posts
- 8,456
I know I have posted a bunch, but tried to find them to "like" on FB so I could keep track of them and found very few. This will be an awesome addition!
Thanks Computer Smart People!
-
01-22-2011, 12:47 PM #37
-
01-22-2011, 12:49 PM #38
-
01-22-2011, 12:53 PM #39
- Join Date
- Oct 2005
- Location
- Just a few miles from Zion National Park
- Posts
- 8,456
And I thought you were all just good looks.
Thanks!!!!!!!!!!!!!!!!!!
-
01-22-2011, 01:06 PM #40
One more note, to be honest I don't know how long it will take me to get this on everybody's profile. Time just isn't on my side lately. But if you'd like to put a link to your Trip Reports in your signature, maybe that's a start.
Here's what you can do.
- Find your profile number by viewing your profile page, and it will be in the url.
- Edit your signature by clicking this link: http://www.bogley.com/forum/profile....=editsignature
- Type something like "Check out my Trip Reports"
- Color it, size it however you like
- Highlight that text, and click the hyperlink button, looks like this
- In the popup, paste this code there, and replace the XXXX (located after userid=) with your profile number:
Code:http://www.bogley.com/forum/search.php?do=finduser&userid=XXXX&starteronly=1&contenttype=vBForum_Post&prefixchoice[]=Trip_Report
and here's what it looks like:
Check out my Trip Reports!
Similar Threads
-
While Canyoneering, Climbing or Hiking.....
By tanya in forum CanyoneeringReplies: 16Last Post: 01-29-2011, 10:49 AM -
How would this look on a resume?
By Mtnman1830 in forum General DiscussionReplies: 2Last Post: 07-07-2007, 01:11 PM -
Canyoneering/Hiking/Backpacking Sites Covering Other States?
By Brewhaha in forum Hiking, Scrambling & Peak BaggingReplies: 15Last Post: 03-02-2007, 08:56 AM -
Crews resume search for Mount Hood climbers
By jumar in forum Climbing, Caving & MountaineeringReplies: 6Last Post: 02-21-2007, 09:04 AM -
Moab Hiking/Basic Canyoneering
By icthys in forum Hiking, Scrambling & Peak BaggingReplies: 6Last Post: 02-06-2006, 12:43 PM