 | [Solved] help quick lol |  |
Posted: 06/16/2007 3:41 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
stuck on a mod at the mo
viewtopic.php
| Code:
|
#-----[ FIND ]------------------------------------------
#
$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (( $post_ignored > 0 ) && ( $poster_id != ANONYMOUS ) && ( $post_bypass != $postrow[$i]['post_id'] ) && ($postrow[$i]['user_level'] != ADMIN) && ($postrow[$i]['user_level'] != MOD))
{
$post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']);
//
// Define the little post icon
//
if ( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read )
{
$mini_post_img = $images['icon_minipost_new'];
$mini_post_alt = $lang['New_post'];
}
else
{
$mini_post_img = $images['icon_minipost'];
$mini_post_alt = $lang['Post'];
}
$message = $lang['Post_user_ignored'] . ' ' . sprintf($lang['Click_view_ignore'], '<a href="' . append_sid("viewtopic.$phpEx?p=" . $postrow[$i]['post_id'] . "&bypass=" . $postrow[$i]['post_id'] . "#" . $postrow[$i]['post_id']) . '">', '</a>');
$ignore = '';
$poster_rank = '';
$rank_image = '';
$poster_joined = '';
$poster_posts = '';
$poster_from = '';
$poster_avatar = '';
$poster_member = '';
$post_subject = '';
$user_sig = '';
$l_edited_by = '';
$mini_post_img = '';
$search_img = '';
$search = '';
$edit_img = '';
$edit = '';
$quote_img = '';
$quote = '';
$ip_img = '';
$ip = '';
$delpost_img = '';
$delpost = '';
$profile_img = '';
$profile = '';
$pm_img = '';
$pm = '';
$email_img = '';
$email = '';
$www_img = '';
$www = '';
$icq_status_img = '';
$icq_img = '';
$icq = '';
$aim_img = '';
$aim = '';
$msn_img = '';
$msn = '';
$yim_img = '';
$yim = '';
}
else
{
|
i like to install as many mods as i can while off work so the quicker the response the better lol. if no response within 20 minutes ill just leave this mod off and carry on with other mods instead. I'm an impatioent git i know  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: help quick lol |  |
Posted: 06/16/2007 3:52 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 4:10 PM
|

|
|
|
|
 |
I might know....might make you wait
What are you stuck on exactly? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] help quick lol |  |
Posted: 06/16/2007 4:15 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 8:10 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
What is the error you are getting with this MOD while installing through EM  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: help quick lol |  |
Posted: 06/16/2007 4:21 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
LOL Too funny Karen...
Chris, it looks like you installed a MOD that altered this section of code. So this is how you fix the MOD script:
OPEN
mod.txt
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
$poster .= ( $poster_id != ANONYMOUS ) ? '</a>' : '';
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] help quick lol |  |
Posted: 06/16/2007 4:37 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Haha Karen
Nightrider, I’m trying to install the ignore user mod. It’s in the admin/mod folder ready to be installed. I corrected the first few problems but the one error I was getting stuck and wasn't sure how to correct it. If you try and install it you'll see what I mean dude  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: help quick lol |  |
Posted: 06/16/2007 6:34 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
Chris, did you see my suggestion above? This should get rid of that conflict...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] help quick lol |  |
Posted: 06/16/2007 6:56 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
| No. what you said worked though yeah cheers. I had to make a couple more edits to get it working. One little problem though is when viewing a post next to the ignore button there’s this "&topic=17">" |
|
|
 |
 |
| Back to Top |
|
|
 | Re: help quick lol |  |
Posted: 06/16/2007 7:12 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
Yep, I've seen other MOD authors make the same mistake. There are many MODs out there that turn the $poster into a hyperlink. So when other MOD authors try to use that variable and add it to another hyperlink, it causes the problem that you are seeing. So this is how you can fix this:
OPEN
viewtopic.php
FIND
| Code:
|
|
$temp_url = append_sid("ignore.$phpEx?mode=add&username=$poster&topic=$top ic_id");
|
REPLACE WITH
| Code:
|
$poster2 = $postrow[$i]['username'];
$temp_url = append_sid("ignore.$phpEx?mode=add&username=$poster2&topic=$to pic_id");
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] help quick lol |  |
Posted: 06/16/2007 7:33 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Aaah ok
Instead of just correcting the current viewtopic.php file I uninstalled the mod and corrected the mod install file then installed the mod back on again. Just left the SQL changes unchecked because they were already in the database from the previous installation
Thanks again Nightrider  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: help quick lol |  |
Posted: 06/16/2007 7:36 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
|

|
|
|
|
 |
Great!!! After Ignoring someone, how do you go about un-ignoring them with this MOD? Will there be a link added to the top header menu???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|