![]() |
Show post externally.
Hi people how are you all doing.
Well im currently trying to find a way to show a "Particular" post , (latest post for example) to show on an external script. this is what i have, but im not really sure if this is the right way to do it: PHP Code:
any help is greatly appreciated. thank youall. |
Just querying the database and fetching it would be easier - maybe just a simple plugin added to showpost.php?
|
you can see a version here : www.vbdesigners.com , but as you can see its not working quite right , i just want to be able to quickly preview a last post in thickbox.
|
What is wrong with what you have on that page right now? You just don't like the display?
|
HI Lynne , well , when you click on quick VIEW , i want it to be able to open a lightbox , just to view latest reply , and that's it , i tried it with the default vb file which is showpost.php , but when click on reply ,it goes to site.com/showthread.php instead of site.com/forum/showthread.php
thanks. |
I don't see Quick View or a reply box. But, you can easily fix the path in the form (from showthread.php to /forum/showthread.php).
|
where would i do that?
When you go to my site , you can click the tab FORUM DISCUSSION , there you will see an image to the right that will say quickview , if you click on it , it will take you to forums/showpost.php?id=etc ... but , if i do an AJAX of that , and iclick on any of the links on it , it will link all to the root. Regards |
You would make the change in the template. To find the template - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
|
yeah, ok , i tried a different approach and it seem to have worked :D , which is great!.
Here is what i tried and it yielded a good result. PHP Code:
--------------- Added [DATE]1238356582[/DATE] at [TIME]1238356582[/TIME] --------------- you can now see what i meant, if you go to the site www.vbdesigners.com , click on Forum Discussion and then quickview . :) i think thats neat lol. --------------- Added [DATE]1238357159[/DATE] at [TIME]1238357159[/TIME] --------------- ah another quick one, whats the code to pull out the image if a topic has been updated , ( forum_new vs forum_old ?) in external file Thanks a bunch |
can anyone help me out with my last question ?
Thanks a bunch!. |
What defines if it's been updated? Do you mean the user hasn't read it? Or that it was changed since they were last online? Or since they last read the thread? Or ??? I think you'd have to write some code based on your definition of 'updated' to figure out if it's been updated. (And forum_new and forum_old has to do with whether there is an unread post in any of the 'below' forums, it isn't thread specific.)
|
Hi Lynne , yes, pretty much that , if a user hasnt read it , new post has been made , just for a Certain topic ( my 5 latest post ) .
i think that would be very helpful.. Thank you ! |
i have been trying , i cant find my solution , any coders ? im sure it easy.
Regards |
whoa tetra bump lol, can anyone help me out here , had almost forgotten.
Regards |
Lynne is correct, you need to define your variables on who, what, when, etc... the item gets updated. There are standards that must be followed.
As for the preview, it looks good, I do not see anything wrong with it. Can you clarify on how you would like it updated by 'image' for us? |
I posted a query which may be useful in another thread about this same topic - Adding 'New' next to threadtitle
|
Hi Lynne , you posted :
Quote:
? thanks |
I'm not sure exactly. You'd use the forumdisplay_query hook location to hook into the $threads query and add the field there. But, you'll have to add a JOIN there and I don't like to write those for people.
|
ah lol , any pre-made one you might have somewhere, besides your my friend :D , lol
|
You can look for another mod that does something similar and use their query. I'm sure there is one somewhere.
|
All times are GMT. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|