The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
Just querying the database and fetching it would be easier - maybe just a simple plugin added to showpost.php?
|
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
What is wrong with what you have on that page right now? You just don't like the display?
|
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
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).
|
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
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.
|
#9
|
||||
|
||||
yeah, ok , i tried a different approach and it seem to have worked , 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 |
#10
|
||||
|
||||
can anyone help me out with my last question ?
Thanks a bunch!. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|