The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#32
|
||||
|
||||
Finally Got This Working!
Finally got this working with the help of member "rainyleaves". Here are better instructions and a code fix which is missing from the author's zip file comments.php file. The missing code is for selecting your database table prefix which is missing. IMPORTANT NOTE: IMG Tags Can Stretch Sideblock IMG tags with longer urls will break this if you set this as a side block. Your cmps page will get stretched breaking your layout! NOTE: More coding is needed to correct this issue. Suggestion: (temp fix) You may want to use this mod as a center block instead. INSTRUCTIONS:
Blue = Where you must enter your database information Code:
<?php // UPDATED comments.php file with small fix tweak by Yotsume // I spent a while on this please leave the next couple of lines intact // Coded by Optrex @ www.midlandsweather.org.uk // Please do not put this onto any other site for download unless permission has been granted by myself (Optrex) // This script is copyright www.midlandsweather.org.uk //edit the variables on the next few lines in order for the script to connect to your database. $link = mysql_connect ("database_host", "database_user", "password") or die('I cannot connect to the database.'); mysql_select_db ("database_name")or die("Could not select your database"); // You do NOT need to change the db_table_prefix if you altered it from default to something else the below code will do this for you $result = mysql_query("SELECT username,title,pagetext,dateline,state,userid,blogtextid FROM " . TABLE_PREFIX . "blog_text WHERE title = '' AND state = 'visible' ORDER BY dateline desc LIMIT 10" ) or die(mysql_error()); while($row = mysql_fetch_array( $result )) { //edit the urls to represent your sites url. (remember to check the /forum folder name) $comms .= <<<PRINT <tr> <td class="$bgclass" align="left"> <span class="{$Style['small']}"><a href="http://www.yourwebsite.com/blog.php?bt=$row[blogtextid]">Comment</a> by <a href="http://www.yourwebsite.com/member.php?u=$row[userid]">$row[username] </a><br>$row[pagetext] </td> </tr> PRINT; } ?> HAPPY BLOGGING! |
#33
|
|||
|
|||
Congratulations! Yotsume.
|
#34
|
||||
|
||||
More Poor Code Problems!
This mod has more problems. If a member posts a comment and makes a few color changes to their text the code will expand the block and destroy the layout of your site by stretching it. Please how can we make it so this mod will not show code in the comments? its showing the raw code and not the styled comments. So already can you fix this please! This is the only comment cmps mod and its got big problems for site owners! Please update your mod with a fix so code doesnt show in the comments. |
#35
|
|||
|
|||
I have the same issues with the mod myself but I cannot post an update atm as I am in the process of emigrating from one side of the world to the other and do not have regular PC access. The problem is due to the way the db parses the code into a text string, it just nees some stuff stripping out of it. Shouldn't be too difficult for someone.
Either that or ask your members to post only text based comments. |
#36
|
||||
|
||||
Quote:
You do realize you have the ONLY Blog Comments module designed to date. Your module is just one step away from perfection. We need to prevent img tabs from showing inside the block. I co NOT have the members of my blog not use img tags in their blogs. Please someone look at the code of this hack and come up with a way to strip img tags from being pulled into the block. I am going to ask around to other designers who have other types of comments blocks how they are able to prevent this problem in their mods. |
#37
|
|||
|
|||
How i add Recent , Random entries & recent comment to vBadvanced CMPS in the center column under recent threads ? (like attached picture)
i want to add it under recent threads .. it will be beautiful can you do that ? templates shown in picture : - blog_entry_featured - blog_home http://img515.imageshack.us/my.php?image=85ah4.gif |
#38
|
|||
|
|||
Thats a standard feature in the blog settings
|
#39
|
|||
|
|||
yes , but Possible that we use in vBadvanced CMPS
can you do it ? its will seem so beautiful feature |
#40
|
||||
|
||||
With Long Path Images on the vBAdvanced Page the Blog Comments pesented with this Mod Affect the CMPS Pages where it is presented (Left, Center, or Right Column), because it doesn't Trim the Long Words.
My Best Regards. |
#41
|
|||
|
|||
* It is well documented that this hack does not work in its current state with images or url's in comments. I would suggest that for now you disable the following functionality in blog comments
Maximum Images Per Comment = 0 Then in usergroups, under blog comments Allow Smilies = no Allow BB Code = no Allow [IMG] Code = no Allow HTML = no |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|