The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mapping theme from forum to site
I have made a comment system to my news site - when people want to comment, they click on button, enter captcha and forum bot makes theme, where people can leave comments to this news.
And now I want to show this comments near news on my site, show current theme in linear mode outside of forum. How I can do it?.. |
#2
|
||||
|
||||
You have to query the database for the comments, I would guess.
|
#3
|
|||
|
|||
Query - I can do it, 5 minutes, not more))
But how can I show posts of this thread as in forum? With avatars on left, with all buttons? Like this, maybe, http://www.igromania.ru/HardwareNews...on_HD_4890.htm Don't read russian text of news, only look at comments. |
#4
|
||||
|
||||
After you do the query, in the while loop you have that goes through the results, you may eval a template that has the avatar and buttons you want. ie.
PHP Code:
|
#5
|
|||
|
|||
Some interesting thing...
PHP Code:
|
#6
|
||||
|
||||
Can you post an image? I don't know what you mean about text being cropped.
I used the following lines in something I wrote that parses the tags: PHP Code:
|
#7
|
|||
|
|||
I read code of vB_BbCodeParser today.
Text with [quote] go throw the parser == parser return nothing. Why? Maybe something with templates? Why parser do not return HTML code for this tag? [IMG], [URL] and some other parses well. |
#8
|
||||
|
||||
Well, I used the code I posted and quote tags parsed just fine for me. (I don't have unhtmlspecialchars in my code. You may not need that.)
|
#9
|
|||
|
|||
unhtmlspecialchars - okey, it was only testing.
Tomorrow I wil test your code and write here. Thanks) --------------- Added [DATE]1242370197[/DATE] at [TIME]1242370197[/TIME] --------------- I don't know what and why, but it works. PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|