Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] help quick lol
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3, 4, 5  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] help quick lol
PostPosted: 06/16/2007 3:41 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
greatbrE.gif
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  Dancing
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: help quick lol
PostPosted: 06/16/2007 3:52 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 4:10 PM
greatbrE.gif
hysterical2
I might know....might make you wait  nana



What are you stuck on exactly?
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] help quick lol
PostPosted: 06/16/2007 4:15 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 8:10 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
What is the error you are getting with this MOD while installing through EM  dontknow
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: help quick lol
PostPosted: 06/16/2007 4:21 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] help quick lol
PostPosted: 06/16/2007 4:37 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
greatbrE.gif
Haha Karen Razz

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  Dancing
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: help quick lol
PostPosted: 06/16/2007 6:34 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
peace.gif
Chris, did you see my suggestion above?  This should get rid of that conflict...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] help quick lol
PostPosted: 06/16/2007 6:56 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: help quick lol
PostPosted: 06/16/2007 7:12 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
peace.gif
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&amp;username=$poster&amp;topic=$top ic_id");

REPLACE WITH
Code:
$poster2 = $postrow[$i]['username'];
$temp_url = append_sid("ignore.$phpEx?mode=add&amp;username=$poster2&amp;topic=$to pic_id");

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] help quick lol
PostPosted: 06/16/2007 7:33 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 5:10 PM
Location: Birmingham, UK.
greatbrE.gif
Aaah ok  Applause

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  Dancing

Thanks again Nightrider  banana
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: help quick lol
PostPosted: 06/16/2007 7:36 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 12:10 PM
Location: St Pete, FL
peace.gif
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???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3, 4, 5  Next
Page 1 of 5


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1367s (PHP: 39% - SQL: 61%) - SQL queries: 58 - GZIP disabled - Debug on