Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[em] View Profile Sig
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[em] View Profile Sig
PostPosted: 11/11/2006 12:01 PM Reply with quote
Crow
Jace
Crow
Posts 66
Word Cnt. 2,029
BDay May 15
Sign Taurus
Sex Sex:Male
Joined: Oct 28, 2006
Local time: 4:35 PM
netherlf_2fx.gif
Error is this:

Code:
Error Detail
  
Critical Error

FIND FAILED: In file [includes/usercp_viewprofile.php] could not find:

$search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';

MOD script line #41 :: FAQ :: Report
Back to Top
View user's profile Find all posts by Jace Send private message  
Re: [em] View Profile Sig
PostPosted: 11/11/2006 6:53 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: 5:35 PM
Location: St Pete, FL
peace.gif
Do you have a link to the MOD topic and download???

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: [em] View Profile Sig
PostPosted: 11/12/2006 10:37 AM Reply with quote
Crow
Jace
Crow
Posts 66
Word Cnt. 2,029
BDay May 15
Sign Taurus
Sex Sex:Male
Joined: Oct 28, 2006
Local time: 4:35 PM
netherlf_2fx.gif
http://www.phpbb.com/phpBB/viewtopic.php?t=149836

that's it...
Back to Top
View user's profile Find all posts by Jace Send private message  
Re: [em] View Profile Sig
PostPosted: 11/13/2006 3:25 AM 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: 5:35 PM
Location: St Pete, FL
peace.gif
Ok, I cleaned up the code and created this EM Friendly version of the MOD.  So try this and see what happens...

Code:
##############################################################
## MOD Title: View Profile Sig - EM Friendly
## MOD Author: netclectic < > (Adrian Cockbutn) http://www.netclectic.com
## MOD Description: Adds the user's signature to their view profile page.
## MOD Version: 1.1.1
##
## Installation Level: easy
## Installation Time: 3 Minutes
## Files To Edit: (2) usercp_viewprofile.php, profile_view_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##     2003-11-07  - Version 1.1.1
##          - updated for 2.0.6 (no changes)
##          - removed the <b> </b> tags from around the signature.
##
##     xxxx-xx-xx  - Version 1.1.0
##          - Updated for 2.0.4 and fixed a problem with formatting of the signature.
##
##     xxxx-xx-xx  - Version 1.0.0
##          - First release.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$search = '<a href="' . $temp_url
#
#-----[ AFTER, ADD ]------------------------------------
#
$user_sig = '';
if ( $profiledata['user_attachsig'] && $board_config['allow_sig'] )
{
    include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
    $user_sig = $profiledata['user_sig'];
    $user_sig_bbcode_uid = $profiledata['user_sig_bbcode_uid'];
if ( $user_sig != '' )
    {
        if ( !$board_config['allow_html'] && $profiledata['user_allowhtml'] )
       {
       $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "&lt;\\2&gt;", $user_sig);
       }
    if ( $board_config['allow_bbcode'] && $user_sig_bbcode_uid != '' )
   {
   $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig);
   }
   $user_sig = make_clickable($user_sig);

        if (!$userdata['user_allowswearywords'])
        {
            $orig_word = array();
            $replacement_word = array();
            obtain_word_list($orig_word, $replacement_word);
            $user_sig = preg_replace($orig_word, $replacement_word, $user_sig);
        }
        if ( $profiledata['user_allowsmile'] )
        {
            $user_sig = smilies_pass($user_sig);
        }
        $user_sig = str_replace("\n", "\n<br />\n", $user_sig);
    }
    $template->assign_block_vars('switch_user_sig_block', array());
}
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => (
#
#-----[ AFTER, ADD ]------------------------------------
#
   'L_SIGNATURE' => $lang['Signature'],
    'USER_SIG' => $user_sig,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{INTERESTS}
</tr>
#
#-----[ AFTER, ADD ]------------------------------------
#
        <!-- BEGIN switch_user_sig_block -->
      <tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_SIGNATURE}:&nbsp;</span></td>
        <td> <span class="postbody">{USER_SIG}</span></td>
      </tr>
        <!-- END switch_user_sig_block -->
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM

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: [em] View Profile Sig
PostPosted: 11/13/2006 11:19 AM Reply with quote
Crow
Jace
Crow
Posts 66
Word Cnt. 2,029
BDay May 15
Sign Taurus
Sex Sex:Male
Joined: Oct 28, 2006
Local time: 4:35 PM
netherlf_2fx.gif
IIIIIt, Worked!
Thanks NR
Back to Top
View user's profile Find all posts by Jace Send private message  
Re: [em] View Profile Sig
PostPosted: 11/13/2006 11:36 AM 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: 5:35 PM
Location: St Pete, FL
peace.gif
Awesome!!!  Congratulations again Jace!!!

