 | [em] View Profile Sig |  |
Posted: 11/11/2006 12:01 PM |
|
|
|
|
|
| Crow |
| Posts |
66 |
| Word Cnt. |
2,029 |
| BDay |
May 15 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Oct 28, 2006
Local time: 5:15 AM
|

|
|
|
|
 |
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 |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/11/2006 6:53 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
Do you have a link to the MOD topic and download???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/12/2006 10:37 AM |
|
|
|
|
|
| Crow |
| Posts |
66 |
| Word Cnt. |
2,029 |
| BDay |
May 15 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Oct 28, 2006
Local time: 5:15 AM
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/13/2006 3:25 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
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', "<\\2>", $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}: </span></td>
<td> <span class="postbody">{USER_SIG}</span></td>
</tr>
<!-- END switch_user_sig_block -->
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/13/2006 11:19 AM |
|
|
|
|
|
| Crow |
| Posts |
66 |
| Word Cnt. |
2,029 |
| BDay |
May 15 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Oct 28, 2006
Local time: 5:15 AM
|

|
|
|
|
 |
IIIIIt, Worked!
Thanks NR |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/13/2006 11:36 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
Awesome!!! Congratulations again Jace!!!
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/14/2006 2:00 PM |
|
|
|
|
|
| Citation |
| Posts |
940 |
| Word Cnt. |
48,215 |
| BDay |
Mar 4 |
| Sign |
Pisces |
| Sex |
 |
|
|
|
Joined: Mar 20, 2006
Local time: 5:15 AM
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/15/2006 12:29 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/15/2006 10:56 PM |
|
|
|
|
|
| Citation |
| Posts |
940 |
| Word Cnt. |
48,215 |
| BDay |
Mar 4 |
| Sign |
Pisces |
| Sex |
 |
|
|
|
Joined: Mar 20, 2006
Local time: 5:15 AM
|

|
|
|
|
 |
Switches it was was it? Hum.. momma used to use those 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 |
|
|
 | Re: [em] View Profile Sig |  |
Posted: 11/16/2006 4:04 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:15 AM
Location: St Pete, FL
|

|
|
|
|
 |
| 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???
 |
|
|
 |
 |
| Back to Top |
|
|
 |
 | Information |  |
|