|
included comments list
|
|
11-Aug-2011, 08:19 PM
Post: #1
|
|||
|
|||
|
included comments list
Hi all
![]() First of all - sorry about my english, i'm from europe and i haven't spoke/wrote english since a long time^^ i'm actually integrating commentics in my website and what could i say... your script is amazing! thanks a lot! since now, i could solve every problem using your forum - and i noticed your giving a great support to your users - wow! --------------------- my problem: i found the following code in your forum and edited+included it in my index.php to show the latest comments at my main page in a box. Code: PHP Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">It works very good and my box looks like this now: ![]() What i want to change is - to show the name and the country - to show the thumbs-up-icon and the number of "likes" (no dislikes, like facebook) - to sort them by likes, the most liked comment should be at the top! Finally it should look like this: (sortet by likes) ![]() I've just grafical skills and no great skills in coding, but i'm able to read and change most of the codes... this is my way to create homepages^^Would anyone be so nice to show me, how the code have to look like to get what i want? ![]() thanks a lot to you all hope to hear from you soon Jayson
|
|||
|
11-Aug-2011, 08:40 PM
Post: #2
|
|||
|
|||
|
RE: included comments list
Edit:
Finally it should look like this: (sortet by likes and max. 200 chars shown!) ![]() (i forgot to design max. 200 chars - maybe you can merge this reply with my main entry)^^ |
|||
|
12-Aug-2011, 06:55 PM
Post: #3
|
|||
|
|||
|
RE: included comments list
Hi,
This post contains a slightly simpler alternative: http://www.commentics.org/forum/showthre...38#pid1938 In that example you can add extra lines to output more data, like: PHP Code: <?phpAlso note that I have changed "ORDER BY dated" to "ORDER BY vote_up". Have you completed the interview? |
|||
|
12-Aug-2011, 11:21 PM
Post: #4
|
|||
|
|||
|
RE: included comments list
Hii Steven!
thanks so much, this code is exactly what i've looked for! After some small edits my box looks now like this! ![]() Thats nearly what i wanted to get but i've still some questions and i hope you can help me again ![]() - is there a way to get the vote function running? (with the possibility to click on vote from my external box) - would you be so kind to add the term "from" before the country? (Should only be shown, if someone has entered a country) Should look like this.. ![]() here's my code: PHP Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">I tried and tried to do that on my own, but my skills are to weak - i hate myself for beeing such a php n00b ![]() i know that this is not a forum, where members can tell their coding wishes to you, but i'm ready to take some paypal donation for commentics and your nice support =) thanks a lot, jayson |
|||
|
13-Aug-2011, 03:56 PM
Post: #5
|
|||
|
|||
|
RE: included comments list
Hi,
I don't mind helping you with the display but I think the functionality, such as voting, should not be separated apart from the main script. To display the word "from" before the country you could use this bit of code. It will only display it if a country was entered. PHP Code: if (!empty($comments["country"])) { echo "from " . $comments["country"]; } If you have the time it would be great if you answered the interview which is linked to in my signature below. Have you completed the interview? |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| No comments form appears despite many avenues explored... | sherry | 14 | 162 |
26-Apr-2013 03:05 AM Last Post: sherry |
|
| Comments number on another page. | Edgey | 4 | 452 |
17-Apr-2013 10:31 PM Last Post: aww |
|
| How to insert comments into other place? | igor74 | 4 | 141 |
08-Apr-2013 01:48 PM Last Post: igor74 |
|
| SSO, dynamically loading comments and customising | dcode | 4 | 195 |
09-Mar-2013 03:22 AM Last Post: dcode |
|
| Comments Appear on All Pages?! | JMG | 1 | 185 |
26-Feb-2013 06:24 AM Last Post: JMG |
|
| One url for comments | sabrina | 1 | 186 |
23-Feb-2013 01:25 PM Last Post: Steven |
|
| Sorting comments in SEF url system | otuzel | 0 | 210 |
26-Dec-2012 03:32 PM Last Post: otuzel |
|
| The 10 last comments ? | besric | 4 | 430 |
12-Oct-2012 07:58 PM Last Post: besric |
|
| Pathname to the File that inserts the Comments Box | Bill | 10 | 1,100 |
23-Jun-2012 11:46 PM Last Post: Bill |
|
| Comments on separate page from form | mdrake | 1 | 541 |
15-Jun-2012 11:19 AM Last Post: Steven |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



![[Image: unbenannt1se.jpg]](http://img97.imageshack.us/img97/7720/unbenannt1se.jpg)
![[Image: unbenannt1je.jpg]](http://img33.imageshack.us/img33/5194/unbenannt1je.jpg)



![[Image: unbenannt1cr.jpg]](http://img856.imageshack.us/img856/8290/unbenannt1cr.jpg)
![[Image: unbenannt1cmp.jpg]](http://img801.imageshack.us/img801/9233/unbenannt1cmp.jpg)
![[Image: unbenannt1dn.jpg]](http://img821.imageshack.us/img821/9836/unbenannt1dn.jpg)