Applause
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: [em] View Profile Sig
PostPosted: 11/14/2006 2:00 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 4:35 PM
usaCa.gif
Well I thought that was one I could do alone but never figured it out so downloaded this EM friendly version.  It installed according to EM.

It looked like it was trying to work the word  " signature: " showed up in the profile but no signature so I went to my profile control panel and lo and behold there is no signature field.
I know the field was there after I installed the remove website and signature from registration cause I checked.

I also noticed that not only was the weather mod not working it wasn't even in the EM list..  HUH....  so I installed it and while it didn't give me any errors I esp watched for SQL knowing it had been installed before.
It works but there are 2 instances of both the weather code line and the panel it's self.  I've looked and don't see what is doubled.

Back to the sig in profile:
Decided to see what it would do on the secondary test board (pasadena) since it has always worked fine and got this...
Fatal error: Cannot redeclare multi_bbcode() (previously declared in /mounted-storage/home24b/sub001/sc11665-DVNB/www/forums/pasadena/inclu des/bbcode.php:37) in /mounted-storage/home24b/sub001/sc11665-DVNB/www/forums/pasadena/inclu des/bbcode.php on line 35

It's been a very hard week I just wish something would go well  binky
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: [em] View Profile Sig
PostPosted: 11/15/2006 12:29 AM 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: 5:35 PM
Location: St Pete, FL
peace.gif
Ok, there were several errors which I have corrected for you.  The weather MOD was partially double installed.  For the Signature field, there was a double install on the following for both the signature and website on the profile_add_body.tpl file:

Code:
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->

After removing the extra switches, the sig and website display properly in the Edit Profile page...

For the redeclaration error on your Pasadena board, I made the following changes and it corrected that problem:

OPEN
usercp_viewprofile.php

FIND ALL INSTANCES
Code:
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

REPLACE WITH
Code:
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);

From what I can tell, all is back to normal again...

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: [em] View Profile Sig
PostPosted: 11/15/2006 10:56 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 4:35 PM
usaCa.gif
Switches it was was it?    Hum..  momma used to use those Sad  and I learned to pay attention to what they meant.
That isn't what I was looking for to be doubled.

I have however in looking through the mods as you have explained problems in the last few months noticed that they are a 'main part' in a lot of  code.  Could you give me an elementary explain of what a switch is, how it works or why it is used?

Still issues:  On the test board, the weather code looks to work in the profile but there is no place in the edit profile to put your city code.
(Signature in profile works).
Pasadena board:  The signature code is doubled in the profile.  A switch again?

Gonna go see if the sig works in other boards.
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: [em] View Profile Sig
PostPosted: 11/16/2006 4:04 AM 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: 5:35 PM
Location: St Pete, FL
peace.gif
KeeKee wrote:
Could you give me an elementary explain of what a switch is, how it works or why it is used?

Switches in php code can be used for several things.  The  switch_user_logged_in switch only allows the code embeded between the BEGIN and END switch to display when the member is logged in while the  switch_user_logged_out switch will only display the embedded code when the user is logged out.  Switches on the index, view topic and forum pages are used to encapsolate code that could be reused multiple times.  This means that the embedded code in the switch can be used to display each forum, category, topic, and post without having repeating code for each item.  It looks complicated, but it really is a simple concept once you understand what is taking place.  Basically switches are used for special circumstances or events...

KeeKee wrote:
Still issues:  On the test board, the weather code looks to work in the profile but there is no place in the edit profile to put your city code.
(Signature in profile works).

Fixed.  The Weather code for the profile_add_body.tpl file was missing.  I put it back in your Test board and now all is well with it again...

KeeKee wrote:
Pasadena board:  The signature code is doubled in the profile.  A switch again?

I'm not seeing the doubled signature in the the Pasadena Profile.  Did you manage to find and fix that problem???

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  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0872s (PHP: 69% - SQL: 31%) - SQL queries: 57 - GZIP disabled - Debug on