Code: Select all
Could not obtain reputation stats for this user DEBUG MODE SQL Error : 1146 Table 'daclanda_phpb0.REPUTATION_TABLE' doesn't exist SELECT COUNT(user_id) AS count_reps FROM REPUTATION_TABLE AS r WHERE r.user_id = 2 GROUP BY user_id Line : 317 File : usercp_viewprofile.php
Code: Select all
// // Go ahead and pull all data for this topic // $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_bf2stats, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, u.user_reputation
What does macromedia have anything to do with this? Either you install it manually with the help of a simple text editor like notepad or notepad++ or install it with EasyMOD. What exactly are you doing?figo wrote:my macromedia program confirmed this.
You didn't actually say what errors you are getting. All you said was that you were getting 'these errors'. I have never used this mod, but taking a quick look at the code I see nothing obviously wrong in it (and I don't know what you mean when you say there are duplicate entries...looks to me like the two lines you specifically single out simply add a link and then in certain circumstances an additional link).figo wrote:yep there is def something wrong with this mod, i just tried a clean install using a clean viewprofile.php template and i get these errors.
Dreamweaver is great, but it is for html and if you are not pretty advanced and very careful at how to configure it (and few people are - certainly I am not!), it will totally mess up your forum by inserting additional characters (sometimes hidden and hard to find) into the file. It is intended to automate the process of writing html, and it does that brilliantly, but in the process it tends to stick in its own code (anticipating what you need) which will absolutely break your forum. And the possible errors it alerts you to (like the 'invalid duplicate attribute' it warns you of, as I just found out by opening up that code in dreamweaver) are possible errors in html code. Since the code you are trying to add to your forum is not html but instead is php, the supposed 'errors' dreamweaver finds are not errors at all (they are just things that would be a problem if the code were a basic html page).figo wrote:I use macromedia to modify my code, i do it manually. You dont have to use notepad. i use macromedia dreamweaver.
Can I please have someone respond who actually wont crap on me for the program that i use?
There is no such thing as a "Duplicate Entry" in a PHP script... those lines are not the same anyway.figo wrote:my macromedia program confirmed this. says there is duplicate entry
That would require putting <!-- BEGIN switch_user_logged_in --> in the line before the relevant code in viewtopic_body.tpl and <!-- END switch_user_logged_in --> on the line after, if you choose to keep this MODAnother question I had was , if somebody is a guest / not logged on, how do I make the reputation +/- system not show? Or atleast require them to log in before they can view it.