Jim R Posted May 6, 2009 Share Posted May 6, 2009 I'm using a jquery modal window (Thickbox or another one). What I'd like to do with my PHP code is when the link clicked on, the content that shows up is just the content portion of my Wiki page--the part that actually is "edited". No menus. No navigation. Just the part I or a user would type. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 You're going to have to create that PHP page manually to have all those stuff out and just the part you want. After that, have the URL link to that PHP page with the class thickbox. Quote Link to comment Share on other sites More sharing options...
Jim R Posted May 6, 2009 Author Share Posted May 6, 2009 Any more detailed advice on how to go about that? I've tweaked a lot of SSI stuff on my SMF forum, so I can picture in my mind what you're saying, but SMF sets up most of that code. I just tinker with it. What direction should I go in regards to my Wiki? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 I have no idea TBH because I never used it. I would just create it from scratch by querying the DB or whatever. Quote Link to comment Share on other sites More sharing options...
Jim R Posted May 6, 2009 Author Share Posted May 6, 2009 Here is where the newbie in me comes out. I'm a basketball coach with an English degree, so terminology is very important to me. In theory, am I looking for something that "parses" the information I want? (as opposed to extracts it) Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 6, 2009 Share Posted May 6, 2009 What do you want to parse? And also how? Quote Link to comment Share on other sites More sharing options...
Jim R Posted May 7, 2009 Author Share Posted May 7, 2009 Ken, this is related to the topic you've responded to of mine over on the MySQL board. Here is the code: echo '<tr> <td>'. $line['deviation'] . '</td> <td><a href="/wiki/index.php?title=' . $line['nameFirst'] . '_' . $line['nameLast'] .'" class="thickbox" >'. $line['nameFirst'] . ' ' . $line['nameLast'] . '</a></td> </tr>';} In each instance, I'm creating a link with a Thickbox class, and I'd like to display the content of the Wiki page in the Thickbox rather than go to the page. However, I just want the user generated content from the Wiki page. Perhaps, the link instead links to a URL which parses and echoes content from the Wiki page. Just not sure how to do that. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Well I know that each Wikipedia page has titles that you can traverse using the # sign followed by the name of the section. So if you have a section called 'User Content', then add '#User_Content' at the end of the URL. I assume Wikimedia are all the same? Quote Link to comment Share on other sites More sharing options...
Jim R Posted May 7, 2009 Author Share Posted May 7, 2009 Yes, but that just takes you to the page. I just want to extract or parse the user edited information. The Wiki URL looks like this actually pathway/index.php?title=wordA_wordB_wordC. In my case it's nameFirst_nameLast, which takes the user to a page with essentially a profile on that player, edited by the users. I'd like to just use the profile part. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 I have no idea TBH because I never used it. I would just create it from scratch by querying the DB or whatever. ^ I would just create it from scratch. Sorry, I don't know any other way, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.