Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Code and Template Customizations > Customizations & Templates

Customizations & Templates Various hacks and customizations for Vivvo 4 branch. Template repository and all related template customization discussions.

Reply
 
Thread Tools Display Modes
Old 09-13-2008, 02:22 AM   #1
columbusman
Senior Vivvo User
 
Join Date: Jul 2007
Posts: 205
Rep Power: 6
columbusman is on a distinguished road
Default Any way to index all Comments...

Well I have had many requests to see all comments left instead of seeing only a few like in the most commented tabs, so I created a page and then a frame that shows the last 200 comments...



What I want to do is have people see all comments and they could select a page... here is the code..

Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="{VIVVO_LANG}" xml:lang="{VIVVO_LANG}">
	<vte:include file="{VIVVO_TEMPLATE_DIR}system/html_header.tpl" />
	<body id="layout_two_column">
		<vte:include file="{VIVVO_TEMPLATE_DIR}box/header.tpl" />
		<div id="container">
			<div id="content">
				<div id="dynamic_box_center">
					<div id="box_center_holder">
						<vte:if test="{PAGE_TITLE}">
							<h1>
								Last 200 <vte:value select="{PAGE_TITLE}" /> left by visitors, members
							</h1>
						</vte:if>
						<div><vte:box module="box_comments">
							<vte:params>
								<vte:param name="search_limit" value="200" />
								<vte:param name="search_sort_by" value="created" />
								<vte:param name="search_order" value="descending" />
								<vte:param name="cache" value="1" />
							</vte:params>
							<vte:template>
								<vte:if test="{comment_list}">
									<div class="comments">
										<div id="latest_comments">
											<vte:foreach item = "comment" from = "{comment_list}">
												<div class="single_comment">
													<div class="comment_header">
														<img src="{comment.get_gravatar|24}" alt="avatar" width="24" height="24" />
														<vte:if test="{comment.get_www}">
															<a href="http://{comment.get_www}" target="_blank"><vte:value select="{comment.get_author}" /></a>
															<vte:else>
																<strong><vte:value select="{comment.get_author}" /></strong>
															</vte:else>
														</vte:if>
														<vte:value select="{LNG_ARTICLE_COMMENTS_POSTED_ON}" /> 
														<vte:value select="{comment.get_create_dt}" />
													</div>
													<div class="comment_body">
														<a href="{comment.get_article_href}"><vte:value select="{comment.get_summary}" /></a>
													</div>
												</div>
											</vte:foreach>
										</div>
									</div>
								</vte:if>
							</vte:template>
						</vte:box>
						</div>
					</div>
				</div>
				<div id="dynamic_box_right">
					<div id="box_right_holder">
                    	<vte:include file="{VIVVO_TEMPLATE_DIR}{VIVVO_LOGIN_TEMPLATE}" /> 
                        <br />
						<vte:include file="{VIVVO_TEMPLATE_DIR}box/tag_cloud.tpl" />
					</div>
				</div>
			</div>
			<div id="footer">
				<vte:include file="{VIVVO_TEMPLATE_DIR}box/footer.tpl" />
			</div>
		</div>	
	</body>
</html>
I also want to know if its possible to group each comment by IP so that way they are shown by who left them all... meaning if someone used 4 different names it will group them all together by IP so noone can be funny... and act like someone different....

Hope you can help...
columbusman is offline   Reply With Quote
Old 09-13-2008, 12:03 PM   #2
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,661
Rep Power: 10
Micha will become famous soon enough
Default

I'm not so sure about grouping comments by IP, but it sure sounds like a good idea

Now for the other thing, I would suggest that you try modifying this widget:

http://www.vivvo.net/resources/downl...agination.html

Just instead of articles, you load a comment list.
__________________
--[Read Forum Rules and Guidelines before you post!!!]--

Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...
Micha is offline   Reply With Quote
Old 09-13-2008, 03:37 PM   #3
columbusman
Senior Vivvo User
 
Join Date: Jul 2007
Posts: 205
Rep Power: 6
columbusman is on a distinguished road
Default

I will give it a shot, and thanks again...

Yes if we are to group them by IP then we would cut down on the crap comments where they think they are being smart and tricky...
columbusman is offline   Reply With Quote
Old 09-15-2008, 01:33 AM   #4
columbusman
Senior Vivvo User
 
Join Date: Jul 2007
Posts: 205
Rep Power: 6
columbusman is on a distinguished road
Default

Code:
<vte:params>
								<vte:param name="search_limit" value="200" />
                                <vte:param name="search_sort_by" value="ip" />
								<vte:param name="search_sort_by" value="created" />
								<vte:param name="search_order" value="descending" />
								<vte:param name="cache" value="1" />
							</vte:params>
OK now I have this working to my goal, but If I remove the search_sort_by" value="created" it groups them, by IP (in bold above) but I also want to group them by when the comment was created...

I know there has to be a trick... any words of wisdom..?

Also once this is solved would it be just a tad of CSS coding to separate out the groups by color...

Thanks in advance... were almost there...
columbusman is offline   Reply With Quote
Old 09-15-2008, 08:54 AM   #5
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,661
Rep Power: 10
Micha will become famous soon enough
Default

Hmmm, fishing in dark here, but have you tried comma separated values?

Code:
<vte:param name="search_sort_by" value="ip,created" />
It might work.
__________________
--[Read Forum Rules and Guidelines before you post!!!]--

Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...
Micha is offline   Reply With Quote
Old 09-15-2008, 07:52 PM   #6
columbusman
Senior Vivvo User
 
Join Date: Jul 2007
Posts: 205
Rep Power: 6
columbusman is on a distinguished road
Default

It worked... YOU'RE THE MAN....

Now how bout some CSS... is there a way to code each group with color... ???
columbusman is offline   Reply With Quote
Old 09-16-2008, 08:22 AM   #7
Micha
Administrator
 
Micha's Avatar
 
Join Date: Feb 2006
Location: Belgrade
Posts: 2,661
Rep Power: 10
Micha will become famous soon enough
Default

Cool!

Ok, now, you need to explain me a little bit more on what groups you need to stylize with CSS.
Perhaps URL of your site would be helpful so I can see the code and maybe work something out.
__________________
--[Read Forum Rules and Guidelines before you post!!!]--

Djole, Djole, bas si bezobrazan sto si se pravio da si mali zekan. Zato cu te dobro kazniti...
Micha is offline   Reply With Quote
Old 09-16-2008, 04:34 PM   #8
columbusman
Senior Vivvo User
 
Join Date: Jul 2007
Posts: 205
Rep Power: 6
columbusman is on a distinguished road
Default

I was wrong... it didnt work... it looked like it but they commented in a row... it doesn't group them... Didn't mean to shatter ya... I will work on it a touch more... its 11:35am here and I am sure our time difference is off... so I will come back... and let ya know...
columbusman is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 04:20 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.